From cb2fc51125c842196e71722d60c396008d887913 Mon Sep 17 00:00:00 2001 From: Becky Smith Date: Fri, 1 Mar 2024 10:01:25 +0000 Subject: [PATCH 1/4] Update just assets/update to copy upstream view also --- assets/justfile | 3 +- assets/templates/components.html | 1158 ------------------------------ assets/views.py | 69 +- 3 files changed, 38 insertions(+), 1192 deletions(-) delete mode 100644 assets/templates/components.html diff --git a/assets/justfile b/assets/justfile index 155a7962..9bbfd48d 100644 --- a/assets/justfile +++ b/assets/justfile @@ -19,7 +19,8 @@ update: just -d $tmpdir --justfile $tmpdir/justfile assets-install just -d $tmpdir --justfile $tmpdir/justfile assets-build cp -r $tmpdir/templates/_components/* ./templates/_components/ - cp $tmpdir/templates/components.yaml* ./templates/ + cp $tmpdir/jobserver/views/components.py ./views.py + mkdir -p dist cp -r $tmpdir/assets/dist/* ./dist/ cp -r $tmpdir/assets/dist/.vite ./dist/ diff --git a/assets/templates/components.html b/assets/templates/components.html deleted file mode 100644 index bb59d252..00000000 --- a/assets/templates/components.html +++ /dev/null @@ -1,1158 +0,0 @@ -{% extends "base.html" %} - -{% load django_vite %} -{% load humanize %} - -{% block metatitle %}UI components gallery - OpenSAFELY Jobs{% endblock metatitle %} - -{% block content %} -
- - - Show - - components list - - - -
- -
-

UI Components

-

A gallery for the available components for building OpenSAFELY Jobs pages.

- -
- -
-

Alert

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to the component
  • -
  • dismissible: [boolean] - if true, allow the alert to be dismissed
  • -
  • no_icon: [boolean] - if true, remove the icon
  • -
  • title: [string] - add a title for the alert
  • -
  • variant: [string] - select styling colour and icon for component
  • -
-
-
- {% #alert variant="warning" title="Attention needed" dismissible=True %} - This Job has not been updated for over 30 minutes, some of the data on this page could be stale. - {% /alert %} - {% #alert variant="info" title="For your information" class="mt-4" no_icon=True %} - This Job has not been updated for over 30 minutes, some of the data on this page could be stale. - {% /alert %} -
-
{% verbatim %}{% #alert variant="warning" title="Attention needed" dismissible=True %}
-  This Job has not been updated for over 30 minutes, some of the data on this page could be stale.
-{% /alert %}
-{% #alert variant="info" title="For your information" class="mt-4" no_icon=True %}
-  This Job has not been updated for over 30 minutes, some of the data on this page could be stale.
-{% /alert %}{% endverbatim %}
-
-
- -
-

Article Header

-
    -
  • children: [html] - display the children components
  • -
  • title: [string] - add a title for the page
  • -
  • text: [string] - text to be displayed below the title
  • -
-
-
- {% #article_header title="A page title can go here" text="And description text can go here" %} -
    -
  • Child bullet
  • -
  • A second child bullet
  • -
- {% /article_header %} -
-
{% verbatim %}{% #article_header title="A page title can go here" text="And description text can go here" %}{% endverbatim %}
-  {% filter force_escape %}
    -
  • Child bullet
  • -
  • A second child bullet
  • -
{% endfilter %} -{% verbatim %}{% /article_header %}{% endverbatim %}
-
-
- - - -
-

Button

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes
  • -
  • data-expander-button: [string] - adds a `data-expander-button` attribute
  • -
  • data-modal: [string] - adds a `data-modal` attribute
  • -
  • data-table-pagination: [string] - adds a `data-table-pagination` attribute
  • -
  • data-title: [string] - adds a `data-title` attribute
  • -
  • disabled: [boolean] - if true, stops users from interacting with the component
  • -
  • external: [boolean] - used with `type="link"` to open link in a new tab
  • -
  • href: [string] - used with `type="link"` to add href to anchor tag
  • -
  • id: [string] - HTML element ID
  • -
  • name: [string] - HTML element name
  • -
  • small: [boolean] - if true, will reduce the font size, weight, and padding
  • -
  • tooltip: [string] - if added, will show the string on hover
  • -
  • type: [string] - if "link", button will display as an anchor tag
  • -
  • value: [string] - add a value
  • -
  • variant: [string] - select styling colour for component
  • -
-
-
- {% #button type="link" href="#" variant="danger" %}Danger link{% /button %} - {% #button type="submit" variant="success" %}Submit success{% /button %} - {% #button tooltip="I am the tooltip" variant="warning" %}Warning with a tooltip{% /button %} - {% #button disabled=True class="hover:scale-110 transition-transform" %}Disabled button with custom class{% /button %} -
-
{% verbatim %}{% #button type="link" href="#" variant="danger" %}Danger link{% /button %}
-{% #button type="submit" variant="success" %}Submit success{% /button %}
-{% #button tooltip="I am the tooltip" variant="warning" %}Warning with a tooltip{% /button %}
-{% #button disabled=True class="hover:scale-110 transition-transform" %}Disabled button with custom class{% /button %}{% endverbatim %}
-
-
- -
-

Card

-

Card

-
    -
  • button_href: [string] - set the href for the button
  • -
  • button_text: [string] - set the text for the button
  • -
  • button: [boolean] - display a button in the heading section
  • -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to the outer section component
  • -
  • container_class: [string] - add HTML classes to the container div
  • -
  • container: [boolean] - add padding and margin to the children container
  • -
  • custom_button: [string] - add a fragment for a custom button
  • -
  • subtitle: [string] - display a title for the card
  • -
  • title: [string] - display a subtitle for the card
  • -
-
-
- {% #card class="bg-red-50" title="Hola mundo" subtitle="Hallo welt" container=True class="w-full max-w-lg mx-auto" button=True button_href="#" button_text="Button text" %} -

Hello world

- {% /card %} -
-
{% verbatim %}{% #card class="bg-red-50" title="Hola mundo" subtitle="Hallo welt" container=True class="w-full max-w-lg mx-auto" button=True button_href="#" button_text="Button text" %}{% endverbatim %}
-  {% filter force_escape %}

Hello world

{% endfilter %} -{% verbatim %}{% /card %}{% endverbatim %}
-
-

Card footer

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to the component
  • -
  • no_container: [boolean] - if true, remove all padding from the footer
  • -
-
-
{% verbatim %}{% #card_footer no_container=False %}{% endverbatim %}
-  {% filter force_escape %}Hello world{% endfilter %}
-{% verbatim %}{% /card %}{% endverbatim %}
-
- -
-
- {% #card class="bg-red-50" title="Hola mundo" subtitle="Hallo welt" container=True class="w-full max-w-lg mx-auto" %} -

Hello world

- {% #card_footer %} -

Bonjour le monde

- {% /card_footer %} - {% /card %} -
-
{% verbatim %}{% #card class="bg-red-50" title="Hola mundo" subtitle="Hallo welt" container=True class="w-full max-w-lg mx-auto" %}{% endverbatim %}
-  {% filter force_escape %}

Hello world

{% endfilter %} - {% verbatim %}{% #card_footer %}{% endverbatim %} - {% filter force_escape %}

Bonjour le monde

{% endfilter %} - {% verbatim %}{% /card_footer %}{% endverbatim %} -{% verbatim %}{% /card %}{% endverbatim %}
-
-
- -
-

Code

-
    -
  • class: [string] - add HTML classes to the component
  • -
  • children: [html] - display the children components
  • -
-
-
- {% #code %} -

Hello world!

-

This is a code block

- {% /code %} -
-
{% verbatim %}{% #code %}{% endverbatim %}
-  {% filter force_escape %}

Hello world!

-

This is a code block

{% endfilter %} -{% verbatim %}{% /code %}{% endverbatim %}
-
-
- -
-

Description lists

-

Description item

-
    -
  • children: [html] - display the children components
  • -
  • details_class: [string] - add HTML classes to the dt component
  • -
  • stacked: [boolean] - if true, the title will appear above the content
  • -
  • title: [string] - add title text
  • -
  • title_class: [string] - add HTML classes to the dd component
  • -
-
-
- {% #description_item title="This is a title on the left" %} -

This is content on the right

- {% /description_item %} - {% #description_item title="This is a title on the left" %} -

This is content on the right

- {% /description_item %} -
-
- {% #description_item stacked=True title="This is a title on top" %} -

This is content on the bottom

- {% /description_item %} - {% #description_item stacked=True title="This is a title on top" %} -

This is content on the bottom

- {% /description_item %} -
-
{% verbatim %}{% #description_item title="This is a title on the left" %}
-  

This is content on the right

-{% /description_item %} -{% #description_item title="This is a title on the left" %} -

This is content on the right

-{% /description_item %} - -{% #description_item stacked=True title="This is a title on top" %} -

This is content on the bottom

-{% /description_item %} -{% #description_item stacked=True title="This is a title on top" %} -

This is content on the bottom

-{% /description_item %}{% endverbatim %}
-
- -

Description list

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to the component
  • -
-
-
- {% #description_list %} - {% #description_item title="This is a title on the left" %} - This is content on the right - {% /description_item %} - {% /description_list %} -
-
{% verbatim %}{% #description_list %}
-  {% #description_item title="This is a title on the left" %}
-    This is content on the right
-  {% /description_item %}
-{% /description_list %}{% endverbatim %}
-
-
- -
-

Footer

-
-
- {% footer %} -
-
{% verbatim %}{% footer %}{% endverbatim %}
-
-
- -
-

Forms

- -

Checkbox

-
    -
  • checked: [boolean] - if true, checkbox is checked
  • -
  • custom_field: [boolean] - set to true if field does not directly map to a Django Form field
  • -
  • id: [string] - set the HTML id for the input element
  • -
  • label_class: [string] - add HTML classes to the label tag
  • -
  • label: [string] - set the label displayed to the user
  • -
  • name: [string] - set the HTML name for the input element
  • -
  • span_class: [string] - add HTML classes to the span tag wrapping the label
  • -
  • value: [string] - set the HTML value for the input element
  • -
-
-
- {% form_checkbox checked=True custom_field=True id="backendActive" label="Is this backend active?" name="backend" value="activeBackend" %} -
-
{% verbatim %}{% form_checkbox checked=True custom_field=True id="backendActive" label="Is this backend active?" name="backend" value="activeBackend" %}{% endverbatim %}
-
- -

Fieldset

-
    -
  • class: [string] - add HTML classes to the component
  • -
  • children: [html] - display the children components
  • -
-
-
- {% #form_fieldset %} - This is a fieldset for wrapping form elements - {% /form_fieldset %} -
-
{% verbatim %}{% #form_fieldset %}
-  This is a fieldset for wrapping form elements
-{% /form_fieldset %}{% endverbatim %}
-
- -

Input

-
    -
  • autocapitalize
  • -
  • autocomplete
  • -
  • autocorrect
  • -
  • class: [string] - add HTML classes to the component
  • -
  • errors: [object] - object for Django to map over for individual errors
  • -
  • field - passed from Django - -
  • -
  • hint_text: [string] - add a subtitle as hint text for the form input
  • -
  • id: [string] - set the HTML id for the input element
  • -
  • input_class: [string] - add HTML classes to the input tag
  • -
  • inputmode
  • -
  • label: [string] - overwrite the label passed from Django
  • -
  • name: [string] - set the HTML name for the input element
  • -
  • placeholder
  • -
  • required
  • -
  • show_placeholder: [boolean] - if true, display the placeholder text
  • -
  • type
  • -
  • value: [string] - set the HTML value for the input element
  • -
-
-
- {% form_input type="email" label="Email address" required=True field=example_form_email hint_text="Must be an opensafely.org account" %} - {% form_input type="text" label="Phone number" inputmode="number" autocapitalize=False autocomplete=False autocorrect=False %} - {% form_input type="search" label="Search the site"%} -
-
{% verbatim %}{% form_input type="email" label="Email address" required=True %}
-{% form_input type="text" label="Phone number" inputmode="number" autocapitalize=False autocomplete=False autocorrect=False %}
-{% form_input type="search" label="Search the site"%}{% endverbatim %}
-
- -

Legend

-
    -
  • class: [string] - add HTML classes to the component
  • -
  • text: [string] - text to display for the legend
  • -
-
-
- {% #form_fieldset %} - {% form_legend text="This is a form legend" %} - {% /form_fieldset %} -
-
{% verbatim %}{% #form_fieldset %}
-  {% form_legend text="This is a form legend" %}
-{% /form_fieldset %}{% endverbatim %}
-
- -

Radio

-
    -
  • checked: [boolean] - if true, radio is checked
  • -
  • id: [string] - set the HTML id for the input element
  • -
  • input_class: [string] - add HTML classes to the input tag
  • -
  • label_class: [string] - add HTML classes to the label tag
  • -
  • label: [string] - set the label displayed to the user
  • -
  • name: [string] - set the HTML name for the input element
  • -
  • span_class: [string] - add HTML classes to the span tag wrapping the label
  • -
-
-
- {% #form_fieldset %} - {% form_legend text="Where do you find the best pizza in New York?" %} - {% form_radio checked=True id="joe" label="Joe's Pizza" name="pizza" %} - {% form_radio id="john" label="John's of Bleecker Street" name="pizza" %} - {% form_radio id="paulie" label="Paulie Gee's Slice Shop" name="pizza" %} - {% /form_fieldset %} -
-
{% verbatim %}{% #form_fieldset %}
-  {% form_legend text="Where do you find the best pizza in New York?" %}
-  {% form_radio checked=True id="joe" label="Joe's Pizza" name="pizza" %}
-  {% form_radio id="john" label="John's of Bleecker Street" name="pizza" %}
-  {% form_radio id="paulie" label="Paulie Gee's Slice Shop" name="pizza" %}
-{% /form_fieldset %}{% endverbatim %}
-
- -

Radio list

-

Pass Django radio fields in to a list of radios

- -

Select

-
    -
  • choices: [dict] - dict of [value, label] for the options
  • -
  • class: [string] - add HTML classes to the component
  • -
  • field - -
  • -
  • hint_text: [string] - add a subtitle as hint text for the select
  • -
  • id: [string] - set the HTML id for the select element
  • -
  • label: [string] - overwrite the label passed from Django
  • -
  • name: [string] - set the HTML name for the select element
  • -
  • required
  • -
  • selected: [string] - matches value of choice for preselected option
  • -
-
- {% form_select class="w-full max-w-lg mx-auto" label="Select a language" required=True field=example_form_select choices=example_form_select.choices selected=example_form_select.value %} -
{% verbatim %}{% form_select class="w-full max-w-lg mx-auto" label="Select a language" required=True field=example_form_select choices=example_form_select.choices selected=example_form_select.value %}{% endverbatim %}
-
- -

Textarea

-
    -
  • autocapitalize
  • -
  • autocomplete
  • -
  • autocorrect
  • -
  • class: [string] - add HTML classes to the component
  • -
  • errors: [object] - object for Django to map over for individual errors
  • -
  • field - -
  • -
  • hint_text: [string] - add a subtitle as hint text for the textarea
  • -
  • id: [string] - set the HTML id for the textarea element
  • -
  • inputmode
  • -
  • label: [string] - overwrite the label passed from Django
  • -
  • maxlength
  • -
  • name: [string] - set the HTML name for the textarea element
  • -
  • placeholder
  • -
  • required
  • -
  • rows
  • -
  • show_placeholder: [boolean] - if true, display the placeholder text
  • -
  • value: [string] - set the HTML value for the input element
  • -
-
- {% form_textarea class="max-w-lg w-full mx-auto" field=example_form_textarea label="Enter a short description of the project" resize=True rows=8 %} -
{% verbatim %}{% form_textarea class="max-w-lg w-full mx-auto" field=example_form_textarea label="Enter a short description of the project" resize=True rows=8 %}{% endverbatim %}
-
-
- -
-

Grids

-
    -
  • class: [string] - add HTML classes to element
  • -
  • children: [html] - display the children components
  • -
  • gap: [number] - set the Tailwind gap distance for the columns
  • -
-
-
- {% #grid_three_cols gap=4 %} - {% #grid_col_span_1 %} -

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

- {% /grid_col_span_1 %} - {% #grid_col_lg_span_2 %} -

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

- {% /grid_col_lg_span_2 %} - {% /grid_three_cols %} -
-
{% verbatim %}{% #grid_three_cols gap=4 %}
-  {% #grid_col_span_1 %}{% endverbatim %}
-    {% filter force_escape %}

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

{% endfilter %} - {% verbatim %}{% /grid_col_span_1 %} - {% #grid_col_lg_span_2 %}{% endverbatim %} - {% filter force_escape %}

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

{% endfilter %} - {% verbatim %}{% /grid_col_lg_span_2 %} -{% /grid_three_cols %}{% endverbatim %}
-
-
- -
-

Header

-
-
- {% header nav=nav %} -
-
{% verbatim %}{% header %}{% endverbatim %}
-
-
- - - -
-

List group

-

List group container

-
    -
  • children: [html] - display the children components
  • -
  • data_filter_list: [boolean] - add data-filter-list attribute
  • -
  • no_border: [boolean] - remove the top border from the group
  • -
  • small: [boolean] - if true, reduces padding and font size
  • -
-
-
{% verbatim %}{% #list_group %}content in here{% /list_group %}{% endverbatim %}
-
-

List group empty

-
    -
  • data-filter-empty-state: [string] - set data-filter-empty-state HTML attribute
  • -
  • description: [string] - description text to display
  • -
  • hidden: [string] - set hidden HTML attribute
  • -
  • icon: [boolean] - if true, shows the empty folder icon
  • -
  • title: [string] - title text to display
  • -
-
- {% #card %} - {% #list_group %} - {% list_group_empty icon=True title="This group is empty" description="And here is some text explaining why" %} - {% /list_group %} - {% /card %} -
{% verbatim %}{% #card %}
-  {% #list_group %}
-    {% list_group_empty icon=True title="This group is empty" description="And here is some text explaining why" %}
-  {% /list_group %}
-{% /card %}{% endverbatim %}
-
-

List group item

-
    -
  • aria-checked: [string] - set aria-checked HTML attribute
  • -
  • aria-labelled-by: [string] - set aria-labelled-by HTML attribute
  • -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
  • disabled: [boolean] - if true, element adds classes to appear disabled
  • -
  • href: [string] - href for the anchor tag
  • -
  • role: [string] - set role HTML attribute
  • -
-
- {% #card %} - {% #list_group %} - {% #list_group_item href="https://www.example.com/" %}Example dot com{% /list_group_item %} - {% /list_group %} - {% /card %} -
{% verbatim %}{% #card %}
-  {% #list_group %}
-    {% #list_group_item href="https://www.example.com/" %}Example dot com{% /list_group_item %}
-  {% /list_group %}
-{% /card %}{% endverbatim %}
-
-

List group rich item

-
    -
  • children: [html] - display the children components
  • -
  • custom_status: [html] - display a custom status pill
  • -
  • no_truncate: [boolean] - if true, name truncation is disabled
  • -
  • status_text: [string] - matches the pill title and colour to statuses
  • -
  • title_class: [string] - add HTML class to only the title
  • -
  • title: [string] - item title
  • -
  • type: [string] - hidden field for screen readers listing the group type
  • -
  • url: [string] - href for the item
  • -
-
- {% #card %} - {% #list_group %} - {% #list_group_rich_item status_text="running" title="An example rich item" type="Example card" url="#" %} - Which has a description - {% /list_group_rich_item %} - {% /list_group %} - {% /card %} -
{% verbatim %}{% #card %}
-  {% #list_group %}
-    {% #list_group_rich_item status_text="running" title="An example rich item" type="Example card" url="#" %}
-      Which has a description
-    {% /list_group_rich_item %}
-  {% /list_group %}
-{% /card %}{% endverbatim %}
-
-
- -
-

Modal

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
  • id: [string] - HTML element ID
  • -
-
-
- {% #button variant="primary-outline" type="button" data-modal="addGitHubOrg" %} - Add a GitHub Organisation - {% /button %} - {% #modal id="addGitHubOrg" %} - {% #card container=True title="Add a GitHub Organisation" %} -
- {% #button variant="success" type="submit" %}Add org{% /button %} - {% #button variant="danger" type="cancel" %}Cancel{% /button %} -
- {% /card %} - {% /modal %} -
-
{% verbatim %}{% #button variant="primary-outline" type="button" data-modal="addGitHubOrg" %}
-  Add a GitHub Organisation
-{% /button %}
-{% #modal id="addGitHubOrg" %}
-  {% #card container=True title="Add a GitHub Organisation" %}{% endverbatim %}
-    {% filter force_escape %}
{% endfilter %} - {% verbatim %}{% #button variant="success" type="submit" %}Add org{% /button %} - {% #button variant="danger" type="cancel" %}Cancel{% /button %}{% endverbatim %} - {% filter force_escape %}
{% endfilter %} - {% verbatim %}{% /card %} -{% /modal %}{% endverbatim %}
-
-
- -
-

Multiselect

-
-
- {% #card title="Filter by company" container=True class="w-full max-w-prose" %} - {% #multiselect custom_field=True name="company" placeholder="Select a company" %} - {% multiselect_option name="Kramerica Industries" value="kramerica" is_active=True %} - {% multiselect_option name="Vandelay Industries" value="vandelay" %} - {% /multiselect %} - {% /card %} -
-
{% verbatim %}{% #card title="Filter by company" container=True class="w-full max-w-prose" %}
-  {% #multiselect custom_field=True name="company" placeholder="Select a company" %}
-    {% multiselect_option name="Kramerica Industries" value="kramerica" is_active=True %}
-    {% multiselect_option name="Vandelay Industries" value="vandelay" %}
-  {% /multiselect %}
-{% /card %}{% endverbatim %}
-
- -

Multiselect container

-
    -
  • children: [html] - display the children components
  • -
  • custom_field: [boolean] - set to true if field does not directly map to a Django Form field
  • -
  • data-max-items: [number] - set the total number of items that can be selected
  • -
  • id: [string] - HTML element ID
  • -
  • name: [string] - HTML element name
  • -
  • multiple: [boolean] - if true, multiple options can be selected (default to true)
  • -
  • placeholder
  • -
  • required
  • -
- -

Multiselect option

-
    -
  • is_active: [boolean] - if true, option is shown above the search bar
  • -
  • name: [string] - name show in the HTML option tag
  • -
  • value: [string] - value used for the HTML option tag
  • -
-
- -
-

Pills

-

Pill

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
  • sr_only: [string] - add explainer text for screen readers
  • -
  • text: [string] - text to display in the component
  • -
  • variant: [string] - select styling colours for the component
  • -
- -
-
- {% pill variant="danger" text="Danger" %} - {% pill variant="info" text="Info" %} - {% pill variant="primary" text="Primary" %} - {% pill variant="success" text="Success" %} - {% pill variant="warning" text="Warning" %} -
- -
{% verbatim %}{% pill variant="danger" text="Danger" %}
-{% pill variant="info" text="Info" %}
-{% pill variant="primary" text="Primary" %}
-{% pill variant="success" text="Success" %}
-{% pill variant="warning" text="Warning" %}{% endverbatim %}
-
- -

Application status pill

-
    -
  • class: [string] - add HTML classes to element
  • -
  • status: [string] - selects the correct variant for Job Server application status
  • -
-
-
- {% pill_application_status status="approved_fully" %} - {% pill_application_status status="ongoing" %} -
- -
{% verbatim %}{% pill_application_status status="approved_fully" %}
-{% pill_application_status status="ongoing" %}{% endverbatim %}
-
- -

Project status pill

-
    -
  • status: [string] - selects the correct variant for Job Server project status
  • -
  • text: [string] - display text in the pill
  • -
-
-
- {% pill_project_status status="completed-and-awaiting" text="Completed and awaiting publication" %} - {% pill_project_status status="ongoing-and-linked" text="Ongoing" %} -
- -
{% verbatim %}{% pill_project_status status="approved_fully" %}
-{% pill_project_status status="ongoing" %}{% endverbatim %}
-
-
- - - -
-

Tables

-
-
- {% #card class="w-full" no_container=True %} -
- {% #table id="customTable" %} - {% #table_head class="bg-slate-200" %} - {% #table_row %} - {% #table_header %} -
- Project - - {% icon_arrows_up_down_mini class="h4 w-4 datatable-icon--no-sort" %} - {% icon_arrow_up_mini class="h4 w-4 datatable-icon--ascending" %} - {% icon_arrow_down_mini class="h4 w-4 datatable-icon--descending" %} - -
- {% /table_header %} - {% #table_header %} -
- Job requests run - - {% icon_arrows_up_down_mini class="h4 w-4 datatable-icon--no-sort" %} - {% icon_arrow_up_mini class="h4 w-4 datatable-icon--ascending" %} - {% icon_arrow_down_mini class="h4 w-4 datatable-icon--descending" %} - -
- {% /table_header %} - {% #table_header data-type="date" data-format="DD MMM YYYY" %} -
- Job first run - - {% icon_arrows_up_down_mini class="h4 w-4 datatable-icon--no-sort" %} - {% icon_arrow_up_mini class="h4 w-4 datatable-icon--ascending" %} - {% icon_arrow_down_mini class="h4 w-4 datatable-icon--descending" %} - -
- {% /table_header %} - {% /table_row %} - {% /table_head %} - - {% #table_body %} - {% #table_row class="even:bg-slate-50" %} - {% #table_cell %} - 101 - Test project for a table - {% /table_cell %} - {% #table_cell %} - 786 - {% /table_cell %} - {% #table_cell %} - 31 October 2022 - {% /table_cell %} - {% /table_row %} - {% /table_body %} - {% /table %} - {% table_pagination has_previous=True has_next=True next_url="#" prev_url="#" %} -
- {% /card %} -
-
{% verbatim %}{% #card class="w-full" no_container=True %}{% endverbatim %}
-  {% filter force_escape %}
{% endfilter %} - {% verbatim %}{% #table id="customTable" %} - {% #table_head class="bg-slate-200" %} - {% #table_row %} - {% #table_header %}{% endverbatim %} - {% filter force_escape %}
{% endfilter %} - Project - {% filter force_escape %}{% endfilter %} - {% verbatim %}{% icon_arrows_up_down_mini class="h4 w-4 datatable-icon--no-sort" %} - {% icon_arrow_up_mini class="h4 w-4 datatable-icon--ascending" %} - {% icon_arrow_down_mini class="h4 w-4 datatable-icon--descending" %}{% endverbatim %} - {% filter force_escape %}{% endfilter %} - {% filter force_escape %}
{% endfilter %} - {% verbatim %}{% /table_header %}{% endverbatim %} - {% verbatim %}{% #table_header %}{% endverbatim %} - {% filter force_escape %}
- Job requests run - {% endfilter %} - {% verbatim %}{% icon_arrows_up_down_mini class="h4 w-4 datatable-icon--no-sort" %} - {% icon_arrow_up_mini class="h4 w-4 datatable-icon--ascending" %} - {% icon_arrow_down_mini class="h4 w-4 datatable-icon--descending" %}{% endverbatim %} - {% filter force_escape %} -
{% endfilter %} - {% verbatim %}{% /table_header %}{% endverbatim %} - {% verbatim %}{% #table_header data-type="date" data-format="DD MMM YYYY" %}{% endverbatim %} - {% filter force_escape %}
- Job first run - {% endfilter %} - {% verbatim %}{% icon_arrows_up_down_mini class="h4 w-4 datatable-icon--no-sort" %} - {% icon_arrow_up_mini class="h4 w-4 datatable-icon--ascending" %} - {% icon_arrow_down_mini class="h4 w-4 datatable-icon--descending" %}{% endverbatim %} - {% filter force_escape %} -
{% endfilter %} - {% verbatim %}{% /table_header %} - {% /table_row %} - {% /table_head %} - - {% #table_body %} - {% #table_row class="even:bg-slate-50" %} - {% #table_cell %} - 101 - Test project for a table - {% /table_cell %} - {% #table_cell %} - 786 - {% /table_cell %} - {% #table_cell %} - 31 October 2022 - {% /table_cell %} - {% /table_row %} - {% /table_body %} - {% /table %} - {% table_pagination has_previous=True has_next=True next_url="#" prev_url="#" %}{% endverbatim %} - {% filter force_escape %}
{% endfilter %} -{% verbatim %}{% /card %}{% endverbatim %}
-
- -

Table

-
    -
  • children: [html] - display the children components
  • -
  • id: [string] - add HTML ID to element
  • -
- -

Table Body

-
    -
  • children: [html] - display the children components
  • -
- -

Table Cell

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
  • nowrap: [boolean] - if true, cell will not wrap
  • -
  • title: [string] - add HTML title to element
  • -
- -

Table Head

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
- -

Table Header

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
  • nowrap: [boolean] - if true, cell will not wrap
  • -
  • - data-type: - [string] - used with simple-datatables to format and sort date strings -
  • -
  • - data-format: - [string] - used with simple-datatables to format and sort date strings -
  • -
  • scope
  • -
- -

Table Pagination

-
    -
  • paginator: [django] - passes the pagination details from Django to the function
  • -
- -

Table Row

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
-
- -
-

Time

-
    -
  • children: [html] - display the children components
  • -
  • class: [string] - add HTML classes to element
  • -
  • datetime: [datetime] - display a valid datetime for HTML time element
  • -
  • tooltip: [string] - if added, tooltip will show content
  • -
-
-
- {% #time class="hover:cursor-pointer" datetime="2023-10-31T13:00:00+0000" tooltip="31 October 2023 at 13:00" %} - 1 hour ago - {% /time %} -
-
{% verbatim %}code here{% endverbatim %}
-
-
- -
-

Timeline

-

Timeline item

-
    -
  • background: [string] - select the background color for the icon
  • {# TODO: change this to "variant" #} -
  • children: [html] - display the children components
  • -
  • content: [string] - text to display if not passing a time
  • -
  • last: [boolean] - if true, removes line running between icons
  • -
  • no_padding_bottom: [boolean] - if true, remove bottom padding
  • -
  • time: [date] - provide a Django date to display natural time and tooltip for exact time stamp
  • -
  • title: [string] - text to display above time or content
  • -
-
-
- {% #card title="Timeline" class="w-full" container=True %} -
    - {% #timeline_item background="blue" title="Created by the backend:" time=example_date %} - {% icon_pencil_outline class="h-5 w-5" %} - {% /timeline_item %} - {% #timeline_item background="green" title="Accepted by the backend:" time=example_date last=True no_padding_bottom=True %} - {% icon_check_outline class="h-5 w-5" %} - {% /timeline_item %} -
- {% /card %} -
-
{% verbatim %}{% #card title="Timeline" class="w-full" container=True %}{% endverbatim %}
-  {% filter force_escape %}
    {% endfilter %} - {% verbatim %}{% #timeline_item background="blue" title="Created by the backend:" time=example_date last=True no_padding_bottom=True %} - {% icon_pencil_outline class="h-5 w-5" %} - {% /timeline_item %}{% endverbatim %} - {% filter force_escape %}
{% endfilter %} -{% verbatim %}{% /card %}{% endverbatim %}
-
-
- -
-

Tooltip

-
    -
  • class: [string] - add HTML classes to the component
  • -
  • content: [string] - text for the tooltip to display when hovered
  • -
  • tooltip_top: [boolean] - if true, show the tooltip on top
  • -
-
-
-
- Hover here to see a tooltip - {% tooltip content="I am the tooltip!" %} -
-
-
{% filter force_escape %}
- Hover here to see a tooltip - {% verbatim %}{% tooltip content="I am the tooltip!" %}{% endverbatim %} -
{% endfilter %}
-
-
- -
-

Icons

-
    -
  • class: [string] - add HTML classes to the icon
  • -
-
-
- {% icon_academic_cap_outline class="h-6 w-6 text-black" %} - {% icon_beaker_outline class="h-6 w-6 text-black" %} - {% icon_branches_outline class="h-6 w-6 text-black" %} - {% icon_building_library_outline class="h-6 w-6 text-black" %} - {% icon_calendar_outline class="h-6 w-6 text-black" %} - {% icon_check_outline class="h-6 w-6 text-black" %} - {% icon_chevron_right_outline class="h-6 w-6 text-black" %} - {% icon_clipboard_document_check_outline class="h-6 w-6 text-black" %} - {% icon_clock_outline class="h-6 w-6 text-black" %} - {% icon_code_bracket_outline class="h-6 w-6 text-black" %} - {% icon_ellipsis_horizontal_outline class="h-6 w-6 text-black" %} - {% icon_exclamation_triangle_outline class="h-6 w-6 stroke-black" %} - {% icon_folder_open_outline class="h-6 w-6 text-black" %} - {% icon_folder_outline class="h-6 w-6 text-black" %} - {% icon_github_outline class="h-6 w-6 text-black" %} - {% icon_home_outline class="h-6 w-6 text-black" %} - {% icon_lifebuoy_outline class="h-6 w-6 text-black" %} - {% icon_menu_outline class="h-6 w-6 text-black" %} - {% icon_pencil_outline class="h-6 w-6 text-black" %} - {% icon_play_outline class="h-6 w-6 text-black" %} - {% icon_queue_list_outline class="h-6 w-6 text-black" %} - {% icon_rectangle_stack_outline class="h-6 w-6 text-black" %} - {% icon_status_online_outline class="h-6 w-6 text-black" %} - {% icon_user_group_outline class="h-6 w-6 text-black" %} - {% icon_user_outline class="h-6 w-6 text-black" %} - {% icon_x_outline class="h-6 w-6 text-black" %} - - {% icon_check_circle_solid class="h-6 w-6 text-blue-800" %} - {% icon_clock_solid class="h-6 w-6 text-blue-800" %} - {% icon_exclamation_triangle_solid class="h-6 w-6 text-blue-800" %} - {% icon_information_circle_solid class="h-6 w-6 text-blue-800" %} - {% icon_lock_closed_solid class="h-6 w-6 text-blue-800" %} - {% icon_x_circle_solid class="h-6 w-6 text-blue-800" %} - - {% icon_arrow_down_mini class="h-6 w-6 text-red-800" %} - {% icon_arrow_up_mini class="h-6 w-6 text-red-800" %} - {% icon_arrows_up_down_mini class="h-6 w-6 text-red-800" %} - {% icon_chevron_down_mini class="h-6 w-6 text-red-800" %} - {% icon_chevron_up_mini class="h-6 w-6 text-red-800" %} - {% icon_exclamation_circle_mini class="h-6 w-6 text-red-800" %} - - {% icon_custom_spinner class="h-6 w-6 text-green-700 animate-spin stroke-current stroke-2" %} -
-
{% verbatim %}{% icon_academic_cap_outline class="h-6 w-6 text-black" %}
-{% icon_beaker_outline class="h-6 w-6 text-black" %}
-{% icon_branches_outline class="h-6 w-6 text-black" %}
-{% icon_building_library_outline class="h-6 w-6 text-black" %}
-{% icon_calendar_outline class="h-6 w-6 text-black" %}
-{% icon_check_outline class="h-6 w-6 text-black" %}
-{% icon_chevron_right_outline class="h-6 w-6 text-black" %}
-{% icon_clipboard_document_check_outline class="h-6 w-6 text-black" %}
-{% icon_clock_outline class="h-6 w-6 text-black" %}
-{% icon_code_bracket_outline class="h-6 w-6 text-black" %}
-{% icon_ellipsis_horizontal_outline class="h-6 w-6 text-black" %}
-{% icon_exclamation_triangle_outline class="h-6 w-6 stroke-black" %}
-{% icon_folder_open_outline class="h-6 w-6 text-black" %}
-{% icon_folder_outline class="h-6 w-6 text-black" %}
-{% icon_github_outline class="h-6 w-6 text-black" %}
-{% icon_home_outline class="h-6 w-6 text-black" %}
-{% icon_lifebuoy_outline class="h-6 w-6 text-black" %}
-{% icon_menu_outline class="h-6 w-6 text-black" %}
-{% icon_pencil_outline class="h-6 w-6 text-black" %}
-{% icon_play_outline class="h-6 w-6 text-black" %}
-{% icon_queue_list_outline class="h-6 w-6 text-black" %}
-{% icon_rectangle_stack_outline class="h-6 w-6 text-black" %}
-{% icon_status_online_outline class="h-6 w-6 text-black" %}
-{% icon_user_group_outline class="h-6 w-6 text-black" %}
-{% icon_user_outline class="h-6 w-6 text-black" %}
-{% icon_x_outline class="h-6 w-6 text-black" %}
-
-{% icon_check_circle_solid class="h-6 w-6 text-blue-800" %}
-{% icon_clock_solid class="h-6 w-6 text-blue-800" %}
-{% icon_exclamation_triangle_solid class="h-6 w-6 text-blue-800" %}
-{% icon_information_circle_solid class="h-6 w-6 text-blue-800" %}
-{% icon_lock_closed_solid class="h-6 w-6 text-blue-800" %}
-{% icon_x_circle_solid class="h-6 w-6 text-blue-800" %}
-
-{% icon_arrow_down_mini class="h-6 w-6 text-red-800" %}
-{% icon_arrow_up_mini class="h-6 w-6 text-red-800" %}
-{% icon_arrows_up_down_mini class="h-6 w-6 text-red-800" %}
-{% icon_chevron_down_mini class="h-6 w-6 text-red-800" %}
-{% icon_chevron_up_mini class="h-6 w-6 text-red-800" %}
-{% icon_exclamation_circle_mini class="h-6 w-6 text-red-800" %}
-
-{% icon_custom_spinner class="h-6 w-6 text-green-700 animate-spin stroke-current stroke-2" %}{% endverbatim %}
-
-
- - {# Template #} - {#
#} - {#

Title

#} - {#
    #} - {#
  • #} - {#
#} - {#
#} - {#
#} - {# {% example_here %} #} - {#
#} - {#
{% verbatim %}code here{% endverbatim %}
#} - {#
#} - {#
#} -
-{% endblock %} - -{% block extra_js %} - {% vite_asset "assets/src/scripts/components.js" %} - {% vite_asset "templates/_components/modal/modal.js" %} - {% vite_asset "templates/_components/multiselect/multiselect.js" %} -{% endblock %} diff --git a/assets/views.py b/assets/views.py index 7df4445e..9b0e7d90 100644 --- a/assets/views.py +++ b/assets/views.py @@ -1,51 +1,54 @@ from datetime import UTC, datetime +from django import forms from django.template.response import TemplateResponse -def components(request): # pragma: no cover - example_date = datetime.fromtimestamp(1667317153, tz=UTC) - example_form_email = { - "auto_id": "id_email", - "errors": {"This email is registered to a different account"}, - "html_name": "email", - "id_for_label": "id_email", - "label": "Email address", - "value": "you@example.com", - } - - example_form_select = { - "auto_id": "id_language_select", - "choices": [ +class ExampleForm(forms.Form): + + example_select = forms.ChoiceField( + choices=[ ["", "Please select a language"], ["english", "English"], ["french", "French"], ["german", "German"], ["spanish", "Spanish"], ], - "errors": {}, - "html_name": "language-select", - "id_for_label": "id_language_select", - "label": "Language select", - "value": "french", - } - - example_form_textarea = { - "auto_id": "id_project_description", - "errors": {}, - "html_name": "project-description", - "id_for_label": "id_project_description", - "label": "Notification email address", - "value": "", - } + label="Language select", + initial="french", + ) + + example_email = forms.EmailField() + example_textarea = forms.Textarea() + + example_radios = forms.ChoiceField( + choices=[ + ["english", "English"], + ["french", "French"], + ["german", "German"], + ["spanish", "Spanish"], + ], + label="Language select", + initial="french", + widget=forms.RadioSelect, + ) + + def clean_example_email(self): + self.add_error( + "example_email", "This email is registered to a different account" + ) + + +def components(request): + example_date = datetime.fromtimestamp(1667317153, tz=UTC) + form = ExampleForm({"example_select": "french", "example_email": "you@example.com"}) + form.is_valid() return TemplateResponse( request, - "components.html", + "_components/index.html", context={ "example_date": example_date, - "example_form_email": example_form_email, - "example_form_select": example_form_select, - "example_form_textarea": example_form_textarea, + "example_form": form, }, ) From 734c687b8d4124bbbfe7686f1b0089a7333e62b1 Mon Sep 17 00:00:00 2001 From: Becky Smith Date: Thu, 29 Feb 2024 17:07:00 +0000 Subject: [PATCH 2/4] Add docs on updating upstream assets --- DEVELOPERS.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 1548e6a5..c7ab5521 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -80,6 +80,24 @@ activating a virtual environment and running something like: set -a; source .env; set +a ``` +## Assets + +The asset build tooling and component library is currently extracted +from job-server for use in airlock. + +We also add the components browser view at the /ui-components. This acts +as a test to see everything works, and a helpful builtin reference for +using the slippers components. + +To update the upstream assets, first remove any existing built assets: +```bash +just assets/clean +``` +And then update with the latest upstream assets: +```bash +just assets/update +``` + ## Testing ### Test categories From 635e7d3d9342de1125d456095c0ed9570ca33f62 Mon Sep 17 00:00:00 2001 From: Becky Smith Date: Thu, 29 Feb 2024 18:24:23 +0000 Subject: [PATCH 3/4] Make ui-components login exempt, and add a basic test --- assets/base_views.py | 54 +++++++++++++++++++++++++++++++++++++++ assets/justfile | 2 +- assets/test_components.py | 3 +++ assets/tests.py | 1 - assets/views.py | 54 +++------------------------------------ pyproject.toml | 7 +++++ 6 files changed, 69 insertions(+), 52 deletions(-) create mode 100644 assets/base_views.py create mode 100644 assets/test_components.py delete mode 100644 assets/tests.py diff --git a/assets/base_views.py b/assets/base_views.py new file mode 100644 index 00000000..9b0e7d90 --- /dev/null +++ b/assets/base_views.py @@ -0,0 +1,54 @@ +from datetime import UTC, datetime + +from django import forms +from django.template.response import TemplateResponse + + +class ExampleForm(forms.Form): + + example_select = forms.ChoiceField( + choices=[ + ["", "Please select a language"], + ["english", "English"], + ["french", "French"], + ["german", "German"], + ["spanish", "Spanish"], + ], + label="Language select", + initial="french", + ) + + example_email = forms.EmailField() + + example_textarea = forms.Textarea() + + example_radios = forms.ChoiceField( + choices=[ + ["english", "English"], + ["french", "French"], + ["german", "German"], + ["spanish", "Spanish"], + ], + label="Language select", + initial="french", + widget=forms.RadioSelect, + ) + + def clean_example_email(self): + self.add_error( + "example_email", "This email is registered to a different account" + ) + + +def components(request): + example_date = datetime.fromtimestamp(1667317153, tz=UTC) + form = ExampleForm({"example_select": "french", "example_email": "you@example.com"}) + form.is_valid() + return TemplateResponse( + request, + "_components/index.html", + context={ + "example_date": example_date, + "example_form": form, + }, + ) diff --git a/assets/justfile b/assets/justfile index 9bbfd48d..a774afa7 100644 --- a/assets/justfile +++ b/assets/justfile @@ -19,7 +19,7 @@ update: just -d $tmpdir --justfile $tmpdir/justfile assets-install just -d $tmpdir --justfile $tmpdir/justfile assets-build cp -r $tmpdir/templates/_components/* ./templates/_components/ - cp $tmpdir/jobserver/views/components.py ./views.py + cp $tmpdir/jobserver/views/components.py ./base_views.py mkdir -p dist cp -r $tmpdir/assets/dist/* ./dist/ cp -r $tmpdir/assets/dist/.vite ./dist/ diff --git a/assets/test_components.py b/assets/test_components.py new file mode 100644 index 00000000..c82b5e0e --- /dev/null +++ b/assets/test_components.py @@ -0,0 +1,3 @@ +def test_components_browser(client): + response = client.get("/ui-components/") + assert response.status_code == 200 diff --git a/assets/tests.py b/assets/tests.py deleted file mode 100644 index a39b155a..00000000 --- a/assets/tests.py +++ /dev/null @@ -1 +0,0 @@ -# Create your tests here. diff --git a/assets/views.py b/assets/views.py index 9b0e7d90..8fe78ac4 100644 --- a/assets/views.py +++ b/assets/views.py @@ -1,54 +1,8 @@ -from datetime import UTC, datetime +from airlock.views.helpers import login_exempt -from django import forms -from django.template.response import TemplateResponse - - -class ExampleForm(forms.Form): - - example_select = forms.ChoiceField( - choices=[ - ["", "Please select a language"], - ["english", "English"], - ["french", "French"], - ["german", "German"], - ["spanish", "Spanish"], - ], - label="Language select", - initial="french", - ) - - example_email = forms.EmailField() - - example_textarea = forms.Textarea() - - example_radios = forms.ChoiceField( - choices=[ - ["english", "English"], - ["french", "French"], - ["german", "German"], - ["spanish", "Spanish"], - ], - label="Language select", - initial="french", - widget=forms.RadioSelect, - ) - - def clean_example_email(self): - self.add_error( - "example_email", "This email is registered to a different account" - ) +from .base_views import components as upstream_components +@login_exempt def components(request): - example_date = datetime.fromtimestamp(1667317153, tz=UTC) - form = ExampleForm({"example_select": "french", "example_email": "you@example.com"}) - form.is_valid() - return TemplateResponse( - request, - "_components/index.html", - context={ - "example_date": example_date, - "example_form": form, - }, - ) + return upstream_components(request) diff --git a/pyproject.toml b/pyproject.toml index 9c8c7b98..6d48f296 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,10 @@ +[tool.ruff] +# Exclude upstream assets files from jobserver +exclude = [ + "assets/templates/*", + "assets/base_views.py" +] + [tool.ruff.lint] # See: https://docs.astral.sh/ruff/rules/ extend-select = [ From bb8e3f6e5fbeccd30c04113a62c78aed6d36a99f Mon Sep 17 00:00:00 2001 From: Becky Smith Date: Fri, 1 Mar 2024 10:10:40 +0000 Subject: [PATCH 4/4] Update upstream assets from job-server --- assets/dist/.vite/manifest.json | 334 +++++++++--------- assets/dist/.written | 0 ...QjN7DL.js => _commonjsHelpers-BosuxZz1.js} | 0 ...e-0_KFxqhf.css => _datatable-DT8oXGqF.css} | 0 ...ble-4Wejxm88.js => _datatable-Dl3Q3-Er.js} | 4 +- ...s => analysis-request-detail-DSIcJiFG.css} | 0 ...js => analysis-request-detail-kybzoXCh.js} | 4 +- ...D-Io_q.js => application-form-DMDh4ih4.js} | 0 assets/dist/assets/base-aLGCbdTr.css | 1 - assets/dist/assets/base-kC8UvNM3.css | 1 + .../{base-bp2lYBy9.js => base-uVX9yxTi.js} | 4 +- ...nts-Kv5wAdKo.js => components-CfABJOpm.js} | 2 +- ...s-46WfX2Md.css => components-DjpZ9fYx.css} | 0 .../{core-83wAAQS5.js => core-B2AmeFJW.js} | 2 +- assets/dist/assets/core-ChbsETua.js | 1 + assets/dist/assets/core-qr9noKQr.js | 1 - ...ithub-hpNP9OIE.css => github-CGk0_04g.css} | 0 ...as-2SmrMddJ.js => html2canvas-C7qp1yOm.js} | 2 +- ...l2pdf-SF21G6Sk.js => html2pdf-CISx9sC5.js} | 8 +- assets/dist/assets/index-F5ndk3lt.js | 58 +++ assets/dist/assets/index-xG0evL3U.js | 58 --- assets/dist/assets/index.es-41cymvk1.js | 18 - assets/dist/assets/index.es-DMTorwo1.js | 18 + assets/dist/assets/interactive-DCALKLPt.js | 30 ++ assets/dist/assets/interactive-_geFUJpO.js | 75 ---- assets/dist/assets/interactive-kf6mRxZ3.js | 75 ---- ...v3NS.js => job_request_create-CtTKtINd.js} | 0 .../{json-PR43yn9U.js => json-CFG4bYpx.js} | 0 .../{modal-Y47J8xgi.js => modal-CDv7gp0g.js} | 0 ...{module-K4QQYKOX.js => module-Ddk_Oc2r.js} | 0 ...ct-_L73NZTL.js => multiselect-DBqAoQKK.js} | 0 ...-ExWJzHqD.css => multiselect-TFYnMeoO.css} | 0 assets/dist/assets/outputs-viewer-01mbb_XM.js | 258 -------------- assets/dist/assets/outputs-viewer-C8kQNS9Y.js | 262 ++++++++++++++ assets/dist/assets/outputs-viewer-D3u6S7H_.js | 258 -------------- ...H-c3VWY_.js => preload-helper-DEPslLRF.js} | 0 ...blic-sans-latin-400-normal-D4F9yfFi.woff2} | Bin ...ublic-sans-latin-400-normal-D4vgG6SW.woff} | Bin ...blic-sans-latin-500-normal-ChZcBEnJ.woff2} | Bin ...ublic-sans-latin-500-normal-DCQow-rA.woff} | Bin ...ublic-sans-latin-600-normal-BX0BwxVl.woff} | Bin ...blic-sans-latin-600-normal-Ck6TyfRI.woff2} | Bin ...blic-sans-latin-700-normal-CGjRhW-d.woff2} | Bin ...ublic-sans-latin-700-normal-DFbs-ESy.woff} | Bin ...c-sans-latin-ext-400-normal-BwKz5AeH.woff} | Bin ...-sans-latin-ext-400-normal-L5ZQyZX_.woff2} | Bin ...c-sans-latin-ext-500-normal-DC3-YAa0.woff} | Bin ...-sans-latin-ext-500-normal-DP9Whp7X.woff2} | Bin ...-sans-latin-ext-600-normal-BOqTAvMD.woff2} | Bin ...c-sans-latin-ext-600-normal-WBZG7A5n.woff} | Bin ...c-sans-latin-ext-700-normal-BPjagB3u.woff} | Bin ...-sans-latin-ext-700-normal-DQeElHWA.woff2} | Bin ...-sans-vietnamese-400-normal-BwEUXHEY.woff} | Bin ...sans-vietnamese-400-normal-fzCEYZwl.woff2} | Bin ...-sans-vietnamese-500-normal-BKNWXH7D.woff} | Bin ...sans-vietnamese-500-normal-sPpfk_yB.woff2} | Bin ...sans-vietnamese-600-normal-BoVp2IRl.woff2} | Bin ...-sans-vietnamese-600-normal-CCLjVCWZ.woff} | Bin ...sans-vietnamese-700-normal-Cjcf1M5d.woff2} | Bin ...-sans-vietnamese-700-normal-Czg5uTnZ.woff} | Bin ...y.es-zHtM-7sw.js => purify.es-BZcJlXyC.js} | 0 ...-veQoilvX.js => sign-off-repo-CPAwP2x5.js} | 0 ...ase-NqQk57Yi.js => staff-base-C0bgJ9vM.js} | 4 +- ...e-BJ8QSkn7.css => staff-base-EnxBKSfv.css} | 0 ...8vvE0g.js => workspace_create-CcyGGZDT.js} | 0 .../_components/form/radio_list.html | 42 ++- assets/templates/_components/index.html | 49 ++- assets/templates/_components/log-item.html | 13 + assets/templates/_components/time.html | 2 +- 69 files changed, 647 insertions(+), 937 deletions(-) delete mode 100644 assets/dist/.written rename assets/dist/assets/{_commonjsHelpers-4gQjN7DL.js => _commonjsHelpers-BosuxZz1.js} (100%) rename assets/dist/assets/{_datatable-0_KFxqhf.css => _datatable-DT8oXGqF.css} (100%) rename assets/dist/assets/{_datatable-4Wejxm88.js => _datatable-Dl3Q3-Er.js} (91%) rename assets/dist/assets/{analysis-request-detail-0iHCYhRs.css => analysis-request-detail-DSIcJiFG.css} (100%) rename assets/dist/assets/{analysis-request-detail-EwOPvV8O.js => analysis-request-detail-kybzoXCh.js} (89%) rename assets/dist/assets/{application-form-hrD-Io_q.js => application-form-DMDh4ih4.js} (100%) delete mode 100644 assets/dist/assets/base-aLGCbdTr.css create mode 100644 assets/dist/assets/base-kC8UvNM3.css rename assets/dist/assets/{base-bp2lYBy9.js => base-uVX9yxTi.js} (84%) rename assets/dist/assets/{components-Kv5wAdKo.js => components-CfABJOpm.js} (98%) rename assets/dist/assets/{components-46WfX2Md.css => components-DjpZ9fYx.css} (100%) rename assets/dist/assets/{core-83wAAQS5.js => core-B2AmeFJW.js} (99%) create mode 100644 assets/dist/assets/core-ChbsETua.js delete mode 100644 assets/dist/assets/core-qr9noKQr.js rename assets/dist/assets/{github-hpNP9OIE.css => github-CGk0_04g.css} (100%) rename assets/dist/assets/{html2canvas-2SmrMddJ.js => html2canvas-C7qp1yOm.js} (74%) rename assets/dist/assets/{html2pdf-SF21G6Sk.js => html2pdf-CISx9sC5.js} (99%) create mode 100644 assets/dist/assets/index-F5ndk3lt.js delete mode 100644 assets/dist/assets/index-xG0evL3U.js delete mode 100644 assets/dist/assets/index.es-41cymvk1.js create mode 100644 assets/dist/assets/index.es-DMTorwo1.js create mode 100644 assets/dist/assets/interactive-DCALKLPt.js delete mode 100644 assets/dist/assets/interactive-_geFUJpO.js delete mode 100644 assets/dist/assets/interactive-kf6mRxZ3.js rename assets/dist/assets/{job_request_create-r50Iv3NS.js => job_request_create-CtTKtINd.js} (100%) rename assets/dist/assets/{json-PR43yn9U.js => json-CFG4bYpx.js} (100%) rename assets/dist/assets/{modal-Y47J8xgi.js => modal-CDv7gp0g.js} (100%) rename assets/dist/assets/{module-K4QQYKOX.js => module-Ddk_Oc2r.js} (100%) rename assets/dist/assets/{multiselect-_L73NZTL.js => multiselect-DBqAoQKK.js} (100%) rename assets/dist/assets/{multiselect-ExWJzHqD.css => multiselect-TFYnMeoO.css} (100%) delete mode 100644 assets/dist/assets/outputs-viewer-01mbb_XM.js create mode 100644 assets/dist/assets/outputs-viewer-C8kQNS9Y.js delete mode 100644 assets/dist/assets/outputs-viewer-D3u6S7H_.js rename assets/dist/assets/{preload-helper-H-c3VWY_.js => preload-helper-DEPslLRF.js} (100%) rename assets/dist/assets/{public-sans-latin-400-normal--BfcnxYs.woff2 => public-sans-latin-400-normal-D4F9yfFi.woff2} (100%) rename assets/dist/assets/{public-sans-latin-400-normal--L4Buklq.woff => public-sans-latin-400-normal-D4vgG6SW.woff} (100%) rename assets/dist/assets/{public-sans-latin-500-normal-oWXARJya.woff2 => public-sans-latin-500-normal-ChZcBEnJ.woff2} (100%) rename assets/dist/assets/{public-sans-latin-500-normal-wkKMPqwN.woff => public-sans-latin-500-normal-DCQow-rA.woff} (100%) rename assets/dist/assets/{public-sans-latin-600-normal-V9AcMVZe.woff => public-sans-latin-600-normal-BX0BwxVl.woff} (100%) rename assets/dist/assets/{public-sans-latin-600-normal-pOk8n0SH.woff2 => public-sans-latin-600-normal-Ck6TyfRI.woff2} (100%) rename assets/dist/assets/{public-sans-latin-700-normal-ho0YVvnU.woff2 => public-sans-latin-700-normal-CGjRhW-d.woff2} (100%) rename assets/dist/assets/{public-sans-latin-700-normal-xW7PhEsr.woff => public-sans-latin-700-normal-DFbs-ESy.woff} (100%) rename assets/dist/assets/{public-sans-latin-ext-400-normal-cCs-QHh8.woff => public-sans-latin-ext-400-normal-BwKz5AeH.woff} (100%) rename assets/dist/assets/{public-sans-latin-ext-400-normal-C-WUMmV_.woff2 => public-sans-latin-ext-400-normal-L5ZQyZX_.woff2} (100%) rename assets/dist/assets/{public-sans-latin-ext-500-normal-wt_mAGtF.woff => public-sans-latin-ext-500-normal-DC3-YAa0.woff} (100%) rename assets/dist/assets/{public-sans-latin-ext-500-normal-z_Voae12.woff2 => public-sans-latin-ext-500-normal-DP9Whp7X.woff2} (100%) rename assets/dist/assets/{public-sans-latin-ext-600-normal-TqkwLzA0.woff2 => public-sans-latin-ext-600-normal-BOqTAvMD.woff2} (100%) rename assets/dist/assets/{public-sans-latin-ext-600-normal-FgWRuwOZ.woff => public-sans-latin-ext-600-normal-WBZG7A5n.woff} (100%) rename assets/dist/assets/{public-sans-latin-ext-700-normal-T42oAd7l.woff => public-sans-latin-ext-700-normal-BPjagB3u.woff} (100%) rename assets/dist/assets/{public-sans-latin-ext-700-normal-0HhJR1gK.woff2 => public-sans-latin-ext-700-normal-DQeElHWA.woff2} (100%) rename assets/dist/assets/{public-sans-vietnamese-400-normal-cBFFxxGO.woff => public-sans-vietnamese-400-normal-BwEUXHEY.woff} (100%) rename assets/dist/assets/{public-sans-vietnamese-400-normal-H8whGGcJ.woff2 => public-sans-vietnamese-400-normal-fzCEYZwl.woff2} (100%) rename assets/dist/assets/{public-sans-vietnamese-500-normal-SjVlx-ww.woff => public-sans-vietnamese-500-normal-BKNWXH7D.woff} (100%) rename assets/dist/assets/{public-sans-vietnamese-500-normal-LD6X5P8g.woff2 => public-sans-vietnamese-500-normal-sPpfk_yB.woff2} (100%) rename assets/dist/assets/{public-sans-vietnamese-600-normal-aFadiEZb.woff2 => public-sans-vietnamese-600-normal-BoVp2IRl.woff2} (100%) rename assets/dist/assets/{public-sans-vietnamese-600-normal-gi41Qlme.woff => public-sans-vietnamese-600-normal-CCLjVCWZ.woff} (100%) rename assets/dist/assets/{public-sans-vietnamese-700-normal-o3H9TOXa.woff2 => public-sans-vietnamese-700-normal-Cjcf1M5d.woff2} (100%) rename assets/dist/assets/{public-sans-vietnamese-700-normal-s4Obk52V.woff => public-sans-vietnamese-700-normal-Czg5uTnZ.woff} (100%) rename assets/dist/assets/{purify.es-zHtM-7sw.js => purify.es-BZcJlXyC.js} (100%) rename assets/dist/assets/{sign-off-repo-veQoilvX.js => sign-off-repo-CPAwP2x5.js} (100%) rename assets/dist/assets/{staff-base-NqQk57Yi.js => staff-base-C0bgJ9vM.js} (87%) rename assets/dist/assets/{staff-base-BJ8QSkn7.css => staff-base-EnxBKSfv.css} (100%) rename assets/dist/assets/{workspace_create-7z8vvE0g.js => workspace_create-CcyGGZDT.js} (100%) create mode 100644 assets/templates/_components/log-item.html diff --git a/assets/dist/.vite/manifest.json b/assets/dist/.vite/manifest.json index 2a8cc2b7..f9986750 100644 --- a/assets/dist/.vite/manifest.json +++ b/assets/dist/.vite/manifest.json @@ -1,317 +1,317 @@ { - "__commonjsHelpers-4gQjN7DL.js": { - "file": "assets/_commonjsHelpers-4gQjN7DL.js" + "__commonjsHelpers-BosuxZz1.js": { + "file": "assets/_commonjsHelpers-BosuxZz1.js" }, - "__datatable-4Wejxm88.js": { + "__datatable-Dl3Q3-Er.js": { + "file": "assets/_datatable-Dl3Q3-Er.js", + "imports": [ + "_preload-helper-DEPslLRF.js" + ], "dynamicImports": [ "node_modules/simple-datatables/dist/module.js" - ], - "file": "assets/_datatable-4Wejxm88.js", + ] + }, + "_core-B2AmeFJW.js": { + "file": "assets/core-B2AmeFJW.js", "imports": [ - "_preload-helper-H-c3VWY_.js" + "__commonjsHelpers-BosuxZz1.js" ] }, - "_core-83wAAQS5.js": { - "file": "assets/core-83wAAQS5.js", + "_html2canvas-C7qp1yOm.js": { + "file": "assets/html2canvas-C7qp1yOm.js", + "isDynamicEntry": true, "imports": [ - "__commonjsHelpers-4gQjN7DL.js" + "__commonjsHelpers-BosuxZz1.js", + "_html2pdf-CISx9sC5.js" ] }, - "_html2canvas-2SmrMddJ.js": { - "file": "assets/html2canvas-2SmrMddJ.js", + "_html2pdf-CISx9sC5.js": { + "file": "assets/html2pdf-CISx9sC5.js", + "isDynamicEntry": true, "imports": [ - "__commonjsHelpers-4gQjN7DL.js", - "_html2pdf-SF21G6Sk.js" + "__commonjsHelpers-BosuxZz1.js", + "_preload-helper-DEPslLRF.js" ], - "isDynamicEntry": true - }, - "_html2pdf-SF21G6Sk.js": { "dynamicImports": [ - "_html2canvas-2SmrMddJ.js", + "_html2canvas-C7qp1yOm.js", "node_modules/dompurify/dist/purify.es.js", "node_modules/canvg/lib/index.es.js" - ], - "file": "assets/html2pdf-SF21G6Sk.js", - "imports": [ - "__commonjsHelpers-4gQjN7DL.js", - "_preload-helper-H-c3VWY_.js" - ], - "isDynamicEntry": true + ] }, - "_index-xG0evL3U.js": { - "file": "assets/index-xG0evL3U.js", + "_index-F5ndk3lt.js": { + "file": "assets/index-F5ndk3lt.js", "imports": [ - "__commonjsHelpers-4gQjN7DL.js" + "__commonjsHelpers-BosuxZz1.js" ] }, - "_preload-helper-H-c3VWY_.js": { - "file": "assets/preload-helper-H-c3VWY_.js" + "_preload-helper-DEPslLRF.js": { + "file": "assets/preload-helper-DEPslLRF.js" }, "assets/src/scripts/analysis-request-detail.js": { - "css": [ - "assets/analysis-request-detail-0iHCYhRs.css" + "file": "assets/analysis-request-detail-kybzoXCh.js", + "src": "assets/src/scripts/analysis-request-detail.js", + "isEntry": true, + "imports": [ + "_preload-helper-DEPslLRF.js" ], "dynamicImports": [ - "_html2pdf-SF21G6Sk.js" - ], - "file": "assets/analysis-request-detail-EwOPvV8O.js", - "imports": [ - "_preload-helper-H-c3VWY_.js" + "_html2pdf-CISx9sC5.js" ], - "isEntry": true, - "src": "assets/src/scripts/analysis-request-detail.js" + "css": [ + "assets/analysis-request-detail-DSIcJiFG.css" + ] }, "assets/src/scripts/application-form.js": { - "file": "assets/application-form-hrD-Io_q.js", - "isEntry": true, - "src": "assets/src/scripts/application-form.js" + "file": "assets/application-form-DMDh4ih4.js", + "src": "assets/src/scripts/application-form.js", + "isEntry": true }, "assets/src/scripts/base.js": { - "assets": [ - "assets/public-sans-vietnamese-400-normal-H8whGGcJ.woff2", - "assets/public-sans-vietnamese-400-normal-cBFFxxGO.woff", - "assets/public-sans-latin-ext-400-normal-C-WUMmV_.woff2", - "assets/public-sans-latin-ext-400-normal-cCs-QHh8.woff", - "assets/public-sans-latin-400-normal--BfcnxYs.woff2", - "assets/public-sans-latin-400-normal--L4Buklq.woff", - "assets/public-sans-vietnamese-500-normal-LD6X5P8g.woff2", - "assets/public-sans-vietnamese-500-normal-SjVlx-ww.woff", - "assets/public-sans-latin-ext-500-normal-z_Voae12.woff2", - "assets/public-sans-latin-ext-500-normal-wt_mAGtF.woff", - "assets/public-sans-latin-500-normal-oWXARJya.woff2", - "assets/public-sans-latin-500-normal-wkKMPqwN.woff", - "assets/public-sans-vietnamese-600-normal-aFadiEZb.woff2", - "assets/public-sans-vietnamese-600-normal-gi41Qlme.woff", - "assets/public-sans-latin-ext-600-normal-TqkwLzA0.woff2", - "assets/public-sans-latin-ext-600-normal-FgWRuwOZ.woff", - "assets/public-sans-latin-600-normal-pOk8n0SH.woff2", - "assets/public-sans-latin-600-normal-V9AcMVZe.woff", - "assets/public-sans-vietnamese-700-normal-o3H9TOXa.woff2", - "assets/public-sans-vietnamese-700-normal-s4Obk52V.woff", - "assets/public-sans-latin-ext-700-normal-0HhJR1gK.woff2", - "assets/public-sans-latin-ext-700-normal-T42oAd7l.woff", - "assets/public-sans-latin-700-normal-ho0YVvnU.woff2", - "assets/public-sans-latin-700-normal-xW7PhEsr.woff" - ], + "file": "assets/base-uVX9yxTi.js", + "src": "assets/src/scripts/base.js", + "isEntry": true, "css": [ - "assets/base-aLGCbdTr.css" + "assets/base-kC8UvNM3.css" ], - "file": "assets/base-bp2lYBy9.js", - "isEntry": true, - "src": "assets/src/scripts/base.js" + "assets": [ + "assets/public-sans-vietnamese-400-normal-fzCEYZwl.woff2", + "assets/public-sans-vietnamese-400-normal-BwEUXHEY.woff", + "assets/public-sans-latin-ext-400-normal-L5ZQyZX_.woff2", + "assets/public-sans-latin-ext-400-normal-BwKz5AeH.woff", + "assets/public-sans-latin-400-normal-D4F9yfFi.woff2", + "assets/public-sans-latin-400-normal-D4vgG6SW.woff", + "assets/public-sans-vietnamese-500-normal-sPpfk_yB.woff2", + "assets/public-sans-vietnamese-500-normal-BKNWXH7D.woff", + "assets/public-sans-latin-ext-500-normal-DP9Whp7X.woff2", + "assets/public-sans-latin-ext-500-normal-DC3-YAa0.woff", + "assets/public-sans-latin-500-normal-ChZcBEnJ.woff2", + "assets/public-sans-latin-500-normal-DCQow-rA.woff", + "assets/public-sans-vietnamese-600-normal-BoVp2IRl.woff2", + "assets/public-sans-vietnamese-600-normal-CCLjVCWZ.woff", + "assets/public-sans-latin-ext-600-normal-BOqTAvMD.woff2", + "assets/public-sans-latin-ext-600-normal-WBZG7A5n.woff", + "assets/public-sans-latin-600-normal-Ck6TyfRI.woff2", + "assets/public-sans-latin-600-normal-BX0BwxVl.woff", + "assets/public-sans-vietnamese-700-normal-Cjcf1M5d.woff2", + "assets/public-sans-vietnamese-700-normal-Czg5uTnZ.woff", + "assets/public-sans-latin-ext-700-normal-DQeElHWA.woff2", + "assets/public-sans-latin-ext-700-normal-BPjagB3u.woff", + "assets/public-sans-latin-700-normal-CGjRhW-d.woff2", + "assets/public-sans-latin-700-normal-DFbs-ESy.woff" + ] }, "assets/src/scripts/components.js": { - "css": [ - "assets/components-46WfX2Md.css" - ], - "file": "assets/components-Kv5wAdKo.js", + "file": "assets/components-CfABJOpm.js", + "src": "assets/src/scripts/components.js", + "isEntry": true, "imports": [ - "_core-83wAAQS5.js", - "__commonjsHelpers-4gQjN7DL.js", - "__datatable-4Wejxm88.js", - "_preload-helper-H-c3VWY_.js" + "_core-B2AmeFJW.js", + "__commonjsHelpers-BosuxZz1.js", + "__datatable-Dl3Q3-Er.js", + "_preload-helper-DEPslLRF.js" ], - "isEntry": true, - "src": "assets/src/scripts/components.js" + "css": [ + "assets/components-DjpZ9fYx.css" + ] }, "assets/src/scripts/interactive/main.jsx": { - "file": "assets/interactive-_geFUJpO.js", - "imports": [ - "_index-xG0evL3U.js", - "__commonjsHelpers-4gQjN7DL.js" - ], + "file": "assets/interactive-DCALKLPt.js", + "src": "assets/src/scripts/interactive/main.jsx", "isEntry": true, - "src": "assets/src/scripts/interactive/main.jsx" + "imports": [ + "_index-F5ndk3lt.js", + "__commonjsHelpers-BosuxZz1.js" + ] }, "assets/src/scripts/job_request_create.js": { - "file": "assets/job_request_create-r50Iv3NS.js", - "isEntry": true, - "src": "assets/src/scripts/job_request_create.js" + "file": "assets/job_request_create-CtTKtINd.js", + "src": "assets/src/scripts/job_request_create.js", + "isEntry": true }, "assets/src/scripts/outputs-viewer/index.jsx": { - "file": "assets/outputs-viewer-01mbb_XM.js", - "imports": [ - "_index-xG0evL3U.js", - "__commonjsHelpers-4gQjN7DL.js" - ], + "file": "assets/outputs-viewer-C8kQNS9Y.js", + "src": "assets/src/scripts/outputs-viewer/index.jsx", "isEntry": true, - "src": "assets/src/scripts/outputs-viewer/index.jsx" + "imports": [ + "_index-F5ndk3lt.js", + "__commonjsHelpers-BosuxZz1.js" + ] }, "assets/src/scripts/sign-off-repo.js": { - "file": "assets/sign-off-repo-veQoilvX.js", - "isEntry": true, - "src": "assets/src/scripts/sign-off-repo.js" + "file": "assets/sign-off-repo-CPAwP2x5.js", + "src": "assets/src/scripts/sign-off-repo.js", + "isEntry": true }, "assets/src/scripts/staff-base.js": { - "css": [ - "assets/staff-base-BJ8QSkn7.css" + "file": "assets/staff-base-C0bgJ9vM.js", + "src": "assets/src/scripts/staff-base.js", + "isEntry": true, + "imports": [ + "__datatable-Dl3Q3-Er.js", + "_preload-helper-DEPslLRF.js" ], "dynamicImports": [ "node_modules/highlight.js/es/core.js", "node_modules/highlight.js/es/languages/json.js" ], - "file": "assets/staff-base-NqQk57Yi.js", - "imports": [ - "__datatable-4Wejxm88.js", - "_preload-helper-H-c3VWY_.js" - ], - "isEntry": true, - "src": "assets/src/scripts/staff-base.js" + "css": [ + "assets/staff-base-EnxBKSfv.css" + ] }, "assets/src/scripts/workspace_create.js": { - "file": "assets/workspace_create-7z8vvE0g.js", - "isEntry": true, - "src": "assets/src/scripts/workspace_create.js" + "file": "assets/workspace_create-CcyGGZDT.js", + "src": "assets/src/scripts/workspace_create.js", + "isEntry": true }, "assets/src/styles/_datatable.css": { - "file": "assets/_datatable-0_KFxqhf.css", + "file": "assets/_datatable-DT8oXGqF.css", "src": "assets/src/styles/_datatable.css" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-400-normal.woff": { - "file": "assets/public-sans-latin-400-normal--L4Buklq.woff", + "file": "assets/public-sans-latin-400-normal-D4vgG6SW.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-400-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-400-normal.woff2": { - "file": "assets/public-sans-latin-400-normal--BfcnxYs.woff2", + "file": "assets/public-sans-latin-400-normal-D4F9yfFi.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-400-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-500-normal.woff": { - "file": "assets/public-sans-latin-500-normal-wkKMPqwN.woff", + "file": "assets/public-sans-latin-500-normal-DCQow-rA.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-500-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-500-normal.woff2": { - "file": "assets/public-sans-latin-500-normal-oWXARJya.woff2", + "file": "assets/public-sans-latin-500-normal-ChZcBEnJ.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-500-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-600-normal.woff": { - "file": "assets/public-sans-latin-600-normal-V9AcMVZe.woff", + "file": "assets/public-sans-latin-600-normal-BX0BwxVl.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-600-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-600-normal.woff2": { - "file": "assets/public-sans-latin-600-normal-pOk8n0SH.woff2", + "file": "assets/public-sans-latin-600-normal-Ck6TyfRI.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-600-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-700-normal.woff": { - "file": "assets/public-sans-latin-700-normal-xW7PhEsr.woff", + "file": "assets/public-sans-latin-700-normal-DFbs-ESy.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-700-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-700-normal.woff2": { - "file": "assets/public-sans-latin-700-normal-ho0YVvnU.woff2", + "file": "assets/public-sans-latin-700-normal-CGjRhW-d.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-700-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-400-normal.woff": { - "file": "assets/public-sans-latin-ext-400-normal-cCs-QHh8.woff", + "file": "assets/public-sans-latin-ext-400-normal-BwKz5AeH.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-400-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-400-normal.woff2": { - "file": "assets/public-sans-latin-ext-400-normal-C-WUMmV_.woff2", + "file": "assets/public-sans-latin-ext-400-normal-L5ZQyZX_.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-400-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-500-normal.woff": { - "file": "assets/public-sans-latin-ext-500-normal-wt_mAGtF.woff", + "file": "assets/public-sans-latin-ext-500-normal-DC3-YAa0.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-500-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-500-normal.woff2": { - "file": "assets/public-sans-latin-ext-500-normal-z_Voae12.woff2", + "file": "assets/public-sans-latin-ext-500-normal-DP9Whp7X.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-500-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-600-normal.woff": { - "file": "assets/public-sans-latin-ext-600-normal-FgWRuwOZ.woff", + "file": "assets/public-sans-latin-ext-600-normal-WBZG7A5n.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-600-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-600-normal.woff2": { - "file": "assets/public-sans-latin-ext-600-normal-TqkwLzA0.woff2", + "file": "assets/public-sans-latin-ext-600-normal-BOqTAvMD.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-600-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-700-normal.woff": { - "file": "assets/public-sans-latin-ext-700-normal-T42oAd7l.woff", + "file": "assets/public-sans-latin-ext-700-normal-BPjagB3u.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-700-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-700-normal.woff2": { - "file": "assets/public-sans-latin-ext-700-normal-0HhJR1gK.woff2", + "file": "assets/public-sans-latin-ext-700-normal-DQeElHWA.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-latin-ext-700-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-400-normal.woff": { - "file": "assets/public-sans-vietnamese-400-normal-cBFFxxGO.woff", + "file": "assets/public-sans-vietnamese-400-normal-BwEUXHEY.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-400-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-400-normal.woff2": { - "file": "assets/public-sans-vietnamese-400-normal-H8whGGcJ.woff2", + "file": "assets/public-sans-vietnamese-400-normal-fzCEYZwl.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-400-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-500-normal.woff": { - "file": "assets/public-sans-vietnamese-500-normal-SjVlx-ww.woff", + "file": "assets/public-sans-vietnamese-500-normal-BKNWXH7D.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-500-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-500-normal.woff2": { - "file": "assets/public-sans-vietnamese-500-normal-LD6X5P8g.woff2", + "file": "assets/public-sans-vietnamese-500-normal-sPpfk_yB.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-500-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-600-normal.woff": { - "file": "assets/public-sans-vietnamese-600-normal-gi41Qlme.woff", + "file": "assets/public-sans-vietnamese-600-normal-CCLjVCWZ.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-600-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-600-normal.woff2": { - "file": "assets/public-sans-vietnamese-600-normal-aFadiEZb.woff2", + "file": "assets/public-sans-vietnamese-600-normal-BoVp2IRl.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-600-normal.woff2" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-700-normal.woff": { - "file": "assets/public-sans-vietnamese-700-normal-s4Obk52V.woff", + "file": "assets/public-sans-vietnamese-700-normal-Czg5uTnZ.woff", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-700-normal.woff" }, "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-700-normal.woff2": { - "file": "assets/public-sans-vietnamese-700-normal-o3H9TOXa.woff2", + "file": "assets/public-sans-vietnamese-700-normal-Cjcf1M5d.woff2", "src": "node_modules/@fontsource/public-sans/files/public-sans-vietnamese-700-normal.woff2" }, "node_modules/canvg/lib/index.es.js": { - "file": "assets/index.es-41cymvk1.js", - "imports": [ - "__commonjsHelpers-4gQjN7DL.js", - "_html2pdf-SF21G6Sk.js", - "_preload-helper-H-c3VWY_.js" - ], + "file": "assets/index.es-DMTorwo1.js", + "src": "node_modules/canvg/lib/index.es.js", "isDynamicEntry": true, - "src": "node_modules/canvg/lib/index.es.js" + "imports": [ + "__commonjsHelpers-BosuxZz1.js", + "_html2pdf-CISx9sC5.js", + "_preload-helper-DEPslLRF.js" + ] }, "node_modules/dompurify/dist/purify.es.js": { - "file": "assets/purify.es-zHtM-7sw.js", - "isDynamicEntry": true, - "src": "node_modules/dompurify/dist/purify.es.js" + "file": "assets/purify.es-BZcJlXyC.js", + "src": "node_modules/dompurify/dist/purify.es.js", + "isDynamicEntry": true }, "node_modules/highlight.js/es/core.js": { - "file": "assets/core-qr9noKQr.js", - "imports": [ - "_core-83wAAQS5.js", - "__commonjsHelpers-4gQjN7DL.js" - ], + "file": "assets/core-ChbsETua.js", + "src": "node_modules/highlight.js/es/core.js", "isDynamicEntry": true, - "src": "node_modules/highlight.js/es/core.js" + "imports": [ + "_core-B2AmeFJW.js", + "__commonjsHelpers-BosuxZz1.js" + ] }, "node_modules/highlight.js/es/languages/json.js": { - "file": "assets/json-PR43yn9U.js", - "isDynamicEntry": true, - "src": "node_modules/highlight.js/es/languages/json.js" + "file": "assets/json-CFG4bYpx.js", + "src": "node_modules/highlight.js/es/languages/json.js", + "isDynamicEntry": true }, "node_modules/highlight.js/styles/github.css": { - "file": "assets/github-hpNP9OIE.css", + "file": "assets/github-CGk0_04g.css", "src": "node_modules/highlight.js/styles/github.css" }, "node_modules/simple-datatables/dist/module.js": { - "file": "assets/module-K4QQYKOX.js", - "isDynamicEntry": true, - "src": "node_modules/simple-datatables/dist/module.js" + "file": "assets/module-Ddk_Oc2r.js", + "src": "node_modules/simple-datatables/dist/module.js", + "isDynamicEntry": true }, "templates/_components/modal/modal.js": { - "file": "assets/modal-Y47J8xgi.js", - "isEntry": true, - "src": "templates/_components/modal/modal.js" + "file": "assets/modal-CDv7gp0g.js", + "src": "templates/_components/modal/modal.js", + "isEntry": true }, "templates/_components/multiselect/multiselect.js": { - "css": [ - "assets/multiselect-ExWJzHqD.css" - ], - "file": "assets/multiselect-_L73NZTL.js", + "file": "assets/multiselect-DBqAoQKK.js", + "src": "templates/_components/multiselect/multiselect.js", "isEntry": true, - "src": "templates/_components/multiselect/multiselect.js" + "css": [ + "assets/multiselect-TFYnMeoO.css" + ] } } \ No newline at end of file diff --git a/assets/dist/.written b/assets/dist/.written deleted file mode 100644 index e69de29b..00000000 diff --git a/assets/dist/assets/_commonjsHelpers-4gQjN7DL.js b/assets/dist/assets/_commonjsHelpers-BosuxZz1.js similarity index 100% rename from assets/dist/assets/_commonjsHelpers-4gQjN7DL.js rename to assets/dist/assets/_commonjsHelpers-BosuxZz1.js diff --git a/assets/dist/assets/_datatable-0_KFxqhf.css b/assets/dist/assets/_datatable-DT8oXGqF.css similarity index 100% rename from assets/dist/assets/_datatable-0_KFxqhf.css rename to assets/dist/assets/_datatable-DT8oXGqF.css diff --git a/assets/dist/assets/_datatable-4Wejxm88.js b/assets/dist/assets/_datatable-Dl3Q3-Er.js similarity index 91% rename from assets/dist/assets/_datatable-4Wejxm88.js rename to assets/dist/assets/_datatable-Dl3Q3-Er.js index e750d5ff..1d729114 100644 --- a/assets/dist/assets/_datatable-4Wejxm88.js +++ b/assets/dist/assets/_datatable-Dl3Q3-Er.js @@ -1,7 +1,7 @@ -import{_ as m}from"./preload-helper-H-c3VWY_.js";function b(e,t,a){e&&(t?(e.classList.remove("hidden"),e.addEventListener("click",()=>a.page(t))):e.classList.add("hidden"))}function h(){let e=document.querySelector('[data-table-pagination="next-page"]');e==null||e.replaceWith(e.cloneNode(!0)),e=document.querySelector('[data-table-pagination="next-page"]');let t=document.querySelector('[data-table-pagination="previous-page"]');return t==null||t.replaceWith(t.cloneNode(!0)),t=document.querySelector('[data-table-pagination="previous-page"]'),{nextPageBtn:e,previousPageBtn:t}}function l(e,t){const a=document.querySelector('[data-table-pagination="page-number"]'),r=document.querySelector('[data-table-pagination="total-pages"]'),{nextPageBtn:n,previousPageBtn:s}=h(),o=t.pages.length,i={currentPage:e,totalPages:o,nextPage:e1?e-1:null};a&&(a.innerHTML=JSON.stringify(i.currentPage)),r&&(r.innerHTML=JSON.stringify(i.totalPages)),b(n,i.nextPage,t),b(s,i.previousPage,t)}(async()=>{const e=document.querySelector("table#customTable");if(e){const{DataTable:t}=await m(()=>import("./module-K4QQYKOX.js"),__vite__mapDeps([]));await m(()=>Promise.resolve({}),__vite__mapDeps([0]));const a=new t(e,{paging:!0,perPage:25,searchable:!0,sortable:!0,tableRender:(n,s)=>{var d,c,u,p;const o=(d=s.childNodes)==null?void 0:d[0],i={nodeName:"TR",childNodes:(u=(c=o==null?void 0:o.childNodes)==null?void 0:c[0].childNodes)==null?void 0:u.map((N,g)=>({nodeName:"TH",childNodes:[{nodeName:"INPUT",attributes:{class:"datatable-input","data-columns":`[${g}]`,placeholder:`Filter ${n.headings[g].text.trim().toLowerCase()}`,type:"search"}}]}))};return(p=o==null?void 0:o.childNodes)==null||p.push(i),s},template:n=>`
`});[...document.querySelectorAll("input.datatable-input")].map(n=>(n.addEventListener("input",()=>(n==null?void 0:n.value)===""?setTimeout(()=>l(1,a),0):null),null)),a.on("datatable.init",()=>l(1,a)),a.on("datatable.page",n=>l(n,a)),a.on("datatable.sort",()=>l(1,a)),a.on("datatable.search",()=>l(1,a))}})(); +import{_ as m}from"./preload-helper-DEPslLRF.js";function b(e,t,a){e&&(t?(e.classList.remove("hidden"),e.addEventListener("click",()=>a.page(t))):e.classList.add("hidden"))}function h(){let e=document.querySelector('[data-table-pagination="next-page"]');e==null||e.replaceWith(e.cloneNode(!0)),e=document.querySelector('[data-table-pagination="next-page"]');let t=document.querySelector('[data-table-pagination="previous-page"]');return t==null||t.replaceWith(t.cloneNode(!0)),t=document.querySelector('[data-table-pagination="previous-page"]'),{nextPageBtn:e,previousPageBtn:t}}function l(e,t){const a=document.querySelector('[data-table-pagination="page-number"]'),r=document.querySelector('[data-table-pagination="total-pages"]'),{nextPageBtn:n,previousPageBtn:s}=h(),o=t.pages.length,i={currentPage:e,totalPages:o,nextPage:e1?e-1:null};a&&(a.innerHTML=JSON.stringify(i.currentPage)),r&&(r.innerHTML=JSON.stringify(i.totalPages)),b(n,i.nextPage,t),b(s,i.previousPage,t)}(async()=>{const e=document.querySelector("table#customTable");if(e){const{DataTable:t}=await m(()=>import("./module-Ddk_Oc2r.js"),__vite__mapDeps([]));await m(()=>Promise.resolve({}),__vite__mapDeps([0]));const a=new t(e,{paging:!0,perPage:25,searchable:!0,sortable:!0,tableRender:(n,s)=>{var d,c,u,p;const o=(d=s.childNodes)==null?void 0:d[0],i={nodeName:"TR",childNodes:(u=(c=o==null?void 0:o.childNodes)==null?void 0:c[0].childNodes)==null?void 0:u.map((N,g)=>({nodeName:"TH",childNodes:[{nodeName:"INPUT",attributes:{class:"datatable-input","data-columns":`[${g}]`,placeholder:`Filter ${n.headings[g].text.trim().toLowerCase()}`,type:"search"}}]}))};return(p=o==null?void 0:o.childNodes)==null||p.push(i),s},template:n=>`
`});[...document.querySelectorAll("input.datatable-input")].map(n=>(n.addEventListener("input",()=>(n==null?void 0:n.value)===""?setTimeout(()=>l(1,a),0):null),null)),a.on("datatable.init",()=>l(1,a)),a.on("datatable.page",n=>l(n,a)),a.on("datatable.sort",()=>l(1,a)),a.on("datatable.search",()=>l(1,a))}})(); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/_datatable-0_KFxqhf.css"] + __vite__mapDeps.viteFileDeps = ["assets/_datatable-DT8oXGqF.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/dist/assets/analysis-request-detail-0iHCYhRs.css b/assets/dist/assets/analysis-request-detail-DSIcJiFG.css similarity index 100% rename from assets/dist/assets/analysis-request-detail-0iHCYhRs.css rename to assets/dist/assets/analysis-request-detail-DSIcJiFG.css diff --git a/assets/dist/assets/analysis-request-detail-EwOPvV8O.js b/assets/dist/assets/analysis-request-detail-kybzoXCh.js similarity index 89% rename from assets/dist/assets/analysis-request-detail-EwOPvV8O.js rename to assets/dist/assets/analysis-request-detail-kybzoXCh.js index 39b536bb..031aaa80 100644 --- a/assets/dist/assets/analysis-request-detail-EwOPvV8O.js +++ b/assets/dist/assets/analysis-request-detail-kybzoXCh.js @@ -1,7 +1,7 @@ -import{_ as f}from"./preload-helper-H-c3VWY_.js";function p(){const e=document.getElementById("downloadBtn"),t=document.getElementById("reportContainer"),d=t.querySelector("#watermark"),i=t.querySelector("#report"),l=document.getElementById("viewProjectPurposeLink"),m=document.getElementById("viewOnOpensafelyLink"),n=document.getElementById("downloadModal"),o=n.querySelector('[value="confirm"]'),u=n.querySelector('[value="cancel"]'),s=n.querySelector('[value="generating"]'),r=n.querySelector('[value="downloading"]'),L={margin:15,filename:`${e.dataset.title} - Report.pdf`,image:{type:"jpeg",quality:.75},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"},html2canvas:{scale:2},pagebreak:{mode:"avoid-all"}};let c;e.addEventListener("click",async()=>{n.showModal();const h=await f(()=>import("./html2pdf-SF21G6Sk.js").then(a=>a.h),__vite__mapDeps([0,1,2]));i.classList.add("print-pdf"),l.classList.add("hidden"),m.classList.remove("hidden"),t.querySelectorAll("svg").forEach(a=>a.classList.add("!hidden")),t.querySelector(".toc").classList.add("!hidden");const v=d.innerHTML;d.classList.remove("hidden"),d.innerHTML=d.innerHTML.repeat(300),c=h.default().set(L).from(i).toContainer().toPdf(),await c,setTimeout(()=>{d.classList.add("hidden"),d.innerHTML=v,i.classList.remove("print-pdf"),t.querySelectorAll("svg").forEach(a=>a.classList.remove("!hidden")),t.querySelector(".toc").classList.remove("!hidden")},0),m.classList.add("hidden"),l.classList.remove("hidden"),o.classList.remove("hidden"),s.classList.add("hidden")}),o.addEventListener("click",()=>{c.save(),o.classList.add("hidden"),s.classList.add("hidden"),r.classList.remove("hidden"),setTimeout(()=>{o.classList.add("hidden"),r.classList.add("hidden"),s.classList.remove("hidden"),n.close("Download started")},1e3)}),u.addEventListener("click",()=>{n.close("Download cancelled"),o.classList.add("hidden"),r.classList.add("hidden"),s.classList.remove("hidden")})}function y(){const e=document.querySelectorAll('[data-format-number="true"]');e==null||e.forEach(t=>t.textContent=parseFloat(t.textContent).toLocaleString("en-GB"))}function g(){if(document.querySelector("#tableOfContents")){const e=document.createElement("a");e.id="menuBtn",e.textContent="Back to table of contents",e.href="#tableOfContents",document.querySelector("main").appendChild(e)}}document.addEventListener("DOMContentLoaded",()=>{p(),y(),g()}); +import{_ as f}from"./preload-helper-DEPslLRF.js";function p(){const e=document.getElementById("downloadBtn"),t=document.getElementById("reportContainer"),d=t.querySelector("#watermark"),i=t.querySelector("#report"),l=document.getElementById("viewProjectPurposeLink"),m=document.getElementById("viewOnOpensafelyLink"),n=document.getElementById("downloadModal"),o=n.querySelector('[value="confirm"]'),u=n.querySelector('[value="cancel"]'),s=n.querySelector('[value="generating"]'),r=n.querySelector('[value="downloading"]'),L={margin:15,filename:`${e.dataset.title} - Report.pdf`,image:{type:"jpeg",quality:.75},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"},html2canvas:{scale:2},pagebreak:{mode:"avoid-all"}};let c;e.addEventListener("click",async()=>{n.showModal();const h=await f(()=>import("./html2pdf-CISx9sC5.js").then(a=>a.h),__vite__mapDeps([0,1,2]));i.classList.add("print-pdf"),l.classList.add("hidden"),m.classList.remove("hidden"),t.querySelectorAll("svg").forEach(a=>a.classList.add("!hidden")),t.querySelector(".toc").classList.add("!hidden");const v=d.innerHTML;d.classList.remove("hidden"),d.innerHTML=d.innerHTML.repeat(300),c=h.default().set(L).from(i).toContainer().toPdf(),await c,setTimeout(()=>{d.classList.add("hidden"),d.innerHTML=v,i.classList.remove("print-pdf"),t.querySelectorAll("svg").forEach(a=>a.classList.remove("!hidden")),t.querySelector(".toc").classList.remove("!hidden")},0),m.classList.add("hidden"),l.classList.remove("hidden"),o.classList.remove("hidden"),s.classList.add("hidden")}),o.addEventListener("click",()=>{c.save(),o.classList.add("hidden"),s.classList.add("hidden"),r.classList.remove("hidden"),setTimeout(()=>{o.classList.add("hidden"),r.classList.add("hidden"),s.classList.remove("hidden"),n.close("Download started")},1e3)}),u.addEventListener("click",()=>{n.close("Download cancelled"),o.classList.add("hidden"),r.classList.add("hidden"),s.classList.remove("hidden")})}function y(){const e=document.querySelectorAll('[data-format-number="true"]');e==null||e.forEach(t=>t.textContent=parseFloat(t.textContent).toLocaleString("en-GB"))}function g(){if(document.querySelector("#tableOfContents")){const e=document.createElement("a");e.id="menuBtn",e.textContent="Back to table of contents",e.href="#tableOfContents",document.querySelector("main").appendChild(e)}}document.addEventListener("DOMContentLoaded",()=>{p(),y(),g()}); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/html2pdf-SF21G6Sk.js","assets/_commonjsHelpers-4gQjN7DL.js","assets/preload-helper-H-c3VWY_.js"] + __vite__mapDeps.viteFileDeps = ["assets/html2pdf-CISx9sC5.js","assets/_commonjsHelpers-BosuxZz1.js","assets/preload-helper-DEPslLRF.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/dist/assets/application-form-hrD-Io_q.js b/assets/dist/assets/application-form-DMDh4ih4.js similarity index 100% rename from assets/dist/assets/application-form-hrD-Io_q.js rename to assets/dist/assets/application-form-DMDh4ih4.js diff --git a/assets/dist/assets/base-aLGCbdTr.css b/assets/dist/assets/base-aLGCbdTr.css deleted file mode 100644 index 5c7b5d1d..00000000 --- a/assets/dist/assets/base-aLGCbdTr.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/static/assets/public-sans-vietnamese-400-normal-H8whGGcJ.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-400-normal-cBFFxxGO.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/static/assets/public-sans-latin-ext-400-normal-C-WUMmV_.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-400-normal-cCs-QHh8.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/static/assets/public-sans-latin-400-normal--BfcnxYs.woff2) format("woff2"),url(/static/assets/public-sans-latin-400-normal--L4Buklq.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/static/assets/public-sans-vietnamese-500-normal-LD6X5P8g.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-500-normal-SjVlx-ww.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/static/assets/public-sans-latin-ext-500-normal-z_Voae12.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-500-normal-wt_mAGtF.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/static/assets/public-sans-latin-500-normal-oWXARJya.woff2) format("woff2"),url(/static/assets/public-sans-latin-500-normal-wkKMPqwN.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/static/assets/public-sans-vietnamese-600-normal-aFadiEZb.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-600-normal-gi41Qlme.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/static/assets/public-sans-latin-ext-600-normal-TqkwLzA0.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-600-normal-FgWRuwOZ.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/static/assets/public-sans-latin-600-normal-pOk8n0SH.woff2) format("woff2"),url(/static/assets/public-sans-latin-600-normal-V9AcMVZe.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/static/assets/public-sans-vietnamese-700-normal-o3H9TOXa.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-700-normal-s4Obk52V.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/static/assets/public-sans-latin-ext-700-normal-0HhJR1gK.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-700-normal-T42oAd7l.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/static/assets/public-sans-latin-700-normal-ho0YVvnU.woff2) format("woff2"),url(/static/assets/public-sans-latin-700-normal-xW7PhEsr.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.preload *{transition:none!important;animation-duration:1ms!important}summary::-webkit-details-marker{display:none}.break-words{word-break:break-word;word-wrap:break-word}[hidden],[x-cloak]{display:none!important}.alert{--alert-background: white;--alert-icon-color: var(--color-slate-400);--alert-title-color: var(--color-slate-900);--alert-text-color: var(--color-slate-700);--alert-hover-color: var(--color-slate-600);position:relative;border-radius:.5rem;padding:1rem 1.5rem 1rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 2px rgba(0, 0, 0, .1)) drop-shadow(0 1px 1px rgba(0, 0, 0, .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);background-color:#fff;background-color:var(--alert-background)}.alert--dismissible{padding-right:2rem}.alert__container{display:flex;gap:.75rem}.alert__icon{margin-top:.125rem;height:1.5rem;width:1.5rem;flex-shrink:0;color:var(--alert-icon-color)}.alert__title{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;letter-spacing:-.025em;color:var(--alert-title-color)}.alert__text{color:var(--alert-text-color)}.alert__dismiss{position:absolute;right:.5rem;top:.5rem;color:var(--alert-text-color)}.alert__dismiss-icon{height:1.5rem;width:1.5rem}.alert__dismiss-icon:hover{color:var(--alert-hover-color)}.alert--warning{--alert-background: var(--color-bn-flamenco-100);--alert-icon-color: var(--color-bn-flamenco-400);--alert-title-color: var(--color-bn-flamenco-900);--alert-text-color: var(--color-bn-flamenco-800);--alert-hover-color: var(--color-bn-flamenco-600)}.alert--success{--alert-background: var(--color-green-100);--alert-icon-color: var(--color-green-600);--alert-title-color: var(--color-green-900);--alert-text-color: var(--color-green-700);--alert-hover-color: var(--color-green-600)}.alert--danger{--alert-background: var(--color-bn-ribbon-100);--alert-icon-color: var(--color-bn-ribbon-400);--alert-title-color: var(--color-bn-ribbon-900);--alert-text-color: var(--color-bn-ribbon-800);--alert-hover-color: var(--color-bn-ribbon-600)}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Public Sans,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 rgba(0,0,0,0)}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:0 0 #fff,0 0 0 1px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-image:initial;background-position:0 0;background-position:initial;background-repeat:repeat;background-repeat:initial;background-size:auto auto;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:inherit;print-color-adjust:inherit}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 rgba(0,0,0,0)}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:0 0 0 2px #fff,0 0 0 4px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:transparent none repeat 0 0 / auto auto padding-box border-box scroll;background:initial;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:inherit;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}:root{--color-inherit: inherit;--color-current: currentColor;--color-transparent: transparent;--color-black: #000;--color-white: #fff;--color-slate-50: #f8fafc;--color-slate-100: #f1f5f9;--color-slate-200: #e2e8f0;--color-slate-300: #cbd5e1;--color-slate-400: #94a3b8;--color-slate-500: #64748b;--color-slate-600: #475569;--color-slate-700: #334155;--color-slate-800: #1e293b;--color-slate-900: #0f172a;--color-slate-950: #020617;--color-gray-50: #f9fafb;--color-gray-100: #f3f4f6;--color-gray-200: #e5e7eb;--color-gray-300: #d1d5db;--color-gray-400: #9ca3af;--color-gray-500: #6b7280;--color-gray-600: #4b5563;--color-gray-700: #374151;--color-gray-800: #1f2937;--color-gray-900: #111827;--color-gray-950: #030712;--color-zinc-50: #fafafa;--color-zinc-100: #f4f4f5;--color-zinc-200: #e4e4e7;--color-zinc-300: #d4d4d8;--color-zinc-400: #a1a1aa;--color-zinc-500: #71717a;--color-zinc-600: #52525b;--color-zinc-700: #3f3f46;--color-zinc-800: #27272a;--color-zinc-900: #18181b;--color-zinc-950: #09090b;--color-neutral-50: #fafafa;--color-neutral-100: #f5f5f5;--color-neutral-200: #e5e5e5;--color-neutral-300: #d4d4d4;--color-neutral-400: #a3a3a3;--color-neutral-500: #737373;--color-neutral-600: #525252;--color-neutral-700: #404040;--color-neutral-800: #262626;--color-neutral-900: #171717;--color-neutral-950: #0a0a0a;--color-stone-50: #fafaf9;--color-stone-100: #f5f5f4;--color-stone-200: #e7e5e4;--color-stone-300: #d6d3d1;--color-stone-400: #a8a29e;--color-stone-500: #78716c;--color-stone-600: #57534e;--color-stone-700: #44403c;--color-stone-800: #292524;--color-stone-900: #1c1917;--color-stone-950: #0c0a09;--color-red-50: #fef2f2;--color-red-100: #fee2e2;--color-red-200: #fecaca;--color-red-300: #fca5a5;--color-red-400: #f87171;--color-red-500: #ef4444;--color-red-600: #dc2626;--color-red-700: #b91c1c;--color-red-800: #991b1b;--color-red-900: #7f1d1d;--color-red-950: #450a0a;--color-orange-50: #fff7ed;--color-orange-100: #ffedd5;--color-orange-200: #fed7aa;--color-orange-300: #fdba74;--color-orange-400: #fb923c;--color-orange-500: #f97316;--color-orange-600: #ea580c;--color-orange-700: #c2410c;--color-orange-800: #9a3412;--color-orange-900: #7c2d12;--color-orange-950: #431407;--color-amber-50: #fffbeb;--color-amber-100: #fef3c7;--color-amber-200: #fde68a;--color-amber-300: #fcd34d;--color-amber-400: #fbbf24;--color-amber-500: #f59e0b;--color-amber-600: #d97706;--color-amber-700: #b45309;--color-amber-800: #92400e;--color-amber-900: #78350f;--color-amber-950: #451a03;--color-yellow-50: #fefce8;--color-yellow-100: #fef9c3;--color-yellow-200: #fef08a;--color-yellow-300: #fde047;--color-yellow-400: #facc15;--color-yellow-500: #eab308;--color-yellow-600: #ca8a04;--color-yellow-700: #a16207;--color-yellow-800: #854d0e;--color-yellow-900: #713f12;--color-yellow-950: #422006;--color-lime-50: #f7fee7;--color-lime-100: #ecfccb;--color-lime-200: #d9f99d;--color-lime-300: #bef264;--color-lime-400: #a3e635;--color-lime-500: #84cc16;--color-lime-600: #65a30d;--color-lime-700: #4d7c0f;--color-lime-800: #3f6212;--color-lime-900: #365314;--color-lime-950: #1a2e05;--color-green-50: #f0fdf4;--color-green-100: #dcfce7;--color-green-200: #bbf7d0;--color-green-300: #86efac;--color-green-400: #4ade80;--color-green-500: #22c55e;--color-green-600: #16a34a;--color-green-700: #15803d;--color-green-800: #166534;--color-green-900: #14532d;--color-green-950: #052e16;--color-emerald-50: #ecfdf5;--color-emerald-100: #d1fae5;--color-emerald-200: #a7f3d0;--color-emerald-300: #6ee7b7;--color-emerald-400: #34d399;--color-emerald-500: #10b981;--color-emerald-600: #059669;--color-emerald-700: #047857;--color-emerald-800: #065f46;--color-emerald-900: #064e3b;--color-emerald-950: #022c22;--color-teal-50: #f0fdfa;--color-teal-100: #ccfbf1;--color-teal-200: #99f6e4;--color-teal-300: #5eead4;--color-teal-400: #2dd4bf;--color-teal-500: #14b8a6;--color-teal-600: #0d9488;--color-teal-700: #0f766e;--color-teal-800: #115e59;--color-teal-900: #134e4a;--color-teal-950: #042f2e;--color-cyan-50: #ecfeff;--color-cyan-100: #cffafe;--color-cyan-200: #a5f3fc;--color-cyan-300: #67e8f9;--color-cyan-400: #22d3ee;--color-cyan-500: #06b6d4;--color-cyan-600: #0891b2;--color-cyan-700: #0e7490;--color-cyan-800: #155e75;--color-cyan-900: #164e63;--color-cyan-950: #083344;--color-sky-50: #f0f9ff;--color-sky-100: #e0f2fe;--color-sky-200: #bae6fd;--color-sky-300: #7dd3fc;--color-sky-400: #38bdf8;--color-sky-500: #0ea5e9;--color-sky-600: #0284c7;--color-sky-700: #0369a1;--color-sky-800: #075985;--color-sky-900: #0c4a6e;--color-sky-950: #082f49;--color-blue-50: #eff6ff;--color-blue-100: #dbeafe;--color-blue-200: #bfdbfe;--color-blue-300: #93c5fd;--color-blue-400: #60a5fa;--color-blue-500: #3b82f6;--color-blue-600: #2563eb;--color-blue-700: #1d4ed8;--color-blue-800: #1e40af;--color-blue-900: #1e3a8a;--color-blue-950: #172554;--color-indigo-50: #eef2ff;--color-indigo-100: #e0e7ff;--color-indigo-200: #c7d2fe;--color-indigo-300: #a5b4fc;--color-indigo-400: #818cf8;--color-indigo-500: #6366f1;--color-indigo-600: #4f46e5;--color-indigo-700: #4338ca;--color-indigo-800: #3730a3;--color-indigo-900: #312e81;--color-indigo-950: #1e1b4b;--color-violet-50: #f5f3ff;--color-violet-100: #ede9fe;--color-violet-200: #ddd6fe;--color-violet-300: #c4b5fd;--color-violet-400: #a78bfa;--color-violet-500: #8b5cf6;--color-violet-600: #7c3aed;--color-violet-700: #6d28d9;--color-violet-800: #5b21b6;--color-violet-900: #4c1d95;--color-violet-950: #2e1065;--color-purple-50: #faf5ff;--color-purple-100: #f3e8ff;--color-purple-200: #e9d5ff;--color-purple-300: #d8b4fe;--color-purple-400: #c084fc;--color-purple-500: #a855f7;--color-purple-600: #9333ea;--color-purple-700: #7e22ce;--color-purple-800: #6b21a8;--color-purple-900: #581c87;--color-purple-950: #3b0764;--color-fuchsia-50: #fdf4ff;--color-fuchsia-100: #fae8ff;--color-fuchsia-200: #f5d0fe;--color-fuchsia-300: #f0abfc;--color-fuchsia-400: #e879f9;--color-fuchsia-500: #d946ef;--color-fuchsia-600: #c026d3;--color-fuchsia-700: #a21caf;--color-fuchsia-800: #86198f;--color-fuchsia-900: #701a75;--color-fuchsia-950: #4a044e;--color-pink-50: #fdf2f8;--color-pink-100: #fce7f3;--color-pink-200: #fbcfe8;--color-pink-300: #f9a8d4;--color-pink-400: #f472b6;--color-pink-500: #ec4899;--color-pink-600: #db2777;--color-pink-700: #be185d;--color-pink-800: #9d174d;--color-pink-900: #831843;--color-pink-950: #500724;--color-rose-50: #fff1f2;--color-rose-100: #ffe4e6;--color-rose-200: #fecdd3;--color-rose-300: #fda4af;--color-rose-400: #fb7185;--color-rose-500: #f43f5e;--color-rose-600: #e11d48;--color-rose-700: #be123c;--color-rose-800: #9f1239;--color-rose-900: #881337;--color-rose-950: #4c0519;--color-oxford-50: #f1f7ff;--color-oxford-100: #cfe5ff;--color-oxford-200: #9ccaff;--color-oxford-300: #69afff;--color-oxford-400: #3693ff;--color-oxford-500: #0378ff;--color-oxford-600: #0058be;--color-oxford-700: #00397a;--color-oxford-800: #002147;--color-oxford-900: #001936;--color-oxford-DEFAULT: #002147;--color-bn-egg-50: #f3fdfe;--color-bn-egg-100: #e8fbfd;--color-bn-egg-200: #c5f5f9;--color-bn-egg-300: #a2eff5;--color-bn-egg-400: #5de3ee;--color-bn-egg-500: #17d7e6;--color-bn-egg-600: #15c2cf;--color-bn-egg-700: #11a1ad;--color-bn-egg-800: #0e818a;--color-bn-egg-900: #0b6971;--color-bn-egg-DEFAULT: #17d7e6;--color-bn-picton-50: #f5fbff;--color-bn-picton-100: #ecf8ff;--color-bn-picton-200: #cfedff;--color-bn-picton-300: #b3e1ff;--color-bn-picton-400: #79cbff;--color-bn-picton-500: #40b5ff;--color-bn-picton-600: #3aa3e6;--color-bn-picton-700: #3088bf;--color-bn-picton-800: #266d99;--color-bn-picton-900: #1f597d;--color-bn-picton-DEFAULT: #40b5ff;--color-bn-royal-50: #f7f8fe;--color-bn-royal-100: #eef1fe;--color-bn-royal-200: #d6dcfc;--color-bn-royal-300: #bdc6fa;--color-bn-royal-400: #8b9cf6;--color-bn-royal-500: #5971f2;--color-bn-royal-600: #5066da;--color-bn-royal-700: #4355b6;--color-bn-royal-800: #354491;--color-bn-royal-900: #2c3777;--color-bn-royal-DEFAULT: #5971f2;--color-bn-grape-50: #f6f4fb;--color-bn-grape-100: #eee9f7;--color-bn-grape-200: #d4c8ec;--color-bn-grape-300: #baa7e1;--color-bn-grape-400: #8766ca;--color-bn-grape-500: #5324b3;--color-bn-grape-600: #4b20a1;--color-bn-grape-700: #3e1b86;--color-bn-grape-800: #32166b;--color-bn-grape-900: #291258;--color-bn-grape-DEFAULT: #5324b3;--color-bn-roman-50: #faf6fe;--color-bn-roman-100: #f5eefd;--color-bn-roman-200: #e6d4f9;--color-bn-roman-300: #d7bbf5;--color-bn-roman-400: #b987ee;--color-bn-roman-500: #9b54e6;--color-bn-roman-600: #8c4ccf;--color-bn-roman-700: #743fad;--color-bn-roman-800: #5d328a;--color-bn-roman-900: #4c2971;--color-bn-roman-DEFAULT: #9b54e6;--color-bn-blush-50: #fff8ff;--color-bn-blush-100: #fff2ff;--color-bn-blush-200: #ffdeff;--color-bn-blush-300: #ffcbff;--color-bn-blush-400: #ffa3ff;--color-bn-blush-500: #ff7cff;--color-bn-blush-600: #e670e6;--color-bn-blush-700: #bf5dbf;--color-bn-blush-800: #994a99;--color-bn-blush-900: #7d3d7d;--color-bn-blush-DEFAULT: #ff7cff;--color-bn-strawberry-50: #fff5fa;--color-bn-strawberry-100: #ffebf5;--color-bn-strawberry-200: #ffcde6;--color-bn-strawberry-300: #ffafd7;--color-bn-strawberry-400: #ff72ba;--color-bn-strawberry-500: #ff369c;--color-bn-strawberry-600: #e6318c;--color-bn-strawberry-700: #bf2975;--color-bn-strawberry-800: #99205e;--color-bn-strawberry-900: #7d1a4c;--color-bn-strawberry-DEFAULT: #ff369c;--color-bn-ribbon-50: #fef3f6;--color-bn-ribbon-100: #fee7ee;--color-bn-ribbon-200: #fcc2d4;--color-bn-ribbon-300: #fa9eb9;--color-bn-ribbon-400: #f65585;--color-bn-ribbon-500: #f20c51;--color-bn-ribbon-600: #da0b49;--color-bn-ribbon-700: #b6093d;--color-bn-ribbon-800: #910731;--color-bn-ribbon-900: #770628;--color-bn-ribbon-DEFAULT: #f20c51;--color-bn-flamenco-50: #fff8f2;--color-bn-flamenco-100: #fff2e6;--color-bn-flamenco-200: #ffdebf;--color-bn-flamenco-300: #ffcb99;--color-bn-flamenco-400: #ffa34d;--color-bn-flamenco-500: #ff7c00;--color-bn-flamenco-600: #e67000;--color-bn-flamenco-700: #bf5d00;--color-bn-flamenco-800: #994a00;--color-bn-flamenco-900: #7d3d00;--color-bn-flamenco-DEFAULT: #ff7c00;--color-bn-sun-50: #fffdf5;--color-bn-sun-100: #fffaeb;--color-bn-sun-200: #fff4ce;--color-bn-sun-300: #ffedb0;--color-bn-sun-400: #ffdf75;--color-bn-sun-500: #ffd13a;--color-bn-sun-600: #e6bc34;--color-bn-sun-700: #bf9d2c;--color-bn-sun-800: #997d23;--color-bn-sun-900: #7d661c;--color-bn-sun-DEFAULT: #ffd13a;--color-bn-straw-50: #fffbf2;--color-bn-straw-100: #fff8e6;--color-bn-straw-200: #ffedbf;--color-bn-straw-300: #ffe299;--color-bn-straw-400: #ffcd4d;--color-bn-straw-500: #ffb700;--color-bn-straw-600: #e6a500;--color-bn-straw-700: #bf8900;--color-bn-straw-800: #996e00;--color-bn-straw-900: #7d5a00;--color-bn-straw-DEFAULT: #ffb700}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);--tw-ring-shadow: 0 0 rgba(0,0,0,0);--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);--tw-ring-shadow: 0 0 rgba(0,0,0,0);--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:1rem;padding-left:1rem}@media (min-width: 640px){.container{max-width:640px;padding-right:1rem;padding-left:1rem}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px;padding-right:2rem;padding-left:2rem}}@media (min-width: 1280px){.container{max-width:1280px;padding-right:3rem;padding-left:3rem}}@media (min-width: 1536px){.container{max-width:1536px;padding-right:3rem;padding-left:3rem}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);-webkit-text-decoration:underline;text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgba(0, 0, 0, .5);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding:.1428571em .3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-left:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-lg{font-size:1.125rem;line-height:1.7777778}.prose-lg :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.prose-lg :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.prose-lg :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.prose-lg :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.prose-lg :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.prose-lg :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.prose-lg :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.prose-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-lg :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;border-radius:.3125rem;padding:.2222222em .4444444em}.prose-lg :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-lg :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8666667em}.prose-lg :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.prose-lg :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.prose-lg :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.prose-lg :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.prose-lg :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6666667em;margin-bottom:.6666667em}.prose-lg :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4444444em}.prose-lg :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4444444em}.prose-lg :where(.prose-lg>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose-lg>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose-lg>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose-lg>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose-lg>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.prose-lg :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6666667em;padding-left:1.5555556em}.prose-lg :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.prose-lg :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.5}.prose-lg :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.prose-lg :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-lg :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-lg :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.75em}.prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-lg :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-lg :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.prose-lg :where(.prose-lg>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(.prose-lg>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-blue{--tw-prose-links: #2563eb;--tw-prose-invert-links: #3b82f6}.prose-oxford{--tw-prose-body: #1e293b;--tw-prose-headings: #001936;--tw-prose-lead: #00397a;--tw-prose-links: #0058be;--tw-prose-bold: #001936;--tw-prose-counters: #0058be;--tw-prose-bullets: #475569;--tw-prose-hr: #69afff;--tw-prose-quotes: #001936;--tw-prose-quote-borders: #69afff;--tw-prose-captions: #00397a;--tw-prose-code: #001936;--tw-prose-pre-code: #cfe5ff;--tw-prose-pre-bg: #001936;--tw-prose-th-borders: #69afff;--tw-prose-td-borders: #9ccaff;--tw-prose-invert-body: #9ccaff;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #69afff;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #3693ff;--tw-prose-invert-bullets: #0058be;--tw-prose-invert-hr: #00397a;--tw-prose-invert-quotes: #cfe5ff;--tw-prose-invert-quote-borders: #00397a;--tw-prose-invert-captions: #3693ff;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #69afff;--tw-prose-invert-pre-bg: rgba(0, 0, 0, .5);--tw-prose-invert-th-borders: #0058be;--tw-prose-invert-td-borders: #00397a}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-2{bottom:-.5rem}.-bottom-3{bottom:-.75rem}.-bottom-4{bottom:-1rem}.-top-1\/2{top:-50%}.-top-14{top:-3.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-full{top:100%}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.col-span-1{grid-column:span 1 / span 1}.float-left{float:left}.\!m-0{margin:0!important}.m-2{margin:.5rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.\!-mb-3{margin-bottom:-.75rem!important}.\!mb-2{margin-bottom:.5rem!important}.-mb-3{margin-bottom:-.75rem}.-ml-0{margin-left:-0px}.-ml-0\.5{margin-left:-.125rem}.-ml-1{margin-left:-.25rem}.-ml-2{margin-left:-.5rem}.-ml-4{margin-left:-1rem}.-ml-px{margin-left:-1px}.-mr-1{margin-right:-.25rem}.-mr-2{margin-right:-.5rem}.-mt-0{margin-top:-0px}.-mt-0\.5{margin-top:-.125rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.-mt-3{margin-top:-.75rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\[1px\]{margin-top:-1px}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-auto{margin-right:auto}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\[0\.33em\]{margin-top:.33em}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.grid{display:grid}.contents{display:contents}.\!hidden{display:none!important}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-24{height:6rem}.h-36{height:9rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-20{max-height:5rem}.max-h-60{max-height:15rem}.max-h-96{max-height:24rem}.max-h-\[75vh\]{max-height:75vh}.min-h-\[66vh\]{min-height:66vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-24{width:6rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[12ch\]{width:12ch}.w-\[6ch\]{width:6ch}.w-\[calc\(100\%\+2rem\)\]{width:calc(100% + 2rem)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.\!min-w-0{min-width:0px!important}.min-w-0{min-width:0px}.min-w-\[10ch\]{min-width:10ch}.min-w-\[12ch\]{min-width:12ch}.min-w-\[16ch\]{min-width:16ch}.min-w-\[18ch\]{min-width:18ch}.min-w-\[25ch\]{min-width:25ch}.min-w-\[50\%\]{min-width:50%}.min-w-\[8ch\]{min-width:8ch}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[1500px\]{max-width:1500px}.max-w-\[25ch\]{max-width:25ch}.max-w-\[28ch\]{max-width:28ch}.max-w-\[65ch\]{max-width:65ch}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.max-w-screen-md{max-width:768px}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(-50%,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\[80\%\]{--tw-translate-y: -80%;transform:translate(var(--tw-translate-x),-80%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[80\%\]{--tw-translate-y: 80%;transform:translate(var(--tw-translate-x),80%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),100%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(0) scaleY(0);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.25) scaleY(1.25);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.5) scaleY(1.5);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-not-allowed{cursor:not-allowed!important}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-manipulation{touch-action:manipulation}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-content-center{align-content:center;justify-content:center;place-content:center}.place-content-start{align-content:start;justify-content:start;place-content:start}.place-items-baseline{align-items:baseline;justify-items:baseline;place-items:baseline}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-0{row-gap:0px}.gap-y-0\.5{row-gap:.125rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.gap-y-4{row-gap:1rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * (1 - var(--tw-space-x-reverse)));margin-left:.25rem;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * (1 - var(--tw-space-x-reverse)));margin-left:1rem;margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * (1 - var(--tw-space-y-reverse)));margin-top:1rem;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * (1 - var(--tw-space-y-reverse)));margin-top:1.5rem;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 1}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:0px;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * (1 - var(--tw-divide-x-reverse)));border-left-width:1px;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * (1 - var(--tw-divide-y-reverse)));border-top-width:1px;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e5e7eb;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#d1d5db;border-color:rgba(209,213,219,var(--tw-divide-opacity))}.divide-slate-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e2e8f0;border-color:rgba(226,232,240,var(--tw-divide-opacity))}.divide-slate-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#cbd5e1;border-color:rgba(203,213,225,var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-center{align-self:center}.justify-self-start{justify-self:start}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.break-words{word-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-br{border-bottom-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.\!border-t-0{border-top-width:0px!important}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.\!border-slate-300{--tw-border-opacity: 1 !important;border-color:#cbd5e1!important;border-color:rgba(203,213,225,var(--tw-border-opacity))!important}.border-blue-200{--tw-border-opacity: 1;border-color:#bfdbfe;border-color:rgba(191,219,254,var(--tw-border-opacity))}.border-bn-flamenco-200{--tw-border-opacity: 1;border-color:#ffdebf;border-color:rgba(255,222,191,var(--tw-border-opacity))}.border-bn-flamenco-600{--tw-border-opacity: 1;border-color:#e67000;border-color:rgba(230,112,0,var(--tw-border-opacity))}.border-bn-ribbon-200{--tw-border-opacity: 1;border-color:#fcc2d4;border-color:rgba(252,194,212,var(--tw-border-opacity))}.border-bn-ribbon-300{--tw-border-opacity: 1;border-color:#fa9eb9;border-color:rgba(250,158,185,var(--tw-border-opacity))}.border-bn-ribbon-400{--tw-border-opacity: 1;border-color:#f65585;border-color:rgba(246,85,133,var(--tw-border-opacity))}.border-bn-ribbon-600{--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.border-bn-strawberry-300{--tw-border-opacity: 1;border-color:#ffafd7;border-color:rgba(255,175,215,var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity: 1;border-color:#e5e7eb;border-color:rgba(229,231,235,var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:#9ca3af;border-color:rgba(156,163,175,var(--tw-border-opacity))}.border-green-200{--tw-border-opacity: 1;border-color:#bbf7d0;border-color:rgba(187,247,208,var(--tw-border-opacity))}.border-green-400{--tw-border-opacity: 1;border-color:#4ade80;border-color:rgba(74,222,128,var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:#16a34a;border-color:rgba(22,163,74,var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:#15803d;border-color:rgba(21,128,61,var(--tw-border-opacity))}.border-oxford-300{--tw-border-opacity: 1;border-color:#69afff;border-color:rgba(105,175,255,var(--tw-border-opacity))}.border-oxford-500\/25{border-color:#0378ff40}.border-oxford-600{--tw-border-opacity: 1;border-color:#0058be;border-color:rgba(0,88,190,var(--tw-border-opacity))}.border-oxford-700{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.border-oxford-700\/95{border-color:#00397af2}.border-oxford\/25{border-color:#00214740}.border-red-200{--tw-border-opacity: 1;border-color:#fecaca;border-color:rgba(254,202,202,var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity: 1;border-color:#e2e8f0;border-color:rgba(226,232,240,var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:#cbd5e1;border-color:rgba(203,213,225,var(--tw-border-opacity))}.border-slate-400\/75{border-color:#94a3b8bf}.border-slate-500{--tw-border-opacity: 1;border-color:#64748b;border-color:rgba(100,116,139,var(--tw-border-opacity))}.border-white\/50{border-color:#ffffff80}.\!border-b-gray-800{--tw-border-opacity: 1 !important;border-bottom-color:#1f2937!important;border-bottom-color:rgba(31,41,55,var(--tw-border-opacity))!important}.border-b-bn-ribbon-200{--tw-border-opacity: 1;border-bottom-color:#fcc2d4;border-bottom-color:rgba(252,194,212,var(--tw-border-opacity))}.border-b-bn-ribbon-700{--tw-border-opacity: 1;border-bottom-color:#b6093d;border-bottom-color:rgba(182,9,61,var(--tw-border-opacity))}.border-b-oxford-700{--tw-border-opacity: 1;border-bottom-color:#00397a;border-bottom-color:rgba(0,57,122,var(--tw-border-opacity))}.border-b-slate-200{--tw-border-opacity: 1;border-bottom-color:#e2e8f0;border-bottom-color:rgba(226,232,240,var(--tw-border-opacity))}.border-b-slate-300{--tw-border-opacity: 1;border-bottom-color:#cbd5e1;border-bottom-color:rgba(203,213,225,var(--tw-border-opacity))}.border-l-bn-ribbon-600{--tw-border-opacity: 1;border-left-color:#da0b49;border-left-color:rgba(218,11,73,var(--tw-border-opacity))}.border-l-gray-300{--tw-border-opacity: 1;border-left-color:#d1d5db;border-left-color:rgba(209,213,219,var(--tw-border-opacity))}.border-l-oxford-200{--tw-border-opacity: 1;border-left-color:#9ccaff;border-left-color:rgba(156,202,255,var(--tw-border-opacity))}.border-l-slate-200{--tw-border-opacity: 1;border-left-color:#e2e8f0;border-left-color:rgba(226,232,240,var(--tw-border-opacity))}.border-r-slate-200{--tw-border-opacity: 1;border-right-color:#e2e8f0;border-right-color:rgba(226,232,240,var(--tw-border-opacity))}.border-t-oxford-600\/50{border-top-color:#0058be80}.border-t-slate-200{--tw-border-opacity: 1;border-top-color:#e2e8f0;border-top-color:rgba(226,232,240,var(--tw-border-opacity))}.border-t-slate-300{--tw-border-opacity: 1;border-top-color:#cbd5e1;border-top-color:rgba(203,213,225,var(--tw-border-opacity))}.\!bg-bn-ribbon-50{--tw-bg-opacity: 1 !important;background-color:#fef3f6!important;background-color:rgba(254,243,246,var(--tw-bg-opacity))!important}.\!bg-bn-sun-50{--tw-bg-opacity: 1 !important;background-color:#fffdf5!important;background-color:rgba(255,253,245,var(--tw-bg-opacity))!important}.\!bg-gray-700{--tw-bg-opacity: 1 !important;background-color:#374151!important;background-color:rgba(55,65,81,var(--tw-bg-opacity))!important}.\!bg-slate-300{--tw-bg-opacity: 1 !important;background-color:#cbd5e1!important;background-color:rgba(203,213,225,var(--tw-bg-opacity))!important}.bg-\[\#f8f8f8\]{--tw-bg-opacity: 1;background-color:#f8f8f8;background-color:rgba(248,248,248,var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:#bfdbfe;background-color:rgba(191,219,254,var(--tw-bg-opacity))}.bg-bn-blush-50{--tw-bg-opacity: 1;background-color:#fff8ff;background-color:rgba(255,248,255,var(--tw-bg-opacity))}.bg-bn-flamenco-200{--tw-bg-opacity: 1;background-color:#ffdebf;background-color:rgba(255,222,191,var(--tw-bg-opacity))}.bg-bn-flamenco-400{--tw-bg-opacity: 1;background-color:#ffa34d;background-color:rgba(255,163,77,var(--tw-bg-opacity))}.bg-bn-flamenco-600{--tw-bg-opacity: 1;background-color:#e67000;background-color:rgba(230,112,0,var(--tw-bg-opacity))}.bg-bn-ribbon-100{--tw-bg-opacity: 1;background-color:#fee7ee;background-color:rgba(254,231,238,var(--tw-bg-opacity))}.bg-bn-ribbon-100\/25{background-color:#fee7ee40}.bg-bn-ribbon-200{--tw-bg-opacity: 1;background-color:#fcc2d4;background-color:rgba(252,194,212,var(--tw-bg-opacity))}.bg-bn-ribbon-400{--tw-bg-opacity: 1;background-color:#f65585;background-color:rgba(246,85,133,var(--tw-bg-opacity))}.bg-bn-ribbon-50{--tw-bg-opacity: 1;background-color:#fef3f6;background-color:rgba(254,243,246,var(--tw-bg-opacity))}.bg-bn-ribbon-600{--tw-bg-opacity: 1;background-color:#da0b49;background-color:rgba(218,11,73,var(--tw-bg-opacity))}.bg-bn-roman-500{--tw-bg-opacity: 1;background-color:#9b54e6;background-color:rgba(155,84,230,var(--tw-bg-opacity))}.bg-bn-strawberry-200{--tw-bg-opacity: 1;background-color:#ffcde6;background-color:rgba(255,205,230,var(--tw-bg-opacity))}.bg-bn-sun-300{--tw-bg-opacity: 1;background-color:#ffedb0;background-color:rgba(255,237,176,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:#f3f4f6;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:#dcfce7;background-color:rgba(220,252,231,var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:#bbf7d0;background-color:rgba(187,247,208,var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:#22c55e;background-color:rgba(34,197,94,var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:#16a34a;background-color:rgba(22,163,74,var(--tw-bg-opacity))}.bg-oxford-100{--tw-bg-opacity: 1;background-color:#cfe5ff;background-color:rgba(207,229,255,var(--tw-bg-opacity))}.bg-oxford-400{--tw-bg-opacity: 1;background-color:#3693ff;background-color:rgba(54,147,255,var(--tw-bg-opacity))}.bg-oxford-50{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.bg-oxford-600{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.bg-oxford-800{--tw-bg-opacity: 1;background-color:#002147;background-color:rgba(0,33,71,var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:#fecaca;background-color:rgba(254,202,202,var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:#fef2f2;background-color:rgba(254,242,242,var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:#f1f5f9;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity: 1;background-color:#cbd5e1;background-color:rgba(203,213,225,var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:#f8fafc;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:#64748b;background-color:rgba(100,116,139,var(--tw-bg-opacity))}.bg-stone-500{--tw-bg-opacity: 1;background-color:#78716c;background-color:rgba(120,113,108,var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-oxford-200\/20{--tw-gradient-from: rgba(156, 202, 255, .2) var(--tw-gradient-from-position);--tw-gradient-to: rgba(156, 202, 255, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-bn-roman-200\/35{--tw-gradient-to: rgba(230, 212, 249, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(230, 212, 249, .35) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-bn-strawberry-200\/25{--tw-gradient-to: rgba(255, 205, 230, .25) var(--tw-gradient-to-position)}.fill-bn-ribbon-300{fill:#fa9eb9}.fill-gray-300{fill:#d1d5db}.fill-gray-500{fill:#6b7280}.fill-green-600{fill:#16a34a}.fill-green-700{fill:#15803d}.fill-oxford-300{fill:#69afff}.fill-red-700{fill:#b91c1c}.stroke-black{stroke:#000}.stroke-bn-ribbon-700{stroke:#b6093d}.stroke-current{stroke:currentColor}.stroke-green-600{stroke:#16a34a}.stroke-green-700{stroke:#15803d}.stroke-oxford-600{stroke:#0058be}.stroke-1{stroke-width:1}.stroke-2{stroke-width:2}.stroke-\[3\]{stroke-width:3}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.\!px-0{padding-left:0!important;padding-right:0!important}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.\!px-8{padding-left:2rem!important;padding-right:2rem!important}.\!py-0{padding-top:0!important;padding-bottom:0!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.\!py-1\.5{padding-top:.375rem!important;padding-bottom:.375rem!important}.\!py-4{padding-top:1rem!important;padding-bottom:1rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.\!pb-0{padding-bottom:0!important}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pl-16{padding-left:4rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-12{padding-top:3rem}.pt-14{padding-top:3.5rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\!text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.\!text-base{font-size:1rem!important;line-height:1.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.\!leading-snug{line-height:1.375!important}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.\!text-green-900{--tw-text-opacity: 1 !important;color:#14532d!important;color:rgba(20,83,45,var(--tw-text-opacity))!important}.\!text-slate-800{--tw-text-opacity: 1 !important;color:#1e293b!important;color:rgba(30,41,59,var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1;color:#000;color:rgba(0,0,0,var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:#1e40af;color:rgba(30,64,175,var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:#1e3a8a;color:rgba(30,58,138,var(--tw-text-opacity))}.text-bn-blush-600{--tw-text-opacity: 1;color:#e670e6;color:rgba(230,112,230,var(--tw-text-opacity))}.text-bn-egg-500{--tw-text-opacity: 1;color:#17d7e6;color:rgba(23,215,230,var(--tw-text-opacity))}.text-bn-flamenco-900{--tw-text-opacity: 1;color:#7d3d00;color:rgba(125,61,0,var(--tw-text-opacity))}.text-bn-ribbon-600{--tw-text-opacity: 1;color:#da0b49;color:rgba(218,11,73,var(--tw-text-opacity))}.text-bn-ribbon-700{--tw-text-opacity: 1;color:#b6093d;color:rgba(182,9,61,var(--tw-text-opacity))}.text-bn-ribbon-800{--tw-text-opacity: 1;color:#910731;color:rgba(145,7,49,var(--tw-text-opacity))}.text-bn-ribbon-900{--tw-text-opacity: 1;color:#770628;color:rgba(119,6,40,var(--tw-text-opacity))}.text-bn-strawberry-600{--tw-text-opacity: 1;color:#e6318c;color:rgba(230,49,140,var(--tw-text-opacity))}.text-bn-sun-800{--tw-text-opacity: 1;color:#997d23;color:rgba(153,125,35,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:#9ca3af;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:#4b5563;color:rgba(75,85,99,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:#374151;color:rgba(55,65,81,var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:#111827;color:rgba(17,24,39,var(--tw-text-opacity))}.text-gray-900\/10{color:#1118271a}.text-green-500{--tw-text-opacity: 1;color:#22c55e;color:rgba(34,197,94,var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:#15803d;color:rgba(21,128,61,var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:#166534;color:rgba(22,101,52,var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:#14532d;color:rgba(20,83,45,var(--tw-text-opacity))}.text-oxford{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.text-oxford-300{--tw-text-opacity: 1;color:#69afff;color:rgba(105,175,255,var(--tw-text-opacity))}.text-oxford-600{--tw-text-opacity: 1;color:#0058be;color:rgba(0,88,190,var(--tw-text-opacity))}.text-oxford-700{--tw-text-opacity: 1;color:#00397a;color:rgba(0,57,122,var(--tw-text-opacity))}.text-oxford-800{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.text-oxford-900{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.text-oxford\/25{color:#00214740}.text-red-500{--tw-text-opacity: 1;color:#ef4444;color:rgba(239,68,68,var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:#991b1b;color:rgba(153,27,27,var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:#7f1d1d;color:rgba(127,29,29,var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity: 1;color:#94a3b8;color:rgba(148,163,184,var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:#64748b;color:rgba(100,116,139,var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:#475569;color:rgba(71,85,105,var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity: 1;color:#334155;color:rgba(51,65,85,var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:#1e293b;color:rgba(30,41,59,var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity: 1;color:#0f172a;color:rgba(15,23,42,var(--tw-text-opacity))}.text-stone-700{--tw-text-opacity: 1;color:#44403c;color:rgba(68,64,60,var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.underline{text-decoration-line:underline}.\!decoration-transparent{text-decoration-color:transparent!important}.decoration-oxford-300{text-decoration-color:#69afff}.underline-offset-1{text-underline-offset:1px}.underline-offset-2{text-underline-offset:2px}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:#9ca3af;color:rgba(156,163,175,var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:#9ca3af;color:rgba(156,163,175,var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.\!shadow-none{--tw-shadow: 0 0 rgba(0,0,0,0) !important;--tw-shadow-colored: 0 0 rgba(0,0,0,0) !important;box-shadow:0 0 #0000,0 0 #0000,0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)!important}.shadow{--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 3px #0000001a,0 1px 2px -1px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,inset 0 2px 4px #0000000d;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);box-shadow:0 0 #0000,0 0 #0000,0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 2px #0000000d;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgba(0, 0, 0, var(--tw-ring-opacity))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.ring-opacity-60{--tw-ring-opacity: .6}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-oxford-400{--tw-ring-offset-color: #3693ff}.blur-3xl{--tw-blur: blur(64px);filter:blur(64px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-buttons{transition-property:background-color,box-shadow,color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-scale-opacity{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.placeholder\:text-slate-400::-moz-placeholder{--tw-text-opacity: 1;color:#94a3b8;color:rgba(148,163,184,var(--tw-text-opacity))}.placeholder\:text-slate-400::placeholder{--tw-text-opacity: 1;color:#94a3b8;color:rgba(148,163,184,var(--tw-text-opacity))}.placeholder\:text-white::-moz-placeholder{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.placeholder\:text-white::placeholder{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.backdrop\:bg-black\/25::backdrop{background-color:#00000040}.backdrop\:bg-slate-900\/25::backdrop{background-color:#0f172a40}.backdrop\:backdrop-blur::backdrop{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:blur(8px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:blur(8px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop\:backdrop-blur-sm::backdrop{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-bottom-1:before{content:var(--tw-content);bottom:-.25rem}.before\:-top-1:before{content:var(--tw-content);top:-.25rem}.before\:-top-5:before{content:var(--tw-content);top:-1.25rem}.before\:bottom-0:before{content:var(--tw-content);bottom:0}.before\:left-0:before{content:var(--tw-content);left:0}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:right-0:before{content:var(--tw-content);right:0}.before\:top-0:before{content:var(--tw-content);top:0}.before\:z-0:before{content:var(--tw-content);z-index:0}.before\:block:before{content:var(--tw-content);display:block}.before\:inline:before{content:var(--tw-content);display:inline}.before\:hidden:before{content:var(--tw-content);display:none}.before\:h-1:before{content:var(--tw-content);height:.25rem}.before\:h-3:before{content:var(--tw-content);height:.75rem}.before\:h-full:before{content:var(--tw-content);height:100%}.before\:w-1:before{content:var(--tw-content);width:.25rem}.before\:w-3:before{content:var(--tw-content);width:.75rem}.before\:w-full:before{content:var(--tw-content);width:100%}.before\:-translate-x-1:before{content:var(--tw-content);--tw-translate-x: -.25rem;transform:translate(-.25rem,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-x-1\/2:before{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(-50%,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rotate-45:before{content:var(--tw-content);--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(45deg) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:bg-bn-ribbon-200:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#fcc2d4;background-color:rgba(252,194,212,var(--tw-bg-opacity))}.before\:bg-bn-strawberry-300:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#ffafd7;background-color:rgba(255,175,215,var(--tw-bg-opacity))}.before\:bg-gradient-to-r:before{content:var(--tw-content);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.before\:from-oxford-600\/60:before{content:var(--tw-content);--tw-gradient-from: rgba(0, 88, 190, .6) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 88, 190, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.before\:via-bn-roman-600\/70:before{content:var(--tw-content);--tw-gradient-to: rgba(140, 76, 207, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(140, 76, 207, .7) var(--tw-gradient-via-position), var(--tw-gradient-to)}.before\:to-bn-strawberry-600\/60:before{content:var(--tw-content);--tw-gradient-to: rgba(230, 49, 140, .6) var(--tw-gradient-to-position)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-top-3:after{content:var(--tw-content);top:-.75rem}.after\:bottom-1:after{content:var(--tw-content);bottom:.25rem}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:left-2:after{content:var(--tw-content);left:.5rem}.after\:z-0:after{content:var(--tw-content);z-index:0}.after\:ml-1:after{content:var(--tw-content);margin-left:.25rem}.after\:mt-0:after{content:var(--tw-content);margin-top:0}.after\:mt-0\.5:after{content:var(--tw-content);margin-top:.125rem}.after\:block:after{content:var(--tw-content);display:block}.after\:h-1:after{content:var(--tw-content);height:.25rem}.after\:h-\[2px\]:after{content:var(--tw-content);height:2px}.after\:h-full:after{content:var(--tw-content);height:100%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(-50%,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:bg-bn-strawberry-300:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#ffafd7;background-color:rgba(255,175,215,var(--tw-bg-opacity))}.after\:bg-transparent:after{content:var(--tw-content);background-color:transparent}.after\:bg-gradient-to-r:after{content:var(--tw-content);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.after\:from-oxford-600\/60:after{content:var(--tw-content);--tw-gradient-from: rgba(0, 88, 190, .6) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 88, 190, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.after\:via-bn-roman-600\/70:after{content:var(--tw-content);--tw-gradient-to: rgba(140, 76, 207, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(140, 76, 207, .7) var(--tw-gradient-via-position), var(--tw-gradient-to)}.after\:to-bn-strawberry-600\/60:after{content:var(--tw-content);--tw-gradient-to: rgba(230, 49, 140, .6) var(--tw-gradient-to-position)}.after\:text-sm:after{content:var(--tw-content);font-size:.875rem;line-height:1.25rem}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'↗\'\]:after{--tw-content: "↗";content:"↗";content:var(--tw-content)}.even\:bg-gray-50:nth-child(2n){--tw-bg-opacity: 1;background-color:#f9fafb;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.even\:bg-slate-50:nth-child(2n){--tw-bg-opacity: 1;background-color:#f8fafc;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.open\:bg-white[open]{--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.checked\:border-oxford-600:checked{--tw-border-opacity: 1;border-color:#0058be;border-color:rgba(0,88,190,var(--tw-border-opacity))}.checked\:bg-oxford-600:checked{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.invalid\:border-bn-ribbon-600:invalid{--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.invalid\:ring-1:invalid{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.invalid\:ring-bn-ribbon-600:invalid{--tw-ring-opacity: 1;--tw-ring-color: rgba(218, 11, 73, var(--tw-ring-opacity))}.focus-within\:bg-oxford-700:focus-within{--tw-bg-opacity: 1;background-color:#00397a;background-color:rgba(0,57,122,var(--tw-bg-opacity))}.focus-within\:text-oxford-50:focus-within{--tw-text-opacity: 1;color:#f1f7ff;color:rgba(241,247,255,var(--tw-text-opacity))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.1) scaleY(1.1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-bn-flamenco-700:hover{--tw-border-opacity: 1;border-color:#bf5d00;border-color:rgba(191,93,0,var(--tw-border-opacity))}.hover\:border-bn-ribbon-700:hover{--tw-border-opacity: 1;border-color:#b6093d;border-color:rgba(182,9,61,var(--tw-border-opacity))}.hover\:border-bn-strawberry-400:hover{--tw-border-opacity: 1;border-color:#ff72ba;border-color:rgba(255,114,186,var(--tw-border-opacity))}.hover\:border-bn-strawberry-500:hover{--tw-border-opacity: 1;border-color:#ff369c;border-color:rgba(255,54,156,var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity: 1;border-color:#15803d;border-color:rgba(21,128,61,var(--tw-border-opacity))}.hover\:border-oxford-700:hover{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.hover\:border-slate-600:hover{--tw-border-opacity: 1;border-color:#475569;border-color:rgba(71,85,105,var(--tw-border-opacity))}.hover\:bg-bn-flamenco-700:hover{--tw-bg-opacity: 1;background-color:#bf5d00;background-color:rgba(191,93,0,var(--tw-bg-opacity))}.hover\:bg-bn-ribbon-100:hover{--tw-bg-opacity: 1;background-color:#fee7ee;background-color:rgba(254,231,238,var(--tw-bg-opacity))}.hover\:bg-bn-ribbon-700:hover{--tw-bg-opacity: 1;background-color:#b6093d;background-color:rgba(182,9,61,var(--tw-bg-opacity))}.hover\:bg-bn-strawberry-100:hover{--tw-bg-opacity: 1;background-color:#ffebf5;background-color:rgba(255,235,245,var(--tw-bg-opacity))}.hover\:bg-bn-strawberry-50:hover{--tw-bg-opacity: 1;background-color:#fff5fa;background-color:rgba(255,245,250,var(--tw-bg-opacity))}.hover\:bg-current:hover{background-color:currentColor}.hover\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:#dcfce7;background-color:rgba(220,252,231,var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:#15803d;background-color:rgba(21,128,61,var(--tw-bg-opacity))}.hover\:bg-oxford-100:hover{--tw-bg-opacity: 1;background-color:#cfe5ff;background-color:rgba(207,229,255,var(--tw-bg-opacity))}.hover\:bg-oxford-50:hover{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.hover\:bg-oxford-700:hover{--tw-bg-opacity: 1;background-color:#00397a;background-color:rgba(0,57,122,var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:#475569;background-color:rgba(71,85,105,var(--tw-bg-opacity))}.hover\:bg-white\/\[0\.12\]:hover{background-color:#ffffff1f}.hover\:fill-white:hover{fill:#fff}.hover\:text-bn-roman-700:hover{--tw-text-opacity: 1;color:#743fad;color:rgba(116,63,173,var(--tw-text-opacity))}.hover\:text-bn-strawberry-700:hover{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.hover\:text-oxford:hover{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.hover\:text-oxford-50:hover{--tw-text-opacity: 1;color:#f1f7ff;color:rgba(241,247,255,var(--tw-text-opacity))}.hover\:text-oxford-500:hover{--tw-text-opacity: 1;color:#0378ff;color:rgba(3,120,255,var(--tw-text-opacity))}.hover\:text-oxford-700:hover{--tw-text-opacity: 1;color:#00397a;color:rgba(0,57,122,var(--tw-text-opacity))}.hover\:text-oxford-900:hover{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.hover\:text-slate-500:hover{--tw-text-opacity: 1;color:#64748b;color:rgba(100,116,139,var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:decoration-transparent:hover{text-decoration-color:transparent}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.before\:hover\:left-0:hover:before{content:var(--tw-content);left:0}.before\:hover\:w-full:hover:before{content:var(--tw-content);width:100%}.before\:hover\:translate-x-0:hover:before{content:var(--tw-content);--tw-translate-x: 0px;transform:translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:hover\:opacity-100:hover:before{content:var(--tw-content);opacity:1}.after\:hover\:w-11\/12:hover:after{content:var(--tw-content);width:91.666667%}.after\:hover\:opacity-100:hover:after{content:var(--tw-content);opacity:1}.focus\:not-sr-only:focus{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-2:focus{left:.5rem}.focus\:top-2:focus{top:.5rem}.focus\:z-50:focus{z-index:50}.focus\:scale-105:focus{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:cursor-text:focus{cursor:text}.focus\:border-bn-flamenco-700:focus{--tw-border-opacity: 1;border-color:#bf5d00;border-color:rgba(191,93,0,var(--tw-border-opacity))}.focus\:border-bn-ribbon-700:focus{--tw-border-opacity: 1;border-color:#b6093d;border-color:rgba(182,9,61,var(--tw-border-opacity))}.focus\:border-bn-strawberry-400:focus{--tw-border-opacity: 1;border-color:#ff72ba;border-color:rgba(255,114,186,var(--tw-border-opacity))}.focus\:border-bn-strawberry-500:focus{--tw-border-opacity: 1;border-color:#ff369c;border-color:rgba(255,54,156,var(--tw-border-opacity))}.focus\:border-green-700:focus{--tw-border-opacity: 1;border-color:#15803d;border-color:rgba(21,128,61,var(--tw-border-opacity))}.focus\:border-oxford-500:focus{--tw-border-opacity: 1;border-color:#0378ff;border-color:rgba(3,120,255,var(--tw-border-opacity))}.focus\:border-oxford-700:focus{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.focus\:border-slate-600:focus{--tw-border-opacity: 1;border-color:#475569;border-color:rgba(71,85,105,var(--tw-border-opacity))}.focus\:bg-bn-flamenco-700:focus{--tw-bg-opacity: 1;background-color:#bf5d00;background-color:rgba(191,93,0,var(--tw-bg-opacity))}.focus\:bg-bn-ribbon-100:focus{--tw-bg-opacity: 1;background-color:#fee7ee;background-color:rgba(254,231,238,var(--tw-bg-opacity))}.focus\:bg-bn-ribbon-700:focus{--tw-bg-opacity: 1;background-color:#b6093d;background-color:rgba(182,9,61,var(--tw-bg-opacity))}.focus\:bg-bn-strawberry-100:focus{--tw-bg-opacity: 1;background-color:#ffebf5;background-color:rgba(255,235,245,var(--tw-bg-opacity))}.focus\:bg-bn-strawberry-50:focus{--tw-bg-opacity: 1;background-color:#fff5fa;background-color:rgba(255,245,250,var(--tw-bg-opacity))}.focus\:bg-bn-sun-300:focus{--tw-bg-opacity: 1;background-color:#ffedb0;background-color:rgba(255,237,176,var(--tw-bg-opacity))}.focus\:bg-green-100:focus{--tw-bg-opacity: 1;background-color:#dcfce7;background-color:rgba(220,252,231,var(--tw-bg-opacity))}.focus\:bg-green-700:focus{--tw-bg-opacity: 1;background-color:#15803d;background-color:rgba(21,128,61,var(--tw-bg-opacity))}.focus\:bg-oxford-100:focus{--tw-bg-opacity: 1;background-color:#cfe5ff;background-color:rgba(207,229,255,var(--tw-bg-opacity))}.focus\:bg-oxford-50:focus{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.focus\:bg-oxford-600:focus{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.focus\:bg-oxford-700:focus{--tw-bg-opacity: 1;background-color:#00397a;background-color:rgba(0,57,122,var(--tw-bg-opacity))}.focus\:bg-slate-200:focus{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.focus\:bg-slate-600:focus{--tw-bg-opacity: 1;background-color:#475569;background-color:rgba(71,85,105,var(--tw-bg-opacity))}.focus\:px-4:focus{padding-left:1rem;padding-right:1rem}.focus\:py-2:focus{padding-top:.5rem;padding-bottom:.5rem}.focus\:text-bn-strawberry-600:focus{--tw-text-opacity: 1;color:#e6318c;color:rgba(230,49,140,var(--tw-text-opacity))}.focus\:text-bn-strawberry-700:focus{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.focus\:text-oxford:focus{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.focus\:text-oxford-900:focus{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.focus\:no-underline:focus{text-decoration-line:none}.focus\:decoration-transparent:focus{text-decoration-color:transparent}.focus\:shadow-lg:focus{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-offset-0:focus{outline-offset:0px}.focus\:outline-oxford-500:focus{outline-color:#0378ff}.focus\:outline-yellow-300:focus{outline-color:#fde047}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-bn-flamenco-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 124, 0, var(--tw-ring-opacity))}.focus\:ring-bn-ribbon-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(246, 85, 133, var(--tw-ring-opacity))}.focus\:ring-bn-ribbon-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(242, 12, 81, var(--tw-ring-opacity))}.focus\:ring-bn-sun:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 209, 58, var(--tw-ring-opacity))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(34, 197, 94, var(--tw-ring-opacity))}.focus\:ring-oxford-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(3, 120, 255, var(--tw-ring-opacity))}.focus\:ring-slate-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(100, 116, 139, var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-bn-strawberry-50:focus{--tw-ring-offset-color: #fff5fa}.focus\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.focus-visible\:border-oxford-500:focus-visible{--tw-border-opacity: 1;border-color:#0378ff;border-color:rgba(3,120,255,var(--tw-border-opacity))}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus-visible\:ring-white:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-orange-300:focus-visible{--tw-ring-offset-color: #fdba74}.group[open] .group-open\:inline-block{display:inline-block}.group[open] .group-open\:inline{display:inline}.group[open] .group-open\:flex{display:flex}.group[open] .group-open\:inline-flex{display:inline-flex}.group[open] .group-open\:hidden{display:none}.group[open] .group-open\:border-b{border-bottom-width:1px}.group:hover .group-hover\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-oxford-700{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.group:hover .group-hover\:bg-oxford-50{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.group:hover .group-hover\:text-bn-strawberry-700{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.group:hover .group-hover\:text-oxford-600{--tw-text-opacity: 1;color:#0058be;color:rgba(0,88,190,var(--tw-text-opacity))}.group:hover .group-hover\:text-oxford-900{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:checked\:border-oxford-600:checked{--tw-border-opacity: 1;border-color:#0058be;border-color:rgba(0,88,190,var(--tw-border-opacity))}.group:hover .group-hover\:checked\:bg-oxford-600:checked{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.group:focus .group-focus\:text-bn-strawberry-700{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.group:focus .group-focus\:text-oxford-900{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}@media (min-width: 640px){.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:col-span-3{grid-column:span 3 / span 3}.sm\:col-start-2{grid-column-start:2}.sm\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mb-0{margin-bottom:0}.sm\:mb-12{margin-bottom:3rem}.sm\:ml-0{margin-left:0}.sm\:ml-6{margin-left:1.5rem}.sm\:ml-auto{margin-left:auto}.sm\:mt-0{margin-top:0}.sm\:mt-2{margin-top:.5rem}.sm\:mt-20{margin-top:5rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:max-w-\[50\%\]{max-width:50%}.sm\:max-w-\[66\%\]{max-width:66%}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-row-reverse{flex-direction:row-reverse}.sm\:flex-nowrap{flex-wrap:nowrap}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-center{justify-content:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-0{gap:0px}.sm\:gap-3{gap:.75rem}.sm\:gap-4{gap:1rem}.sm\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.sm\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * (1 - var(--tw-space-x-reverse)));margin-left:1.25rem;margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * (1 - var(--tw-space-y-reverse)));margin-top:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0;margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:0px;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * (1 - var(--tw-divide-x-reverse)));border-left-width:1px;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * (1 - var(--tw-divide-y-reverse)));border-top-width:1px;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.sm\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * (1 - var(--tw-divide-y-reverse)));border-top-width:0px;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.sm\:divide-slate-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e2e8f0;border-color:rgba(226,232,240,var(--tw-divide-opacity))}.sm\:rounded-none{border-radius:0}.sm\:rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.sm\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.sm\:border-x-0{border-left-width:0px;border-right-width:0px}.sm\:border-l-0{border-left-width:0px}.sm\:border-l-2{border-left-width:2px}.sm\:border-slate-300{--tw-border-opacity: 1;border-color:#cbd5e1;border-color:rgba(203,213,225,var(--tw-border-opacity))}.sm\:bg-bn-blush-50{--tw-bg-opacity: 1;background-color:#fff8ff;background-color:rgba(255,248,255,var(--tw-bg-opacity))}.sm\:bg-transparent{background-color:transparent}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\:py-20{padding-top:5rem;padding-bottom:5rem}.sm\:py-24{padding-top:6rem;padding-bottom:6rem}.sm\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\:py-32{padding-top:8rem;padding-bottom:8rem}.sm\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pl-0{padding-left:0}.sm\:pl-4{padding-left:1rem}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-6xl{font-size:3.75rem;line-height:1}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:font-semibold{font-weight:600}}@media (min-width: 768px){.md\:sticky{position:sticky}.md\:top-2{top:.5rem}.md\:col-span-1{grid-column:span 1 / span 1}.md\:col-span-2{grid-column:span 2 / span 2}.md\:col-span-3{grid-column:span 3 / span 3}.md\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.md\:-my-5{margin-top:-1.25rem;margin-bottom:-1.25rem}.md\:\!-mb-5{margin-bottom:-1.25rem!important}.md\:-mb-5{margin-bottom:-1.25rem}.md\:-mt-9{margin-top:-2.25rem}.md\:mb-1{margin-bottom:.25rem}.md\:ml-2{margin-left:.5rem}.md\:ml-3{margin-left:.75rem}.md\:ml-5{margin-left:1.25rem}.md\:mt-0{margin-top:0}.md\:mt-8{margin-top:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-full{height:100%}.md\:max-h-screen{max-height:100vh}.md\:w-\[calc\(100\%\+3rem\)\]{width:calc(100% + 3rem)}.md\:flex-grow{flex-grow:1}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-wrap{flex-wrap:wrap}.md\:flex-nowrap{flex-wrap:nowrap}.md\:place-items-center{align-items:center;justify-items:center;place-items:center}.md\:items-start{align-items:flex-start}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-6{gap:1.5rem}.md\:gap-y-2{row-gap:.5rem}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * (1 - var(--tw-space-x-reverse)));margin-left:1.25rem;margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * (1 - var(--tw-space-y-reverse)));margin-top:1.5rem;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.md\:overflow-y-auto{overflow-y:auto}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-0{padding-top:0;padding-bottom:0}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.md\:pb-6{padding-bottom:1.5rem}.md\:pt-0{padding-top:0}.md\:pt-6{padding-top:1.5rem}.md\:text-left{text-align:left}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:odd\:bg-slate-50:nth-child(odd){--tw-bg-opacity: 1;background-color:#f8fafc;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.md\:even\:bg-white:nth-child(2n){--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity))}}@media (min-width: 1024px){.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:col-span-1{grid-column:span 1 / span 1}.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:col-span-3{grid-column:span 3 / span 3}.lg\:col-span-full{grid-column:1 / -1}.lg\:col-start-1{grid-column-start:1}.lg\:col-start-2{grid-column-start:2}.lg\:col-start-3{grid-column-start:3}.lg\:col-start-auto{grid-column-start:auto}.lg\:row-start-2{grid-row-start:2}.lg\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:mx-6{margin-left:1.5rem;margin-right:1.5rem}.lg\:-ml-2{margin-left:-.5rem}.lg\:ml-4{margin-left:1rem}.lg\:mr-auto{margin-right:auto}.lg\:mt-24{margin-top:6rem}.lg\:max-w-4xl{max-width:56rem}.lg\:max-w-none{max-width:none}.lg\:grid-flow-col-dense{grid-auto-flow:column dense}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-wrap{flex-wrap:wrap}.lg\:items-start{align-items:flex-start}.lg\:justify-start{justify-content:flex-start}.lg\:justify-between{justify-content:space-between}.lg\:gap-y-1{row-gap:.25rem}.lg\:gap-y-16{row-gap:4rem}.lg\:justify-self-end{justify-self:end}.lg\:p-2{padding:.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-32{padding-top:8rem;padding-bottom:8rem}.lg\:text-left{text-align:left}.lg\:text-center{text-align:center}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 1280px){.xl\:col-span-2{grid-column:span 2 / span 2}.xl\:col-span-4{grid-column:span 4 / span 4}.xl\:col-span-6{grid-column:span 6 / span 6}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-2{grid-column-start:2}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:mx-8{margin-left:2rem;margin-right:2rem}.xl\:max-w-screen-xl{max-width:1280px}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}.\[\&\:\:-moz-progress-bar\]\:bg-oxford-200::-moz-progress-bar{--tw-bg-opacity: 1;background-color:#9ccaff;background-color:rgba(156,202,255,var(--tw-bg-opacity))}.\[\&\:\:-webkit-progress-bar\]\:rounded-lg::-webkit-progress-bar{border-radius:.5rem}.\[\&\:\:-webkit-progress-bar\]\:bg-slate-200::-webkit-progress-bar{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.\[\&\:\:-webkit-progress-value\]\:rounded-l-lg::-webkit-progress-value{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.\[\&\:\:-webkit-progress-value\]\:bg-oxford-200::-webkit-progress-value{--tw-bg-opacity: 1;background-color:#9ccaff;background-color:rgba(156,202,255,var(--tw-bg-opacity))}.\[\&\:not\(\:-moz-placeholder-shown\)\:not\(\:focus\)\]\:invalid\:border-bn-ribbon-600:invalid:not(:-moz-placeholder-shown):not(:focus){--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.\[\&\:not\(\:placeholder-shown\)\:not\(\:focus\)\]\:invalid\:border-bn-ribbon-600:invalid:not(:placeholder-shown):not(:focus){--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.\[\&\:not\(\:-moz-placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-1:invalid:not(:-moz-placeholder-shown):not(:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.\[\&\:not\(\:placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-1:invalid:not(:placeholder-shown):not(:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.\[\&\:not\(\:-moz-placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-bn-ribbon-600:invalid:not(:-moz-placeholder-shown):not(:focus){--tw-ring-opacity: 1;--tw-ring-color: rgba(218, 11, 73, var(--tw-ring-opacity))}.\[\&\:not\(\:placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-bn-ribbon-600:invalid:not(:placeholder-shown):not(:focus){--tw-ring-opacity: 1;--tw-ring-color: rgba(218, 11, 73, var(--tw-ring-opacity))}.\[\&_a\:hover\]\:text-oxford-900 a:hover{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.\[\&_a\:hover\]\:underline a:hover{text-decoration-line:underline}.\[\&_a\]\:font-semibold a{font-weight:600}.\[\&_a\]\:text-oxford-600 a{--tw-text-opacity: 1;color:#0058be;color:rgba(0,88,190,var(--tw-text-opacity))}.\[\&_h1\]\:hidden h1{display:none}.\[\&_section\+section\]\:mt-24 section+section{margin-top:6rem}.\[\&_section\+section\]\:border-t section+section{border-top-width:1px}.\[\&_section\+section\]\:pt-24 section+section{padding-top:6rem}.\[\&_section\>h2\]\:mt-0 section>h2{margin-top:0}.\[\&_ul_li\]\:ml-4 ul li{margin-left:1rem}.\[\&_ul_li\]\:list-\[circle\] ul li{list-style-type:circle} diff --git a/assets/dist/assets/base-kC8UvNM3.css b/assets/dist/assets/base-kC8UvNM3.css new file mode 100644 index 00000000..8547733e --- /dev/null +++ b/assets/dist/assets/base-kC8UvNM3.css @@ -0,0 +1 @@ +@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/static/assets/public-sans-vietnamese-400-normal-fzCEYZwl.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-400-normal-BwEUXHEY.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/static/assets/public-sans-latin-ext-400-normal-L5ZQyZX_.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-400-normal-BwKz5AeH.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/static/assets/public-sans-latin-400-normal-D4F9yfFi.woff2) format("woff2"),url(/static/assets/public-sans-latin-400-normal-D4vgG6SW.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/static/assets/public-sans-vietnamese-500-normal-sPpfk_yB.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-500-normal-BKNWXH7D.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/static/assets/public-sans-latin-ext-500-normal-DP9Whp7X.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-500-normal-DC3-YAa0.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/static/assets/public-sans-latin-500-normal-ChZcBEnJ.woff2) format("woff2"),url(/static/assets/public-sans-latin-500-normal-DCQow-rA.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/static/assets/public-sans-vietnamese-600-normal-BoVp2IRl.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-600-normal-CCLjVCWZ.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/static/assets/public-sans-latin-ext-600-normal-BOqTAvMD.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-600-normal-WBZG7A5n.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/static/assets/public-sans-latin-600-normal-Ck6TyfRI.woff2) format("woff2"),url(/static/assets/public-sans-latin-600-normal-BX0BwxVl.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/static/assets/public-sans-vietnamese-700-normal-Cjcf1M5d.woff2) format("woff2"),url(/static/assets/public-sans-vietnamese-700-normal-Czg5uTnZ.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/static/assets/public-sans-latin-ext-700-normal-DQeElHWA.woff2) format("woff2"),url(/static/assets/public-sans-latin-ext-700-normal-BPjagB3u.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/static/assets/public-sans-latin-700-normal-CGjRhW-d.woff2) format("woff2"),url(/static/assets/public-sans-latin-700-normal-DFbs-ESy.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.preload *{transition:none!important;animation-duration:1ms!important}summary::-webkit-details-marker{display:none}.break-words{word-break:break-word;word-wrap:break-word}[hidden],[x-cloak]{display:none!important}.alert{--alert-background: white;--alert-icon-color: var(--color-slate-400);--alert-title-color: var(--color-slate-900);--alert-text-color: var(--color-slate-700);--alert-hover-color: var(--color-slate-600);position:relative;border-radius:.5rem;padding:1rem 1.5rem 1rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 2px rgba(0, 0, 0, .1)) drop-shadow(0 1px 1px rgba(0, 0, 0, .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);background-color:#fff;background-color:var(--alert-background)}.alert--dismissible{padding-right:2rem}.alert__container{display:flex;gap:.75rem}.alert__icon{margin-top:.125rem;height:1.5rem;width:1.5rem;flex-shrink:0;color:var(--alert-icon-color)}.alert__title{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;letter-spacing:-.025em;color:var(--alert-title-color)}.alert__text{color:var(--alert-text-color)}.alert__dismiss{position:absolute;right:.5rem;top:.5rem;color:var(--alert-text-color)}.alert__dismiss-icon{height:1.5rem;width:1.5rem}.alert__dismiss-icon:hover{color:var(--alert-hover-color)}.alert--warning{--alert-background: var(--color-bn-flamenco-100);--alert-icon-color: var(--color-bn-flamenco-400);--alert-title-color: var(--color-bn-flamenco-900);--alert-text-color: var(--color-bn-flamenco-800);--alert-hover-color: var(--color-bn-flamenco-600)}.alert--success{--alert-background: var(--color-green-100);--alert-icon-color: var(--color-green-600);--alert-title-color: var(--color-green-900);--alert-text-color: var(--color-green-700);--alert-hover-color: var(--color-green-600)}.alert--danger{--alert-background: var(--color-bn-ribbon-100);--alert-icon-color: var(--color-bn-ribbon-400);--alert-title-color: var(--color-bn-ribbon-900);--alert-text-color: var(--color-bn-ribbon-800);--alert-hover-color: var(--color-bn-ribbon-600)}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Public Sans,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 rgba(0,0,0,0)}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:0 0 #fff,0 0 0 1px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-image:initial;background-position:0 0;background-position:initial;background-repeat:repeat;background-repeat:initial;background-size:auto auto;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:inherit;print-color-adjust:inherit}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 rgba(0,0,0,0)}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:0 0 0 2px #fff,0 0 0 4px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:transparent none repeat 0 0 / auto auto padding-box border-box scroll;background:initial;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:inherit;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}:root{--color-inherit: inherit;--color-current: currentColor;--color-transparent: transparent;--color-black: #000;--color-white: #fff;--color-slate-50: #f8fafc;--color-slate-100: #f1f5f9;--color-slate-200: #e2e8f0;--color-slate-300: #cbd5e1;--color-slate-400: #94a3b8;--color-slate-500: #64748b;--color-slate-600: #475569;--color-slate-700: #334155;--color-slate-800: #1e293b;--color-slate-900: #0f172a;--color-slate-950: #020617;--color-gray-50: #f9fafb;--color-gray-100: #f3f4f6;--color-gray-200: #e5e7eb;--color-gray-300: #d1d5db;--color-gray-400: #9ca3af;--color-gray-500: #6b7280;--color-gray-600: #4b5563;--color-gray-700: #374151;--color-gray-800: #1f2937;--color-gray-900: #111827;--color-gray-950: #030712;--color-zinc-50: #fafafa;--color-zinc-100: #f4f4f5;--color-zinc-200: #e4e4e7;--color-zinc-300: #d4d4d8;--color-zinc-400: #a1a1aa;--color-zinc-500: #71717a;--color-zinc-600: #52525b;--color-zinc-700: #3f3f46;--color-zinc-800: #27272a;--color-zinc-900: #18181b;--color-zinc-950: #09090b;--color-neutral-50: #fafafa;--color-neutral-100: #f5f5f5;--color-neutral-200: #e5e5e5;--color-neutral-300: #d4d4d4;--color-neutral-400: #a3a3a3;--color-neutral-500: #737373;--color-neutral-600: #525252;--color-neutral-700: #404040;--color-neutral-800: #262626;--color-neutral-900: #171717;--color-neutral-950: #0a0a0a;--color-stone-50: #fafaf9;--color-stone-100: #f5f5f4;--color-stone-200: #e7e5e4;--color-stone-300: #d6d3d1;--color-stone-400: #a8a29e;--color-stone-500: #78716c;--color-stone-600: #57534e;--color-stone-700: #44403c;--color-stone-800: #292524;--color-stone-900: #1c1917;--color-stone-950: #0c0a09;--color-red-50: #fef2f2;--color-red-100: #fee2e2;--color-red-200: #fecaca;--color-red-300: #fca5a5;--color-red-400: #f87171;--color-red-500: #ef4444;--color-red-600: #dc2626;--color-red-700: #b91c1c;--color-red-800: #991b1b;--color-red-900: #7f1d1d;--color-red-950: #450a0a;--color-orange-50: #fff7ed;--color-orange-100: #ffedd5;--color-orange-200: #fed7aa;--color-orange-300: #fdba74;--color-orange-400: #fb923c;--color-orange-500: #f97316;--color-orange-600: #ea580c;--color-orange-700: #c2410c;--color-orange-800: #9a3412;--color-orange-900: #7c2d12;--color-orange-950: #431407;--color-amber-50: #fffbeb;--color-amber-100: #fef3c7;--color-amber-200: #fde68a;--color-amber-300: #fcd34d;--color-amber-400: #fbbf24;--color-amber-500: #f59e0b;--color-amber-600: #d97706;--color-amber-700: #b45309;--color-amber-800: #92400e;--color-amber-900: #78350f;--color-amber-950: #451a03;--color-yellow-50: #fefce8;--color-yellow-100: #fef9c3;--color-yellow-200: #fef08a;--color-yellow-300: #fde047;--color-yellow-400: #facc15;--color-yellow-500: #eab308;--color-yellow-600: #ca8a04;--color-yellow-700: #a16207;--color-yellow-800: #854d0e;--color-yellow-900: #713f12;--color-yellow-950: #422006;--color-lime-50: #f7fee7;--color-lime-100: #ecfccb;--color-lime-200: #d9f99d;--color-lime-300: #bef264;--color-lime-400: #a3e635;--color-lime-500: #84cc16;--color-lime-600: #65a30d;--color-lime-700: #4d7c0f;--color-lime-800: #3f6212;--color-lime-900: #365314;--color-lime-950: #1a2e05;--color-green-50: #f0fdf4;--color-green-100: #dcfce7;--color-green-200: #bbf7d0;--color-green-300: #86efac;--color-green-400: #4ade80;--color-green-500: #22c55e;--color-green-600: #16a34a;--color-green-700: #15803d;--color-green-800: #166534;--color-green-900: #14532d;--color-green-950: #052e16;--color-emerald-50: #ecfdf5;--color-emerald-100: #d1fae5;--color-emerald-200: #a7f3d0;--color-emerald-300: #6ee7b7;--color-emerald-400: #34d399;--color-emerald-500: #10b981;--color-emerald-600: #059669;--color-emerald-700: #047857;--color-emerald-800: #065f46;--color-emerald-900: #064e3b;--color-emerald-950: #022c22;--color-teal-50: #f0fdfa;--color-teal-100: #ccfbf1;--color-teal-200: #99f6e4;--color-teal-300: #5eead4;--color-teal-400: #2dd4bf;--color-teal-500: #14b8a6;--color-teal-600: #0d9488;--color-teal-700: #0f766e;--color-teal-800: #115e59;--color-teal-900: #134e4a;--color-teal-950: #042f2e;--color-cyan-50: #ecfeff;--color-cyan-100: #cffafe;--color-cyan-200: #a5f3fc;--color-cyan-300: #67e8f9;--color-cyan-400: #22d3ee;--color-cyan-500: #06b6d4;--color-cyan-600: #0891b2;--color-cyan-700: #0e7490;--color-cyan-800: #155e75;--color-cyan-900: #164e63;--color-cyan-950: #083344;--color-sky-50: #f0f9ff;--color-sky-100: #e0f2fe;--color-sky-200: #bae6fd;--color-sky-300: #7dd3fc;--color-sky-400: #38bdf8;--color-sky-500: #0ea5e9;--color-sky-600: #0284c7;--color-sky-700: #0369a1;--color-sky-800: #075985;--color-sky-900: #0c4a6e;--color-sky-950: #082f49;--color-blue-50: #eff6ff;--color-blue-100: #dbeafe;--color-blue-200: #bfdbfe;--color-blue-300: #93c5fd;--color-blue-400: #60a5fa;--color-blue-500: #3b82f6;--color-blue-600: #2563eb;--color-blue-700: #1d4ed8;--color-blue-800: #1e40af;--color-blue-900: #1e3a8a;--color-blue-950: #172554;--color-indigo-50: #eef2ff;--color-indigo-100: #e0e7ff;--color-indigo-200: #c7d2fe;--color-indigo-300: #a5b4fc;--color-indigo-400: #818cf8;--color-indigo-500: #6366f1;--color-indigo-600: #4f46e5;--color-indigo-700: #4338ca;--color-indigo-800: #3730a3;--color-indigo-900: #312e81;--color-indigo-950: #1e1b4b;--color-violet-50: #f5f3ff;--color-violet-100: #ede9fe;--color-violet-200: #ddd6fe;--color-violet-300: #c4b5fd;--color-violet-400: #a78bfa;--color-violet-500: #8b5cf6;--color-violet-600: #7c3aed;--color-violet-700: #6d28d9;--color-violet-800: #5b21b6;--color-violet-900: #4c1d95;--color-violet-950: #2e1065;--color-purple-50: #faf5ff;--color-purple-100: #f3e8ff;--color-purple-200: #e9d5ff;--color-purple-300: #d8b4fe;--color-purple-400: #c084fc;--color-purple-500: #a855f7;--color-purple-600: #9333ea;--color-purple-700: #7e22ce;--color-purple-800: #6b21a8;--color-purple-900: #581c87;--color-purple-950: #3b0764;--color-fuchsia-50: #fdf4ff;--color-fuchsia-100: #fae8ff;--color-fuchsia-200: #f5d0fe;--color-fuchsia-300: #f0abfc;--color-fuchsia-400: #e879f9;--color-fuchsia-500: #d946ef;--color-fuchsia-600: #c026d3;--color-fuchsia-700: #a21caf;--color-fuchsia-800: #86198f;--color-fuchsia-900: #701a75;--color-fuchsia-950: #4a044e;--color-pink-50: #fdf2f8;--color-pink-100: #fce7f3;--color-pink-200: #fbcfe8;--color-pink-300: #f9a8d4;--color-pink-400: #f472b6;--color-pink-500: #ec4899;--color-pink-600: #db2777;--color-pink-700: #be185d;--color-pink-800: #9d174d;--color-pink-900: #831843;--color-pink-950: #500724;--color-rose-50: #fff1f2;--color-rose-100: #ffe4e6;--color-rose-200: #fecdd3;--color-rose-300: #fda4af;--color-rose-400: #fb7185;--color-rose-500: #f43f5e;--color-rose-600: #e11d48;--color-rose-700: #be123c;--color-rose-800: #9f1239;--color-rose-900: #881337;--color-rose-950: #4c0519;--color-oxford-50: #f1f7ff;--color-oxford-100: #cfe5ff;--color-oxford-200: #9ccaff;--color-oxford-300: #69afff;--color-oxford-400: #3693ff;--color-oxford-500: #0378ff;--color-oxford-600: #0058be;--color-oxford-700: #00397a;--color-oxford-800: #002147;--color-oxford-900: #001936;--color-oxford-DEFAULT: #002147;--color-bn-egg-50: #f3fdfe;--color-bn-egg-100: #e8fbfd;--color-bn-egg-200: #c5f5f9;--color-bn-egg-300: #a2eff5;--color-bn-egg-400: #5de3ee;--color-bn-egg-500: #17d7e6;--color-bn-egg-600: #15c2cf;--color-bn-egg-700: #11a1ad;--color-bn-egg-800: #0e818a;--color-bn-egg-900: #0b6971;--color-bn-egg-DEFAULT: #17d7e6;--color-bn-picton-50: #f5fbff;--color-bn-picton-100: #ecf8ff;--color-bn-picton-200: #cfedff;--color-bn-picton-300: #b3e1ff;--color-bn-picton-400: #79cbff;--color-bn-picton-500: #40b5ff;--color-bn-picton-600: #3aa3e6;--color-bn-picton-700: #3088bf;--color-bn-picton-800: #266d99;--color-bn-picton-900: #1f597d;--color-bn-picton-DEFAULT: #40b5ff;--color-bn-royal-50: #f7f8fe;--color-bn-royal-100: #eef1fe;--color-bn-royal-200: #d6dcfc;--color-bn-royal-300: #bdc6fa;--color-bn-royal-400: #8b9cf6;--color-bn-royal-500: #5971f2;--color-bn-royal-600: #5066da;--color-bn-royal-700: #4355b6;--color-bn-royal-800: #354491;--color-bn-royal-900: #2c3777;--color-bn-royal-DEFAULT: #5971f2;--color-bn-grape-50: #f6f4fb;--color-bn-grape-100: #eee9f7;--color-bn-grape-200: #d4c8ec;--color-bn-grape-300: #baa7e1;--color-bn-grape-400: #8766ca;--color-bn-grape-500: #5324b3;--color-bn-grape-600: #4b20a1;--color-bn-grape-700: #3e1b86;--color-bn-grape-800: #32166b;--color-bn-grape-900: #291258;--color-bn-grape-DEFAULT: #5324b3;--color-bn-roman-50: #faf6fe;--color-bn-roman-100: #f5eefd;--color-bn-roman-200: #e6d4f9;--color-bn-roman-300: #d7bbf5;--color-bn-roman-400: #b987ee;--color-bn-roman-500: #9b54e6;--color-bn-roman-600: #8c4ccf;--color-bn-roman-700: #743fad;--color-bn-roman-800: #5d328a;--color-bn-roman-900: #4c2971;--color-bn-roman-DEFAULT: #9b54e6;--color-bn-blush-50: #fff8ff;--color-bn-blush-100: #fff2ff;--color-bn-blush-200: #ffdeff;--color-bn-blush-300: #ffcbff;--color-bn-blush-400: #ffa3ff;--color-bn-blush-500: #ff7cff;--color-bn-blush-600: #e670e6;--color-bn-blush-700: #bf5dbf;--color-bn-blush-800: #994a99;--color-bn-blush-900: #7d3d7d;--color-bn-blush-DEFAULT: #ff7cff;--color-bn-strawberry-50: #fff5fa;--color-bn-strawberry-100: #ffebf5;--color-bn-strawberry-200: #ffcde6;--color-bn-strawberry-300: #ffafd7;--color-bn-strawberry-400: #ff72ba;--color-bn-strawberry-500: #ff369c;--color-bn-strawberry-600: #e6318c;--color-bn-strawberry-700: #bf2975;--color-bn-strawberry-800: #99205e;--color-bn-strawberry-900: #7d1a4c;--color-bn-strawberry-DEFAULT: #ff369c;--color-bn-ribbon-50: #fef3f6;--color-bn-ribbon-100: #fee7ee;--color-bn-ribbon-200: #fcc2d4;--color-bn-ribbon-300: #fa9eb9;--color-bn-ribbon-400: #f65585;--color-bn-ribbon-500: #f20c51;--color-bn-ribbon-600: #da0b49;--color-bn-ribbon-700: #b6093d;--color-bn-ribbon-800: #910731;--color-bn-ribbon-900: #770628;--color-bn-ribbon-DEFAULT: #f20c51;--color-bn-flamenco-50: #fff8f2;--color-bn-flamenco-100: #fff2e6;--color-bn-flamenco-200: #ffdebf;--color-bn-flamenco-300: #ffcb99;--color-bn-flamenco-400: #ffa34d;--color-bn-flamenco-500: #ff7c00;--color-bn-flamenco-600: #e67000;--color-bn-flamenco-700: #bf5d00;--color-bn-flamenco-800: #994a00;--color-bn-flamenco-900: #7d3d00;--color-bn-flamenco-DEFAULT: #ff7c00;--color-bn-sun-50: #fffdf5;--color-bn-sun-100: #fffaeb;--color-bn-sun-200: #fff4ce;--color-bn-sun-300: #ffedb0;--color-bn-sun-400: #ffdf75;--color-bn-sun-500: #ffd13a;--color-bn-sun-600: #e6bc34;--color-bn-sun-700: #bf9d2c;--color-bn-sun-800: #997d23;--color-bn-sun-900: #7d661c;--color-bn-sun-DEFAULT: #ffd13a;--color-bn-straw-50: #fffbf2;--color-bn-straw-100: #fff8e6;--color-bn-straw-200: #ffedbf;--color-bn-straw-300: #ffe299;--color-bn-straw-400: #ffcd4d;--color-bn-straw-500: #ffb700;--color-bn-straw-600: #e6a500;--color-bn-straw-700: #bf8900;--color-bn-straw-800: #996e00;--color-bn-straw-900: #7d5a00;--color-bn-straw-DEFAULT: #ffb700}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);--tw-ring-shadow: 0 0 rgba(0,0,0,0);--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);--tw-ring-shadow: 0 0 rgba(0,0,0,0);--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:1rem;padding-left:1rem}@media (min-width: 640px){.container{max-width:640px;padding-right:1rem;padding-left:1rem}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px;padding-right:2rem;padding-left:2rem}}@media (min-width: 1280px){.container{max-width:1280px;padding-right:3rem;padding-left:3rem}}@media (min-width: 1536px){.container{max-width:1536px;padding-right:3rem;padding-left:3rem}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);-webkit-text-decoration:underline;text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgba(0, 0, 0, .5);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding:.1428571em .3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-left:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-lg{font-size:1.125rem;line-height:1.7777778}.prose-lg :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.prose-lg :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.prose-lg :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.prose-lg :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.prose-lg :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.prose-lg :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.prose-lg :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.prose-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-lg :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;border-radius:.3125rem;padding:.2222222em .4444444em}.prose-lg :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-lg :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8666667em}.prose-lg :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.prose-lg :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.prose-lg :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.prose-lg :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.prose-lg :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6666667em;margin-bottom:.6666667em}.prose-lg :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4444444em}.prose-lg :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4444444em}.prose-lg :where(.prose-lg>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose-lg>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose-lg>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose-lg>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose-lg>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.prose-lg :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6666667em;padding-left:1.5555556em}.prose-lg :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.prose-lg :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.5}.prose-lg :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.prose-lg :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-lg :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-lg :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.75em}.prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-lg :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.prose-lg :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-lg :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.prose-lg :where(.prose-lg>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(.prose-lg>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-blue{--tw-prose-links: #2563eb;--tw-prose-invert-links: #3b82f6}.prose-oxford{--tw-prose-body: #1e293b;--tw-prose-headings: #001936;--tw-prose-lead: #00397a;--tw-prose-links: #0058be;--tw-prose-bold: #001936;--tw-prose-counters: #0058be;--tw-prose-bullets: #475569;--tw-prose-hr: #69afff;--tw-prose-quotes: #001936;--tw-prose-quote-borders: #69afff;--tw-prose-captions: #00397a;--tw-prose-code: #001936;--tw-prose-pre-code: #cfe5ff;--tw-prose-pre-bg: #001936;--tw-prose-th-borders: #69afff;--tw-prose-td-borders: #9ccaff;--tw-prose-invert-body: #9ccaff;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #69afff;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #3693ff;--tw-prose-invert-bullets: #0058be;--tw-prose-invert-hr: #00397a;--tw-prose-invert-quotes: #cfe5ff;--tw-prose-invert-quote-borders: #00397a;--tw-prose-invert-captions: #3693ff;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #69afff;--tw-prose-invert-pre-bg: rgba(0, 0, 0, .5);--tw-prose-invert-th-borders: #0058be;--tw-prose-invert-td-borders: #00397a}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-2{bottom:-.5rem}.-bottom-3{bottom:-.75rem}.-bottom-4{bottom:-1rem}.-top-1\/2{top:-50%}.-top-14{top:-3.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-full{top:100%}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.col-span-1{grid-column:span 1 / span 1}.float-left{float:left}.\!m-0{margin:0!important}.m-2{margin:.5rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.\!-mb-3{margin-bottom:-.75rem!important}.\!mb-2{margin-bottom:.5rem!important}.-mb-3{margin-bottom:-.75rem}.-ml-0{margin-left:-0px}.-ml-0\.5{margin-left:-.125rem}.-ml-1{margin-left:-.25rem}.-ml-2{margin-left:-.5rem}.-ml-4{margin-left:-1rem}.-ml-px{margin-left:-1px}.-mr-1{margin-right:-.25rem}.-mr-2{margin-right:-.5rem}.-mt-0{margin-top:-0px}.-mt-0\.5{margin-top:-.125rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.-mt-3{margin-top:-.75rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\[1px\]{margin-top:-1px}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-auto{margin-right:auto}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\[0\.33em\]{margin-top:.33em}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.grid{display:grid}.contents{display:contents}.\!hidden{display:none!important}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-24{height:6rem}.h-36{height:9rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-20{max-height:5rem}.max-h-60{max-height:15rem}.max-h-96{max-height:24rem}.max-h-\[75vh\]{max-height:75vh}.min-h-\[66vh\]{min-height:66vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-24{width:6rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[12ch\]{width:12ch}.w-\[6ch\]{width:6ch}.w-\[calc\(100\%\+2rem\)\]{width:calc(100% + 2rem)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.\!min-w-0{min-width:0px!important}.min-w-0{min-width:0px}.min-w-\[10ch\]{min-width:10ch}.min-w-\[12ch\]{min-width:12ch}.min-w-\[16ch\]{min-width:16ch}.min-w-\[18ch\]{min-width:18ch}.min-w-\[25ch\]{min-width:25ch}.min-w-\[50\%\]{min-width:50%}.min-w-\[8ch\]{min-width:8ch}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[1500px\]{max-width:1500px}.max-w-\[25ch\]{max-width:25ch}.max-w-\[28ch\]{max-width:28ch}.max-w-\[65ch\]{max-width:65ch}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.max-w-screen-md{max-width:768px}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(-50%,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\[80\%\]{--tw-translate-y: -80%;transform:translate(var(--tw-translate-x),-80%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[80\%\]{--tw-translate-y: 80%;transform:translate(var(--tw-translate-x),80%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),100%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(0) scaleY(0);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.25) scaleY(1.25);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.5) scaleY(1.5);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-not-allowed{cursor:not-allowed!important}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-manipulation{touch-action:manipulation}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-content-center{align-content:center;justify-content:center;place-content:center}.place-content-start{align-content:start;justify-content:start;place-content:start}.place-items-baseline{align-items:baseline;justify-items:baseline;place-items:baseline}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-0{row-gap:0px}.gap-y-0\.5{row-gap:.125rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.gap-y-4{row-gap:1rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * (1 - var(--tw-space-x-reverse)));margin-left:.25rem;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * (1 - var(--tw-space-x-reverse)));margin-left:1rem;margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * (1 - var(--tw-space-y-reverse)));margin-top:.25rem;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * (1 - var(--tw-space-y-reverse)));margin-top:1rem;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * (1 - var(--tw-space-y-reverse)));margin-top:1.5rem;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 1}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:0px;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * (1 - var(--tw-divide-x-reverse)));border-left-width:1px;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * (1 - var(--tw-divide-y-reverse)));border-top-width:1px;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e5e7eb;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#d1d5db;border-color:rgba(209,213,219,var(--tw-divide-opacity))}.divide-slate-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e2e8f0;border-color:rgba(226,232,240,var(--tw-divide-opacity))}.divide-slate-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#cbd5e1;border-color:rgba(203,213,225,var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-center{align-self:center}.justify-self-start{justify-self:start}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.break-words{word-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-br{border-bottom-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.\!border-t-0{border-top-width:0px!important}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.\!border-slate-300{--tw-border-opacity: 1 !important;border-color:#cbd5e1!important;border-color:rgba(203,213,225,var(--tw-border-opacity))!important}.border-blue-200{--tw-border-opacity: 1;border-color:#bfdbfe;border-color:rgba(191,219,254,var(--tw-border-opacity))}.border-bn-flamenco-200{--tw-border-opacity: 1;border-color:#ffdebf;border-color:rgba(255,222,191,var(--tw-border-opacity))}.border-bn-flamenco-600{--tw-border-opacity: 1;border-color:#e67000;border-color:rgba(230,112,0,var(--tw-border-opacity))}.border-bn-ribbon-200{--tw-border-opacity: 1;border-color:#fcc2d4;border-color:rgba(252,194,212,var(--tw-border-opacity))}.border-bn-ribbon-300{--tw-border-opacity: 1;border-color:#fa9eb9;border-color:rgba(250,158,185,var(--tw-border-opacity))}.border-bn-ribbon-400{--tw-border-opacity: 1;border-color:#f65585;border-color:rgba(246,85,133,var(--tw-border-opacity))}.border-bn-ribbon-600{--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.border-bn-strawberry-300{--tw-border-opacity: 1;border-color:#ffafd7;border-color:rgba(255,175,215,var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity: 1;border-color:#e5e7eb;border-color:rgba(229,231,235,var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:#9ca3af;border-color:rgba(156,163,175,var(--tw-border-opacity))}.border-green-200{--tw-border-opacity: 1;border-color:#bbf7d0;border-color:rgba(187,247,208,var(--tw-border-opacity))}.border-green-400{--tw-border-opacity: 1;border-color:#4ade80;border-color:rgba(74,222,128,var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:#16a34a;border-color:rgba(22,163,74,var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:#15803d;border-color:rgba(21,128,61,var(--tw-border-opacity))}.border-oxford-300{--tw-border-opacity: 1;border-color:#69afff;border-color:rgba(105,175,255,var(--tw-border-opacity))}.border-oxford-500\/25{border-color:#0378ff40}.border-oxford-600{--tw-border-opacity: 1;border-color:#0058be;border-color:rgba(0,88,190,var(--tw-border-opacity))}.border-oxford-700{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.border-oxford-700\/95{border-color:#00397af2}.border-oxford\/25{border-color:#00214740}.border-red-200{--tw-border-opacity: 1;border-color:#fecaca;border-color:rgba(254,202,202,var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity: 1;border-color:#e2e8f0;border-color:rgba(226,232,240,var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:#cbd5e1;border-color:rgba(203,213,225,var(--tw-border-opacity))}.border-slate-400\/75{border-color:#94a3b8bf}.border-slate-500{--tw-border-opacity: 1;border-color:#64748b;border-color:rgba(100,116,139,var(--tw-border-opacity))}.border-white\/50{border-color:#ffffff80}.\!border-b-gray-800{--tw-border-opacity: 1 !important;border-bottom-color:#1f2937!important;border-bottom-color:rgba(31,41,55,var(--tw-border-opacity))!important}.border-b-bn-ribbon-200{--tw-border-opacity: 1;border-bottom-color:#fcc2d4;border-bottom-color:rgba(252,194,212,var(--tw-border-opacity))}.border-b-bn-ribbon-700{--tw-border-opacity: 1;border-bottom-color:#b6093d;border-bottom-color:rgba(182,9,61,var(--tw-border-opacity))}.border-b-oxford-700{--tw-border-opacity: 1;border-bottom-color:#00397a;border-bottom-color:rgba(0,57,122,var(--tw-border-opacity))}.border-b-slate-200{--tw-border-opacity: 1;border-bottom-color:#e2e8f0;border-bottom-color:rgba(226,232,240,var(--tw-border-opacity))}.border-b-slate-300{--tw-border-opacity: 1;border-bottom-color:#cbd5e1;border-bottom-color:rgba(203,213,225,var(--tw-border-opacity))}.border-l-bn-ribbon-600{--tw-border-opacity: 1;border-left-color:#da0b49;border-left-color:rgba(218,11,73,var(--tw-border-opacity))}.border-l-gray-300{--tw-border-opacity: 1;border-left-color:#d1d5db;border-left-color:rgba(209,213,219,var(--tw-border-opacity))}.border-l-oxford-200{--tw-border-opacity: 1;border-left-color:#9ccaff;border-left-color:rgba(156,202,255,var(--tw-border-opacity))}.border-l-slate-200{--tw-border-opacity: 1;border-left-color:#e2e8f0;border-left-color:rgba(226,232,240,var(--tw-border-opacity))}.border-r-slate-200{--tw-border-opacity: 1;border-right-color:#e2e8f0;border-right-color:rgba(226,232,240,var(--tw-border-opacity))}.border-t-oxford-600\/50{border-top-color:#0058be80}.border-t-slate-200{--tw-border-opacity: 1;border-top-color:#e2e8f0;border-top-color:rgba(226,232,240,var(--tw-border-opacity))}.border-t-slate-300{--tw-border-opacity: 1;border-top-color:#cbd5e1;border-top-color:rgba(203,213,225,var(--tw-border-opacity))}.\!bg-bn-ribbon-50{--tw-bg-opacity: 1 !important;background-color:#fef3f6!important;background-color:rgba(254,243,246,var(--tw-bg-opacity))!important}.\!bg-bn-sun-50{--tw-bg-opacity: 1 !important;background-color:#fffdf5!important;background-color:rgba(255,253,245,var(--tw-bg-opacity))!important}.\!bg-gray-700{--tw-bg-opacity: 1 !important;background-color:#374151!important;background-color:rgba(55,65,81,var(--tw-bg-opacity))!important}.\!bg-slate-300{--tw-bg-opacity: 1 !important;background-color:#cbd5e1!important;background-color:rgba(203,213,225,var(--tw-bg-opacity))!important}.bg-\[\#f8f8f8\]{--tw-bg-opacity: 1;background-color:#f8f8f8;background-color:rgba(248,248,248,var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:#bfdbfe;background-color:rgba(191,219,254,var(--tw-bg-opacity))}.bg-bn-blush-50{--tw-bg-opacity: 1;background-color:#fff8ff;background-color:rgba(255,248,255,var(--tw-bg-opacity))}.bg-bn-flamenco-200{--tw-bg-opacity: 1;background-color:#ffdebf;background-color:rgba(255,222,191,var(--tw-bg-opacity))}.bg-bn-flamenco-400{--tw-bg-opacity: 1;background-color:#ffa34d;background-color:rgba(255,163,77,var(--tw-bg-opacity))}.bg-bn-flamenco-600{--tw-bg-opacity: 1;background-color:#e67000;background-color:rgba(230,112,0,var(--tw-bg-opacity))}.bg-bn-ribbon-100{--tw-bg-opacity: 1;background-color:#fee7ee;background-color:rgba(254,231,238,var(--tw-bg-opacity))}.bg-bn-ribbon-100\/25{background-color:#fee7ee40}.bg-bn-ribbon-200{--tw-bg-opacity: 1;background-color:#fcc2d4;background-color:rgba(252,194,212,var(--tw-bg-opacity))}.bg-bn-ribbon-400{--tw-bg-opacity: 1;background-color:#f65585;background-color:rgba(246,85,133,var(--tw-bg-opacity))}.bg-bn-ribbon-50{--tw-bg-opacity: 1;background-color:#fef3f6;background-color:rgba(254,243,246,var(--tw-bg-opacity))}.bg-bn-ribbon-600{--tw-bg-opacity: 1;background-color:#da0b49;background-color:rgba(218,11,73,var(--tw-bg-opacity))}.bg-bn-roman-500{--tw-bg-opacity: 1;background-color:#9b54e6;background-color:rgba(155,84,230,var(--tw-bg-opacity))}.bg-bn-strawberry-200{--tw-bg-opacity: 1;background-color:#ffcde6;background-color:rgba(255,205,230,var(--tw-bg-opacity))}.bg-bn-sun-300{--tw-bg-opacity: 1;background-color:#ffedb0;background-color:rgba(255,237,176,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:#f3f4f6;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:#dcfce7;background-color:rgba(220,252,231,var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:#bbf7d0;background-color:rgba(187,247,208,var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:#22c55e;background-color:rgba(34,197,94,var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:#16a34a;background-color:rgba(22,163,74,var(--tw-bg-opacity))}.bg-oxford-100{--tw-bg-opacity: 1;background-color:#cfe5ff;background-color:rgba(207,229,255,var(--tw-bg-opacity))}.bg-oxford-400{--tw-bg-opacity: 1;background-color:#3693ff;background-color:rgba(54,147,255,var(--tw-bg-opacity))}.bg-oxford-50{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.bg-oxford-600{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.bg-oxford-800{--tw-bg-opacity: 1;background-color:#002147;background-color:rgba(0,33,71,var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:#fecaca;background-color:rgba(254,202,202,var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:#fef2f2;background-color:rgba(254,242,242,var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:#f1f5f9;background-color:rgba(241,245,249,var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity: 1;background-color:#cbd5e1;background-color:rgba(203,213,225,var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:#f8fafc;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:#64748b;background-color:rgba(100,116,139,var(--tw-bg-opacity))}.bg-stone-500{--tw-bg-opacity: 1;background-color:#78716c;background-color:rgba(120,113,108,var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-oxford-200\/20{--tw-gradient-from: rgba(156, 202, 255, .2) var(--tw-gradient-from-position);--tw-gradient-to: rgba(156, 202, 255, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-bn-roman-200\/35{--tw-gradient-to: rgba(230, 212, 249, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(230, 212, 249, .35) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-bn-strawberry-200\/25{--tw-gradient-to: rgba(255, 205, 230, .25) var(--tw-gradient-to-position)}.fill-bn-ribbon-300{fill:#fa9eb9}.fill-gray-300{fill:#d1d5db}.fill-gray-500{fill:#6b7280}.fill-green-600{fill:#16a34a}.fill-green-700{fill:#15803d}.fill-oxford-300{fill:#69afff}.fill-red-700{fill:#b91c1c}.stroke-black{stroke:#000}.stroke-bn-ribbon-700{stroke:#b6093d}.stroke-current{stroke:currentColor}.stroke-green-600{stroke:#16a34a}.stroke-green-700{stroke:#15803d}.stroke-oxford-600{stroke:#0058be}.stroke-1{stroke-width:1}.stroke-2{stroke-width:2}.stroke-\[3\]{stroke-width:3}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.\!px-0{padding-left:0!important;padding-right:0!important}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.\!px-8{padding-left:2rem!important;padding-right:2rem!important}.\!py-0{padding-top:0!important;padding-bottom:0!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.\!py-1\.5{padding-top:.375rem!important;padding-bottom:.375rem!important}.\!py-4{padding-top:1rem!important;padding-bottom:1rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.\!pb-0{padding-bottom:0!important}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pl-16{padding-left:4rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-12{padding-top:3rem}.pt-14{padding-top:3.5rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\!text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.\!text-base{font-size:1rem!important;line-height:1.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.\!leading-snug{line-height:1.375!important}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.\!text-green-900{--tw-text-opacity: 1 !important;color:#14532d!important;color:rgba(20,83,45,var(--tw-text-opacity))!important}.\!text-slate-800{--tw-text-opacity: 1 !important;color:#1e293b!important;color:rgba(30,41,59,var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1;color:#000;color:rgba(0,0,0,var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:#1e40af;color:rgba(30,64,175,var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:#1e3a8a;color:rgba(30,58,138,var(--tw-text-opacity))}.text-bn-blush-600{--tw-text-opacity: 1;color:#e670e6;color:rgba(230,112,230,var(--tw-text-opacity))}.text-bn-egg-500{--tw-text-opacity: 1;color:#17d7e6;color:rgba(23,215,230,var(--tw-text-opacity))}.text-bn-flamenco-900{--tw-text-opacity: 1;color:#7d3d00;color:rgba(125,61,0,var(--tw-text-opacity))}.text-bn-ribbon-600{--tw-text-opacity: 1;color:#da0b49;color:rgba(218,11,73,var(--tw-text-opacity))}.text-bn-ribbon-700{--tw-text-opacity: 1;color:#b6093d;color:rgba(182,9,61,var(--tw-text-opacity))}.text-bn-ribbon-800{--tw-text-opacity: 1;color:#910731;color:rgba(145,7,49,var(--tw-text-opacity))}.text-bn-ribbon-900{--tw-text-opacity: 1;color:#770628;color:rgba(119,6,40,var(--tw-text-opacity))}.text-bn-strawberry-600{--tw-text-opacity: 1;color:#e6318c;color:rgba(230,49,140,var(--tw-text-opacity))}.text-bn-sun-800{--tw-text-opacity: 1;color:#997d23;color:rgba(153,125,35,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:#9ca3af;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:#4b5563;color:rgba(75,85,99,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:#374151;color:rgba(55,65,81,var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:#111827;color:rgba(17,24,39,var(--tw-text-opacity))}.text-gray-900\/10{color:#1118271a}.text-green-500{--tw-text-opacity: 1;color:#22c55e;color:rgba(34,197,94,var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:#15803d;color:rgba(21,128,61,var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:#166534;color:rgba(22,101,52,var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:#14532d;color:rgba(20,83,45,var(--tw-text-opacity))}.text-oxford{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.text-oxford-300{--tw-text-opacity: 1;color:#69afff;color:rgba(105,175,255,var(--tw-text-opacity))}.text-oxford-600{--tw-text-opacity: 1;color:#0058be;color:rgba(0,88,190,var(--tw-text-opacity))}.text-oxford-700{--tw-text-opacity: 1;color:#00397a;color:rgba(0,57,122,var(--tw-text-opacity))}.text-oxford-800{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.text-oxford-900{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.text-oxford\/25{color:#00214740}.text-red-500{--tw-text-opacity: 1;color:#ef4444;color:rgba(239,68,68,var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:#991b1b;color:rgba(153,27,27,var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:#7f1d1d;color:rgba(127,29,29,var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity: 1;color:#94a3b8;color:rgba(148,163,184,var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:#64748b;color:rgba(100,116,139,var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:#475569;color:rgba(71,85,105,var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity: 1;color:#334155;color:rgba(51,65,85,var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:#1e293b;color:rgba(30,41,59,var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity: 1;color:#0f172a;color:rgba(15,23,42,var(--tw-text-opacity))}.text-stone-700{--tw-text-opacity: 1;color:#44403c;color:rgba(68,64,60,var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.underline{text-decoration-line:underline}.\!decoration-transparent{text-decoration-color:transparent!important}.decoration-oxford-300{text-decoration-color:#69afff}.underline-offset-1{text-underline-offset:1px}.underline-offset-2{text-underline-offset:2px}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:#9ca3af;color:rgba(156,163,175,var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:#9ca3af;color:rgba(156,163,175,var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.\!shadow-none{--tw-shadow: 0 0 rgba(0,0,0,0) !important;--tw-shadow-colored: 0 0 rgba(0,0,0,0) !important;box-shadow:0 0 #0000,0 0 #0000,0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)!important}.shadow{--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 3px #0000001a,0 1px 2px -1px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,inset 0 2px 4px #0000000d;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);box-shadow:0 0 #0000,0 0 #0000,0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 2px #0000000d;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgba(0, 0, 0, var(--tw-ring-opacity))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.ring-opacity-60{--tw-ring-opacity: .6}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-oxford-400{--tw-ring-offset-color: #3693ff}.blur-3xl{--tw-blur: blur(64px);filter:blur(64px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-buttons{transition-property:background-color,box-shadow,color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-scale-opacity{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.placeholder\:text-slate-400::-moz-placeholder{--tw-text-opacity: 1;color:#94a3b8;color:rgba(148,163,184,var(--tw-text-opacity))}.placeholder\:text-slate-400::placeholder{--tw-text-opacity: 1;color:#94a3b8;color:rgba(148,163,184,var(--tw-text-opacity))}.placeholder\:text-white::-moz-placeholder{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.placeholder\:text-white::placeholder{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.backdrop\:bg-black\/25::backdrop{background-color:#00000040}.backdrop\:bg-slate-900\/25::backdrop{background-color:#0f172a40}.backdrop\:backdrop-blur::backdrop{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:blur(8px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:blur(8px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop\:backdrop-blur-sm::backdrop{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-bottom-1:before{content:var(--tw-content);bottom:-.25rem}.before\:-top-1:before{content:var(--tw-content);top:-.25rem}.before\:-top-5:before{content:var(--tw-content);top:-1.25rem}.before\:bottom-0:before{content:var(--tw-content);bottom:0}.before\:left-0:before{content:var(--tw-content);left:0}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:right-0:before{content:var(--tw-content);right:0}.before\:top-0:before{content:var(--tw-content);top:0}.before\:z-0:before{content:var(--tw-content);z-index:0}.before\:block:before{content:var(--tw-content);display:block}.before\:inline:before{content:var(--tw-content);display:inline}.before\:hidden:before{content:var(--tw-content);display:none}.before\:h-1:before{content:var(--tw-content);height:.25rem}.before\:h-3:before{content:var(--tw-content);height:.75rem}.before\:h-full:before{content:var(--tw-content);height:100%}.before\:w-1:before{content:var(--tw-content);width:.25rem}.before\:w-3:before{content:var(--tw-content);width:.75rem}.before\:w-full:before{content:var(--tw-content);width:100%}.before\:-translate-x-1:before{content:var(--tw-content);--tw-translate-x: -.25rem;transform:translate(-.25rem,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-x-1\/2:before{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(-50%,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rotate-45:before{content:var(--tw-content);--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(45deg) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:bg-bn-ribbon-200:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#fcc2d4;background-color:rgba(252,194,212,var(--tw-bg-opacity))}.before\:bg-bn-strawberry-300:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#ffafd7;background-color:rgba(255,175,215,var(--tw-bg-opacity))}.before\:bg-gradient-to-r:before{content:var(--tw-content);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.before\:from-oxford-600\/60:before{content:var(--tw-content);--tw-gradient-from: rgba(0, 88, 190, .6) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 88, 190, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.before\:via-bn-roman-600\/70:before{content:var(--tw-content);--tw-gradient-to: rgba(140, 76, 207, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(140, 76, 207, .7) var(--tw-gradient-via-position), var(--tw-gradient-to)}.before\:to-bn-strawberry-600\/60:before{content:var(--tw-content);--tw-gradient-to: rgba(230, 49, 140, .6) var(--tw-gradient-to-position)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-top-3:after{content:var(--tw-content);top:-.75rem}.after\:bottom-1:after{content:var(--tw-content);bottom:.25rem}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:left-2:after{content:var(--tw-content);left:.5rem}.after\:z-0:after{content:var(--tw-content);z-index:0}.after\:ml-1:after{content:var(--tw-content);margin-left:.25rem}.after\:mt-0:after{content:var(--tw-content);margin-top:0}.after\:mt-0\.5:after{content:var(--tw-content);margin-top:.125rem}.after\:block:after{content:var(--tw-content);display:block}.after\:h-1:after{content:var(--tw-content);height:.25rem}.after\:h-\[2px\]:after{content:var(--tw-content);height:2px}.after\:h-full:after{content:var(--tw-content);height:100%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(-50%,var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:bg-bn-strawberry-300:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#ffafd7;background-color:rgba(255,175,215,var(--tw-bg-opacity))}.after\:bg-transparent:after{content:var(--tw-content);background-color:transparent}.after\:bg-gradient-to-r:after{content:var(--tw-content);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.after\:from-oxford-600\/60:after{content:var(--tw-content);--tw-gradient-from: rgba(0, 88, 190, .6) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 88, 190, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.after\:via-bn-roman-600\/70:after{content:var(--tw-content);--tw-gradient-to: rgba(140, 76, 207, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(140, 76, 207, .7) var(--tw-gradient-via-position), var(--tw-gradient-to)}.after\:to-bn-strawberry-600\/60:after{content:var(--tw-content);--tw-gradient-to: rgba(230, 49, 140, .6) var(--tw-gradient-to-position)}.after\:text-sm:after{content:var(--tw-content);font-size:.875rem;line-height:1.25rem}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'↗\'\]:after{--tw-content: "↗";content:"↗";content:var(--tw-content)}.even\:bg-gray-50:nth-child(2n){--tw-bg-opacity: 1;background-color:#f9fafb;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.even\:bg-slate-50:nth-child(2n){--tw-bg-opacity: 1;background-color:#f8fafc;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.open\:bg-white[open]{--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.checked\:border-oxford-600:checked{--tw-border-opacity: 1;border-color:#0058be;border-color:rgba(0,88,190,var(--tw-border-opacity))}.checked\:bg-oxford-600:checked{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.invalid\:border-bn-ribbon-600:invalid{--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.invalid\:ring-1:invalid{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.invalid\:ring-bn-ribbon-600:invalid{--tw-ring-opacity: 1;--tw-ring-color: rgba(218, 11, 73, var(--tw-ring-opacity))}.focus-within\:bg-oxford-700:focus-within{--tw-bg-opacity: 1;background-color:#00397a;background-color:rgba(0,57,122,var(--tw-bg-opacity))}.focus-within\:text-oxford-50:focus-within{--tw-text-opacity: 1;color:#f1f7ff;color:rgba(241,247,255,var(--tw-text-opacity))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.1) scaleY(1.1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-bn-flamenco-700:hover{--tw-border-opacity: 1;border-color:#bf5d00;border-color:rgba(191,93,0,var(--tw-border-opacity))}.hover\:border-bn-ribbon-700:hover{--tw-border-opacity: 1;border-color:#b6093d;border-color:rgba(182,9,61,var(--tw-border-opacity))}.hover\:border-bn-strawberry-400:hover{--tw-border-opacity: 1;border-color:#ff72ba;border-color:rgba(255,114,186,var(--tw-border-opacity))}.hover\:border-bn-strawberry-500:hover{--tw-border-opacity: 1;border-color:#ff369c;border-color:rgba(255,54,156,var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity: 1;border-color:#15803d;border-color:rgba(21,128,61,var(--tw-border-opacity))}.hover\:border-oxford-700:hover{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.hover\:border-slate-600:hover{--tw-border-opacity: 1;border-color:#475569;border-color:rgba(71,85,105,var(--tw-border-opacity))}.hover\:bg-bn-flamenco-700:hover{--tw-bg-opacity: 1;background-color:#bf5d00;background-color:rgba(191,93,0,var(--tw-bg-opacity))}.hover\:bg-bn-ribbon-100:hover{--tw-bg-opacity: 1;background-color:#fee7ee;background-color:rgba(254,231,238,var(--tw-bg-opacity))}.hover\:bg-bn-ribbon-700:hover{--tw-bg-opacity: 1;background-color:#b6093d;background-color:rgba(182,9,61,var(--tw-bg-opacity))}.hover\:bg-bn-strawberry-100:hover{--tw-bg-opacity: 1;background-color:#ffebf5;background-color:rgba(255,235,245,var(--tw-bg-opacity))}.hover\:bg-bn-strawberry-50:hover{--tw-bg-opacity: 1;background-color:#fff5fa;background-color:rgba(255,245,250,var(--tw-bg-opacity))}.hover\:bg-current:hover{background-color:currentColor}.hover\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:#dcfce7;background-color:rgba(220,252,231,var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:#15803d;background-color:rgba(21,128,61,var(--tw-bg-opacity))}.hover\:bg-oxford-100:hover{--tw-bg-opacity: 1;background-color:#cfe5ff;background-color:rgba(207,229,255,var(--tw-bg-opacity))}.hover\:bg-oxford-50:hover{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.hover\:bg-oxford-700:hover{--tw-bg-opacity: 1;background-color:#00397a;background-color:rgba(0,57,122,var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:#475569;background-color:rgba(71,85,105,var(--tw-bg-opacity))}.hover\:bg-white\/\[0\.12\]:hover{background-color:#ffffff1f}.hover\:fill-white:hover{fill:#fff}.hover\:text-bn-roman-700:hover{--tw-text-opacity: 1;color:#743fad;color:rgba(116,63,173,var(--tw-text-opacity))}.hover\:text-bn-strawberry-700:hover{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.hover\:text-oxford:hover{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.hover\:text-oxford-50:hover{--tw-text-opacity: 1;color:#f1f7ff;color:rgba(241,247,255,var(--tw-text-opacity))}.hover\:text-oxford-500:hover{--tw-text-opacity: 1;color:#0378ff;color:rgba(3,120,255,var(--tw-text-opacity))}.hover\:text-oxford-700:hover{--tw-text-opacity: 1;color:#00397a;color:rgba(0,57,122,var(--tw-text-opacity))}.hover\:text-oxford-900:hover{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.hover\:text-slate-500:hover{--tw-text-opacity: 1;color:#64748b;color:rgba(100,116,139,var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:decoration-transparent:hover{text-decoration-color:transparent}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.before\:hover\:left-0:hover:before{content:var(--tw-content);left:0}.before\:hover\:w-full:hover:before{content:var(--tw-content);width:100%}.before\:hover\:translate-x-0:hover:before{content:var(--tw-content);--tw-translate-x: 0px;transform:translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:hover\:opacity-100:hover:before{content:var(--tw-content);opacity:1}.after\:hover\:w-11\/12:hover:after{content:var(--tw-content);width:91.666667%}.after\:hover\:opacity-100:hover:after{content:var(--tw-content);opacity:1}.focus\:not-sr-only:focus{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-2:focus{left:.5rem}.focus\:top-2:focus{top:.5rem}.focus\:z-50:focus{z-index:50}.focus\:scale-105:focus{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:cursor-text:focus{cursor:text}.focus\:border-bn-flamenco-700:focus{--tw-border-opacity: 1;border-color:#bf5d00;border-color:rgba(191,93,0,var(--tw-border-opacity))}.focus\:border-bn-ribbon-700:focus{--tw-border-opacity: 1;border-color:#b6093d;border-color:rgba(182,9,61,var(--tw-border-opacity))}.focus\:border-bn-strawberry-400:focus{--tw-border-opacity: 1;border-color:#ff72ba;border-color:rgba(255,114,186,var(--tw-border-opacity))}.focus\:border-bn-strawberry-500:focus{--tw-border-opacity: 1;border-color:#ff369c;border-color:rgba(255,54,156,var(--tw-border-opacity))}.focus\:border-green-700:focus{--tw-border-opacity: 1;border-color:#15803d;border-color:rgba(21,128,61,var(--tw-border-opacity))}.focus\:border-oxford-500:focus{--tw-border-opacity: 1;border-color:#0378ff;border-color:rgba(3,120,255,var(--tw-border-opacity))}.focus\:border-oxford-700:focus{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.focus\:border-slate-600:focus{--tw-border-opacity: 1;border-color:#475569;border-color:rgba(71,85,105,var(--tw-border-opacity))}.focus\:bg-bn-flamenco-700:focus{--tw-bg-opacity: 1;background-color:#bf5d00;background-color:rgba(191,93,0,var(--tw-bg-opacity))}.focus\:bg-bn-ribbon-100:focus{--tw-bg-opacity: 1;background-color:#fee7ee;background-color:rgba(254,231,238,var(--tw-bg-opacity))}.focus\:bg-bn-ribbon-700:focus{--tw-bg-opacity: 1;background-color:#b6093d;background-color:rgba(182,9,61,var(--tw-bg-opacity))}.focus\:bg-bn-strawberry-100:focus{--tw-bg-opacity: 1;background-color:#ffebf5;background-color:rgba(255,235,245,var(--tw-bg-opacity))}.focus\:bg-bn-strawberry-50:focus{--tw-bg-opacity: 1;background-color:#fff5fa;background-color:rgba(255,245,250,var(--tw-bg-opacity))}.focus\:bg-bn-sun-300:focus{--tw-bg-opacity: 1;background-color:#ffedb0;background-color:rgba(255,237,176,var(--tw-bg-opacity))}.focus\:bg-green-100:focus{--tw-bg-opacity: 1;background-color:#dcfce7;background-color:rgba(220,252,231,var(--tw-bg-opacity))}.focus\:bg-green-700:focus{--tw-bg-opacity: 1;background-color:#15803d;background-color:rgba(21,128,61,var(--tw-bg-opacity))}.focus\:bg-oxford-100:focus{--tw-bg-opacity: 1;background-color:#cfe5ff;background-color:rgba(207,229,255,var(--tw-bg-opacity))}.focus\:bg-oxford-50:focus{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.focus\:bg-oxford-600:focus{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.focus\:bg-oxford-700:focus{--tw-bg-opacity: 1;background-color:#00397a;background-color:rgba(0,57,122,var(--tw-bg-opacity))}.focus\:bg-slate-200:focus{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.focus\:bg-slate-600:focus{--tw-bg-opacity: 1;background-color:#475569;background-color:rgba(71,85,105,var(--tw-bg-opacity))}.focus\:px-4:focus{padding-left:1rem;padding-right:1rem}.focus\:py-2:focus{padding-top:.5rem;padding-bottom:.5rem}.focus\:text-bn-strawberry-600:focus{--tw-text-opacity: 1;color:#e6318c;color:rgba(230,49,140,var(--tw-text-opacity))}.focus\:text-bn-strawberry-700:focus{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.focus\:text-oxford:focus{--tw-text-opacity: 1;color:#002147;color:rgba(0,33,71,var(--tw-text-opacity))}.focus\:text-oxford-900:focus{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.focus\:no-underline:focus{text-decoration-line:none}.focus\:decoration-transparent:focus{text-decoration-color:transparent}.focus\:shadow-lg:focus{--tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-offset-0:focus{outline-offset:0px}.focus\:outline-oxford-500:focus{outline-color:#0378ff}.focus\:outline-yellow-300:focus{outline-color:#fde047}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-bn-flamenco-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 124, 0, var(--tw-ring-opacity))}.focus\:ring-bn-ribbon-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(246, 85, 133, var(--tw-ring-opacity))}.focus\:ring-bn-ribbon-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(242, 12, 81, var(--tw-ring-opacity))}.focus\:ring-bn-sun:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 209, 58, var(--tw-ring-opacity))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(34, 197, 94, var(--tw-ring-opacity))}.focus\:ring-oxford-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(3, 120, 255, var(--tw-ring-opacity))}.focus\:ring-slate-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(100, 116, 139, var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-bn-strawberry-50:focus{--tw-ring-offset-color: #fff5fa}.focus\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.focus-visible\:border-oxford-500:focus-visible{--tw-border-opacity: 1;border-color:#0378ff;border-color:rgba(3,120,255,var(--tw-border-opacity))}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.focus-visible\:ring-white:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-orange-300:focus-visible{--tw-ring-offset-color: #fdba74}.group[open] .group-open\:inline-block{display:inline-block}.group[open] .group-open\:inline{display:inline}.group[open] .group-open\:flex{display:flex}.group[open] .group-open\:inline-flex{display:inline-flex}.group[open] .group-open\:hidden{display:none}.group[open] .group-open\:border-b{border-bottom-width:1px}.group:hover .group-hover\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-oxford-700{--tw-border-opacity: 1;border-color:#00397a;border-color:rgba(0,57,122,var(--tw-border-opacity))}.group:hover .group-hover\:bg-oxford-50{--tw-bg-opacity: 1;background-color:#f1f7ff;background-color:rgba(241,247,255,var(--tw-bg-opacity))}.group:hover .group-hover\:text-bn-strawberry-700{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.group:hover .group-hover\:text-oxford-600{--tw-text-opacity: 1;color:#0058be;color:rgba(0,88,190,var(--tw-text-opacity))}.group:hover .group-hover\:text-oxford-900{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:checked\:border-oxford-600:checked{--tw-border-opacity: 1;border-color:#0058be;border-color:rgba(0,88,190,var(--tw-border-opacity))}.group:hover .group-hover\:checked\:bg-oxford-600:checked{--tw-bg-opacity: 1;background-color:#0058be;background-color:rgba(0,88,190,var(--tw-bg-opacity))}.group:focus .group-focus\:text-bn-strawberry-700{--tw-text-opacity: 1;color:#bf2975;color:rgba(191,41,117,var(--tw-text-opacity))}.group:focus .group-focus\:text-oxford-900{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}@media (min-width: 640px){.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:col-span-3{grid-column:span 3 / span 3}.sm\:col-start-2{grid-column-start:2}.sm\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mb-0{margin-bottom:0}.sm\:mb-12{margin-bottom:3rem}.sm\:ml-0{margin-left:0}.sm\:ml-6{margin-left:1.5rem}.sm\:ml-auto{margin-left:auto}.sm\:mt-0{margin-top:0}.sm\:mt-2{margin-top:.5rem}.sm\:mt-20{margin-top:5rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:max-w-\[50\%\]{max-width:50%}.sm\:max-w-\[66\%\]{max-width:66%}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-row-reverse{flex-direction:row-reverse}.sm\:flex-nowrap{flex-wrap:nowrap}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-center{justify-content:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-0{gap:0px}.sm\:gap-3{gap:.75rem}.sm\:gap-4{gap:1rem}.sm\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.sm\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * (1 - var(--tw-space-x-reverse)));margin-left:1.25rem;margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * (1 - var(--tw-space-y-reverse)));margin-top:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0;margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:0px;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * (1 - var(--tw-divide-x-reverse)));border-left-width:1px;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * (1 - var(--tw-divide-y-reverse)));border-top-width:1px;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.sm\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * (1 - var(--tw-divide-y-reverse)));border-top-width:0px;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.sm\:divide-slate-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e2e8f0;border-color:rgba(226,232,240,var(--tw-divide-opacity))}.sm\:rounded-none{border-radius:0}.sm\:rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.sm\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.sm\:border-x-0{border-left-width:0px;border-right-width:0px}.sm\:border-l-0{border-left-width:0px}.sm\:border-l-2{border-left-width:2px}.sm\:border-slate-300{--tw-border-opacity: 1;border-color:#cbd5e1;border-color:rgba(203,213,225,var(--tw-border-opacity))}.sm\:bg-bn-blush-50{--tw-bg-opacity: 1;background-color:#fff8ff;background-color:rgba(255,248,255,var(--tw-bg-opacity))}.sm\:bg-transparent{background-color:transparent}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\:py-20{padding-top:5rem;padding-bottom:5rem}.sm\:py-24{padding-top:6rem;padding-bottom:6rem}.sm\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\:py-32{padding-top:8rem;padding-bottom:8rem}.sm\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pl-0{padding-left:0}.sm\:pl-4{padding-left:1rem}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-6xl{font-size:3.75rem;line-height:1}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:font-semibold{font-weight:600}}@media (min-width: 768px){.md\:sticky{position:sticky}.md\:top-2{top:.5rem}.md\:col-span-1{grid-column:span 1 / span 1}.md\:col-span-2{grid-column:span 2 / span 2}.md\:col-span-3{grid-column:span 3 / span 3}.md\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.md\:-my-5{margin-top:-1.25rem;margin-bottom:-1.25rem}.md\:\!-mb-5{margin-bottom:-1.25rem!important}.md\:-mb-5{margin-bottom:-1.25rem}.md\:-mt-9{margin-top:-2.25rem}.md\:mb-1{margin-bottom:.25rem}.md\:ml-2{margin-left:.5rem}.md\:ml-3{margin-left:.75rem}.md\:ml-5{margin-left:1.25rem}.md\:mt-0{margin-top:0}.md\:mt-8{margin-top:2rem}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-full{height:100%}.md\:max-h-screen{max-height:100vh}.md\:w-\[calc\(100\%\+3rem\)\]{width:calc(100% + 3rem)}.md\:flex-grow{flex-grow:1}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-wrap{flex-wrap:wrap}.md\:flex-nowrap{flex-wrap:nowrap}.md\:place-items-center{align-items:center;justify-items:center;place-items:center}.md\:items-start{align-items:flex-start}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-6{gap:1.5rem}.md\:gap-y-2{row-gap:.5rem}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * (1 - var(--tw-space-x-reverse)));margin-left:1.25rem;margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * (1 - var(--tw-space-y-reverse)));margin-top:1.5rem;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.md\:overflow-y-auto{overflow-y:auto}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-0{padding-top:0;padding-bottom:0}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.md\:pb-6{padding-bottom:1.5rem}.md\:pt-0{padding-top:0}.md\:pt-6{padding-top:1.5rem}.md\:text-left{text-align:left}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:odd\:bg-slate-50:nth-child(odd){--tw-bg-opacity: 1;background-color:#f8fafc;background-color:rgba(248,250,252,var(--tw-bg-opacity))}.md\:even\:bg-white:nth-child(2n){--tw-bg-opacity: 1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity))}}@media (min-width: 1024px){.lg\:order-1{order:1}.lg\:order-2{order:2}.lg\:col-span-1{grid-column:span 1 / span 1}.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:col-span-3{grid-column:span 3 / span 3}.lg\:col-span-full{grid-column:1 / -1}.lg\:col-start-1{grid-column-start:1}.lg\:col-start-2{grid-column-start:2}.lg\:col-start-3{grid-column-start:3}.lg\:col-start-auto{grid-column-start:auto}.lg\:row-start-2{grid-row-start:2}.lg\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:mx-6{margin-left:1.5rem;margin-right:1.5rem}.lg\:-ml-2{margin-left:-.5rem}.lg\:ml-4{margin-left:1rem}.lg\:mr-auto{margin-right:auto}.lg\:mt-24{margin-top:6rem}.lg\:max-w-4xl{max-width:56rem}.lg\:max-w-none{max-width:none}.lg\:grid-flow-col-dense{grid-auto-flow:column dense}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-wrap{flex-wrap:wrap}.lg\:items-start{align-items:flex-start}.lg\:justify-start{justify-content:flex-start}.lg\:justify-between{justify-content:space-between}.lg\:gap-y-1{row-gap:.25rem}.lg\:gap-y-16{row-gap:4rem}.lg\:justify-self-end{justify-self:end}.lg\:p-2{padding:.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-32{padding-top:8rem;padding-bottom:8rem}.lg\:text-left{text-align:left}.lg\:text-center{text-align:center}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 1280px){.xl\:col-span-2{grid-column:span 2 / span 2}.xl\:col-span-4{grid-column:span 4 / span 4}.xl\:col-span-6{grid-column:span 6 / span 6}.xl\:col-start-1{grid-column-start:1}.xl\:col-start-2{grid-column-start:2}.xl\:col-start-5{grid-column-start:5}.xl\:row-start-1{grid-row-start:1}.xl\:mx-8{margin-left:2rem;margin-right:2rem}.xl\:max-w-screen-xl{max-width:1280px}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}.\[\&\:\:-moz-progress-bar\]\:bg-oxford-200::-moz-progress-bar{--tw-bg-opacity: 1;background-color:#9ccaff;background-color:rgba(156,202,255,var(--tw-bg-opacity))}.\[\&\:\:-webkit-progress-bar\]\:rounded-lg::-webkit-progress-bar{border-radius:.5rem}.\[\&\:\:-webkit-progress-bar\]\:bg-slate-200::-webkit-progress-bar{--tw-bg-opacity: 1;background-color:#e2e8f0;background-color:rgba(226,232,240,var(--tw-bg-opacity))}.\[\&\:\:-webkit-progress-value\]\:rounded-l-lg::-webkit-progress-value{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.\[\&\:\:-webkit-progress-value\]\:bg-oxford-200::-webkit-progress-value{--tw-bg-opacity: 1;background-color:#9ccaff;background-color:rgba(156,202,255,var(--tw-bg-opacity))}.\[\&\:not\(\:-moz-placeholder-shown\)\:not\(\:focus\)\]\:invalid\:border-bn-ribbon-600:invalid:not(:-moz-placeholder-shown):not(:focus){--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.\[\&\:not\(\:placeholder-shown\)\:not\(\:focus\)\]\:invalid\:border-bn-ribbon-600:invalid:not(:placeholder-shown):not(:focus){--tw-border-opacity: 1;border-color:#da0b49;border-color:rgba(218,11,73,var(--tw-border-opacity))}.\[\&\:not\(\:-moz-placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-1:invalid:not(:-moz-placeholder-shown):not(:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.\[\&\:not\(\:placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-1:invalid:not(:placeholder-shown):not(:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0,0,0,0))}.\[\&\:not\(\:-moz-placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-bn-ribbon-600:invalid:not(:-moz-placeholder-shown):not(:focus){--tw-ring-opacity: 1;--tw-ring-color: rgba(218, 11, 73, var(--tw-ring-opacity))}.\[\&\:not\(\:placeholder-shown\)\:not\(\:focus\)\]\:invalid\:ring-bn-ribbon-600:invalid:not(:placeholder-shown):not(:focus){--tw-ring-opacity: 1;--tw-ring-color: rgba(218, 11, 73, var(--tw-ring-opacity))}.\[\&_a\:hover\]\:text-oxford-900 a:hover{--tw-text-opacity: 1;color:#001936;color:rgba(0,25,54,var(--tw-text-opacity))}.\[\&_a\:hover\]\:underline a:hover{text-decoration-line:underline}.\[\&_a\]\:font-semibold a{font-weight:600}.\[\&_a\]\:text-oxford-600 a{--tw-text-opacity: 1;color:#0058be;color:rgba(0,88,190,var(--tw-text-opacity))}.\[\&_h1\]\:hidden h1{display:none}.\[\&_section\+section\]\:mt-24 section+section{margin-top:6rem}.\[\&_section\+section\]\:border-t section+section{border-top-width:1px}.\[\&_section\+section\]\:pt-24 section+section{padding-top:6rem}.\[\&_section\>h2\]\:mt-0 section>h2{margin-top:0}.\[\&_ul_li\]\:ml-4 ul li{margin-left:1rem}.\[\&_ul_li\]\:list-\[circle\] ul li{list-style-type:circle} diff --git a/assets/dist/assets/base-bp2lYBy9.js b/assets/dist/assets/base-uVX9yxTi.js similarity index 84% rename from assets/dist/assets/base-bp2lYBy9.js rename to assets/dist/assets/base-uVX9yxTi.js index bd5bffc4..9d1588e7 100644 --- a/assets/dist/assets/base-bp2lYBy9.js +++ b/assets/dist/assets/base-uVX9yxTi.js @@ -1,2 +1,2 @@ -class a{constructor(t,e={}){this.options=Object.assign({closeClickOutside:!1,forceStateClose:!1,forceStateOpen:!1,closeEsc:!1,forceStateRestore:!0},e),this.detail=t,this.summary=t.querySelector(":scope > summary"),this._previousStates={}}getMatchMedia(t,e){if(t){if(e&&e===!0)return{matches:!0};if(e&&"matchMedia"in window)return window.matchMedia(e)}}init(){let t=this.getMatchMedia(this.detail,this.options.forceStateOpen),e=this.getMatchMedia(this.detail,this.options.forceStateClose);t&&t.matches&&e&&e.matches?this.setState(!this.detail.open):(t&&t.matches&&this.setState(!0),e&&e.matches&&this.setState(!1)),this.addListener(t,"for-open"),this.addListener(e,"for-close")}addListener(t,e){!t||!("addListener"in t)||t.addListener(s=>{s.matches?(this._previousStates[e]=this.detail.open,this.detail.open!==(e==="for-open")&&this.setState(e==="for-open")):this.options.forceStateRestore&&this._previousStates[e]!==void 0&&this.detail.open!==this._previousStates[e]&&this.setState(this._previousStates[e])})}toggle(){let t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});this.summary.dispatchEvent(t)}triggerClickToClose(){this.summary&&this.options.closeClickOutside&&this.toggle()}setState(t){t?this.detail.setAttribute("open","open"):this.detail.removeAttribute("open")}}class h{constructor(t){this.duration={open:200,close:150},this.detail=t,this.summary=this.detail.querySelector(":scope > summary");let e=this.detail.getAttribute("data-du-animate-target");if(e&&(this.content=this.detail.closest(e)),this.content||(this.content=this.summary.nextElementSibling),!this.content)throw new Error("For now requires a child element for animation.");this.summary.addEventListener("click",this.onclick.bind(this))}parseAnimationFrames(t,...e){let s=[];for(let o of e){let n={};n[t]=o,s.push(n)}return s}getKeyframes(t){let e=this.parseAnimationFrames("maxHeight","0px",`${this.getContentHeight()}px`);return t?e:e.filter(()=>!0).reverse()}getContentHeight(){if(this.contentHeight)return this.contentHeight;if(this.detail.open)return this.contentHeight=this.content.offsetHeight,this.contentHeight}animate(t,e){this.isPending=!0;let s=this.getKeyframes(t);this.animation=this.content.animate(s,{duration:e,easing:"ease-out"}),this.detail.classList.add("details-animating"),this.animation.finished.catch(o=>{}).finally(()=>{this.isPending=!1,this.detail.classList.remove("details-animating")}),t||this.animation.finished.catch(o=>{}).finally(()=>{this.detail.removeAttribute("open")})}open(){this.contentHeight?this.animate(!0,this.duration.open):requestAnimationFrame(()=>this.animate(!0,this.duration.open))}close(){this.animate(!1,this.duration.close)}useAnimation(){return"matchMedia"in window&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}onclick(t){t.target.closest("a[href]")||!this.useAnimation()||(this.isPending?this.animation&&this.animation.cancel():this.detail.open?(t.preventDefault(),this.close()):this.open())}}class u extends HTMLElement{constructor(){super(),this.attrs={animate:"animate",closeEsc:"close-esc",closeClickOutside:"close-click-outside",forceStateClose:"force-close",forceStateOpen:"force-open",forceStateRestore:"force-restore",toggleDocumentClass:"toggle-document-class",closeClickOutsideButton:"data-du-close-click"},this.options={},this._connect()}getAttributeValue(t){let e=this.getAttribute(t);return e===void 0||e===""?!0:e||!1}connectedCallback(){this._connect()}_connect(){if(this.children.length){this._init();return}this._observer=new MutationObserver(this._init.bind(this)),this._observer.observe(this,{childList:!0})}_init(){if(this.initialized)return;this.initialized=!0,this.options.closeClickOutside=this.getAttributeValue(this.attrs.closeClickOutside),this.options.closeEsc=this.getAttributeValue(this.attrs.closeEsc),this.options.forceStateClose=this.getAttributeValue(this.attrs.forceStateClose),this.options.forceStateOpen=this.getAttributeValue(this.attrs.forceStateOpen),this.options.forceStateRestore=this.getAttributeValue(this.attrs.forceStateRestore);let t=Array.from(this.querySelectorAll(":scope details"));for(let e of t)new a(e,this.options).init(),this.hasAttribute(this.attrs.animate)&&new h(e);this.bindCloseOnEsc(t),this.bindClickoutToClose(t),this.toggleDocumentClassName=this.getAttribute(this.attrs.toggleDocumentClass),this.toggleDocumentClassName&&this.bindToggleDocumentClass(t)}bindCloseOnEsc(t){this.options.closeEsc&&document.documentElement.addEventListener("keydown",e=>{if(e.keyCode===27){for(let s of t)if(s.open){let o=new a(s,this.options),n=o.getMatchMedia(s,this.options.closeEsc);(!n||n&&n.matches)&&o.toggle()}}},!1)}isChildOfParent(t,e){for(;t&&t.parentNode;){if(t.parentNode===e)return!0;t=t.parentNode}return!1}onClickoutToClose(t,e){let s=new a(t,this.options),o=s.getMatchMedia(t,this.options.closeClickOutside);if(o&&!o.matches)return;(e.target.hasAttribute(this.attrs.closeClickOutsideButton)||!this.isChildOfParent(e.target,t))&&t.open&&s.triggerClickToClose(t)}bindClickoutToClose(t){document.documentElement.addEventListener("mousedown",e=>{for(let s of t)this.onClickoutToClose(s,e)},!1),this.addEventListener("keypress",e=>{if(e.which===13||e.which===32)for(let s of t)this.onClickoutToClose(s,e)},!1)}bindToggleDocumentClass(t){for(let e of t)e.addEventListener("toggle",s=>{document.documentElement.classList.toggle(this.toggleDocumentClassName,s.target.open)})}}typeof window<"u"&&"customElements"in window&&window.customElements.define("details-utils",u);const r=document.querySelectorAll('[role="alert"]');r.length&&[...r].map(i=>{const t=i.querySelector('button[aria-label="Close"]');return t?window.matchMedia("(prefers-reduced-motion: reduce)").matches?t.addEventListener("click",()=>{i.remove()}):t.addEventListener("click",()=>{i.classList.add("transition-all","scale-100","opacity-100","duration-300"),i.classList.remove("opacity-100","scale-100"),i.classList.add("opacity-0","scale-0"),setTimeout(()=>{i.remove()},300)}):null});const f=[...document.querySelectorAll("[data-expander-button]")];f.map(i=>i.addEventListener("click",()=>{const t=i.getAttribute("data-expander-button"),e=document.querySelector(`[data-expander-list=${t}]`),s=e.getAttribute("aria-expanded")==="true";e.setAttribute("aria-expanded",`${!s}`),e.classList.toggle("hidden")}));const l=document.head.querySelector('meta[name="is_logged_in"]'),c=document.head.querySelector('meta[name="is_staff"]');if(document.location.hostname==="jobs.opensafely.org"){const i=document.createElement("script");i.defer=!0,i.setAttribute("data-domain","jobs.opensafely.org"),i.id="plausible",i.src="https://plausible.io/js/script.pageview-props.js",l&&i.setAttribute("event-is_logged_in",l.content),c&&i.setAttribute("event-is_staff",c.content),document.head.appendChild(i)}const d=(i=0)=>new Promise(t=>setTimeout(t,i));document.querySelectorAll(`input[type="submit"]:not(.btn--allow-double-click), - button[type="submit"]:not(.btn--allow-double-click)`).forEach(i=>{i.addEventListener("click",async t=>{t.target instanceof HTMLElement&&(await d(1),t.target.setAttribute("disabled","true"),t.target.classList.add("!cursor-not-allowed","!bg-slate-300","!border-slate-300","!text-slate-800"),await d(3e4),t.target.removeAttribute("disabled"),t.target.classList.remove("!cursor-not-allowed","!bg-slate-300","!border-slate-300","!text-slate-800"))})}); +class a{constructor(t,e={}){this.options=Object.assign({closeClickOutside:!1,forceStateClose:!1,forceStateOpen:!1,closeEsc:!1,forceStateRestore:!0},e),this.detail=t,this.summary=t.querySelector(":scope > summary"),this._previousStates={}}getMatchMedia(t,e){if(t){if(e&&e===!0)return{matches:!0};if(e&&"matchMedia"in window)return window.matchMedia(e)}}init(){let t=this.getMatchMedia(this.detail,this.options.forceStateOpen),e=this.getMatchMedia(this.detail,this.options.forceStateClose);t&&t.matches&&e&&e.matches?this.setState(!this.detail.open):(t&&t.matches&&this.setState(!0),e&&e.matches&&this.setState(!1)),this.addListener(t,"for-open"),this.addListener(e,"for-close")}addListener(t,e){!t||!("addListener"in t)||t.addListener(s=>{s.matches?(this._previousStates[e]=this.detail.open,this.detail.open!==(e==="for-open")&&this.setState(e==="for-open")):this.options.forceStateRestore&&this._previousStates[e]!==void 0&&this.detail.open!==this._previousStates[e]&&this.setState(this._previousStates[e])})}toggle(){let t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});this.summary.dispatchEvent(t)}triggerClickToClose(){this.summary&&this.options.closeClickOutside&&this.toggle()}setState(t){t?this.detail.setAttribute("open","open"):this.detail.removeAttribute("open")}}class u{constructor(t){this.duration={open:200,close:150},this.detail=t,this.summary=this.detail.querySelector(":scope > summary");let e=this.detail.getAttribute("data-du-animate-target");if(e&&(this.content=this.detail.closest(e)),this.content||(this.content=this.summary.nextElementSibling),!this.content)throw new Error("For now requires a child element for animation.");this.summary.addEventListener("click",this.onclick.bind(this))}parseAnimationFrames(t,...e){let s=[];for(let o of e){let n={};n[t]=o,s.push(n)}return s}getKeyframes(t){let e=this.parseAnimationFrames("maxHeight","0px",`${this.getContentHeight()}px`);return t?e:e.filter(()=>!0).reverse()}getContentHeight(){if(this.contentHeight)return this.contentHeight;if(this.detail.open)return this.contentHeight=this.content.offsetHeight,this.contentHeight}animate(t,e){this.isPending=!0;let s=this.getKeyframes(t);this.animation=this.content.animate(s,{duration:e,easing:"ease-out"}),this.detail.classList.add("details-animating"),this.animation.finished.catch(o=>{}).finally(()=>{this.isPending=!1,this.detail.classList.remove("details-animating")}),t||this.animation.finished.catch(o=>{}).finally(()=>{this.detail.removeAttribute("open")})}open(){this.contentHeight?this.animate(!0,this.duration.open):requestAnimationFrame(()=>this.animate(!0,this.duration.open))}close(){this.animate(!1,this.duration.close)}useAnimation(){return"matchMedia"in window&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}onclick(t){t.target.closest("a[href]")||!this.useAnimation()||(this.isPending?this.animation&&this.animation.cancel():this.detail.open?(t.preventDefault(),this.close()):this.open())}}class f extends HTMLElement{constructor(){super(),this.attrs={animate:"animate",closeEsc:"close-esc",closeClickOutside:"close-click-outside",forceStateClose:"force-close",forceStateOpen:"force-open",forceStateRestore:"force-restore",toggleDocumentClass:"toggle-document-class",closeClickOutsideButton:"data-du-close-click"},this.options={},this._connect()}getAttributeValue(t){let e=this.getAttribute(t);return e===void 0||e===""?!0:e||!1}connectedCallback(){this._connect()}_connect(){if(this.children.length){this._init();return}this._observer=new MutationObserver(this._init.bind(this)),this._observer.observe(this,{childList:!0})}_init(){if(this.initialized)return;this.initialized=!0,this.options.closeClickOutside=this.getAttributeValue(this.attrs.closeClickOutside),this.options.closeEsc=this.getAttributeValue(this.attrs.closeEsc),this.options.forceStateClose=this.getAttributeValue(this.attrs.forceStateClose),this.options.forceStateOpen=this.getAttributeValue(this.attrs.forceStateOpen),this.options.forceStateRestore=this.getAttributeValue(this.attrs.forceStateRestore);let t=Array.from(this.querySelectorAll(":scope details"));for(let e of t)new a(e,this.options).init(),this.hasAttribute(this.attrs.animate)&&new u(e);this.bindCloseOnEsc(t),this.bindClickoutToClose(t),this.toggleDocumentClassName=this.getAttribute(this.attrs.toggleDocumentClass),this.toggleDocumentClassName&&this.bindToggleDocumentClass(t)}bindCloseOnEsc(t){this.options.closeEsc&&document.documentElement.addEventListener("keydown",e=>{if(e.keyCode===27){for(let s of t)if(s.open){let o=new a(s,this.options),n=o.getMatchMedia(s,this.options.closeEsc);(!n||n&&n.matches)&&o.toggle()}}},!1)}isChildOfParent(t,e){for(;t&&t.parentNode;){if(t.parentNode===e)return!0;t=t.parentNode}return!1}onClickoutToClose(t,e){let s=new a(t,this.options),o=s.getMatchMedia(t,this.options.closeClickOutside);if(o&&!o.matches)return;(e.target.hasAttribute(this.attrs.closeClickOutsideButton)||!this.isChildOfParent(e.target,t))&&t.open&&s.triggerClickToClose(t)}bindClickoutToClose(t){document.documentElement.addEventListener("mousedown",e=>{for(let s of t)this.onClickoutToClose(s,e)},!1),this.addEventListener("keypress",e=>{if(e.which===13||e.which===32)for(let s of t)this.onClickoutToClose(s,e)},!1)}bindToggleDocumentClass(t){for(let e of t)e.addEventListener("toggle",s=>{document.documentElement.classList.toggle(this.toggleDocumentClassName,s.target.open)})}}typeof window<"u"&&"customElements"in window&&window.customElements.define("details-utils",f);const r=document.querySelectorAll('[role="alert"]');r.length&&[...r].map(i=>{const t=i.querySelector('button[aria-label="Close"]');return t?window.matchMedia("(prefers-reduced-motion: reduce)").matches?t.addEventListener("click",()=>{i.remove()}):t.addEventListener("click",()=>{i.classList.add("transition-all","scale-100","opacity-100","duration-300"),i.classList.remove("opacity-100","scale-100"),i.classList.add("opacity-0","scale-0"),setTimeout(()=>{i.remove()},300)}):null});const m=[...document.querySelectorAll("[data-expander-button]")];m.map(i=>i.addEventListener("click",()=>{const t=i.getAttribute("data-expander-button"),e=document.querySelector(`[data-expander-list=${t}]`),s=e.getAttribute("aria-expanded")==="true";e.setAttribute("aria-expanded",`${!s}`),e.classList.toggle("hidden")}));const l=document.head.querySelector('meta[name="is_logged_in"]'),c=document.head.querySelector('meta[name="is_staff"]'),d=document.head.querySelector('meta[name="template"]');if(document.location.hostname==="jobs.opensafely.org"){const i=document.createElement("script");i.defer=!0,i.setAttribute("data-domain","jobs.opensafely.org"),i.id="plausible",i.src="https://plausible.io/js/script.pageview-props.js",l&&i.setAttribute("event-is_logged_in",l.content),c&&i.setAttribute("event-is_staff",c.content),d&&i.setAttribute("event-template",d.content),document.head.appendChild(i)}const h=(i=0)=>new Promise(t=>setTimeout(t,i));document.querySelectorAll(`input[type="submit"]:not(.btn--allow-double-click), + button[type="submit"]:not(.btn--allow-double-click)`).forEach(i=>{i.addEventListener("click",async t=>{t.target instanceof HTMLElement&&(await h(1),t.target.setAttribute("disabled","true"),t.target.classList.add("!cursor-not-allowed","!bg-slate-300","!border-slate-300","!text-slate-800"),await h(3e4),t.target.removeAttribute("disabled"),t.target.classList.remove("!cursor-not-allowed","!bg-slate-300","!border-slate-300","!text-slate-800"))})}); diff --git a/assets/dist/assets/components-Kv5wAdKo.js b/assets/dist/assets/components-CfABJOpm.js similarity index 98% rename from assets/dist/assets/components-Kv5wAdKo.js rename to assets/dist/assets/components-CfABJOpm.js index 3a465aa3..90db972c 100644 --- a/assets/dist/assets/components-Kv5wAdKo.js +++ b/assets/dist/assets/components-CfABJOpm.js @@ -1,4 +1,4 @@ -import{H as d}from"./core-83wAAQS5.js";import{c as p,g as y}from"./_commonjsHelpers-4gQjN7DL.js";import"./_datatable-4Wejxm88.js";import"./preload-helper-H-c3VWY_.js";function E(t){const i={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[i],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[i]}]}}var m={exports:{}};(function(t,i){(function(e,u,o){t.exports=o(),t.exports.default=o()})("slugify",p,function(){var e=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),u=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function o(s,a){if(typeof s!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var f=u[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,g=a.trim===void 0?!0:a.trim,n=s.normalize().split("").reduce(function(h,l){var r=f[l];return r===void 0&&(r=e[l]),r===void 0&&(r=l),r===c&&(r=" "),h+r.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(n=n.replace(/[^A-Za-z0-9\s]/g,"")),g&&(n=n.trim()),n=n.replace(/\s+/g,c),a.lower&&(n=n.toLowerCase()),n}return o.extend=function(s){Object.assign(e,s)},o})})(m);var A=m.exports;const O=y(A);d.registerLanguage("django",E);d.highlightAll();document.addEventListener("DOMContentLoaded",()=>{const t=document.querySelectorAll('.prose :where(h2, h3):not(:where([class~="not-prose"] *))'),i=document.getElementById("table-of-contents");t.forEach(e=>(e.id=`${O(e.textContent,{lower:!0,strict:!0})}`,e.tagName==="H3"?i.querySelector("li:last-of-type ul").insertAdjacentHTML("beforeend",`
  • +import{H as d}from"./core-B2AmeFJW.js";import{c as p,g as y}from"./_commonjsHelpers-BosuxZz1.js";import"./_datatable-Dl3Q3-Er.js";import"./preload-helper-DEPslLRF.js";function E(t){const i={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[i],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[i]}]}}var m={exports:{}};(function(t,i){(function(e,u,o){t.exports=o(),t.exports.default=o()})("slugify",p,function(){var e=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),u=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function o(s,a){if(typeof s!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var f=u[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,g=a.trim===void 0?!0:a.trim,n=s.normalize().split("").reduce(function(h,l){var r=f[l];return r===void 0&&(r=e[l]),r===void 0&&(r=l),r===c&&(r=" "),h+r.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(n=n.replace(/[^A-Za-z0-9\s]/g,"")),g&&(n=n.trim()),n=n.replace(/\s+/g,c),a.lower&&(n=n.toLowerCase()),n}return o.extend=function(s){Object.assign(e,s)},o})})(m);var A=m.exports;const O=y(A);d.registerLanguage("django",E);d.highlightAll();document.addEventListener("DOMContentLoaded",()=>{const t=document.querySelectorAll('.prose :where(h2, h3):not(:where([class~="not-prose"] *))'),i=document.getElementById("table-of-contents");t.forEach(e=>(e.id=`${O(e.textContent,{lower:!0,strict:!0})}`,e.tagName==="H3"?i.querySelector("li:last-of-type ul").insertAdjacentHTML("beforeend",`
  • ${e.textContent} diff --git a/assets/dist/assets/components-46WfX2Md.css b/assets/dist/assets/components-DjpZ9fYx.css similarity index 100% rename from assets/dist/assets/components-46WfX2Md.css rename to assets/dist/assets/components-DjpZ9fYx.css diff --git a/assets/dist/assets/core-83wAAQS5.js b/assets/dist/assets/core-B2AmeFJW.js similarity index 99% rename from assets/dist/assets/core-83wAAQS5.js rename to assets/dist/assets/core-B2AmeFJW.js index 742d3510..aca7644e 100644 --- a/assets/dist/assets/core-83wAAQS5.js +++ b/assets/dist/assets/core-B2AmeFJW.js @@ -1,2 +1,2 @@ -import{g as qe}from"./_commonjsHelpers-4gQjN7DL.js";function we(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&we(i)}),e}class he{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function xe(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function B(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const Qe="",pe=e=>!!e.scope,me=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class et{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=xe(t)}openNode(t){if(!pe(t))return;const i=me(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){pe(t)&&(this.buffer+=Qe)}value(){return this.buffer}span(t){this.buffer+=``}}const de=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class te{constructor(){this.rootNode=de(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=de({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{te._collapse(i)}))}}class tt extends te{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new et(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function P(e){return e?typeof e=="string"?e:e.source:null}function Oe(e){return C("(?=",e,")")}function nt(e){return C("(?:",e,")*")}function it(e){return C("(?:",e,")?")}function C(...e){return e.map(i=>P(i)).join("")}function st(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ne(...e){return"("+(st(e).capture?"":"?:")+e.map(u=>P(u)).join("|")+")"}function Re(e){return new RegExp(e.toString()+"|").exec("").length-1}function rt(e,t){const i=e&&e.exec(t);return i&&i.index===0}const ct=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ie(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=P(u),c="";for(;_.length>0;){const r=ct.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const ot=/\b\B/,ye="[a-zA-Z]\\w*",se="[a-zA-Z_]\\w*",Se="\\b\\d+(\\.\\d+)?",Ne="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ae="\\b(0b[01]+)",at="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",lt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=C(t,/.*\b/,e.binary,/\b.*/)),B({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},U={begin:"\\\\[\\s\\S]",relevance:0},ut={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[U]},ft={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[U]},gt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(e,t,i={}){const u=B({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=ne("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:C(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},ht=Y("//","$"),pt=Y("/\\*","\\*/"),dt=Y("#","$"),Et={scope:"number",begin:Se,relevance:0},bt={scope:"number",begin:Ne,relevance:0},_t={scope:"number",begin:Ae,relevance:0},Mt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[U,{begin:/\[/,end:/\]/,relevance:0,contains:[U]}]},wt={scope:"title",begin:ye,relevance:0},xt={scope:"title",begin:se,relevance:0},Ot={begin:"\\.\\s*"+se,relevance:0},Rt=function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})};var z=Object.freeze({__proto__:null,APOS_STRING_MODE:ut,BACKSLASH_ESCAPE:U,BINARY_NUMBER_MODE:_t,BINARY_NUMBER_RE:Ae,COMMENT:Y,C_BLOCK_COMMENT_MODE:pt,C_LINE_COMMENT_MODE:ht,C_NUMBER_MODE:bt,C_NUMBER_RE:Ne,END_SAME_AS_BEGIN:Rt,HASH_COMMENT_MODE:dt,IDENT_RE:ye,MATCH_NOTHING_RE:ot,METHOD_GUARD:Ot,NUMBER_MODE:Et,NUMBER_RE:Se,PHRASAL_WORDS_MODE:gt,QUOTE_STRING_MODE:ft,REGEXP_MODE:Mt,RE_STARTERS_RE:at,SHEBANG:lt,TITLE_MODE:wt,UNDERSCORE_IDENT_RE:se,UNDERSCORE_TITLE_MODE:xt});function yt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function St(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Nt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=yt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function At(e,t){Array.isArray(e.illegal)&&(e.illegal=ne(...e.illegal))}function kt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Tt(e,t){e.relevance===void 0&&(e.relevance=1)}const It=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=C(i.beforeMatch,Oe(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},Bt=["of","and","for","in","not","or","if","then","parent","list","value"],Dt="keyword";function ke(e,t,i=Dt){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,ke(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,vt(l[0],l[1])]})}}function vt(e,t){return t?Number(t):Ct(e)?0:1}function Ct(e){return Bt.includes(e.toLowerCase())}const Ee={},v=e=>{console.error(e)},be=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{Ee[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ee[`${e}/${t}`]=!0)},X=new Error;function Te(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=Re(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Lt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),X;if(typeof e.beginScope!="object"||e.beginScope===null)throw v("beginScope must be object"),X;Te(e,e.begin,{key:"beginScope"}),e.begin=ie(e.begin,{joinWith:""})}}function Ht(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"),X;if(typeof e.endScope!="object"||e.endScope===null)throw v("endScope must be object"),X;Te(e,e.end,{key:"endScope"}),e.end=ie(e.end,{joinWith:""})}}function jt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Pt(e){jt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Lt(e),Ht(e)}function Ut(e){function t(c,r){return new RegExp(P(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=Re(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(ie(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const x=l.findIndex((j,Z)=>Z>0&&j!==void 0),M=this.matchIndexes[x];return l.splice(0,x),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([x,M])=>l.addRule(x,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let x=l.exec(r);if(this.resumingScanAtSamePosition()&&!(x&&x.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,x=M.exec(r)}return x&&(this.regexIndex+=x.position+1,this.regexIndex===this.count&&this.considerAll()),x}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[St,kt,Pt,It].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[Nt,At,Tt].forEach(M=>M(c,r)),c.isCompiled=!0;let x=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),x=c.keywords.$pattern,delete c.keywords.$pattern),x=x||/\w+/,c.keywords&&(c.keywords=ke(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(x,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=P(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return $t(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=B(e.classNameAliases||{}),_(e)}function Ie(e){return e?e.endsWithParent||Ie(e.starts):!1}function $t(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return B(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ie(e)?B(e,{starts:e.starts?B(e.starts):null}):Object.isFrozen(e)?B(e):e}var Gt="11.9.0";class Wt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const ee=xe,_e=B,Me=Symbol("nomatch"),Kt=7,Be=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:tt};function l(n){return r.noHighlightRe.test(n)}function x(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const d=T(h[1]);return d||(be(_.replace("{}",h[1])),be("Falling back to no-highlight mode for this block.",n)),d?h[1]:"no-highlight"}return a.split(/\s+/).find(d=>l(d)||T(d))}function M(n,a,h){let d="",w="";typeof a=="object"?(d=n,h=a.ignoreIllegals,w=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead. +import{g as qe}from"./_commonjsHelpers-BosuxZz1.js";function we(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&we(i)}),e}class he{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function xe(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function B(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const Qe="",pe=e=>!!e.scope,me=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class et{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=xe(t)}openNode(t){if(!pe(t))return;const i=me(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){pe(t)&&(this.buffer+=Qe)}value(){return this.buffer}span(t){this.buffer+=``}}const de=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class te{constructor(){this.rootNode=de(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=de({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{te._collapse(i)}))}}class tt extends te{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new et(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function P(e){return e?typeof e=="string"?e:e.source:null}function Oe(e){return C("(?=",e,")")}function nt(e){return C("(?:",e,")*")}function it(e){return C("(?:",e,")?")}function C(...e){return e.map(i=>P(i)).join("")}function st(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ne(...e){return"("+(st(e).capture?"":"?:")+e.map(u=>P(u)).join("|")+")"}function Re(e){return new RegExp(e.toString()+"|").exec("").length-1}function rt(e,t){const i=e&&e.exec(t);return i&&i.index===0}const ct=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ie(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=P(u),c="";for(;_.length>0;){const r=ct.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const ot=/\b\B/,ye="[a-zA-Z]\\w*",se="[a-zA-Z_]\\w*",Se="\\b\\d+(\\.\\d+)?",Ne="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ae="\\b(0b[01]+)",at="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",lt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=C(t,/.*\b/,e.binary,/\b.*/)),B({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},U={begin:"\\\\[\\s\\S]",relevance:0},ut={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[U]},ft={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[U]},gt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(e,t,i={}){const u=B({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=ne("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:C(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},ht=Y("//","$"),pt=Y("/\\*","\\*/"),dt=Y("#","$"),Et={scope:"number",begin:Se,relevance:0},bt={scope:"number",begin:Ne,relevance:0},_t={scope:"number",begin:Ae,relevance:0},Mt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[U,{begin:/\[/,end:/\]/,relevance:0,contains:[U]}]},wt={scope:"title",begin:ye,relevance:0},xt={scope:"title",begin:se,relevance:0},Ot={begin:"\\.\\s*"+se,relevance:0},Rt=function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})};var z=Object.freeze({__proto__:null,APOS_STRING_MODE:ut,BACKSLASH_ESCAPE:U,BINARY_NUMBER_MODE:_t,BINARY_NUMBER_RE:Ae,COMMENT:Y,C_BLOCK_COMMENT_MODE:pt,C_LINE_COMMENT_MODE:ht,C_NUMBER_MODE:bt,C_NUMBER_RE:Ne,END_SAME_AS_BEGIN:Rt,HASH_COMMENT_MODE:dt,IDENT_RE:ye,MATCH_NOTHING_RE:ot,METHOD_GUARD:Ot,NUMBER_MODE:Et,NUMBER_RE:Se,PHRASAL_WORDS_MODE:gt,QUOTE_STRING_MODE:ft,REGEXP_MODE:Mt,RE_STARTERS_RE:at,SHEBANG:lt,TITLE_MODE:wt,UNDERSCORE_IDENT_RE:se,UNDERSCORE_TITLE_MODE:xt});function yt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function St(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Nt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=yt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function At(e,t){Array.isArray(e.illegal)&&(e.illegal=ne(...e.illegal))}function kt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Tt(e,t){e.relevance===void 0&&(e.relevance=1)}const It=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=C(i.beforeMatch,Oe(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},Bt=["of","and","for","in","not","or","if","then","parent","list","value"],Dt="keyword";function ke(e,t,i=Dt){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,ke(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,vt(l[0],l[1])]})}}function vt(e,t){return t?Number(t):Ct(e)?0:1}function Ct(e){return Bt.includes(e.toLowerCase())}const Ee={},v=e=>{console.error(e)},be=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{Ee[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ee[`${e}/${t}`]=!0)},X=new Error;function Te(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=Re(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Lt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),X;if(typeof e.beginScope!="object"||e.beginScope===null)throw v("beginScope must be object"),X;Te(e,e.begin,{key:"beginScope"}),e.begin=ie(e.begin,{joinWith:""})}}function Ht(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"),X;if(typeof e.endScope!="object"||e.endScope===null)throw v("endScope must be object"),X;Te(e,e.end,{key:"endScope"}),e.end=ie(e.end,{joinWith:""})}}function jt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Pt(e){jt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Lt(e),Ht(e)}function Ut(e){function t(c,r){return new RegExp(P(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=Re(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(ie(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const x=l.findIndex((j,Z)=>Z>0&&j!==void 0),M=this.matchIndexes[x];return l.splice(0,x),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([x,M])=>l.addRule(x,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let x=l.exec(r);if(this.resumingScanAtSamePosition()&&!(x&&x.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,x=M.exec(r)}return x&&(this.regexIndex+=x.position+1,this.regexIndex===this.count&&this.considerAll()),x}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[St,kt,Pt,It].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[Nt,At,Tt].forEach(M=>M(c,r)),c.isCompiled=!0;let x=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),x=c.keywords.$pattern,delete c.keywords.$pattern),x=x||/\w+/,c.keywords&&(c.keywords=ke(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(x,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=P(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return $t(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=B(e.classNameAliases||{}),_(e)}function Ie(e){return e?e.endsWithParent||Ie(e.starts):!1}function $t(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return B(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ie(e)?B(e,{starts:e.starts?B(e.starts):null}):Object.isFrozen(e)?B(e):e}var Gt="11.9.0";class Wt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const ee=xe,_e=B,Me=Symbol("nomatch"),Kt=7,Be=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:tt};function l(n){return r.noHighlightRe.test(n)}function x(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const d=T(h[1]);return d||(be(_.replace("{}",h[1])),be("Falling back to no-highlight mode for this block.",n)),d?h[1]:"no-highlight"}return a.split(/\s+/).find(d=>l(d)||T(d))}function M(n,a,h){let d="",w="";typeof a=="object"?(d=n,h=a.ignoreIllegals,w=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),w=n,d=a),h===void 0&&(h=!0);const S={code:d,language:w};G("before:highlight",S);const I=S.result?S.result:j(S.language,S.code,h);return I.code=S.code,G("after:highlight",I),I}function j(n,a,h,d){const w=Object.create(null);function S(s,o){return s.keywords[o]}function I(){if(!f.keywords){O.addText(E);return}let s=0;f.keywordPatternRe.lastIndex=0;let o=f.keywordPatternRe.exec(E),g="";for(;o;){g+=E.substring(s,o.index);const p=A.case_insensitive?o[0].toLowerCase():o[0],R=S(f,p);if(R){const[k,Je]=R;if(O.addText(g),g="",w[p]=(w[p]||0)+1,w[p]<=Kt&&(F+=Je),k.startsWith("_"))g+=o[0];else{const Ve=A.classNameAliases[k]||k;N(o[0],Ve)}}else g+=o[0];s=f.keywordPatternRe.lastIndex,o=f.keywordPatternRe.exec(E)}g+=E.substring(s),O.addText(g)}function W(){if(E==="")return;let s=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){O.addText(E);return}s=j(f.subLanguage,E,!0,ge[f.subLanguage]),ge[f.subLanguage]=s._top}else s=J(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(F+=s.relevance),O.__addSublanguage(s._emitter,s.language)}function y(){f.subLanguage!=null?W():I(),E=""}function N(s,o){s!==""&&(O.startScope(o),O.addText(s),O.endScope())}function ae(s,o){let g=1;const p=o.length-1;for(;g<=p;){if(!s._emit[g]){g++;continue}const R=A.classNameAliases[s[g]]||s[g],k=o[g];R?N(k,R):(E=k,I(),E=""),g++}}function le(s,o){return s.scope&&typeof s.scope=="string"&&O.openNode(A.classNameAliases[s.scope]||s.scope),s.beginScope&&(s.beginScope._wrap?(N(E,A.classNameAliases[s.beginScope._wrap]||s.beginScope._wrap),E=""):s.beginScope._multi&&(ae(s.beginScope,o),E="")),f=Object.create(s,{parent:{value:f}}),f}function ue(s,o,g){let p=rt(s.endRe,g);if(p){if(s["on:end"]){const R=new he(s);s["on:end"](o,R),R.isMatchIgnored&&(p=!1)}if(p){for(;s.endsParent&&s.parent;)s=s.parent;return s}}if(s.endsWithParent)return ue(s.parent,o,g)}function Fe(s){return f.matcher.regexIndex===0?(E+=s[0],1):(m=!0,0)}function ze(s){const o=s[0],g=s.rule,p=new he(g),R=[g.__beforeBegin,g["on:begin"]];for(const k of R)if(k&&(k(s,p),p.isMatchIgnored))return Fe(o);return g.skip?E+=o:(g.excludeBegin&&(E+=o),y(),!g.returnBegin&&!g.excludeBegin&&(E=o)),le(g,s),g.returnBegin?0:o.length}function Xe(s){const o=s[0],g=a.substring(s.index),p=ue(f,s,g);if(!p)return Me;const R=f;f.endScope&&f.endScope._wrap?(y(),N(o,f.endScope._wrap)):f.endScope&&f.endScope._multi?(y(),ae(f.endScope,s)):R.skip?E+=o:(R.returnEnd||R.excludeEnd||(E+=o),y(),R.excludeEnd&&(E=o));do f.scope&&O.closeNode(),!f.skip&&!f.subLanguage&&(F+=f.relevance),f=f.parent;while(f!==p.parent);return p.starts&&le(p.starts,s),R.returnEnd?0:o.length}function Ye(){const s=[];for(let o=f;o!==A;o=o.parent)o.scope&&s.unshift(o.scope);s.forEach(o=>O.openNode(o))}let K={};function fe(s,o){const g=o&&o[0];if(E+=s,g==null)return y(),0;if(K.type==="begin"&&o.type==="end"&&K.index===o.index&&g===""){if(E+=a.slice(o.index,o.index+1),!b){const p=new Error(`0 width match regex (${n})`);throw p.languageName=n,p.badRule=K.rule,p}return 1}if(K=o,o.type==="begin")return ze(o);if(o.type==="illegal"&&!h){const p=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"")+'"');throw p.mode=f,p}else if(o.type==="end"){const p=Xe(o);if(p!==Me)return p}if(o.type==="illegal"&&g==="")return 1;if(Q>1e5&&Q>o.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const A=T(n);if(!A)throw v(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const Ze=Ut(A);let q="",f=d||Ze;const ge={},O=new r.__emitter(r);Ye();let E="",F=0,D=0,Q=0,m=!1;try{if(A.__emitTokens)A.__emitTokens(a,O);else{for(f.matcher.considerAll();;){Q++,m?m=!1:f.matcher.considerAll(),f.matcher.lastIndex=D;const s=f.matcher.exec(a);if(!s)break;const o=a.substring(D,s.index),g=fe(o,s);D=s.index+g}fe(a.substring(D))}return O.finalize(),q=O.toHTML(),{language:n,value:q,relevance:F,illegal:!1,_emitter:O,_top:f}}catch(s){if(s.message&&s.message.includes("Illegal"))return{language:n,value:ee(a),illegal:!0,relevance:0,_illegalBy:{message:s.message,index:D,context:a.slice(D-100,D+100),mode:s.mode,resultSoFar:q},_emitter:O};if(b)return{language:n,value:ee(a),illegal:!1,relevance:0,errorRaised:s,_emitter:O,_top:f};throw s}}function Z(n){const a={value:ee(n),illegal:!1,relevance:0,_top:c,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function J(n,a){a=a||r.languages||Object.keys(t);const h=Z(n),d=a.filter(T).filter(oe).map(y=>j(y,n,!1));d.unshift(h);const w=d.sort((y,N)=>{if(y.relevance!==N.relevance)return N.relevance-y.relevance;if(y.language&&N.language){if(T(y.language).supersetOf===N.language)return 1;if(T(N.language).supersetOf===y.language)return-1}return 0}),[S,I]=w,W=S;return W.secondBest=I,W}function De(n,a,h){const d=a&&i[a]||h;n.classList.add("hljs"),n.classList.add(`language-${d}`)}function V(n){let a=null;const h=x(n);if(l(h))return;if(G("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new Wt("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const d=a.textContent,w=h?M(d,{language:h,ignoreIllegals:!0}):J(d);n.innerHTML=w.value,n.dataset.highlighted="yes",De(n,h,w.language),n.result={language:w.language,re:w.relevance,relevance:w.relevance},w.secondBest&&(n.secondBest={language:w.secondBest.language,relevance:w.secondBest.relevance}),G("after:highlightElement",{el:n,result:w,text:d})}function ve(n){r=_e(r,n)}const Ce=()=>{$(),L("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Le(){$(),L("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let re=!1;function $(){if(document.readyState==="loading"){re=!0;return}document.querySelectorAll(r.cssSelector).forEach(V)}function He(){re&&$()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",He,!1);function je(n,a){let h=null;try{h=a(e)}catch(d){if(v("Language definition for '{}' could not be registered.".replace("{}",n)),b)v(d);else throw d;h=c}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&ce(h.aliases,{languageName:n})}function Pe(n){delete t[n];for(const a of Object.keys(i))i[a]===n&&delete i[a]}function Ue(){return Object.keys(t)}function T(n){return n=(n||"").toLowerCase(),t[n]||t[i[n]]}function ce(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{i[h.toLowerCase()]=a})}function oe(n){const a=T(n);return a&&!a.disableAutodetect}function $e(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function Ge(n){$e(n),u.push(n)}function We(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function G(n,a){const h=n;u.forEach(function(d){d[h]&&d[h](a)})}function Ke(n){return L("10.7.0","highlightBlock will be removed entirely in v12.0"),L("10.7.0","Please use highlightElement now."),V(n)}Object.assign(e,{highlight:M,highlightAuto:J,highlightAll:$,highlightElement:V,highlightBlock:Ke,configure:ve,initHighlighting:Ce,initHighlightingOnLoad:Le,registerLanguage:je,unregisterLanguage:Pe,listLanguages:Ue,getLanguage:T,registerAliases:ce,autoDetection:oe,inherit:_e,addPlugin:Ge,removePlugin:We}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=Gt,e.regex={concat:C,lookahead:Oe,either:ne,optional:it,anyNumberOfTimes:nt};for(const n in z)typeof z[n]=="object"&&we(z[n]);return Object.assign(e,z),e},H=Be({});H.newInstance=()=>Be({});var Ft=H;H.HighlightJS=H;H.default=H;const Xt=qe(Ft);export{Xt as H}; diff --git a/assets/dist/assets/core-ChbsETua.js b/assets/dist/assets/core-ChbsETua.js new file mode 100644 index 00000000..d496a3c7 --- /dev/null +++ b/assets/dist/assets/core-ChbsETua.js @@ -0,0 +1 @@ +import{H as i}from"./core-B2AmeFJW.js";import"./_commonjsHelpers-BosuxZz1.js";export{i as HighlightJS,i as default}; diff --git a/assets/dist/assets/core-qr9noKQr.js b/assets/dist/assets/core-qr9noKQr.js deleted file mode 100644 index 4fbbba9f..00000000 --- a/assets/dist/assets/core-qr9noKQr.js +++ /dev/null @@ -1 +0,0 @@ -import{H as i}from"./core-83wAAQS5.js";import"./_commonjsHelpers-4gQjN7DL.js";export{i as HighlightJS,i as default}; diff --git a/assets/dist/assets/github-hpNP9OIE.css b/assets/dist/assets/github-CGk0_04g.css similarity index 100% rename from assets/dist/assets/github-hpNP9OIE.css rename to assets/dist/assets/github-CGk0_04g.css diff --git a/assets/dist/assets/html2canvas-2SmrMddJ.js b/assets/dist/assets/html2canvas-C7qp1yOm.js similarity index 74% rename from assets/dist/assets/html2canvas-2SmrMddJ.js rename to assets/dist/assets/html2canvas-C7qp1yOm.js index ce7a7331..f0beed22 100644 --- a/assets/dist/assets/html2canvas-2SmrMddJ.js +++ b/assets/dist/assets/html2canvas-C7qp1yOm.js @@ -1 +1 @@ -import{g as c}from"./_commonjsHelpers-4gQjN7DL.js";import{r as f}from"./html2pdf-SF21G6Sk.js";function l(r,n){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s=f();const i=c(s),u=l({__proto__:null,default:i},[s]);export{u as h}; +import{g as c}from"./_commonjsHelpers-BosuxZz1.js";import{r as f}from"./html2pdf-CISx9sC5.js";function l(r,n){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s=f();const i=c(s),u=l({__proto__:null,default:i},[s]);export{u as h}; diff --git a/assets/dist/assets/html2pdf-SF21G6Sk.js b/assets/dist/assets/html2pdf-CISx9sC5.js similarity index 99% rename from assets/dist/assets/html2pdf-SF21G6Sk.js rename to assets/dist/assets/html2pdf-CISx9sC5.js index 7467c861..478688fb 100644 --- a/assets/dist/assets/html2pdf-SF21G6Sk.js +++ b/assets/dist/assets/html2pdf-CISx9sC5.js @@ -1,4 +1,4 @@ -import{a as sh,c as sa,g as ih}from"./_commonjsHelpers-4gQjN7DL.js";import{_ as ll}from"./preload-helper-H-c3VWY_.js";function oh(a,t){for(var n=0;nc[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var Eu={exports:{}};function st(a){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(a)}var Br=Uint8Array,wr=Uint16Array,ua=Uint32Array,lc=new Br([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),uc=new Br([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ul=new Br([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lu=function(a,t){for(var n=new wr(31),c=0;c<31;++c)n[c]=t+=1<>>1|(ft&21845)<<1;Vs=(Vs&52428)>>>2|(Vs&13107)<<2,Vs=(Vs&61680)>>>4|(Vs&3855)<<4,hl[ft]=((Vs&65280)>>>8|(Vs&255)<<8)>>>1}var Rn=function(a,t,n){for(var c=a.length,d=0,u=new wr(t);d>>f]=m}else for(v=new wr(c),d=0;d>>15-a[d];return v},Ys=new Br(288);for(var ft=0;ft<144;++ft)Ys[ft]=8;for(var ft=144;ft<256;++ft)Ys[ft]=9;for(var ft=256;ft<280;++ft)Ys[ft]=7;for(var ft=280;ft<288;++ft)Ys[ft]=8;var fa=new Br(32);for(var ft=0;ft<32;++ft)fa[ft]=5;var ch=Rn(Ys,9,0),lh=Rn(Ys,9,1),uh=Rn(fa,5,0),fh=Rn(fa,5,1),Al=function(a){for(var t=a[0],n=1;nt&&(t=a[n]);return t},Bn=function(a,t,n){var c=t/8>>0;return(a[c]|a[c+1]<<8)>>>(t&7)&n},el=function(a,t){var n=t/8>>0;return(a[n]|a[n+1]<<8|a[n+2]<<16)>>>(t&7)},Cl=function(a){return(a/8>>0)+(a&7&&1)},Hu=function(a,t,n){(t==null||t<0)&&(t=0),(n==null||n>a.length)&&(n=a.length);var c=new(a instanceof wr?wr:a instanceof ua?ua:Br)(n-t);return c.set(a.subarray(t,n)),c},hh=function(a,t,n){var c=a.length,d=!t||n,u=!n||n.i;n||(n={}),t||(t=new Br(c*3));var p=function(uA){var gA=t.length;if(uA>gA){var FA=new Br(Math.max(gA*2,uA));FA.set(t),t=FA}},v=n.f||0,f=n.p||0,m=n.b||0,l=n.l,y=n.d,C=n.m,g=n.n,L=c*8;do{if(!l){n.f=v=Bn(a,f,1);var E=Bn(a,f+1,3);if(f+=3,E)if(E==1)l=lh,y=fh,C=9,g=5;else if(E==2){var I=Bn(a,f,31)+257,_=Bn(a,f+10,15)+4,R=I+Bn(a,f+5,31)+1;f+=14;for(var Z=new Br(R),AA=new Br(19),V=0;V<_;++V)AA[ul[V]]=Bn(a,f+V*3,7);f+=_*3;var dA=Al(AA),cA=(1<L)break;for(var T=Rn(AA,dA,1),V=0;V>>4;if(x<16)Z[V++]=x;else{var z=0,J=0;for(x==16?(J=3+Bn(a,f,3),f+=2,z=Z[V-1]):x==17?(J=3+Bn(a,f,7),f+=3):x==18&&(J=11+Bn(a,f,127),f+=7);J--;)Z[V++]=z}}var tA=Z.subarray(0,I),aA=Z.subarray(I);C=Al(tA),g=Al(aA),l=Rn(tA,C,1),y=Rn(aA,g,1)}else throw"invalid block type";else{var x=Cl(f)+4,Q=a[x-4]|a[x-3]<<8,U=x+Q;if(U>c){if(u)throw"unexpected EOF";break}d&&p(m+Q),t.set(a.subarray(x,U),m),n.b=m+=Q,n.p=f=U*8;continue}if(f>L)throw"unexpected EOF"}d&&p(m+131072);for(var vA=(1<>>4;if(f+=z&15,f>L)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(QA<256)t[m++]=QA;else if(QA==256){l=null;break}else{var PA=QA-254;if(QA>264){var V=QA-257,N=lc[V];PA=Bn(a,f,(1<>>4;if(!X)throw"invalid distance";f+=X&15;var aA=ah[q];if(q>3){var N=uc[q];aA+=el(a,f)&(1<L)throw"unexpected EOF";d&&p(m+131072);for(var eA=m+PA;m>0;a[c]|=n,a[c+1]|=n>>>8},ra=function(a,t,n){n<<=t&7;var c=t/8>>0;a[c]|=n,a[c+1]|=n>>>8,a[c+2]|=n>>>16},tl=function(a,t){for(var n=[],c=0;cC&&(C=u[c].s);var g=new wr(C+1),L=dl(n[l-1],g,0);if(L>t){var c=0,E=0,x=L-t,Q=1<t)E+=Q-(1<>>=x;E>0;){var I=u[c].s;g[I]=0&&E;--c){var _=u[c].s;g[_]==t&&(--g[_],++E)}L=t}return[new Br(g),L]},dl=function(a,t,n){return a.s==-1?Math.max(dl(a.l,t,n+1),dl(a.r,t,n+1)):t[a.s]=n},ou=function(a){for(var t=a.length;t&&!a[--t];);for(var n=new wr(++t),c=0,d=a[0],u=1,p=function(f){n[c++]=f},v=1;v<=t;++v)if(a[v]==d&&v!=t)++u;else{if(!d&&u>2){for(;u>138;u-=138)p(32754);u>2&&(p(u>10?u-11<<5|28690:u-3<<5|12305),u=0)}else if(u>3){for(p(d),--u;u>6;u-=6)p(8304);u>2&&(p(u-3<<5|8208),u=0)}for(;u--;)p(d);u=1,d=a[v]}return[n.subarray(0,c),t]},na=function(a,t){for(var n=0,c=0;c>>8,a[d+2]=a[d]^255,a[d+3]=a[d+1]^255;for(var u=0;u4&&!cA[ul[M-1]];--M);var z=m+5<<3,J=na(d,Ys)+na(u,fa)+p,tA=na(d,C)+na(u,E)+p+14+3*M+na(AA,cA)+(2*AA[16]+3*AA[17]+7*AA[18]);if(z<=J&&z<=tA)return ac(t,l,a.subarray(f,f+m));var aA,vA,hA,UA;if(hs(t,l,1+(tA15&&(hs(t,l,X[V]>>>5&127),l+=X[V]>>>12)}}else aA=ch,vA=Ys,hA=uh,UA=fa;for(var V=0;V255){var q=c[V]>>>18&31;ra(t,l,aA[q+257]),l+=vA[q+257],q>7&&(hs(t,l,c[V]>>>23&31),l+=lc[q]);var eA=c[V]&31;ra(t,l,hA[eA]),l+=UA[eA],eA>3&&(ra(t,l,c[V]>>>5&8191),l+=uc[eA])}else ra(t,l,aA[c[V]]),l+=vA[c[V]];return ra(t,l,aA[256]),l+vA[256]},dh=new ua([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gh=new Br(0),ph=function(a,t,n,c,d,u){var p=a.length,v=new Br(c+p+5*(1+Math.floor(p/7e3))+d),f=v.subarray(c,v.length-d),m=0;if(!t||p<8)for(var l=0;l<=p;l+=65535){var y=l+65535;y>>13,L=C&8191,E=(1<7e3||cA>24576)&&aA>423){m=au(a,f,0,R,Z,AA,dA,cA,M,l-M,m),cA=V=dA=0,M=l;for(var vA=0;vA<286;++vA)Z[vA]=0;for(var vA=0;vA<30;++vA)AA[vA]=0}var hA=2,UA=0,QA=L,PA=J-tA&32767;if(aA>2&&z==_(l-PA))for(var N=Math.min(g,aA)-1,X=Math.min(32767,l),q=Math.min(258,aA);PA<=X&&--QA&&J!=tA;){if(a[l+hA]==a[l+hA-PA]){for(var eA=0;eAhA){if(hA=eA,UA=PA,eA>N)break;for(var uA=Math.min(PA,eA-2),gA=0,vA=0;vAgA&&(gA=DA,tA=FA)}}}J=tA,tA=x[J],PA+=J-tA+32768&32767}if(UA){R[cA++]=268435456|fl[hA]<<18|iu[UA];var KA=fl[hA]&31,RA=iu[UA]&31;dA+=lc[KA]+uc[RA],++Z[257+KA],++AA[RA],T=l+hA,++V}else R[cA++]=a[l],++Z[a[l]]}}m=au(a,f,u,R,Z,AA,dA,cA,M,l-M,m),u||(m=ac(f,m,gh))}return Hu(v,0,c+Cl(m)+d)},Bh=function(){var a=1,t=0;return{p:function(n){for(var c=a,d=t,u=n.length,p=0;p!=u;){for(var v=Math.min(p+5552,u);p>>8<<16|(t&255)<<8|t>>>8)+((a&255)<<23)*2}}},wh=function(a,t,n,c,d){return ph(a,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(a.length)))*1.5):12+t.mem,n,c,!d)},vh=function(a,t,n){for(;n;++t)a[t]=n,n>>>=8},mh=function(a,t){var n=t.level,c=n==0?0:n<6?1:n==9?3:2;a[0]=120,a[1]=c<<6|(c?32-2*c:1)},yh=function(a){if((a[0]&15)!=8||a[0]>>>4>7||(a[0]<<8|a[1])%31)throw"invalid zlib data";if(a[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function gl(a,t){t===void 0&&(t={});var n=Bh();n.p(a);var c=wh(a,t,2,4);return mh(c,t),vh(c,c.length-4,n.d()),c}function Ch(a,t){return hh((yh(a),a.subarray(2,-4)),t)}var Ie=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function rl(){Ie.console&&typeof Ie.console.log=="function"&&Ie.console.log.apply(Ie.console,arguments)}var ot={log:rl,warn:function(a){Ie.console&&(typeof Ie.console.warn=="function"?Ie.console.warn.apply(Ie.console,arguments):rl.call(null,arguments))},error:function(a){Ie.console&&(typeof Ie.console.error=="function"?Ie.console.error.apply(Ie.console,arguments):rl(a))}};function nl(a,t,n){var c=new XMLHttpRequest;c.open("GET",a),c.responseType="blob",c.onload=function(){Ci(c.response,t,n)},c.onerror=function(){ot.error("could not download file")},c.send()}function cu(a){var t=new XMLHttpRequest;t.open("HEAD",a,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function nc(a){try{a.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(t)}}var ia,pl,Ci=Ie.saveAs||((typeof window>"u"?"undefined":st(window))!=="object"||window!==Ie?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(a,t,n){var c=Ie.URL||Ie.webkitURL,d=document.createElement("a");t=t||a.name||"download",d.download=t,d.rel="noopener",typeof a=="string"?(d.href=a,d.origin!==location.origin?cu(d.href)?nl(a,t,n):nc(d,d.target="_blank"):nc(d)):(d.href=c.createObjectURL(a),setTimeout(function(){c.revokeObjectURL(d.href)},4e4),setTimeout(function(){nc(d)},0))}:"msSaveOrOpenBlob"in navigator?function(a,t,n){if(t=t||a.name||"download",typeof a=="string")if(cu(a))nl(a,t,n);else{var c=document.createElement("a");c.href=a,c.target="_blank",setTimeout(function(){nc(c)})}else navigator.msSaveOrOpenBlob(function(d,u){return u===void 0?u={autoBom:!1}:st(u)!=="object"&&(ot.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}(a,n),t)}:function(a,t,n,c){if((c=c||open("","_blank"))&&(c.document.title=c.document.body.innerText="downloading..."),typeof a=="string")return nl(a,t,n);var d=a.type==="application/octet-stream",u=/constructor/i.test(Ie.HTMLElement)||Ie.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||d&&u)&&(typeof FileReader>"u"?"undefined":st(FileReader))==="object"){var v=new FileReader;v.onloadend=function(){var l=v.result;l=p?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=l:location=l,c=null},v.readAsDataURL(a)}else{var f=Ie.URL||Ie.webkitURL,m=f.createObjectURL(a);c?c.location=m:location.href=m,c=null,setTimeout(function(){f.revokeObjectURL(m)},4e4)}});/** +import{a as sh,c as sa,g as ih}from"./_commonjsHelpers-BosuxZz1.js";import{_ as ll}from"./preload-helper-DEPslLRF.js";function oh(a,t){for(var n=0;nc[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var Eu={exports:{}};function st(a){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(a)}var Br=Uint8Array,wr=Uint16Array,ua=Uint32Array,lc=new Br([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),uc=new Br([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ul=new Br([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lu=function(a,t){for(var n=new wr(31),c=0;c<31;++c)n[c]=t+=1<>>1|(ft&21845)<<1;Vs=(Vs&52428)>>>2|(Vs&13107)<<2,Vs=(Vs&61680)>>>4|(Vs&3855)<<4,hl[ft]=((Vs&65280)>>>8|(Vs&255)<<8)>>>1}var Rn=function(a,t,n){for(var c=a.length,d=0,u=new wr(t);d>>f]=m}else for(v=new wr(c),d=0;d>>15-a[d];return v},Ys=new Br(288);for(var ft=0;ft<144;++ft)Ys[ft]=8;for(var ft=144;ft<256;++ft)Ys[ft]=9;for(var ft=256;ft<280;++ft)Ys[ft]=7;for(var ft=280;ft<288;++ft)Ys[ft]=8;var fa=new Br(32);for(var ft=0;ft<32;++ft)fa[ft]=5;var ch=Rn(Ys,9,0),lh=Rn(Ys,9,1),uh=Rn(fa,5,0),fh=Rn(fa,5,1),Al=function(a){for(var t=a[0],n=1;nt&&(t=a[n]);return t},Bn=function(a,t,n){var c=t/8>>0;return(a[c]|a[c+1]<<8)>>>(t&7)&n},el=function(a,t){var n=t/8>>0;return(a[n]|a[n+1]<<8|a[n+2]<<16)>>>(t&7)},Cl=function(a){return(a/8>>0)+(a&7&&1)},Hu=function(a,t,n){(t==null||t<0)&&(t=0),(n==null||n>a.length)&&(n=a.length);var c=new(a instanceof wr?wr:a instanceof ua?ua:Br)(n-t);return c.set(a.subarray(t,n)),c},hh=function(a,t,n){var c=a.length,d=!t||n,u=!n||n.i;n||(n={}),t||(t=new Br(c*3));var p=function(uA){var gA=t.length;if(uA>gA){var FA=new Br(Math.max(gA*2,uA));FA.set(t),t=FA}},v=n.f||0,f=n.p||0,m=n.b||0,l=n.l,y=n.d,C=n.m,g=n.n,L=c*8;do{if(!l){n.f=v=Bn(a,f,1);var E=Bn(a,f+1,3);if(f+=3,E)if(E==1)l=lh,y=fh,C=9,g=5;else if(E==2){var I=Bn(a,f,31)+257,_=Bn(a,f+10,15)+4,R=I+Bn(a,f+5,31)+1;f+=14;for(var Z=new Br(R),AA=new Br(19),V=0;V<_;++V)AA[ul[V]]=Bn(a,f+V*3,7);f+=_*3;var dA=Al(AA),cA=(1<L)break;for(var T=Rn(AA,dA,1),V=0;V>>4;if(x<16)Z[V++]=x;else{var z=0,J=0;for(x==16?(J=3+Bn(a,f,3),f+=2,z=Z[V-1]):x==17?(J=3+Bn(a,f,7),f+=3):x==18&&(J=11+Bn(a,f,127),f+=7);J--;)Z[V++]=z}}var tA=Z.subarray(0,I),aA=Z.subarray(I);C=Al(tA),g=Al(aA),l=Rn(tA,C,1),y=Rn(aA,g,1)}else throw"invalid block type";else{var x=Cl(f)+4,Q=a[x-4]|a[x-3]<<8,U=x+Q;if(U>c){if(u)throw"unexpected EOF";break}d&&p(m+Q),t.set(a.subarray(x,U),m),n.b=m+=Q,n.p=f=U*8;continue}if(f>L)throw"unexpected EOF"}d&&p(m+131072);for(var vA=(1<>>4;if(f+=z&15,f>L)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(QA<256)t[m++]=QA;else if(QA==256){l=null;break}else{var PA=QA-254;if(QA>264){var V=QA-257,N=lc[V];PA=Bn(a,f,(1<>>4;if(!X)throw"invalid distance";f+=X&15;var aA=ah[q];if(q>3){var N=uc[q];aA+=el(a,f)&(1<L)throw"unexpected EOF";d&&p(m+131072);for(var eA=m+PA;m>0;a[c]|=n,a[c+1]|=n>>>8},ra=function(a,t,n){n<<=t&7;var c=t/8>>0;a[c]|=n,a[c+1]|=n>>>8,a[c+2]|=n>>>16},tl=function(a,t){for(var n=[],c=0;cC&&(C=u[c].s);var g=new wr(C+1),L=dl(n[l-1],g,0);if(L>t){var c=0,E=0,x=L-t,Q=1<t)E+=Q-(1<>>=x;E>0;){var I=u[c].s;g[I]=0&&E;--c){var _=u[c].s;g[_]==t&&(--g[_],++E)}L=t}return[new Br(g),L]},dl=function(a,t,n){return a.s==-1?Math.max(dl(a.l,t,n+1),dl(a.r,t,n+1)):t[a.s]=n},ou=function(a){for(var t=a.length;t&&!a[--t];);for(var n=new wr(++t),c=0,d=a[0],u=1,p=function(f){n[c++]=f},v=1;v<=t;++v)if(a[v]==d&&v!=t)++u;else{if(!d&&u>2){for(;u>138;u-=138)p(32754);u>2&&(p(u>10?u-11<<5|28690:u-3<<5|12305),u=0)}else if(u>3){for(p(d),--u;u>6;u-=6)p(8304);u>2&&(p(u-3<<5|8208),u=0)}for(;u--;)p(d);u=1,d=a[v]}return[n.subarray(0,c),t]},na=function(a,t){for(var n=0,c=0;c>>8,a[d+2]=a[d]^255,a[d+3]=a[d+1]^255;for(var u=0;u4&&!cA[ul[M-1]];--M);var z=m+5<<3,J=na(d,Ys)+na(u,fa)+p,tA=na(d,C)+na(u,E)+p+14+3*M+na(AA,cA)+(2*AA[16]+3*AA[17]+7*AA[18]);if(z<=J&&z<=tA)return ac(t,l,a.subarray(f,f+m));var aA,vA,hA,UA;if(hs(t,l,1+(tA15&&(hs(t,l,X[V]>>>5&127),l+=X[V]>>>12)}}else aA=ch,vA=Ys,hA=uh,UA=fa;for(var V=0;V255){var q=c[V]>>>18&31;ra(t,l,aA[q+257]),l+=vA[q+257],q>7&&(hs(t,l,c[V]>>>23&31),l+=lc[q]);var eA=c[V]&31;ra(t,l,hA[eA]),l+=UA[eA],eA>3&&(ra(t,l,c[V]>>>5&8191),l+=uc[eA])}else ra(t,l,aA[c[V]]),l+=vA[c[V]];return ra(t,l,aA[256]),l+vA[256]},dh=new ua([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gh=new Br(0),ph=function(a,t,n,c,d,u){var p=a.length,v=new Br(c+p+5*(1+Math.floor(p/7e3))+d),f=v.subarray(c,v.length-d),m=0;if(!t||p<8)for(var l=0;l<=p;l+=65535){var y=l+65535;y>>13,L=C&8191,E=(1<7e3||cA>24576)&&aA>423){m=au(a,f,0,R,Z,AA,dA,cA,M,l-M,m),cA=V=dA=0,M=l;for(var vA=0;vA<286;++vA)Z[vA]=0;for(var vA=0;vA<30;++vA)AA[vA]=0}var hA=2,UA=0,QA=L,PA=J-tA&32767;if(aA>2&&z==_(l-PA))for(var N=Math.min(g,aA)-1,X=Math.min(32767,l),q=Math.min(258,aA);PA<=X&&--QA&&J!=tA;){if(a[l+hA]==a[l+hA-PA]){for(var eA=0;eAhA){if(hA=eA,UA=PA,eA>N)break;for(var uA=Math.min(PA,eA-2),gA=0,vA=0;vAgA&&(gA=DA,tA=FA)}}}J=tA,tA=x[J],PA+=J-tA+32768&32767}if(UA){R[cA++]=268435456|fl[hA]<<18|iu[UA];var KA=fl[hA]&31,RA=iu[UA]&31;dA+=lc[KA]+uc[RA],++Z[257+KA],++AA[RA],T=l+hA,++V}else R[cA++]=a[l],++Z[a[l]]}}m=au(a,f,u,R,Z,AA,dA,cA,M,l-M,m),u||(m=ac(f,m,gh))}return Hu(v,0,c+Cl(m)+d)},Bh=function(){var a=1,t=0;return{p:function(n){for(var c=a,d=t,u=n.length,p=0;p!=u;){for(var v=Math.min(p+5552,u);p>>8<<16|(t&255)<<8|t>>>8)+((a&255)<<23)*2}}},wh=function(a,t,n,c,d){return ph(a,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(a.length)))*1.5):12+t.mem,n,c,!d)},vh=function(a,t,n){for(;n;++t)a[t]=n,n>>>=8},mh=function(a,t){var n=t.level,c=n==0?0:n<6?1:n==9?3:2;a[0]=120,a[1]=c<<6|(c?32-2*c:1)},yh=function(a){if((a[0]&15)!=8||a[0]>>>4>7||(a[0]<<8|a[1])%31)throw"invalid zlib data";if(a[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function gl(a,t){t===void 0&&(t={});var n=Bh();n.p(a);var c=wh(a,t,2,4);return mh(c,t),vh(c,c.length-4,n.d()),c}function Ch(a,t){return hh((yh(a),a.subarray(2,-4)),t)}var Ie=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function rl(){Ie.console&&typeof Ie.console.log=="function"&&Ie.console.log.apply(Ie.console,arguments)}var ot={log:rl,warn:function(a){Ie.console&&(typeof Ie.console.warn=="function"?Ie.console.warn.apply(Ie.console,arguments):rl.call(null,arguments))},error:function(a){Ie.console&&(typeof Ie.console.error=="function"?Ie.console.error.apply(Ie.console,arguments):rl(a))}};function nl(a,t,n){var c=new XMLHttpRequest;c.open("GET",a),c.responseType="blob",c.onload=function(){Ci(c.response,t,n)},c.onerror=function(){ot.error("could not download file")},c.send()}function cu(a){var t=new XMLHttpRequest;t.open("HEAD",a,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function nc(a){try{a.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(t)}}var ia,pl,Ci=Ie.saveAs||((typeof window>"u"?"undefined":st(window))!=="object"||window!==Ie?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(a,t,n){var c=Ie.URL||Ie.webkitURL,d=document.createElement("a");t=t||a.name||"download",d.download=t,d.rel="noopener",typeof a=="string"?(d.href=a,d.origin!==location.origin?cu(d.href)?nl(a,t,n):nc(d,d.target="_blank"):nc(d)):(d.href=c.createObjectURL(a),setTimeout(function(){c.revokeObjectURL(d.href)},4e4),setTimeout(function(){nc(d)},0))}:"msSaveOrOpenBlob"in navigator?function(a,t,n){if(t=t||a.name||"download",typeof a=="string")if(cu(a))nl(a,t,n);else{var c=document.createElement("a");c.href=a,c.target="_blank",setTimeout(function(){nc(c)})}else navigator.msSaveOrOpenBlob(function(d,u){return u===void 0?u={autoBom:!1}:st(u)!=="object"&&(ot.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}(a,n),t)}:function(a,t,n,c){if((c=c||open("","_blank"))&&(c.document.title=c.document.body.innerText="downloading..."),typeof a=="string")return nl(a,t,n);var d=a.type==="application/octet-stream",u=/constructor/i.test(Ie.HTMLElement)||Ie.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||d&&u)&&(typeof FileReader>"u"?"undefined":st(FileReader))==="object"){var v=new FileReader;v.onloadend=function(){var l=v.result;l=p?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=l:location=l,c=null},v.readAsDataURL(a)}else{var f=Ie.URL||Ie.webkitURL,m=f.createObjectURL(a);c?c.location=m:location.href=m,c=null,setTimeout(function(){f.revokeObjectURL(m)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} @@ -67,7 +67,7 @@ T* `):h.join(` Tj `),t}},Cross:{createAppearanceStream:function(a){var t={D:{Off:le.RadioButton.Cross.OffPushDown},N:{}};return t.N[a]=le.RadioButton.Cross.YesNormal,t.D[a]=le.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(a){var t=Mn(a);t.scope=a.scope;var n=[],c=le.internal.calculateCross(a);return n.push("q"),n.push("1 1 "+Oe(le.internal.getWidth(a)-2)+" "+Oe(le.internal.getHeight(a)-2)+" re"),n.push("W"),n.push("n"),n.push(Oe(c.x1.x)+" "+Oe(c.x1.y)+" m"),n.push(Oe(c.x2.x)+" "+Oe(c.x2.y)+" l"),n.push(Oe(c.x4.x)+" "+Oe(c.x4.y)+" m"),n.push(Oe(c.x3.x)+" "+Oe(c.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` `),t},YesPushDown:function(a){var t=Mn(a);t.scope=a.scope;var n=le.internal.calculateCross(a),c=[];return c.push("0.749023 g"),c.push("0 0 "+Oe(le.internal.getWidth(a))+" "+Oe(le.internal.getHeight(a))+" re"),c.push("f"),c.push("q"),c.push("1 1 "+Oe(le.internal.getWidth(a)-2)+" "+Oe(le.internal.getHeight(a)-2)+" re"),c.push("W"),c.push("n"),c.push(Oe(n.x1.x)+" "+Oe(n.x1.y)+" m"),c.push(Oe(n.x2.x)+" "+Oe(n.x2.y)+" l"),c.push(Oe(n.x4.x)+" "+Oe(n.x4.y)+" m"),c.push(Oe(n.x3.x)+" "+Oe(n.x3.y)+" l"),c.push("s"),c.push("Q"),t.stream=c.join(` `),t},OffPushDown:function(a){var t=Mn(a);t.scope=a.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Oe(le.internal.getWidth(a))+" "+Oe(le.internal.getHeight(a))+" re"),n.push("f"),t.stream=n.join(` -`),t}}},createDefaultAppearanceStream:function(a){var t=a.scope.internal.getFont(a.fontName,a.fontStyle).id,n=a.scope.__private__.encodeColorString(a.color);return"/"+t+" "+a.fontSize+" Tf "+n}};le.internal={Bezier_C:.551915024494,calculateCross:function(a){var t=le.internal.getWidth(a),n=le.internal.getHeight(a),c=Math.min(t,n);return{x1:{x:(t-c)/2,y:(n-c)/2+c},x2:{x:(t-c)/2+c,y:(n-c)/2},x3:{x:(t-c)/2,y:(n-c)/2},x4:{x:(t-c)/2+c,y:(n-c)/2+c}}}},le.internal.getWidth=function(a){var t=0;return st(a)==="object"&&(t=hu(a.Rect[2])),t},le.internal.getHeight=function(a){var t=0;return st(a)==="object"&&(t=hu(a.Rect[3])),t};var Ph=Qt.addField=function(a){if(Oh(this,a),!(a instanceof vn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=a).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),a.page=a.scope.internal.getCurrentPageInfo().pageNumber,this};Qt.AcroFormChoiceField=Qi,Qt.AcroFormListBox=bi,Qt.AcroFormComboBox=Ui,Qt.AcroFormEditBox=oa,Qt.AcroFormButton=Rt,Qt.AcroFormPushButton=aa,Qt.AcroFormRadioButton=Ei,Qt.AcroFormCheckBox=ca,Qt.AcroFormTextField=zs,Qt.AcroFormPasswordField=la,Qt.AcroFormAppearance=le,Qt.AcroForm={ChoiceField:Qi,ListBox:bi,ComboBox:Ui,EditBox:oa,Button:Rt,PushButton:aa,RadioButton:Ei,CheckBox:ca,TextField:zs,PasswordField:la,Appearance:le},Ue.AcroForm={ChoiceField:Qi,ListBox:bi,ComboBox:Ui,EditBox:oa,Button:Rt,PushButton:aa,RadioButton:Ei,CheckBox:ca,TextField:zs,PasswordField:la,Appearance:le};var Th=Ue.AcroForm;function _u(a){return a.reduce(function(t,n,c){return t[n]=c,t},{})}(function(a){a.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},c=a.__addimage__.getImageFileTypeByImageData=function(T,M){var z,J,tA,aA,vA,hA=t;if((M=M||t)==="RGBA"||T.data!==void 0&&T.data instanceof Uint8ClampedArray&&"height"in T&&"width"in T)return"RGBA";if(Z(T))for(vA in n)for(tA=n[vA],z=0;z>"}),"transparency"in M&&Array.isArray(M.transparency)){for(var vA="",hA=0,UA=M.transparency.length;hA>",E.content=u;var I=E.objId+" 0 R";u="<>";else if(c.options.pageNumber)switch(u="<=0};a.__arabicParser__.arabicLetterHasIsolatedForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length>=1};var m=a.__arabicParser__.arabicLetterHasFinalForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length>=2};a.__arabicParser__.arabicLetterHasInitialForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length>=3};var l=a.__arabicParser__.arabicLetterHasMedialForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length==4},y=a.__arabicParser__.resolveLigatures=function(E){var x=0,Q=n,U="",I=0;for(x=0;x>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(a){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(v){n=v}});var c=150;Object.defineProperty(this,"width",{get:function(){return c},set:function(v){c=isNaN(v)||Number.isInteger(v)===!1||v<0?150:v,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=c+1)}});var d=300;Object.defineProperty(this,"height",{get:function(){return d},set:function(v){d=isNaN(v)||Number.isInteger(v)===!1||v<0?300:v,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=d+1)}});var u=[];Object.defineProperty(this,"childNodes",{get:function(){return u},set:function(v){u=v}});var p={};Object.defineProperty(this,"style",{get:function(){return p},set:function(v){p=v}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,c){var d;if((n=n||"2d")!=="2d")return null;for(d in c)this.pdf.context2d.hasOwnProperty(d)&&(this.pdf.context2d[d]=c[d]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},a.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Ue.API),function(a){var t={left:0,top:0,bottom:0,right:0},n=!1,c=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),d.call(this))},d=function(){this.internal.__cell__.lastCell=new u,this.internal.__cell__.pages=1},u=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(E){f=E}});var m=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return m},set:function(E){m=E}});var l=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return l},set:function(E){l=E}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(E){y=E}});var C=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return C},set:function(E){C=E}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(E){g=E}});var L=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return L},set:function(E){L=E}}),this};u.prototype.clone=function(){return new u(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},u.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},a.setHeaderFunction=function(f){return c.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},a.getTextDimensions=function(f,m){c.call(this);var l=(m=m||{}).fontSize||this.getFontSize(),y=m.font||this.getFont(),C=m.scaleFactor||this.internal.scaleFactor,g=0,L=0,E=0,x=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var Q=m.maxWidth;Q>0?typeof f=="string"?f=this.splitTextToSize(f,Q):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(I,_){return I.concat(x.splitTextToSize(_,Q))},[])):f=Array.isArray(f)?f:[f];for(var U=0;Uthis.getPageHeight()?(this.cellAddPage(),f.y=y.top,g&&C&&(this.printHeaderRow(f.lineNumber,!0),f.y+=C[0].height)):f.y=m.y+m.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,n===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-l,f.y+l,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+l,{align:"center",baseline:"top",maxWidth:f.width-l-l}):this.text(f.text,f.x+l,f.y+l,{align:"left",baseline:"top",maxWidth:f.width-l-l})),this.internal.__cell__.lastCell=f,this};a.table=function(f,m,l,y,C){if(c.call(this),!l)throw new Error("No data for PDF table.");var g,L,E,x,Q=[],U=[],I=[],_={},R={},Z=[],AA=[],V=(C=C||{}).autoSize||!1,dA=C.printHeaders!==!1,cA=C.css&&C.css["font-size"]!==void 0?16*C.css["font-size"]:C.fontSize||12,T=C.margins||Object.assign({width:this.getPageWidth()},t),M=typeof C.padding=="number"?C.padding:3,z=C.headerBackgroundColor||"#c8c8c8",J=C.headerTextColor||"#000";if(d.call(this),this.internal.__cell__.printHeaders=dA,this.internal.__cell__.margins=T,this.internal.__cell__.table_font_size=cA,this.internal.__cell__.padding=M,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=J,this.setFontSize(cA),y==null)U=Q=Object.keys(l[0]),I=Q.map(function(){return"left"});else if(Array.isArray(y)&&st(y[0])==="object")for(Q=y.map(function(QA){return QA.name}),U=y.map(function(QA){return QA.prompt||QA.name||""}),I=y.map(function(QA){return QA.align||"left"}),g=0;g0&&this.setTableHeaderRow(C),this.setFont(void 0,"normal"),n=!1}}(Ue.API);var Mu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ku=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ml=_u(Ku),Ru=[100,200,300,400,500,600,700,800,900],Dh=_u(Ru);function yl(a){var t=a.family.replace(/"|'/g,"").toLowerCase(),n=function(u){return Mu[u=u||"normal"]?u:"normal"}(a.style),c=function(u){if(!u)return 400;if(typeof u=="number")return u>=100&&u<=900&&u%100==0?u:400;if(/^\d00$/.test(u))return parseInt(u);switch(u){case"bold":return 700;case"normal":default:return 400}}(a.weight),d=function(u){return typeof ml[u=u||"normal"]=="number"?u:"normal"}(a.stretch);return{family:t,style:n,weight:c,stretch:d,src:a.src||[],ref:a.ref||{name:t,style:[d,n,c].join(" ")}}}function du(a,t,n,c){var d;for(d=n;d>=0&&d=0&&d=2?LA[1]:$[0],$[2]=LA.length>=3?LA[2]:$[0],$[3]=LA.length>=4?LA[3]:$[1]),m.margin=$}});var FA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return FA},set:function(LA){FA=LA}});var bA=0;Object.defineProperty(this,"lastBreak",{get:function(){return bA},set:function(LA){bA=LA}});var DA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return DA},set:function(LA){DA=LA}}),Object.defineProperty(this,"ctx",{get:function(){return m},set:function(LA){LA instanceof l&&(m=LA)}}),Object.defineProperty(this,"path",{get:function(){return m.path},set:function(LA){m.path=LA}});var KA=[];Object.defineProperty(this,"ctxStack",{get:function(){return KA},set:function(LA){KA=LA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(LA){var $;$=C(LA),this.ctx.fillStyle=$.style,this.ctx.isFillTransparent=$.a===0,this.ctx.fillOpacity=$.a,this.pdf.setFillColor($.r,$.g,$.b,{a:$.a}),this.pdf.setTextColor($.r,$.g,$.b,{a:$.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(LA){var $=C(LA);this.ctx.strokeStyle=$.style,this.ctx.isStrokeTransparent=$.a===0,this.ctx.strokeOpacity=$.a,$.a===0?this.pdf.setDrawColor(255,255,255):($.a,this.pdf.setDrawColor($.r,$.g,$.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(LA){["butt","round","square"].indexOf(LA)!==-1&&(this.ctx.lineCap=LA,this.pdf.setLineCap(LA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(LA){isNaN(LA)||(this.ctx.lineWidth=LA,this.pdf.setLineWidth(LA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(LA){["bevel","round","miter"].indexOf(LA)!==-1&&(this.ctx.lineJoin=LA,this.pdf.setLineJoin(LA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(LA){isNaN(LA)||(this.ctx.miterLimit=LA,this.pdf.setMiterLimit(LA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(LA){this.ctx.textBaseline=LA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(LA){["right","end","center","left","start"].indexOf(LA)!==-1&&(this.ctx.textAlign=LA)}});var RA=null;function GA(LA,$){if(RA===null){var Qe=function(zA){var jA=[];return Object.keys(zA).forEach(function(WA){zA[WA].forEach(function(YA){var XA=null;switch(YA){case"bold":XA={family:WA,weight:"bold"};break;case"italic":XA={family:WA,style:"italic"};break;case"bolditalic":XA={family:WA,weight:"bold",style:"italic"};break;case"":case"normal":XA={family:WA}}XA!==null&&(XA.ref={name:WA,style:YA},jA.push(XA))})}),jA}(LA.getFontList());RA=function(zA){for(var jA={},WA=0;WA=700||Qe==="bold")&&(ye="bold"),Qe==="italic"&&(ye+="italic"),ye.length===0&&(ye="normal");for(var de="",Ce={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Te=0;Te=2*Math.PI&&(eA=0,uA=2*Math.PI),this.path.push({type:"arc",x:N,y:X,radius:q,startAngle:eA,endAngle:uA,counterclockwise:gA})},y.prototype.arcTo=function(N,X,q,eA,uA){throw new Error("arcTo not implemented.")},y.prototype.rect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,X),this.lineTo(N+q,X),this.lineTo(N+q,X+eA),this.lineTo(N,X+eA),this.lineTo(N,X),this.lineTo(N+q,X),this.lineTo(N,X)},y.prototype.fillRect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var uA={};this.lineCap!=="butt"&&(uA.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(uA.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,X,q,eA),this.fill(),uA.hasOwnProperty("lineCap")&&(this.lineCap=uA.lineCap),uA.hasOwnProperty("lineJoin")&&(this.lineJoin=uA.lineJoin)}},y.prototype.strokeRect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");L.call(this)||(this.beginPath(),this.rect(N,X,q,eA),this.stroke())},y.prototype.clearRect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,X,q,eA))},y.prototype.save=function(N){N=typeof N!="boolean"||N;for(var X=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(N,X,q,eA,uA,gA,FA,bA,DA){var KA=this.pdf.getImageProperties(N),RA=1,GA=1,ce=1,LA=1;eA!==void 0&&bA!==void 0&&(ce=bA/eA,LA=DA/uA,RA=KA.width/eA*bA/eA,GA=KA.height/uA*DA/uA),gA===void 0&&(gA=X,FA=q,X=0,q=0),eA!==void 0&&bA===void 0&&(bA=eA,DA=uA),eA===void 0&&bA===void 0&&(bA=KA.width,DA=KA.height);for(var $,Qe=this.ctx.transform.decompose(),zA=hA(Qe.rotate.shx),jA=new f,WA=(jA=(jA=(jA=jA.multiply(Qe.translate)).multiply(Qe.skew)).multiply(Qe.scale)).applyToRectangle(new v(gA-X*ce,FA-q*LA,eA*RA,uA*GA)),YA=x.call(this,WA),XA=[],ae=0;aeye||CejA||YA0)){for(;DA>=0;DA--)if(uA[DA-1].close!==!0&&uA[DA-1].begin!==!0){uA[DA-1].deltas.push(q),uA[DA-1].abs.push(bA);break}}break;case"bct":q=[bA.x1-gA[FA-1].x,bA.y1-gA[FA-1].y,bA.x2-gA[FA-1].x,bA.y2-gA[FA-1].y,bA.x-gA[FA-1].x,bA.y-gA[FA-1].y],uA[uA.length-1].deltas.push(q);break;case"qct":var KA=gA[FA-1].x+2/3*(bA.x1-gA[FA-1].x),RA=gA[FA-1].y+2/3*(bA.y1-gA[FA-1].y),GA=bA.x+2/3*(bA.x1-bA.x),ce=bA.y+2/3*(bA.y1-bA.y),LA=bA.x,$=bA.y;q=[KA-gA[FA-1].x,RA-gA[FA-1].y,GA-gA[FA-1].x,ce-gA[FA-1].y,LA-gA[FA-1].x,$-gA[FA-1].y],uA[uA.length-1].deltas.push(q);break;case"arc":uA.push({deltas:[],abs:[],arc:!0}),Array.isArray(uA[uA.length-1].abs)&&uA[uA.length-1].abs.push(bA)}}eA=X?null:N==="stroke"?"stroke":"fill";for(var Qe=!1,zA=0;zA=.01&&(KA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(KA*N.scale),RA=this.lineWidth,this.lineWidth=RA*N.scale);var BA=this.autoPaging!=="text";if(BA||we.y+we.h<=ae){if(BA||we.y>=YA&&we.x<=de){var mA=BA?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||de-we.x)[0],TA=U([JSON.parse(JSON.stringify(GA))],this.posX+this.margin[3],-Te+YA+this.ctx.prevPageLastElemOffset)[0],_A=BA&&(WA>zA||WA=.01&&(this.pdf.setFontSize(KA),this.lineWidth=RA)}else N.scale>=.01&&(KA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(KA*N.scale),RA=this.lineWidth,this.lineWidth=RA*N.scale),this.pdf.text(N.text,gA.x+this.posX,gA.y+this.posY,{angle:N.angle,align:X,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(KA),this.lineWidth=RA)},z=function(N,X,q,eA){q=q||0,eA=eA||0,this.pdf.internal.out(n(N+q)+" "+c(X+eA)+" l")},J=function(N,X,q){return this.pdf.lines(N,X,q,null,null)},tA=function(N,X,q,eA,uA,gA,FA,bA){this.pdf.internal.out([t(d(q+N)),t(u(eA+X)),t(d(uA+N)),t(u(gA+X)),t(d(FA+N)),t(u(bA+X)),"c"].join(" "))},aA=function(N,X,q,eA){for(var uA=2*Math.PI,gA=Math.PI/2;X>q;)X-=uA;var FA=Math.abs(q-X);FA1e-5;){var RA=KA+DA*Math.min(FA,gA);bA.push(vA.call(this,N,KA,RA)),FA-=Math.abs(RA-KA),KA=RA}return bA},vA=function(N,X,q){var eA=(q-X)/2,uA=N*Math.cos(eA),gA=N*Math.sin(eA),FA=uA,bA=-gA,DA=FA*FA+bA*bA,KA=DA+FA*uA+bA*gA,RA=4/3*(Math.sqrt(2*DA*KA)-KA)/(FA*gA-bA*uA),GA=FA-RA*bA,ce=bA+RA*FA,LA=GA,$=-ce,Qe=eA+X,zA=Math.cos(Qe),jA=Math.sin(Qe);return{x1:N*Math.cos(X),y1:N*Math.sin(X),x2:GA*zA-ce*jA,y2:GA*jA+ce*zA,x3:LA*zA-$*jA,y3:LA*jA+$*zA,x4:N*Math.cos(q),y4:N*Math.sin(q)}},hA=function(N){return 180*N/Math.PI},UA=function(N,X,q,eA,uA,gA){var FA=N+.5*(q-N),bA=X+.5*(eA-X),DA=uA+.5*(q-uA),KA=gA+.5*(eA-gA),RA=Math.min(N,uA,FA,DA),GA=Math.max(N,uA,FA,DA),ce=Math.min(X,gA,bA,KA),LA=Math.max(X,gA,bA,KA);return new v(RA,ce,GA-RA,LA-ce)},QA=function(N,X,q,eA,uA,gA,FA,bA){var DA,KA,RA,GA,ce,LA,$,Qe,zA,jA,WA,YA,XA,ae,ye=q-N,de=eA-X,Ce=uA-q,Te=gA-eA,Ee=FA-uA,we=bA-gA;for(KA=0;KA<41;KA++)zA=($=(RA=N+(DA=KA/40)*ye)+DA*((ce=q+DA*Ce)-RA))+DA*(ce+DA*(uA+DA*Ee-ce)-$),jA=(Qe=(GA=X+DA*de)+DA*((LA=eA+DA*Te)-GA))+DA*(LA+DA*(gA+DA*we-LA)-Qe),KA==0?(WA=zA,YA=jA,XA=zA,ae=jA):(WA=Math.min(WA,zA),YA=Math.min(YA,jA),XA=Math.max(XA,zA),ae=Math.max(ae,jA));return new v(Math.round(WA),Math.round(YA),Math.round(XA-WA),Math.round(ae-YA))},PA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,X,q=(N=this.ctx.lineDash,X=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:X}));this.prevLineDash!==q&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=q)}}})(Ue.API),function(a){var t=function(u){var p,v,f,m,l,y,C,g,L,E;for(v=[],f=0,m=(u+=p="\0\0\0\0".slice(u.length%4||4)).length;m>f;f+=4)(l=(u.charCodeAt(f)<<24)+(u.charCodeAt(f+1)<<16)+(u.charCodeAt(f+2)<<8)+u.charCodeAt(f+3))!==0?(y=(l=((l=((l=((l=(l-(E=l%85))/85)-(L=l%85))/85)-(g=l%85))/85)-(C=l%85))/85)%85,v.push(y+33,C+33,g+33,L+33,E+33)):v.push(122);return function(x,Q){for(var U=Q;U>0;U--)x.pop()}(v,p.length),String.fromCharCode.apply(String,v)+"~>"},n=function(u){var p,v,f,m,l,y=String,C="length",g=255,L="charCodeAt",E="slice",x="replace";for(u[E](-2),u=u[E](0,-2)[x](/\s/g,"")[x]("z","!!!!!"),f=[],m=0,l=(u+=p="uuuuu"[E](u[C]%5||5))[C];l>m;m+=5)v=52200625*(u[L](m)-33)+614125*(u[L](m+1)-33)+7225*(u[L](m+2)-33)+85*(u[L](m+3)-33)+(u[L](m+4)-33),f.push(g&v>>24,g&v>>16,g&v>>8,g&v);return function(Q,U){for(var I=U;I>0;I--)Q.pop()}(f,p[C]),y.fromCharCode.apply(y,f)},c=function(u){var p=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((u=u.replace(/\s/g,"")).indexOf(">")!==-1&&(u=u.substr(0,u.indexOf(">"))),u.length%2&&(u+="0"),p.test(u)===!1)return"";for(var v="",f=0;f",m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=d(f),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+p[v]+'" is not implemented')}return{data:f,reverseChain:m.reverse().join(" ")}}}(Ue.API),function(a){a.loadFile=function(t,n,c){return function(d,u,p){u=u!==!1,p=typeof p=="function"?p:function(){};var v=void 0;try{v=function(f,m,l){var y=new XMLHttpRequest,C=0,g=function(L){var E=L.length,x=[],Q=String.fromCharCode;for(C=0;Cimport("./html2canvas-2SmrMddJ.js").then(p=>p.h),__vite__mapDeps([0,1]))).catch(function(p){return Promise.reject(new Error("Could not load html2canvas: "+p))}).then(function(p){return p.default?p.default:p})}function n(){return(Ie.DOMPurify?Promise.resolve(Ie.DOMPurify):ll(()=>import("./purify.es-zHtM-7sw.js"),__vite__mapDeps([]))).catch(function(p){return Promise.reject(new Error("Could not load dompurify: "+p))}).then(function(p){return p.default?p.default:p})}var c=function(p){var v=st(p);return v==="undefined"?"undefined":v==="string"||p instanceof String?"string":v==="number"||p instanceof Number?"number":v==="function"||p instanceof Function?"function":p&&p.constructor===Array?"array":p&&p.nodeType===1?"element":v==="object"?"object":"unknown"},d=function(p,v){var f=document.createElement(p);for(var m in v.className&&(f.className=v.className),v.innerHTML&&v.dompurify&&(f.innerHTML=v.dompurify.sanitize(v.innerHTML)),v.style)f.style[m]=v.style[m];return f},u=function p(v){var f=Object.assign(p.convert(Promise.resolve()),JSON.parse(JSON.stringify(p.template))),m=p.convert(Promise.resolve(),f);return m=(m=m.setProgress(1,p,1,[p])).set(v)};(u.prototype=Object.create(Promise.prototype)).constructor=u,u.convert=function(p,v){return p.__proto__=v||u.prototype,p},u.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},u.prototype.from=function(p,v){return this.then(function(){switch(v=v||function(f){switch(c(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(p)){case"string":return this.then(n).then(function(f){return this.set({src:d("div",{innerHTML:p,dompurify:f})})});case"element":return this.set({src:p});case"canvas":return this.set({canvas:p});case"img":return this.set({img:p});default:return this.error("Unknown source type.")}})},u.prototype.to=function(p){switch(p){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},u.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var p={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},v=function f(m,l){for(var y=m.nodeType===3?document.createTextNode(m.nodeValue):m.cloneNode(!1),C=m.firstChild;C;C=C.nextSibling)l!==!0&&C.nodeType===1&&C.nodeName==="SCRIPT"||y.appendChild(f(C,l));return m.nodeType===1&&(m.nodeName==="CANVAS"?(y.width=m.width,y.height=m.height,y.getContext("2d").drawImage(m,0,0)):m.nodeName!=="TEXTAREA"&&m.nodeName!=="SELECT"||(y.value=m.value),y.addEventListener("load",function(){y.scrollTop=m.scrollTop,y.scrollLeft=m.scrollLeft},!0)),y}(this.prop.src,this.opt.html2canvas.javascriptEnabled);v.tagName==="BODY"&&(p.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=d("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=d("div",{className:"html2pdf__container",style:p}),this.prop.container.appendChild(v),this.prop.container.firstChild.appendChild(d("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},u.prototype.toCanvas=function(){var p=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(p).then(t).then(function(v){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,v(this.prop.container,f)}).then(function(v){(this.opt.html2canvas.onrendered||function(){})(v),this.prop.canvas=v,document.body.removeChild(this.prop.overlay)})},u.prototype.toContext2d=function(){var p=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(p).then(t).then(function(v){var f=this.opt.jsPDF,m=this.opt.fontFaces,l=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,y=Object.assign({async:!0,allowTaint:!0,scale:l,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete y.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=m,m)for(var C=0;CL&&(g=E,E=L,L=g);else{if(p!=="l"&&p!=="landscape")throw"Invalid orientation: "+p;p="l",L>E&&(g=E,E=L,L=g)}return{width:E,height:L,unit:v,k:l,orientation:p}},a.html=function(p,v){(v=v||{}).callback=v.callback||function(){},v.html2canvas=v.html2canvas||{},v.html2canvas.canvas=v.html2canvas.canvas||this.canvas,v.jsPDF=v.jsPDF||this,v.fontFaces=v.fontFaces?v.fontFaces.map(yl):null;var f=new u(v);return v.worker?f:f.from(p).doCallback()}}(Ue.API),Ue.API.addJS=function(a){return vu=a,this.internal.events.subscribe("postPutResources",function(){ic=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ic+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),wu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+vu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ic!==void 0&&wu!==void 0&&this.internal.out("/Names <>")}),this},function(a){var t;a.events.push(["postPutResources",function(){var n=this,c=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var d=n.outline.render().split(/\r\n/),u=0;u> endobj")}var g=n.internal.newObject();for(n.internal.write("<< /Names [ "),u=0;u>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+g+" 0 R"),n.internal.write(">>","endobj")}}]),a.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),a.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(c,d,u){var p={title:d,options:u,children:[]};return c==null&&(c=this.root),c.children.push(p),p},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(c){c.id=n.internal.newObjectDeferred();for(var d=0;d0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1]))),this.line("/Count "+this.count_r({count:0},c)),this.objEnd()},n.outline.renderItems=function(c){for(var d=this.ctx.pdf.internal.getVerticalCoordinateString,u=0;u0&&this.line("/Prev "+this.makeRef(c.children[u-1])),u0&&(this.line("/First "+this.makeRef(p.children[0])),this.line("/Last "+this.makeRef(p.children[p.children.length-1])));var v=this.count=this.count_r({count:0},p);if(v>0&&this.line("/Count "+v),p.options&&p.options.pageNumber){var f=n.internal.getPageInfo(p.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+d(0)+" 0]")}this.objEnd()}for(var m=0;m>"}),"transparency"in M&&Array.isArray(M.transparency)){for(var vA="",hA=0,UA=M.transparency.length;hA>",E.content=u;var I=E.objId+" 0 R";u="<>";else if(c.options.pageNumber)switch(u="<=0};a.__arabicParser__.arabicLetterHasIsolatedForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length>=1};var m=a.__arabicParser__.arabicLetterHasFinalForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length>=2};a.__arabicParser__.arabicLetterHasInitialForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length>=3};var l=a.__arabicParser__.arabicLetterHasMedialForm=function(E){return p(E)&&u(E)&&t[E.charCodeAt(0)].length==4},y=a.__arabicParser__.resolveLigatures=function(E){var x=0,Q=n,U="",I=0;for(x=0;x>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(a){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(v){n=v}});var c=150;Object.defineProperty(this,"width",{get:function(){return c},set:function(v){c=isNaN(v)||Number.isInteger(v)===!1||v<0?150:v,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=c+1)}});var d=300;Object.defineProperty(this,"height",{get:function(){return d},set:function(v){d=isNaN(v)||Number.isInteger(v)===!1||v<0?300:v,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=d+1)}});var u=[];Object.defineProperty(this,"childNodes",{get:function(){return u},set:function(v){u=v}});var p={};Object.defineProperty(this,"style",{get:function(){return p},set:function(v){p=v}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,c){var d;if((n=n||"2d")!=="2d")return null;for(d in c)this.pdf.context2d.hasOwnProperty(d)&&(this.pdf.context2d[d]=c[d]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},a.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Ue.API),function(a){var t={left:0,top:0,bottom:0,right:0},n=!1,c=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),d.call(this))},d=function(){this.internal.__cell__.lastCell=new u,this.internal.__cell__.pages=1},u=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(E){f=E}});var m=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return m},set:function(E){m=E}});var l=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return l},set:function(E){l=E}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(E){y=E}});var C=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return C},set:function(E){C=E}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(E){g=E}});var L=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return L},set:function(E){L=E}}),this};u.prototype.clone=function(){return new u(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},u.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},a.setHeaderFunction=function(f){return c.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},a.getTextDimensions=function(f,m){c.call(this);var l=(m=m||{}).fontSize||this.getFontSize(),y=m.font||this.getFont(),C=m.scaleFactor||this.internal.scaleFactor,g=0,L=0,E=0,x=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var Q=m.maxWidth;Q>0?typeof f=="string"?f=this.splitTextToSize(f,Q):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(I,_){return I.concat(x.splitTextToSize(_,Q))},[])):f=Array.isArray(f)?f:[f];for(var U=0;Uthis.getPageHeight()?(this.cellAddPage(),f.y=y.top,g&&C&&(this.printHeaderRow(f.lineNumber,!0),f.y+=C[0].height)):f.y=m.y+m.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,n===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-l,f.y+l,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+l,{align:"center",baseline:"top",maxWidth:f.width-l-l}):this.text(f.text,f.x+l,f.y+l,{align:"left",baseline:"top",maxWidth:f.width-l-l})),this.internal.__cell__.lastCell=f,this};a.table=function(f,m,l,y,C){if(c.call(this),!l)throw new Error("No data for PDF table.");var g,L,E,x,Q=[],U=[],I=[],_={},R={},Z=[],AA=[],V=(C=C||{}).autoSize||!1,dA=C.printHeaders!==!1,cA=C.css&&C.css["font-size"]!==void 0?16*C.css["font-size"]:C.fontSize||12,T=C.margins||Object.assign({width:this.getPageWidth()},t),M=typeof C.padding=="number"?C.padding:3,z=C.headerBackgroundColor||"#c8c8c8",J=C.headerTextColor||"#000";if(d.call(this),this.internal.__cell__.printHeaders=dA,this.internal.__cell__.margins=T,this.internal.__cell__.table_font_size=cA,this.internal.__cell__.padding=M,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=J,this.setFontSize(cA),y==null)U=Q=Object.keys(l[0]),I=Q.map(function(){return"left"});else if(Array.isArray(y)&&st(y[0])==="object")for(Q=y.map(function(QA){return QA.name}),U=y.map(function(QA){return QA.prompt||QA.name||""}),I=y.map(function(QA){return QA.align||"left"}),g=0;g0&&this.setTableHeaderRow(C),this.setFont(void 0,"normal"),n=!1}}(Ue.API);var Mu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ku=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ml=_u(Ku),Ru=[100,200,300,400,500,600,700,800,900],Dh=_u(Ru);function yl(a){var t=a.family.replace(/"|'/g,"").toLowerCase(),n=function(u){return Mu[u=u||"normal"]?u:"normal"}(a.style),c=function(u){if(!u)return 400;if(typeof u=="number")return u>=100&&u<=900&&u%100==0?u:400;if(/^\d00$/.test(u))return parseInt(u);switch(u){case"bold":return 700;case"normal":default:return 400}}(a.weight),d=function(u){return typeof ml[u=u||"normal"]=="number"?u:"normal"}(a.stretch);return{family:t,style:n,weight:c,stretch:d,src:a.src||[],ref:a.ref||{name:t,style:[d,n,c].join(" ")}}}function du(a,t,n,c){var d;for(d=n;d>=0&&d=0&&d=2?LA[1]:$[0],$[2]=LA.length>=3?LA[2]:$[0],$[3]=LA.length>=4?LA[3]:$[1]),m.margin=$}});var FA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return FA},set:function(LA){FA=LA}});var bA=0;Object.defineProperty(this,"lastBreak",{get:function(){return bA},set:function(LA){bA=LA}});var DA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return DA},set:function(LA){DA=LA}}),Object.defineProperty(this,"ctx",{get:function(){return m},set:function(LA){LA instanceof l&&(m=LA)}}),Object.defineProperty(this,"path",{get:function(){return m.path},set:function(LA){m.path=LA}});var KA=[];Object.defineProperty(this,"ctxStack",{get:function(){return KA},set:function(LA){KA=LA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(LA){var $;$=C(LA),this.ctx.fillStyle=$.style,this.ctx.isFillTransparent=$.a===0,this.ctx.fillOpacity=$.a,this.pdf.setFillColor($.r,$.g,$.b,{a:$.a}),this.pdf.setTextColor($.r,$.g,$.b,{a:$.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(LA){var $=C(LA);this.ctx.strokeStyle=$.style,this.ctx.isStrokeTransparent=$.a===0,this.ctx.strokeOpacity=$.a,$.a===0?this.pdf.setDrawColor(255,255,255):($.a,this.pdf.setDrawColor($.r,$.g,$.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(LA){["butt","round","square"].indexOf(LA)!==-1&&(this.ctx.lineCap=LA,this.pdf.setLineCap(LA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(LA){isNaN(LA)||(this.ctx.lineWidth=LA,this.pdf.setLineWidth(LA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(LA){["bevel","round","miter"].indexOf(LA)!==-1&&(this.ctx.lineJoin=LA,this.pdf.setLineJoin(LA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(LA){isNaN(LA)||(this.ctx.miterLimit=LA,this.pdf.setMiterLimit(LA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(LA){this.ctx.textBaseline=LA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(LA){["right","end","center","left","start"].indexOf(LA)!==-1&&(this.ctx.textAlign=LA)}});var RA=null;function GA(LA,$){if(RA===null){var Qe=function(zA){var jA=[];return Object.keys(zA).forEach(function(WA){zA[WA].forEach(function(YA){var XA=null;switch(YA){case"bold":XA={family:WA,weight:"bold"};break;case"italic":XA={family:WA,style:"italic"};break;case"bolditalic":XA={family:WA,weight:"bold",style:"italic"};break;case"":case"normal":XA={family:WA}}XA!==null&&(XA.ref={name:WA,style:YA},jA.push(XA))})}),jA}(LA.getFontList());RA=function(zA){for(var jA={},WA=0;WA=700||Qe==="bold")&&(ye="bold"),Qe==="italic"&&(ye+="italic"),ye.length===0&&(ye="normal");for(var de="",Ce={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Te=0;Te=2*Math.PI&&(eA=0,uA=2*Math.PI),this.path.push({type:"arc",x:N,y:X,radius:q,startAngle:eA,endAngle:uA,counterclockwise:gA})},y.prototype.arcTo=function(N,X,q,eA,uA){throw new Error("arcTo not implemented.")},y.prototype.rect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,X),this.lineTo(N+q,X),this.lineTo(N+q,X+eA),this.lineTo(N,X+eA),this.lineTo(N,X),this.lineTo(N+q,X),this.lineTo(N,X)},y.prototype.fillRect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var uA={};this.lineCap!=="butt"&&(uA.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(uA.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,X,q,eA),this.fill(),uA.hasOwnProperty("lineCap")&&(this.lineCap=uA.lineCap),uA.hasOwnProperty("lineJoin")&&(this.lineJoin=uA.lineJoin)}},y.prototype.strokeRect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");L.call(this)||(this.beginPath(),this.rect(N,X,q,eA),this.stroke())},y.prototype.clearRect=function(N,X,q,eA){if(isNaN(N)||isNaN(X)||isNaN(q)||isNaN(eA))throw ot.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,X,q,eA))},y.prototype.save=function(N){N=typeof N!="boolean"||N;for(var X=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(N,X,q,eA,uA,gA,FA,bA,DA){var KA=this.pdf.getImageProperties(N),RA=1,GA=1,ce=1,LA=1;eA!==void 0&&bA!==void 0&&(ce=bA/eA,LA=DA/uA,RA=KA.width/eA*bA/eA,GA=KA.height/uA*DA/uA),gA===void 0&&(gA=X,FA=q,X=0,q=0),eA!==void 0&&bA===void 0&&(bA=eA,DA=uA),eA===void 0&&bA===void 0&&(bA=KA.width,DA=KA.height);for(var $,Qe=this.ctx.transform.decompose(),zA=hA(Qe.rotate.shx),jA=new f,WA=(jA=(jA=(jA=jA.multiply(Qe.translate)).multiply(Qe.skew)).multiply(Qe.scale)).applyToRectangle(new v(gA-X*ce,FA-q*LA,eA*RA,uA*GA)),YA=x.call(this,WA),XA=[],ae=0;aeye||CejA||YA0)){for(;DA>=0;DA--)if(uA[DA-1].close!==!0&&uA[DA-1].begin!==!0){uA[DA-1].deltas.push(q),uA[DA-1].abs.push(bA);break}}break;case"bct":q=[bA.x1-gA[FA-1].x,bA.y1-gA[FA-1].y,bA.x2-gA[FA-1].x,bA.y2-gA[FA-1].y,bA.x-gA[FA-1].x,bA.y-gA[FA-1].y],uA[uA.length-1].deltas.push(q);break;case"qct":var KA=gA[FA-1].x+2/3*(bA.x1-gA[FA-1].x),RA=gA[FA-1].y+2/3*(bA.y1-gA[FA-1].y),GA=bA.x+2/3*(bA.x1-bA.x),ce=bA.y+2/3*(bA.y1-bA.y),LA=bA.x,$=bA.y;q=[KA-gA[FA-1].x,RA-gA[FA-1].y,GA-gA[FA-1].x,ce-gA[FA-1].y,LA-gA[FA-1].x,$-gA[FA-1].y],uA[uA.length-1].deltas.push(q);break;case"arc":uA.push({deltas:[],abs:[],arc:!0}),Array.isArray(uA[uA.length-1].abs)&&uA[uA.length-1].abs.push(bA)}}eA=X?null:N==="stroke"?"stroke":"fill";for(var Qe=!1,zA=0;zA=.01&&(KA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(KA*N.scale),RA=this.lineWidth,this.lineWidth=RA*N.scale);var BA=this.autoPaging!=="text";if(BA||we.y+we.h<=ae){if(BA||we.y>=YA&&we.x<=de){var mA=BA?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||de-we.x)[0],TA=U([JSON.parse(JSON.stringify(GA))],this.posX+this.margin[3],-Te+YA+this.ctx.prevPageLastElemOffset)[0],_A=BA&&(WA>zA||WA=.01&&(this.pdf.setFontSize(KA),this.lineWidth=RA)}else N.scale>=.01&&(KA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(KA*N.scale),RA=this.lineWidth,this.lineWidth=RA*N.scale),this.pdf.text(N.text,gA.x+this.posX,gA.y+this.posY,{angle:N.angle,align:X,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(KA),this.lineWidth=RA)},z=function(N,X,q,eA){q=q||0,eA=eA||0,this.pdf.internal.out(n(N+q)+" "+c(X+eA)+" l")},J=function(N,X,q){return this.pdf.lines(N,X,q,null,null)},tA=function(N,X,q,eA,uA,gA,FA,bA){this.pdf.internal.out([t(d(q+N)),t(u(eA+X)),t(d(uA+N)),t(u(gA+X)),t(d(FA+N)),t(u(bA+X)),"c"].join(" "))},aA=function(N,X,q,eA){for(var uA=2*Math.PI,gA=Math.PI/2;X>q;)X-=uA;var FA=Math.abs(q-X);FA1e-5;){var RA=KA+DA*Math.min(FA,gA);bA.push(vA.call(this,N,KA,RA)),FA-=Math.abs(RA-KA),KA=RA}return bA},vA=function(N,X,q){var eA=(q-X)/2,uA=N*Math.cos(eA),gA=N*Math.sin(eA),FA=uA,bA=-gA,DA=FA*FA+bA*bA,KA=DA+FA*uA+bA*gA,RA=4/3*(Math.sqrt(2*DA*KA)-KA)/(FA*gA-bA*uA),GA=FA-RA*bA,ce=bA+RA*FA,LA=GA,$=-ce,Qe=eA+X,zA=Math.cos(Qe),jA=Math.sin(Qe);return{x1:N*Math.cos(X),y1:N*Math.sin(X),x2:GA*zA-ce*jA,y2:GA*jA+ce*zA,x3:LA*zA-$*jA,y3:LA*jA+$*zA,x4:N*Math.cos(q),y4:N*Math.sin(q)}},hA=function(N){return 180*N/Math.PI},UA=function(N,X,q,eA,uA,gA){var FA=N+.5*(q-N),bA=X+.5*(eA-X),DA=uA+.5*(q-uA),KA=gA+.5*(eA-gA),RA=Math.min(N,uA,FA,DA),GA=Math.max(N,uA,FA,DA),ce=Math.min(X,gA,bA,KA),LA=Math.max(X,gA,bA,KA);return new v(RA,ce,GA-RA,LA-ce)},QA=function(N,X,q,eA,uA,gA,FA,bA){var DA,KA,RA,GA,ce,LA,$,Qe,zA,jA,WA,YA,XA,ae,ye=q-N,de=eA-X,Ce=uA-q,Te=gA-eA,Ee=FA-uA,we=bA-gA;for(KA=0;KA<41;KA++)zA=($=(RA=N+(DA=KA/40)*ye)+DA*((ce=q+DA*Ce)-RA))+DA*(ce+DA*(uA+DA*Ee-ce)-$),jA=(Qe=(GA=X+DA*de)+DA*((LA=eA+DA*Te)-GA))+DA*(LA+DA*(gA+DA*we-LA)-Qe),KA==0?(WA=zA,YA=jA,XA=zA,ae=jA):(WA=Math.min(WA,zA),YA=Math.min(YA,jA),XA=Math.max(XA,zA),ae=Math.max(ae,jA));return new v(Math.round(WA),Math.round(YA),Math.round(XA-WA),Math.round(ae-YA))},PA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,X,q=(N=this.ctx.lineDash,X=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:X}));this.prevLineDash!==q&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=q)}}})(Ue.API),function(a){var t=function(u){var p,v,f,m,l,y,C,g,L,E;for(v=[],f=0,m=(u+=p="\0\0\0\0".slice(u.length%4||4)).length;m>f;f+=4)(l=(u.charCodeAt(f)<<24)+(u.charCodeAt(f+1)<<16)+(u.charCodeAt(f+2)<<8)+u.charCodeAt(f+3))!==0?(y=(l=((l=((l=((l=(l-(E=l%85))/85)-(L=l%85))/85)-(g=l%85))/85)-(C=l%85))/85)%85,v.push(y+33,C+33,g+33,L+33,E+33)):v.push(122);return function(x,Q){for(var U=Q;U>0;U--)x.pop()}(v,p.length),String.fromCharCode.apply(String,v)+"~>"},n=function(u){var p,v,f,m,l,y=String,C="length",g=255,L="charCodeAt",E="slice",x="replace";for(u[E](-2),u=u[E](0,-2)[x](/\s/g,"")[x]("z","!!!!!"),f=[],m=0,l=(u+=p="uuuuu"[E](u[C]%5||5))[C];l>m;m+=5)v=52200625*(u[L](m)-33)+614125*(u[L](m+1)-33)+7225*(u[L](m+2)-33)+85*(u[L](m+3)-33)+(u[L](m+4)-33),f.push(g&v>>24,g&v>>16,g&v>>8,g&v);return function(Q,U){for(var I=U;I>0;I--)Q.pop()}(f,p[C]),y.fromCharCode.apply(y,f)},c=function(u){var p=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((u=u.replace(/\s/g,"")).indexOf(">")!==-1&&(u=u.substr(0,u.indexOf(">"))),u.length%2&&(u+="0"),p.test(u)===!1)return"";for(var v="",f=0;f",m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=d(f),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+p[v]+'" is not implemented')}return{data:f,reverseChain:m.reverse().join(" ")}}}(Ue.API),function(a){a.loadFile=function(t,n,c){return function(d,u,p){u=u!==!1,p=typeof p=="function"?p:function(){};var v=void 0;try{v=function(f,m,l){var y=new XMLHttpRequest,C=0,g=function(L){var E=L.length,x=[],Q=String.fromCharCode;for(C=0;Cimport("./html2canvas-C7qp1yOm.js").then(p=>p.h),__vite__mapDeps([0,1]))).catch(function(p){return Promise.reject(new Error("Could not load html2canvas: "+p))}).then(function(p){return p.default?p.default:p})}function n(){return(Ie.DOMPurify?Promise.resolve(Ie.DOMPurify):ll(()=>import("./purify.es-BZcJlXyC.js"),__vite__mapDeps([]))).catch(function(p){return Promise.reject(new Error("Could not load dompurify: "+p))}).then(function(p){return p.default?p.default:p})}var c=function(p){var v=st(p);return v==="undefined"?"undefined":v==="string"||p instanceof String?"string":v==="number"||p instanceof Number?"number":v==="function"||p instanceof Function?"function":p&&p.constructor===Array?"array":p&&p.nodeType===1?"element":v==="object"?"object":"unknown"},d=function(p,v){var f=document.createElement(p);for(var m in v.className&&(f.className=v.className),v.innerHTML&&v.dompurify&&(f.innerHTML=v.dompurify.sanitize(v.innerHTML)),v.style)f.style[m]=v.style[m];return f},u=function p(v){var f=Object.assign(p.convert(Promise.resolve()),JSON.parse(JSON.stringify(p.template))),m=p.convert(Promise.resolve(),f);return m=(m=m.setProgress(1,p,1,[p])).set(v)};(u.prototype=Object.create(Promise.prototype)).constructor=u,u.convert=function(p,v){return p.__proto__=v||u.prototype,p},u.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},u.prototype.from=function(p,v){return this.then(function(){switch(v=v||function(f){switch(c(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(p)){case"string":return this.then(n).then(function(f){return this.set({src:d("div",{innerHTML:p,dompurify:f})})});case"element":return this.set({src:p});case"canvas":return this.set({canvas:p});case"img":return this.set({img:p});default:return this.error("Unknown source type.")}})},u.prototype.to=function(p){switch(p){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},u.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var p={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},v=function f(m,l){for(var y=m.nodeType===3?document.createTextNode(m.nodeValue):m.cloneNode(!1),C=m.firstChild;C;C=C.nextSibling)l!==!0&&C.nodeType===1&&C.nodeName==="SCRIPT"||y.appendChild(f(C,l));return m.nodeType===1&&(m.nodeName==="CANVAS"?(y.width=m.width,y.height=m.height,y.getContext("2d").drawImage(m,0,0)):m.nodeName!=="TEXTAREA"&&m.nodeName!=="SELECT"||(y.value=m.value),y.addEventListener("load",function(){y.scrollTop=m.scrollTop,y.scrollLeft=m.scrollLeft},!0)),y}(this.prop.src,this.opt.html2canvas.javascriptEnabled);v.tagName==="BODY"&&(p.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=d("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=d("div",{className:"html2pdf__container",style:p}),this.prop.container.appendChild(v),this.prop.container.firstChild.appendChild(d("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},u.prototype.toCanvas=function(){var p=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(p).then(t).then(function(v){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,v(this.prop.container,f)}).then(function(v){(this.opt.html2canvas.onrendered||function(){})(v),this.prop.canvas=v,document.body.removeChild(this.prop.overlay)})},u.prototype.toContext2d=function(){var p=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(p).then(t).then(function(v){var f=this.opt.jsPDF,m=this.opt.fontFaces,l=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,y=Object.assign({async:!0,allowTaint:!0,scale:l,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete y.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=m,m)for(var C=0;CL&&(g=E,E=L,L=g);else{if(p!=="l"&&p!=="landscape")throw"Invalid orientation: "+p;p="l",L>E&&(g=E,E=L,L=g)}return{width:E,height:L,unit:v,k:l,orientation:p}},a.html=function(p,v){(v=v||{}).callback=v.callback||function(){},v.html2canvas=v.html2canvas||{},v.html2canvas.canvas=v.html2canvas.canvas||this.canvas,v.jsPDF=v.jsPDF||this,v.fontFaces=v.fontFaces?v.fontFaces.map(yl):null;var f=new u(v);return v.worker?f:f.from(p).doCallback()}}(Ue.API),Ue.API.addJS=function(a){return vu=a,this.internal.events.subscribe("postPutResources",function(){ic=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ic+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),wu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+vu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ic!==void 0&&wu!==void 0&&this.internal.out("/Names <>")}),this},function(a){var t;a.events.push(["postPutResources",function(){var n=this,c=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var d=n.outline.render().split(/\r\n/),u=0;u> endobj")}var g=n.internal.newObject();for(n.internal.write("<< /Names [ "),u=0;u>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+g+" 0 R"),n.internal.write(">>","endobj")}}]),a.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),a.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(c,d,u){var p={title:d,options:u,children:[]};return c==null&&(c=this.root),c.children.push(p),p},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(c){c.id=n.internal.newObjectDeferred();for(var d=0;d0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1]))),this.line("/Count "+this.count_r({count:0},c)),this.objEnd()},n.outline.renderItems=function(c){for(var d=this.ctx.pdf.internal.getVerticalCoordinateString,u=0;u0&&this.line("/Prev "+this.makeRef(c.children[u-1])),u0&&(this.line("/First "+this.makeRef(p.children[0])),this.line("/Last "+this.makeRef(p.children[p.children.length-1])));var v=this.count=this.count_r({count:0},p);if(v>0&&this.line("/Count "+v),p.options&&p.options.pageNumber){var f=n.internal.getPageInfo(p.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+d(0)+" 0]")}this.objEnd()}for(var m=0;mT;T++)if(V[dA+T]!=cA.charCodeAt(T))return!0;return!1}function c(V,dA,cA,T,M){for(var z=0;zz+1?[]:new dA),!(J.length>>0;A&B;)B>>>=1;return B?(A&B-1)+B:A}function cA(A,o,B,F,S){t(!(F%B));do A[o+(F-=B)]=S;while(0=S),512>=S)var j=u(512);else if((j=u(S))==null)return 0;return function(P,D,K,W,nA,yA){var CA,oA,NA=D,EA=1<CA;++CA){if(sA[CA]>1<(ve-=sA[CA]))return 0;for(;0=CA;++CA,nA<<=1){if(ZA+=ve<<=1,0>(ve-=sA[CA]))return 0;for(;0OA&&!(0>=(SA-=sA[OA]));)++OA,SA<<=1;EA+=$A=1<<(SA=OA-K),P[D+(OA=re&HA)].g=SA+K,P[D+OA].value=NA-D-OA}W.g=CA-K,W.value=yA[oA++],cA(P,NA+(re>>K),nA,$A,W),re=dA(re,CA)}}return ZA!=2*lA[15]-1?0:EA}(A,o,B,F,S,j)}function M(){this.value=this.g=0}function z(){this.value=this.g=0}function J(){this.G=p(5,M),this.H=u(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=p(Ot,z)}function tA(A,o,B,F){t(A!=null),t(o!=null),t(2147483648>F),A.Ca=254,A.I=0,A.b=-8,A.Ka=0,A.oa=o,A.pa=B,A.Jd=o,A.Yc=B+F,A.Zc=4<=F?B+F-4+1:B,gA(A)}function aA(A,o){for(var B=0;0F),A.Sb=F,A.Ra=0,A.u=0,A.h=0,4>>=8,A.Ra+=A.oa[A.pa+A.bb]<>>0,++A.bb,A.u-=8;q(A)&&(A.h=1,A.u=0)}function QA(A,o){if(t(0<=o),!A.h&&o<=es){var B=X(A)&Xe[o];return A.u+=o,UA(A),B}return A.h=1,A.u=0}function PA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function X(A){return A.Ra>>>(A.u&ts-1)>>>0}function q(A){return t(A.bb<=A.Sb),A.h||A.bb==A.Sb&&A.u>ts}function eA(A,o){A.u=o,A.h=q(A)}function uA(A){A.u>=bs&&(t(A.u>=bs),UA(A))}function gA(A){t(A!=null&&A.oa!=null),A.pa>>0,A.b+=8):(t(A!=null&&A.oa!=null),A.paA.b&&gA(A);var F=A.b,S=B*o>>>8,j=(A.I>>>F>S)+0;for(j?(B-=S,A.I-=S+1<>>0):B=S+1,F=B,S=0;256<=F;)S+=8,F>>=8;return F=7^S+zt[F],A.b-=F,A.Ca=(B<>24&255,A[o+1]=B>>16&255,A[o+2]=B>>8&255,A[o+3]=B>>0&255}function KA(A,o){return A[o+0]<<0|A[o+1]<<8}function RA(A,o){return KA(A,o)|A[o+2]<<16}function GA(A,o){return KA(A,o)|KA(A,o+2)<<16}function ce(A,o){var B=1<=S||0>=j?0:(B[0]=S,F[0]=j,1)}function zA(A,o){return A+(1<>>o}function jA(A,o){return((4278255360&A)+(4278255360&o)>>>0&4278255360)+((16711935&A)+(16711935&o)>>>0&16711935)>>>0}function WA(A,o){V[o]=function(B,F,S,j,P,D,K){var W;for(W=0;W>>1)+(A&o)>>>0}function ae(A){return 0<=A&&256>A?A:0>A?0:255>1))}function de(A,o,B){return Math.abs(o-B)-Math.abs(A-B)}function Ce(A,o,B,F,S,j,P){for(F=j[P-1],B=0;B>8&255,K=16711935&(K=(K=16711935&P)+((D<<16)+D));F[S+j]=(4278255360&P)+K>>>0}}function Ee(A,o){o.jd=A>>0&255,o.hd=A>>8&255,o.ud=A>>16&255}function we(A,o,B,F,S,j){var P;for(P=0;P>>8,W=D,nA=255&(nA=(nA=D>>>16)+((A.jd<<24>>24)*(K<<24>>24)>>>5));W=255&(W=(W=W+((A.hd<<24>>24)*(K<<24>>24)>>>5))+((A.ud<<24>>24)*(nA<<24>>24)>>>5)),S[j+P]=(4278255360&D)+(nA<<16)+W}}function BA(A,o,B,F,S){V[o]=function(j,P,D,K,W,nA,yA,CA,oA){for(K=yA;K>j.b,oA=j.Ea,NA=j.K[0],EA=j.w;if(8>CA)for(j=(1<>=CA}else V["VP8LMapColor"+B](K,W,NA,EA,nA,yA,P,D,oA)}}function mA(A,o,B,F,S){for(B=o+B;o>16&255,F[S++]=j>>8&255,F[S++]=j>>0&255}}function TA(A,o,B,F,S){for(B=o+B;o>16&255,F[S++]=j>>8&255,F[S++]=j>>0&255,F[S++]=j>>24&255}}function _A(A,o,B,F,S){for(B=o+B;o>16&240|P>>12&15,P=P>>0&240|P>>28&15;F[S++]=j,F[S++]=P}}function fe(A,o,B,F,S){for(B=o+B;o>16&248|P>>13&7,P=P>>5&224|P>>3&31;F[S++]=j,F[S++]=P}}function Ae(A,o,B,F,S){for(B=o+B;o>0&255,F[S++]=j>>8&255,F[S++]=j>>16&255}}function Fe(A,o,B,F,S,j){if(j==0)for(B=o+B;o>24|j[1]>>8&65280|j[2]<<8&16711680|j[3]<<24)>>>0),S+=32;else c(F,S,A,o,B)}function Bt(A,o){V[o][0]=V[A+"0"],V[o][1]=V[A+"1"],V[o][2]=V[A+"2"],V[o][3]=V[A+"3"],V[o][4]=V[A+"4"],V[o][5]=V[A+"5"],V[o][6]=V[A+"6"],V[o][7]=V[A+"7"],V[o][8]=V[A+"8"],V[o][9]=V[A+"9"],V[o][10]=V[A+"10"],V[o][11]=V[A+"11"],V[o][12]=V[A+"12"],V[o][13]=V[A+"13"],V[o][14]=V[A+"0"],V[o][15]=V[A+"0"]}function He(A){return A==Mo||A==Ko||A==to||A==xs}function Ar(){this.eb=[],this.size=this.A=this.fb=0}function Ge(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function kt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ar,this.f.kb=new Ge,this.sd=null}function Ne(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function qA(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function VA(A){return alert("todo:WebPSamplerProcessPlane"),A.T}function ie(A,o){var B=A.T,F=o.ba.f.RGBA,S=F.eb,j=F.fb+A.ka*F.A,P=Ir[o.ba.S],D=A.y,K=A.O,W=A.f,nA=A.N,yA=A.ea,CA=A.W,oA=o.cc,NA=o.dc,EA=o.Mc,sA=o.Nc,lA=A.ka,SA=A.ka+A.T,OA=A.U,HA=OA+1>>1;for(lA==0?P(D,K,null,null,W,nA,yA,CA,W,nA,yA,CA,S,j,null,null,OA):(P(o.ec,o.fc,D,K,oA,NA,EA,sA,W,nA,yA,CA,S,j-F.A,S,j,OA),++B);lA+2B,S=B==$i||B==Ao||B==eo||B==Is||B==12||He(B);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!vt(o.Oa,A,S?11:12))return 0;if(S&&He(B)&&kA(),A.da)alert("todo:use_scaling");else{if(F){if(o.Ib=VA,A.Kb){if(B=A.U+1>>1,o.memory=u(A.U+2*B),o.memory==null)return 0;o.ec=o.memory,o.fc=0,o.cc=o.ec,o.dc=o.fc+A.U,o.Mc=o.cc,o.Nc=o.dc+B,o.Ib=ie,kA()}}else alert("todo:EmitYUV");S&&(o.Jb=_e,F&&pA())}if(F&&!Ua){for(A=0;256>A;++A)Ic[A]=89858*(A-128)+so>>no,Hc[A]=-22014*(A-128)+so,Sc[A]=-45773*(A-128),xc[A]=113618*(A-128)+so>>no;for(A=jn;A>no,Nc[A-jn]=Nt(o,255),jc[A-jn]=Nt(o+8>>4,15);Ua=1}return 1}function Dt(A){var o=A.ma,B=A.U,F=A.T;return t(!(1&A.ka)),0>=B||0>=F?0:(B=o.Ib(A,o),o.Jb!=null&&o.Jb(A,o,B),o.Dc+=B,1)}function er(A){A.ma.memory=null}function ge(A,o,B,F){return QA(A,8)!=47?0:(o[0]=QA(A,14)+1,B[0]=QA(A,14)+1,F[0]=QA(A,1),QA(A,3)!=0?0:!A.h)}function Or(A,o){if(4>A)return A+1;var B=A-2>>1;return(2+(1&A)<>4)*A+(8-(15&B)))?B:1;var B}function Xt(A,o,B){var F=X(B),S=A[o+=255&F].g-8;return 0>>0,t(8>=B.g),A.g}function ut(A,o,B){var F=A.xc;return t((o=F==0?0:A.vc[A.md*(B>>F)+(o>>F)])>$A.b)*ZA;EAOA&&(Ke=OA),(0,Yt[Je[ze++]>>8&15])(CA,oA+ +MA,lA,SA+MA-OA,Ke-MA,lA,SA+MA),MA=Ke}oA+=OA,SA+=OA,++EA&re||($A+=ZA)}yA!=W.nc&&c(K,D-NA,K,D+(yA-nA-1)*NA,NA);break;case 1:for(NA=CA,sA=oA,OA=(CA=W.Ea)-(SA=CA&~(lA=(oA=1<>W.b)*EA;nA=S),0j.o&&(F=j.o),B=F?B=0:(S[0]+=4*j.v,j.ka=B-j.j,j.U=j.va-j.v,j.T=F-B,B=1),B){if(D=D[0],11>(B=A.ca).S){var nA=B.f.RGBA,yA=(F=B.S,S=j.U,j=j.T,W=nA.eb,nA.A),CA=j;for(nA=nA.fb+A.Ma*nA.A;0F){var S=A.l.width,j=B.ca,P=B.tb+S*F,D=A.V,K=A.Ba+A.c*F,W=A.gc;t(A.ab==1),t(W[0].hc==3),Zr(W[0],F,o,D,K,j,P),vr(B,F,o,j,P,S)}A.C=A.Ma=o}function Tr(A,o,B,F,S,j,P){var D=A.$/F,K=A.$%F,W=A.m,nA=A.s,yA=B+A.$,CA=yA;S=B+F*S;var oA=B+F*j,NA=280+nA.ua,EA=A.Pb?D:16777216,sA=0=EA){var re=yA-B;t((EA=A).Pb),EA.wd=EA.m,EA.xd=re,0ve.g?(eA(HA,HA.u+ve.g),re[ZA]=ve.value,HA=0):(eA(HA,HA.u+ve.g-256),t(256<=ve.value),HA=ve.value),HA==0&&(OA=!0)}else HA=Xt(SA.G[0],SA.H[0],W);if(W.h)break;if(OA||256>HA){if(!OA)if(SA.nd)o[yA]=(SA.qb|HA<<8)>>>0;else{if(uA(W),OA=Xt(SA.G[1],SA.H[1],W),uA(W),re=Xt(SA.G[2],SA.H[2],W),ZA=Xt(SA.G[3],SA.H[3],W),W.h)break;o[yA]=(ZA<<24|OA<<16|HA<<8|re)>>>0}if(OA=!1,++yA,++K>=F&&(K=0,++D,P!=null&&D<=j&&!(D%16)&&P(A,D),sA!=null))for(;CA>>sA.Mb]=HA}else if(280>HA){if(HA=Or(HA-256,W),re=Xt(SA.G[4],SA.H[4],W),uA(W),re=Xr(F,re=Or(re,W)),W.h)break;if(yA-B=F;)K-=F,++D,P!=null&&D<=j&&!(D%16)&&P(A,D);if(t(yA<=S),K&lA&&(SA=ut(nA,K,D)),sA!=null)for(;CA>>sA.Mb]=HA}else{if(!(HA>>sA.Mb]=HA;HA=yA,t(!(OA>>>(re=sA).Xa)),o[HA]=re.X[OA],OA=!0}OA||t(W.h==q(W))}if(A.Pb&&W.h&&yAj?j:D),A.a=0,A.$=yA-B}return 1}return A.a=3,0}function Dr(A){t(A!=null),A.vc=null,A.yc=null,A.Ya=null;var o=A.Wa;o!=null&&(o.X=null),A.vb=null,t(A!=null)}function yr(){var A=new _o;return A==null?null:(A.a=0,A.xb=ya,Bt("Predictor","VP8LPredictors"),Bt("Predictor","VP8LPredictors_C"),Bt("PredictorAdd","VP8LPredictorsAdd"),Bt("PredictorAdd","VP8LPredictorsAdd_C"),ii=Te,hr=we,br=mA,$r=TA,Mr=_A,un=fe,An=Ae,V.VP8LMapColor32b=Qr,V.VP8LMapColor8b=yt,A)}function Jr(A,o,B,F,S){var j=1,P=[A],D=[o],K=F.m,W=F.s,nA=null,yA=0;A:for(;;){if(B)for(;j&&QA(K,1);){var CA=P,oA=D,NA=F,EA=1,sA=NA.m,lA=NA.gc[NA.ab],SA=QA(sA,2);if(NA.Oc&1<=NA.ab),SA){case 0:case 1:lA.b=QA(sA,3)+2,EA=Jr(zA(lA.Ea,lA.b),zA(lA.nc,lA.b),0,NA,lA.K),lA.K=lA.K[0];break;case 3:var OA,HA=QA(sA,8)+1,re=16>$A.b),ze=u(Je);if(ze==null)OA=0;else{var MA=$A.K[0],Ke=$A.w;for(ze[0]=$A.K[0][0],ZA=1;ZA<1*ve;++ZA)ze[ZA]=jA(MA[Ke+ZA],ze[ZA-1]);for(;ZA<4*Je;++ZA)ze[ZA]=0;$A.K[0]=null,$A.K[0]=ze,OA=1}}EA=OA;break;case 2:break;default:t(0)}j=EA}}if(P=P[0],D=D[0],j&&QA(K,1)&&!(j=1<=(yA=QA(K,4))&&11>=yA)){F.a=3;break A}var nt;if(nt=j)e:{var Ye,me,Ft,Zt=F,ct=P,_t=D,Ze=yA,gr=B,pr=Zt.m,lt=Zt.s,Lt=[null],Mt=1,xr=0,kr=Bc[Ze];t:for(;;){if(gr&&QA(pr,1)){var Pt=QA(pr,3)+2,Gr=zA(ct,Pt),is=zA(_t,Pt),Hs=Gr*is;if(!Jr(Gr,is,0,Zt,Lt))break t;for(Lt=Lt[0],lt.xc=Pt,Ye=0;Ye>8&65535;Lt[Ye]=On,On>=Mt&&(Mt=On+1)}}if(pr.h)break t;for(me=0;5>me;++me){var gt=va[me];!me&&0=xa),oo=Sa;var Ns=u(xr);if(oo==null||Ns==null||Vo==null){Zt.a=1;break t}var ao=Vo;for(Ye=Ft=0;Yeme;++me){gt=va[me],js[me]=ao,os[me]=Ft,!me&&0lo)break r}else ir=lo;for(cs=0;csDs)Ka[cs++]=Ds,Ds!=0&&(Ra=Ds);else{var zo=Ds==16,Yo=Ds-16,Kt=dc[Yo],_s=QA(Pn,hc[Yo])+Kt;if(cs+_s>lo)break r;for(var _c=zo?Ra:0;0<_s--;)Ka[cs++]=_c}}Xo=1;break r}Xo||(Ma.a=3),Ts=Xo}(Ts=Ts&&!tn.h)&&(gi=T(Pc,ja,8,Ps,hi)),Ts&&gi!=0?co=gi:(di.a=3,co=0)}if(co==0)break t;if(as&&gc[me]==1&&(as=ao[Ft].g==0),Ha+=ao[Ft].g,Ft+=co,3>=me){var pi,uo=Ns[0];for(pi=1;piuo&&(uo=Ns[pi]);Na+=uo}}if(Vr.nd=as,Vr.Qb=0,as&&(Vr.qb=(js[3][os[3]+0].value<<24|js[1][os[1]+0].value<<16|js[2][os[2]+0].value)>>>0,Ha==0&&256>js[0][os[0]+0].value&&(Vr.Qb=1,Vr.qb+=js[0][os[0]+0].value<<8)),Vr.jc=!Vr.Qb&&6>Na,Vr.jc){var Ms,pn=Vr;for(Ms=0;Ms>=pe(fo,8,Dn),Tn>>=pe(pn.G[1][pn.H[1]+Tn],16,Dn),Tn>>=pe(pn.G[2][pn.H[2]+Tn],0,Dn),pe(pn.G[3][pn.H[3]+Tn],24,Dn))}}}lt.vc=Lt,lt.Wb=Mt,lt.Ya=oo,lt.yc=Vo,nt=1;break e}nt=0}if(!(j=nt)){F.a=3;break A}if(0F+1?[]:0),!(S.lengthS)return wt(A,7,"Truncated header.");var j=B[F+0]|B[F+1]<<8|B[F+2]<<16,P=A.Od;if(P.Rb=!(1&j),P.td=j>>1&7,P.yd=j>>4&1,P.ub=j>>5,3S)return wt(A,7,"cannot parse picture header");if(!Si(B,F,S))return wt(A,3,"Bad code word");D.c=16383&(B[F+4]<<8|B[F+3]),D.Td=B[F+4]>>6,D.i=16383&(B[F+6]<<8|B[F+5]),D.Ud=B[F+6]>>6,F+=7,S-=7,A.za=D.c+15>>4,A.Ub=D.i+15>>4,o.width=D.c,o.height=D.i,o.Da=0,o.j=0,o.v=0,o.va=o.width,o.o=o.height,o.da=0,o.ib=o.width,o.hb=o.height,o.U=o.width,o.T=o.height,d((j=A.Pa).jb,0,255,j.jb.length),t((j=A.Qa)!=null),j.Cb=0,j.Bb=0,j.Fb=1,d(j.Zb,0,0,j.Zb.length),d(j.Lb,0,0,j.Lb)}if(P.ub>S)return wt(A,7,"bad partition length");tA(j=A.m,B,F,P.ub),F+=P.ub,S-=P.ub,P.Rb&&(D.Ld=FA(j),D.Kd=FA(j)),D=A.Qa;var K,W=A.Pa;if(t(j!=null),t(D!=null),D.Cb=FA(j),D.Cb){if(D.Bb=FA(j),FA(j)){for(D.Fb=FA(j),K=0;4>K;++K)D.Zb[K]=FA(j)?vA(j,7):0;for(K=0;4>K;++K)D.Lb[K]=FA(j)?vA(j,6):0}if(D.Bb)for(K=0;3>K;++K)W.jb[K]=FA(j)?aA(j,8):255}else D.Bb=0;if(j.Ka)return wt(A,3,"cannot parse segment header");if((D=A.ed).zd=FA(j),D.Tb=aA(j,6),D.wb=aA(j,3),D.Pc=FA(j),D.Pc&&FA(j)){for(W=0;4>W;++W)FA(j)&&(D.vd[W]=vA(j,6));for(W=0;4>W;++W)FA(j)&&(D.od[W]=vA(j,6))}if(A.L=D.Tb==0?0:D.zd?1:2,j.Ka)return wt(A,3,"cannot parse filter header");var nA=S;if(S=K=F,F=K+nA,D=nA,A.Xb=(1<D&&(yA=D),tA(A.Jc[+nA],B,K,yA),K+=yA,D-=yA,S+=3}tA(A.Jc[+W],B,K,D),B=KyA;++yA){if(nA.Cb){var CA=nA.Zb[yA];nA.Fb||(CA+=B)}else{if(0>16,8>oA.Eb[1]&&(oA.Eb[1]=8),oA.Qc[0]=Ro[Nt(CA+W,117)],oA.Qc[1]=Ss[Nt(CA+K,127)],oA.lc=CA+K}if(!P.Rb)return wt(A,4,"Not a key frame.");for(FA(j),P=A.Pa,B=0;4>B;++B){for(S=0;8>S;++S)for(F=0;3>F;++F)for(D=0;11>D;++D)W=bA(j,Fc[B][S][F][D])?aA(j,8):yc[B][S][F][D],P.Wc[B][S].Yb[F][D]=W;for(S=0;17>S;++S)P.Xc[B][S]=P.Wc[B][Qc[S]]}return A.kc=FA(j),A.kc&&(A.Bd=aA(j,8)),A.cb=1}function Xn(A,o,B,F,S,j,P){var D=o[S].Yb[B];for(B=0;16>S;++S){if(!bA(A,D[B+0]))return S;for(;!bA(A,D[B+1]);)if(D=o[++S].Yb[0],B=0,S==16)return 16;var K=o[S+1].Yb;if(bA(A,D[B+2])){var W=A,nA=0;if(bA(W,(CA=D)[(yA=B)+3]))if(bA(W,CA[yA+6])){for(D=0,yA=2*(nA=bA(W,CA[yA+8]))+(CA=bA(W,CA[yA+9+nA])),nA=0,CA=vc[yA];CA[D];++D)nA+=nA+bA(W,CA[D]);nA+=3+(8<(W=A).b&&gA(W);var yA,CA=W.b,oA=(yA=W.Ca>>1)-(W.I>>CA)>>31;--W.b,W.Ca+=oA,W.Ca|=1,W.I-=(yA+1&oA)<>4,A.zb=o.j-B>>4,0>A.yb&&(A.yb=0),0>A.zb&&(A.zb=0)),A.Va=o.o+15+B>>4,A.Hb=o.va+15+B>>4,A.Hb>A.za&&(A.Hb=A.za),A.Va>A.Ub&&(A.Va=A.Ub),0B;++B){var S;if(A.Qa.Cb){var j=A.Qa.Lb[B];A.Qa.Fb||(j+=F.Tb)}else j=F.Tb;for(S=0;1>=S;++S){var P=A.gd[B][S],D=j;if(F.Pc&&(D+=F.vd[0],S&&(D+=F.od[0])),0<(D=0>D?0:63>2:K>>1)>9-F.wb&&(K=9-F.wb),1>K&&(K=1),P.dd=K,P.tc=2*D+K,P.ld=40<=D?2:15<=D?1:0}else P.tc=0;P.La=S}}}B=0}else wt(A,6,"Frame setup failed"),B=A.a;if(B=B==0){if(B){A.$c=0,0A.Vb){if(A.Vb=0,A.Ec=u(P),A.Fc=0,A.Ec==null){B=wt(A,1,"no memory during frame initialization.");break A}A.Vb=P}P=A.Ec,D=A.Fc,A.Ac=P,A.Bc=D,D+=F,A.Gd=p(W,xi),A.Hd=0,A.rb=p(nA+1,Zs),A.sb=1,A.wa=yA?p(yA,zr):null,A.Y=0,A.D.Nb=0,A.D.wa=A.wa,A.D.Y=A.Y,0=B;++B)li[255+B]=0>B?-B:B;for(B=-1020;1020>=B;++B)ga[1020+B]=-128>B?-128:127=B;++B)pa[112+B]=-16>B?-16:15=B;++B)zi[255+B]=0>B?0:255HA;++HA){var MA,Ke=ve[0+HA];for(MA=0;4>MA;++MA){Ke=Cc[re[ZA+MA]][Ke];for(var nt=ma[bA(OA,Ke[0])];0>3;for(nt=0;256>nt;nt+=16)HA[Je+nt]=_t}Ft=1,Zt=ZA[0]}var Ze=15&OA.la,gr=15&ze.la;for(nt=0;4>nt;++nt){var pr=1&gr;for(_t=me=0;4>_t;++_t)Ze=Ze>>1|(pr=(ct=ui(re,Zt,ct=pr+(1&Ze),$A.Sc,Ft,HA,Je))>Ft)<<7,me=me<<2|(3>=4,gr=gr>>1|pr<<7,MA=(MA<<8|me)>>>0}for(Zt=Ze,Ft=gr>>4,Ye=0;4>Ye;Ye+=2){for(me=0,Ze=OA.la>>4+Ye,gr=ze.la>>4+Ye,nt=0;2>nt;++nt){for(pr=1&gr,_t=0;2>_t;++_t)ct=pr+(1&Ze),Ze=Ze>>1|(pr=0<(ct=ui(re,ZA[2],ct,$A.Qc,0,HA,Je)))<<3,me=me<<2|(3>=2,gr=gr>>1|pr<<5}Ke|=me<<4*Ye,Zt|=Ze<<4<=sA.zb&&sA.M<=sA.Va,sA.Aa==0)A:{if(EA.M=sA.M,EA.uc=OA,at(sA,EA),SA=1,EA=(me=sA.D).Nb,OA=(Ke=io[sA.L])*sA.R,re=Ke/2*sA.B,nt=16*EA*sA.R,_t=8*EA*sA.B,ZA=sA.sa,ve=sA.ta-OA+nt,$A=sA.qa,HA=sA.ra-re+_t,Je=sA.Ha,ze=sA.Ia-re+_t,gr=(Ze=me.M)==0,MA=Ze>=sA.Va-1,sA.Aa==2&&at(sA,me),me.uc)for(pr=(ct=sA).D.M,t(ct.D.uc),me=ct.yb;melA.o&&(Ze=lA.o),lA.F=null,lA.J=null,sA.Fa!=null&&0>1),lA.W+=sA.B*(Ke>>1),lA.F!=null&&(lA.J+=lA.width*Ke)),me>1,lA.W+=lA.v>>1,lA.F!=null&&(lA.J+=lA.v),lA.ka=me-lA.j,lA.U=lA.va-lA.v,lA.T=Ze-me,SA=lA.put(lA))}EA+1!=sA.Ic||MA||(c(sA.sa,sA.ta-OA,ZA,ve+16*sA.R,OA),c(sA.qa,sA.ra-re,$A,HA+8*sA.B,re),c(sA.Ha,sA.Ia-re,Je,ze+8*sA.B,re))}if(!SA)return wt(oA,6,"Output aborted.")}return 1}(A,o)),o.bc!=null&&o.bc(o),B&=1}return B?(A.cb=0,B):0}function _r(A,o,B,F,S){S=A[o+B+32*F]+(S>>3),A[o+B+32*F]=-256&S?0>S?0:255:S}function bt(A,o,B,F,S,j){_r(A,o,0,B,F+S),_r(A,o,1,B,F+j),_r(A,o,2,B,F-j),_r(A,o,3,B,F-S)}function rr(A){return(20091*A>>16)+A}function $s(A,o,B,F){var S,j=0,P=u(16);for(S=0;4>S;++S){var D=A[o+0]+A[o+8],K=A[o+0]-A[o+8],W=(35468*A[o+4]>>16)-rr(A[o+12]),nA=rr(A[o+4])+(35468*A[o+12]>>16);P[j+0]=D+nA,P[j+1]=K+W,P[j+2]=K-W,P[j+3]=D-nA,j+=4,o++}for(S=j=0;4>S;++S)D=(A=P[j+0]+4)+P[j+8],K=A-P[j+8],W=(35468*P[j+4]>>16)-rr(P[j+12]),_r(B,F,0,0,D+(nA=rr(P[j+4])+(35468*P[j+12]>>16))),_r(B,F,1,0,K+W),_r(B,F,2,0,K-W),_r(B,F,3,0,D-nA),j++,F+=32}function Ni(A,o,B,F){var S=A[o+0]+4,j=35468*A[o+4]>>16,P=rr(A[o+4]),D=35468*A[o+1]>>16;bt(B,F,0,S+P,A=rr(A[o+1]),D),bt(B,F,1,S+j,A,D),bt(B,F,2,S-j,A,D),bt(B,F,3,S-P,A,D)}function Io(A,o,B,F,S){$s(A,o,B,F),S&&$s(A,o+16,B,F+4)}function ji(A,o,B,F){Ls(A,o+0,B,F,1),Ls(A,o+32,B,F+128,1)}function xo(A,o,B,F){var S;for(A=A[o+0]+4,S=0;4>S;++S)for(o=0;4>o;++o)_r(B,F,o,S,A)}function Oi(A,o,B,F){A[o+0]&&Ur(A,o+0,B,F),A[o+16]&&Ur(A,o+16,B,F+4),A[o+32]&&Ur(A,o+32,B,F+128),A[o+48]&&Ur(A,o+48,B,F+128+4)}function So(A,o,B,F){var S,j=u(16);for(S=0;4>S;++S){var P=A[o+0+S]+A[o+12+S],D=A[o+4+S]+A[o+8+S],K=A[o+4+S]-A[o+8+S],W=A[o+0+S]-A[o+12+S];j[0+S]=P+D,j[8+S]=P-D,j[4+S]=W+K,j[12+S]=W-K}for(S=0;4>S;++S)P=(A=j[0+4*S]+3)+j[3+4*S],D=j[1+4*S]+j[2+4*S],K=j[1+4*S]-j[2+4*S],W=A-j[3+4*S],B[F+0]=P+D>>3,B[F+16]=W+K>>3,B[F+32]=P-D>>3,B[F+48]=W-K>>3,F+=64}function Cn(A,o,B){var F,S=o-32,j=dr,P=255-A[S-1];for(F=0;FB;++B)c(A,o+32*B,A,o-32,16)}function zn(A,o){var B;for(B=16;0F;++F)d(o,B+32*F,A,16)}function Yr(A,o){var B,F=16;for(B=0;16>B;++B)F+=A[o-1+32*B]+A[o+B-32];Fn(F>>5,A,o)}function Gt(A,o){var B,F=8;for(B=0;16>B;++B)F+=A[o-1+32*B];Fn(F>>4,A,o)}function jo(A,o){var B,F=8;for(B=0;16>B;++B)F+=A[o+B-32];Fn(F>>4,A,o)}function Ti(A,o){Fn(128,A,o)}function be(A,o,B){return A+2*o+B+2>>2}function Oo(A,o){var B,F=o-32;for(F=new Uint8Array([be(A[F-1],A[F+0],A[F+1]),be(A[F+0],A[F+1],A[F+2]),be(A[F+1],A[F+2],A[F+3]),be(A[F+2],A[F+3],A[F+4])]),B=0;4>B;++B)c(A,o+32*B,F,0,F.length)}function Po(A,o){var B=A[o-1],F=A[o-1+32],S=A[o-1+64],j=A[o-1+96];DA(A,o+0,16843009*be(A[o-1-32],B,F)),DA(A,o+32,16843009*be(B,F,S)),DA(A,o+64,16843009*be(F,S,j)),DA(A,o+96,16843009*be(S,j,j))}function qr(A,o){var B,F=4;for(B=0;4>B;++B)F+=A[o+B-32]+A[o-1+32*B];for(F>>=3,B=0;4>B;++B)d(A,o+32*B,F,4)}function Di(A,o){var B=A[o-1+0],F=A[o-1+32],S=A[o-1+64],j=A[o-1-32],P=A[o+0-32],D=A[o+1-32],K=A[o+2-32],W=A[o+3-32];A[o+0+96]=be(F,S,A[o-1+96]),A[o+1+96]=A[o+0+64]=be(B,F,S),A[o+2+96]=A[o+1+64]=A[o+0+32]=be(j,B,F),A[o+3+96]=A[o+2+64]=A[o+1+32]=A[o+0+0]=be(P,j,B),A[o+3+64]=A[o+2+32]=A[o+1+0]=be(D,P,j),A[o+3+32]=A[o+2+0]=be(K,D,P),A[o+3+0]=be(W,K,D)}function _i(A,o){var B=A[o+1-32],F=A[o+2-32],S=A[o+3-32],j=A[o+4-32],P=A[o+5-32],D=A[o+6-32],K=A[o+7-32];A[o+0+0]=be(A[o+0-32],B,F),A[o+1+0]=A[o+0+32]=be(B,F,S),A[o+2+0]=A[o+1+32]=A[o+0+64]=be(F,S,j),A[o+3+0]=A[o+2+32]=A[o+1+64]=A[o+0+96]=be(S,j,P),A[o+3+32]=A[o+2+64]=A[o+1+96]=be(j,P,D),A[o+3+64]=A[o+2+96]=be(P,D,K),A[o+3+96]=be(D,K,K)}function vs(A,o){var B=A[o-1+0],F=A[o-1+32],S=A[o-1+64],j=A[o-1-32],P=A[o+0-32],D=A[o+1-32],K=A[o+2-32],W=A[o+3-32];A[o+0+0]=A[o+1+64]=j+P+1>>1,A[o+1+0]=A[o+2+64]=P+D+1>>1,A[o+2+0]=A[o+3+64]=D+K+1>>1,A[o+3+0]=K+W+1>>1,A[o+0+96]=be(S,F,B),A[o+0+64]=be(F,B,j),A[o+0+32]=A[o+1+96]=be(B,j,P),A[o+1+32]=A[o+2+96]=be(j,P,D),A[o+2+32]=A[o+3+96]=be(P,D,K),A[o+3+32]=be(D,K,W)}function nr(A,o){var B=A[o+0-32],F=A[o+1-32],S=A[o+2-32],j=A[o+3-32],P=A[o+4-32],D=A[o+5-32],K=A[o+6-32],W=A[o+7-32];A[o+0+0]=B+F+1>>1,A[o+1+0]=A[o+0+64]=F+S+1>>1,A[o+2+0]=A[o+1+64]=S+j+1>>1,A[o+3+0]=A[o+2+64]=j+P+1>>1,A[o+0+32]=be(B,F,S),A[o+1+32]=A[o+0+96]=be(F,S,j),A[o+2+32]=A[o+1+96]=be(S,j,P),A[o+3+32]=A[o+2+96]=be(j,P,D),A[o+3+64]=be(P,D,K),A[o+3+96]=be(D,K,W)}function Mi(A,o){var B=A[o-1+0],F=A[o-1+32],S=A[o-1+64],j=A[o-1+96];A[o+0+0]=B+F+1>>1,A[o+2+0]=A[o+0+32]=F+S+1>>1,A[o+2+32]=A[o+0+64]=S+j+1>>1,A[o+1+0]=be(B,F,S),A[o+3+0]=A[o+1+32]=be(F,S,j),A[o+3+32]=A[o+1+64]=be(S,j,j),A[o+3+64]=A[o+2+64]=A[o+0+96]=A[o+1+96]=A[o+2+96]=A[o+3+96]=j}function Ki(A,o){var B=A[o-1+0],F=A[o-1+32],S=A[o-1+64],j=A[o-1+96],P=A[o-1-32],D=A[o+0-32],K=A[o+1-32],W=A[o+2-32];A[o+0+0]=A[o+2+32]=B+P+1>>1,A[o+0+32]=A[o+2+64]=F+B+1>>1,A[o+0+64]=A[o+2+96]=S+F+1>>1,A[o+0+96]=j+S+1>>1,A[o+3+0]=be(D,K,W),A[o+2+0]=be(P,D,K),A[o+1+0]=A[o+3+32]=be(B,P,D),A[o+1+32]=A[o+3+64]=be(F,B,P),A[o+1+64]=A[o+3+96]=be(S,F,B),A[o+1+96]=be(j,S,F)}function Ri(A,o){var B;for(B=0;8>B;++B)c(A,o+32*B,A,o-32,8)}function Ai(A,o){var B;for(B=0;8>B;++B)d(A,o,A[o-1],8),o+=32}function Yn(A,o,B){var F;for(F=0;8>F;++F)d(o,B+32*F,A,8)}function Qn(A,o){var B,F=8;for(B=0;8>B;++B)F+=A[o+B-32]+A[o-1+32*B];Yn(F>>4,A,o)}function ki(A,o){var B,F=4;for(B=0;8>B;++B)F+=A[o+B-32];Yn(F>>3,A,o)}function bn(A,o){var B,F=4;for(B=0;8>B;++B)F+=A[o-1+32*B];Yn(F>>3,A,o)}function ms(A,o){Yn(128,A,o)}function ys(A,o,B){var F=A[o-B],S=A[o+0],j=3*(S-F)+Yi[1020+A[o-2*B]-A[o+B]],P=qi[112+(j+4>>3)];A[o-B]=dr[255+F+qi[112+(j+3>>3)]],A[o+0]=dr[255+S-P]}function Gi(A,o,B,F){var S=A[o+0],j=A[o+B];return Er[255+A[o-2*B]-A[o-B]]>F||Er[255+j-S]>F}function Ut(A,o,B,F){return 4*Er[255+A[o-B]-A[o+0]]+Er[255+A[o-2*B]-A[o+B]]<=F}function Vi(A,o,B,F,S){var j=A[o-3*B],P=A[o-2*B],D=A[o-B],K=A[o+0],W=A[o+B],nA=A[o+2*B],yA=A[o+3*B];return 4*Er[255+D-K]+Er[255+P-W]>F?0:Er[255+A[o-4*B]-j]<=S&&Er[255+j-P]<=S&&Er[255+P-D]<=S&&Er[255+yA-nA]<=S&&Er[255+nA-W]<=S&&Er[255+W-K]<=S}function cn(A,o,B,F){var S=2*F+1;for(F=0;16>F;++F)Ut(A,o+F,B,S)&&ys(A,o+F,B)}function ln(A,o,B,F){var S=2*F+1;for(F=0;16>F;++F)Ut(A,o+F*B,1,S)&&ys(A,o+F*B,1)}function Un(A,o,B,F){var S;for(S=3;0>7,lA=18*SA+63>>7,SA=9*SA+63>>7;K[W-3*nA]=dr[255+K[W-3*nA]+SA],K[W-2*nA]=dr[255+yA+lA],K[W-nA]=dr[255+CA+sA],K[W+0]=dr[255+oA-sA],K[W+nA]=dr[255+NA-lA],K[W+2*nA]=dr[255+EA-SA]}o+=F}}function sr(A,o,B,F,S,j,P,D){for(j=2*j+1;0>3)],EA=qi[112+(EA+3>>3)],sA=NA+1>>1;K[W-2*nA]=dr[255+K[W-2*nA]+sA],K[W-nA]=dr[255+yA+EA],K[W+0]=dr[255+CA-NA],K[W+nA]=dr[255+oA-sA]}o+=F}}function Ln(A,o,B,F,S,j){En(A,o,B,1,16,F,S,j)}function In(A,o,B,F,S,j){En(A,o,1,B,16,F,S,j)}function Do(A,o,B,F,S,j){var P;for(P=3;0W?0:255:W)&255,W=K,S[j+D]=nA}}function si(A,o,B,F){var S=o.width,j=o.o;if(t(A!=null&&o!=null),0>B||0>=F||B+F>j)return null;if(!A.Cc){if(A.ga==null){var P;if(A.ga=new Qs,(P=A.ga==null)||(P=o.width*o.o,t(A.Gb.length==0),A.Gb=u(P),A.Uc=0,A.Gb==null?P=0:(A.mb=A.Gb,A.nb=A.Uc,A.rc=null,P=1),P=!P),!P){P=A.ga;var D=A.Fa,K=A.P,W=A.qc,nA=A.mb,yA=A.nb,CA=K+1,oA=W-1,NA=P.l;if(t(D!=null&&nA!=null&&o!=null),gn[0]=null,gn[1]=Zn,gn[2]=ni,gn[3]=xn,P.ca=nA,P.tb=yA,P.c=o.width,P.i=o.height,t(0=W)o=0;else if(P.$a=D[K+0]>>0&3,P.Z=D[K+0]>>2&3,P.Lc=D[K+0]>>4&3,K=D[K+0]>>6&3,0>P.$a||1=P.c*P.i;P=!o}if(P)return null;A.ga.Lc!=1?A.Ga=0:F=j-B}t(A.ga!=null),t(B+F<=j);A:{if(o=(D=A.ga).c,j=D.l.o,D.$a==0){if(CA=A.rc,oA=A.Vc,NA=A.Fa,K=A.P+1+B*o,W=A.mb,nA=A.nb+B*o,t(K<=A.P+A.qc),D.Z!=0)for(t(gn[D.Z]!=null),P=0;P=o)o=1;else if(D.ic||pA(),D.ic){D=P.V,CA=P.Ba,oA=P.c;var EA=P.i,sA=(NA=1,K=P.$/oA,W=P.$%oA,nA=P.m,yA=P.s,P.$),lA=oA*EA,SA=oA*o,OA=yA.wc,HA=sA(EA=Xt(HA.G[0],HA.H[0],nA)))D[CA+sA]=EA,++sA,++W>=oA&&(W=0,++K<=o&&!(K%16)&&mr(P,K));else{if(!(280>EA)){NA=0;break e}EA=Or(EA-256,nA);var re,ZA=Xt(HA.G[4],HA.H[4],nA);if(uA(nA),!(sA>=(ZA=Xr(oA,ZA=Or(ZA,nA)))&&lA-sA>=EA)){NA=0;break e}for(re=0;re=oA;)W-=oA,++K<=o&&!(K%16)&&mr(P,K);sAo?o:K);break e}!NA||nA.h&&sA=j&&(A.Cc=1),F=1}if(!F)return null;if(A.Cc&&((F=A.ga)!=null&&(F.mc=null),A.ga=null,0>23,D[K+4*P+1]=D[K+4*P+1]*yA>>23,D[K+4*P+2]=D[K+4*P+2]*yA>>23)}o+=j}}function H(A,o,B,F,S){for(;0>4)*K>>16;A[o+2*j+0]=(240&P|P>>4)*K>>16&240|(15&P|P<<4)*K>>16>>4&15,A[o+2*j+1]=240&W|D}o+=S}}function Y(A,o,B,F,S,j,P,D){var K,W,nA=255;for(W=0;W>8}function pA(){dn=h,ns=H,ci=Y,da=rA}function IA(A,o,B){V[A]=function(F,S,j,P,D,K,W,nA,yA,CA,oA,NA,EA,sA,lA,SA,OA){var HA,re=OA-1>>1,ZA=D[K+0]|W[nA+0]<<16,ve=yA[CA+0]|oA[NA+0]<<16;t(F!=null);var $A=3*ZA+ve+131074>>2;for(o(F[S+0],255&$A,$A>>16,EA,sA),j!=null&&($A=3*ve+ZA+131074>>2,o(j[P+0],255&$A,$A>>16,lA,SA)),HA=1;HA<=re;++HA){var Je=D[K+HA]|W[nA+HA]<<16,ze=yA[CA+HA]|oA[NA+HA]<<16,MA=ZA+Je+ve+ze+524296,Ke=MA+2*(Je+ve)>>3;$A=Ke+ZA>>1,ZA=(MA=MA+2*(ZA+ze)>>3)+Je>>1,o(F[S+2*HA-1],255&$A,$A>>16,EA,sA+(2*HA-1)*B),o(F[S+2*HA-0],255&ZA,ZA>>16,EA,sA+(2*HA-0)*B),j!=null&&($A=MA+ve>>1,ZA=Ke+ze>>1,o(j[P+2*HA-1],255&$A,$A>>16,lA,SA+(2*HA-1)*B),o(j[P+2*HA+0],255&ZA,ZA>>16,lA,SA+(2*HA+0)*B)),ZA=Je,ve=ze}1&OA||($A=3*ZA+ve+131074>>2,o(F[S+OA-1],255&$A,$A>>16,EA,sA+(OA-1)*B),j!=null&&($A=3*ve+ZA+131074>>2,o(j[P+OA-1],255&$A,$A>>16,lA,SA+(OA-1)*B)))}}function kA(){Ir[Zi]=Uc,Ir[$i]=fi,Ir[ss]=ko,Ir[Ao]=Ca,Ir[eo]=Fa,Ir[Is]=Qa,Ir[wa]=Ec,Ir[Mo]=fi,Ir[Ko]=Ca,Ir[to]=Fa,Ir[xs]=Qa}function te(A){return A&~Lc?0>A?0:255:A>>ba}function Be(A,o){return te((19077*A>>8)+(26149*o>>8)-14234)}function xe(A,o,B){return te((19077*A>>8)-(6419*o>>8)-(13320*B>>8)+8708)}function Pe(A,o){return te((19077*A>>8)+(33050*o>>8)-17685)}function ke(A,o,B,F,S){F[S+0]=Be(A,B),F[S+1]=xe(A,o,B),F[S+2]=Pe(A,o)}function At(A,o,B,F,S){F[S+0]=Pe(A,o),F[S+1]=xe(A,o,B),F[S+2]=Be(A,B)}function et(A,o,B,F,S){var j=xe(A,o,B);o=j<<3&224|Pe(A,o)>>3,F[S+0]=248&Be(A,B)|j>>5,F[S+1]=o}function Le(A,o,B,F,S){var j=240&Pe(A,o)|15;F[S+0]=240&Be(A,B)|xe(A,o,B)>>4,F[S+1]=j}function Vt(A,o,B,F,S){F[S+0]=255,ke(A,o,B,F,S+1)}function mt(A,o,B,F,S){At(A,o,B,F,S),F[S+3]=255}function Cr(A,o,B,F,S){ke(A,o,B,F,S),F[S+3]=255}function Nt(A,o){return 0>A?0:A>o?o:A}function jt(A,o,B){V[A]=function(F,S,j,P,D,K,W,nA,yA){for(var CA=nA+(-2&yA)*B;nA!=CA;)o(F[S+0],j[P+0],D[K+0],W,nA),o(F[S+1],j[P+0],D[K+0],W,nA+B),S+=2,++P,++K,nA+=2*B;1&yA&&o(F[S+0],j[P+0],D[K+0],W,nA)}}function Ji(A,o,B){return B==0?A==0?o==0?6:5:o==0?4:0:B}function Fr(A,o,B,F,S){switch(A>>>30){case 3:Ls(o,B,F,S,0);break;case 2:oi(o,B,F,S);break;case 1:Ur(o,B,F,S)}}function at(A,o){var B,F,S=o.M,j=o.Nb,P=A.oc,D=A.pc+40,K=A.oc,W=A.pc+584,nA=A.oc,yA=A.pc+600;for(B=0;16>B;++B)P[D+32*B-1]=129;for(B=0;8>B;++B)K[W+32*B-1]=129,nA[yA+32*B-1]=129;for(0B;++B)c(P,D+32*B-4,P,D+32*B+12,4);for(B=-1;8>B;++B)c(K,W+32*B-4,K,W+32*B+4,4),c(nA,yA+32*B-4,nA,yA+32*B+4,4)}var oA=A.Gd,NA=A.Hd+F,EA=CA.ad,sA=CA.Hc;if(0=A.za-1?d(lA,SA,oA[NA].y[15],4):c(lA,SA,oA[NA+1].y,0,4)),B=0;4>B;B++)lA[SA+128+B]=lA[SA+256+B]=lA[SA+384+B]=lA[SA+0+B];for(B=0;16>B;++B,sA<<=2)lA=P,SA=D+Ea[B],Rr[CA.Ob[B]](lA,SA),Fr(sA,EA,16*+B,lA,SA)}else if(lA=Ji(F,S,CA.Ob[0]),Nn[lA](P,D),sA!=0)for(B=0;16>B;++B,sA<<=2)Fr(sA,EA,16*+B,P,D+Ea[B]);for(B=CA.Gc,lA=Ji(F,S,CA.Dd),Lr[lA](K,W),Lr[lA](nA,yA),sA=EA,lA=K,SA=W,255&(CA=B>>0)&&(170&CA?Kr(sA,256,lA,SA):fn(sA,256,lA,SA)),CA=nA,sA=yA,255&(B>>=8)&&(170&B?Kr(EA,320,CA,sA):fn(EA,320,CA,sA)),SB;++B)c(oA,NA+B*A.R,P,D+32*B,16);for(B=0;8>B;++B)c(EA,CA+B*A.B,K,W+32*B,8),c(sA,lA+B*A.B,nA,yA+32*B,8)}}function $n(A,o,B,F,S,j,P,D,K){var W=[0],nA=[0],yA=0,CA=K!=null?K.kd:0,oA=K??new ti;if(A==null||12>B)return 7;oA.data=A,oA.w=o,oA.ha=B,o=[o],B=[B],oA.gb=[oA.gb];A:{var NA=o,EA=B,sA=oA.gb;if(t(A!=null),t(EA!=null),t(sA!=null),sA[0]=0,12<=EA[0]&&!n(A,NA[0],"RIFF")){if(n(A,NA[0]+8,"WEBP")){sA=3;break A}var lA=GA(A,NA[0]+4);if(12>lA||4294967286EA[0]-8){sA=7;break A}sA[0]=lA,NA[0]+=12,EA[0]-=12}sA=0}if(sA!=0)return sA;for(lA=0sA[0])sA=7;else{if(!n(SA,EA[0],"VP8X")){if(GA(SA,EA[0]+4)!=10){sA=3;break A}if(18>sA[0]){sA=7;break A}var ZA=GA(SA,EA[0]+8),ve=1+RA(SA,EA[0]+12);if(2147483648<=ve*(SA=1+RA(SA,EA[0]+15))){sA=3;break A}re!=null&&(re[0]=ZA),OA!=null&&(OA[0]=ve),HA!=null&&(HA[0]=SA),EA[0]+=18,sA[0]-=18,$A[0]=1}sA=0}}if(yA=yA[0],NA=NA[0],sA!=0)return sA;if(EA=!!(2&NA),!lA&&yA)return 3;if(j!=null&&(j[0]=!!(16&NA)),P!=null&&(P[0]=EA),D!=null&&(D[0]=0),P=W[0],NA=nA[0],yA&&EA&&K==null){sA=0;break}if(4>B){sA=7;break}if(lA&&yA||!lA&&!yA&&!n(A,o[0],"ALPH")){B=[B],oA.na=[oA.na],oA.P=[oA.P],oA.Sa=[oA.Sa];A:{ZA=A,sA=o,lA=B;var $A=oA.gb;OA=oA.na,HA=oA.P,re=oA.Sa,ve=22,t(ZA!=null),t(lA!=null),SA=sA[0];var Je=lA[0];for(t(OA!=null),t(re!=null),OA[0]=null,HA[0]=null,re[0]=0;;){if(sA[0]=SA,lA[0]=Je,8>Je){sA=7;break A}var ze=GA(ZA,SA+4);if(4294967286$A){sA=3;break A}if(!n(ZA,SA,"VP8 ")||!n(ZA,SA,"VP8L")){sA=0;break A}if(Je[0]lA[0])sA=7;else{if(SA||ve){if($A=GA($A,ZA+4),12<=OA&&$A>OA-12){sA=3;break A}if(CA&&$A>lA[0]-8){sA=7;break A}HA[0]=$A,sA[0]+=8,lA[0]-=8,re[0]=ve}else re[0]=5<=lA[0]&&$A[ZA+0]==47&&!($A[ZA+4]>>5),HA[0]=lA[0];sA=0}if(B=B[0],oA.Ja=oA.Ja[0],oA.xa=oA.xa[0],o=o[0],sA!=0)break;if(4294967286B){sA=7;break}D=P,CA=NA,EA=j,A==null||5>B?A=0:5<=B&&A[o+0]==47&&!(A[o+4]>>5)?(lA=[0],$A=[0],OA=[0],hA(HA=new N,A,o,B),ge(HA,lA,$A,OA)?(D!=null&&(D[0]=lA[0]),CA!=null&&(CA[0]=$A[0]),EA!=null&&(EA[0]=OA[0]),A=1):A=0):A=0}else{if(10>B){sA=7;break}D=NA,A==null||10>B||!Si(A,o+3,B-3)?A=0:(CA=A[o+0]|A[o+1]<<8|A[o+2]<<16,EA=16383&(A[o+7]<<8|A[o+6]),A=16383&(A[o+9]<<8|A[o+8]),1&CA||3<(CA>>1&7)||!(CA>>4&1)||CA>>5>=oA.Ja||!EA||!A?A=0:(P&&(P[0]=EA),D&&(D[0]=A),A=1))}if(!A||(P=P[0],NA=NA[0],yA&&(W[0]!=P||nA[0]!=NA)))return 3;K!=null&&(K[0]=oA,K.offset=o-K.w,t(4294967286>o-K.w),t(K.offset==K.ha-B));break}return sA==0||sA==7&&yA&&K==null?(j!=null&&(j[0]|=oA.na!=null&&0B||(j&=-2,P&=-2),0>j||0>P||0>=D||0>=K||j+D>F||P+K>S))return 0;if(o.v=j,o.j=P,o.va=j+D,o.o=P+K,o.U=D,o.T=K,o.da=A!=null&&0A.S){var o=A.f.RGBA;o.fb+=(A.height-1)*o.A,o.A=-o.A}else o=A.f.kb,A=A.height,o.O+=(A-1)*o.fa,o.fa=-o.fa,o.N+=(A-1>>1)*o.Ab,o.Ab=-o.Ab,o.W+=(A-1>>1)*o.Db,o.Db=-o.Db,o.F!=null&&(o.J+=(A-1)*o.lb,o.lb=-o.lb);return 0}function fr(A,o,B,F){if(F==null||0>=A||0>=o)return 2;if(B!=null){if(B.Da){var S=B.cd,j=B.bd,P=-2&B.v,D=-2&B.j;if(0>P||0>D||0>=S||0>=j||P+S>A||D+j>o)return 2;A=S,o=j}if(B.da){if(!Qe(A,o,S=[B.ib],j=[B.hb]))return 2;A=S[0],o=j[0]}}F.width=A,F.height=o;A:{var K=F.width,W=F.height;if(A=F.S,0>=K||0>=W||!(A>=Zi&&13>A))A=2;else{if(0>=F.Rd&&F.sd==null){P=j=S=o=0;var nA=(D=K*Ia[A])*W;if(11>A||(j=(W+1)/2*(o=(K+1)/2),A==12&&(P=(S=K)*W)),(W=u(nA+2*j+P))==null){A=1;break A}F.sd=W,11>A?((K=F.f.RGBA).eb=W,K.fb=0,K.A=D,K.size=nA):((K=F.f.kb).y=W,K.O=0,K.fa=D,K.Fd=nA,K.f=W,K.N=0+nA,K.Ab=o,K.Cd=j,K.ea=W,K.W=0+nA+j,K.Db=o,K.Ed=j,A==12&&(K.F=W,K.J=0+nA+2*j),K.Tc=P,K.lb=S)}if(o=1,S=F.S,j=F.width,P=F.height,S>=Zi&&13>S)if(11>S)A=F.f.RGBA,o&=(D=Math.abs(A.A))*(P-1)+j<=A.size,o&=D>=j*Ia[S],o&=A.eb!=null;else{A=F.f.kb,D=(j+1)/2,nA=(P+1)/2,K=Math.abs(A.fa),W=Math.abs(A.Ab);var yA=Math.abs(A.Db),CA=Math.abs(A.lb),oA=CA*(P-1)+j;o&=K*(P-1)+j<=A.Fd,o&=W*(nA-1)+D<=A.Cd,o=(o&=yA*(nA-1)+D<=A.Ed)&K>=j&W>=D&yA>=D,o&=A.y!=null,o&=A.f!=null,o&=A.ea!=null,S==12&&(o&=CA>=j,o&=oA<=A.Tc,o&=A.F!=null)}else o=0;A=o?0:2}}return A!=0||B!=null&&B.fd&&(A=As(F)),A}var Ot=64,Xe=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],es=24,ts=32,bs=8,zt=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];WA("Predictor0","PredictorAdd0"),V.Predictor0=function(){return 4278190080},V.Predictor1=function(A){return A},V.Predictor2=function(A,o,B){return o[B+0]},V.Predictor3=function(A,o,B){return o[B+1]},V.Predictor4=function(A,o,B){return o[B-1]},V.Predictor5=function(A,o,B){return XA(XA(A,o[B+1]),o[B+0])},V.Predictor6=function(A,o,B){return XA(A,o[B-1])},V.Predictor7=function(A,o,B){return XA(A,o[B+0])},V.Predictor8=function(A,o,B){return XA(o[B-1],o[B+0])},V.Predictor9=function(A,o,B){return XA(o[B+0],o[B+1])},V.Predictor10=function(A,o,B){return XA(XA(A,o[B-1]),XA(o[B+0],o[B+1]))},V.Predictor11=function(A,o,B){var F=o[B+0];return 0>=de(F>>24&255,A>>24&255,(o=o[B-1])>>24&255)+de(F>>16&255,A>>16&255,o>>16&255)+de(F>>8&255,A>>8&255,o>>8&255)+de(255&F,255&A,255&o)?F:A},V.Predictor12=function(A,o,B){var F=o[B+0];return(ae((A>>24&255)+(F>>24&255)-((o=o[B-1])>>24&255))<<24|ae((A>>16&255)+(F>>16&255)-(o>>16&255))<<16|ae((A>>8&255)+(F>>8&255)-(o>>8&255))<<8|ae((255&A)+(255&F)-(255&o)))>>>0},V.Predictor13=function(A,o,B){var F=o[B-1];return(ye((A=XA(A,o[B+0]))>>24&255,F>>24&255)<<24|ye(A>>16&255,F>>16&255)<<16|ye(A>>8&255,F>>8&255)<<8|ye(A>>0&255,F>>0&255))>>>0};var Us=V.PredictorAdd0;V.PredictorAdd1=Ce,WA("Predictor2","PredictorAdd2"),WA("Predictor3","PredictorAdd3"),WA("Predictor4","PredictorAdd4"),WA("Predictor5","PredictorAdd5"),WA("Predictor6","PredictorAdd6"),WA("Predictor7","PredictorAdd7"),WA("Predictor8","PredictorAdd8"),WA("Predictor9","PredictorAdd9"),WA("Predictor10","PredictorAdd10"),WA("Predictor11","PredictorAdd11"),WA("Predictor12","PredictorAdd12"),WA("Predictor13","PredictorAdd13");var Es=V.PredictorAdd2;BA("ColorIndexInverseTransform","MapARGB","32b",function(A){return A>>8&255},function(A){return A}),BA("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(A){return A},function(A){return A>>8&255});var ii,ht=V.ColorIndexInverseTransform,Qr=V.MapARGB,Zr=V.VP8LColorIndexInverseTransformAlpha,yt=V.MapAlpha,Yt=V.VP8LPredictorsAdd=[];Yt.length=16,(V.VP8LPredictors=[]).length=16,(V.VP8LPredictorsAdd_C=[]).length=16,(V.VP8LPredictors_C=[]).length=16;var hr,br,$r,Mr,un,An,Et,Ls,oi,Kr,Ur,fn,rs,Wt,Sn,Hn,ai,qt,hn,tt,rt,dt,Ct,en,dn,ns,ci,da,li=u(511),ga=u(2041),pa=u(225),zi=u(767),Ba=0,Yi=ga,qi=pa,dr=zi,Er=li,Zi=0,$i=1,ss=2,Ao=3,eo=4,Is=5,wa=6,Mo=7,Ko=8,to=9,xs=10,hc=[2,3,7],dc=[3,3,11],va=[280,256,256,256,40],gc=[0,1,1,1,0],ro=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],pc=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Bc=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],wc=8,Ro=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Ss=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ui=null,vc=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],mc=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ma=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],yc=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Cc=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Fc=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Qc=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Nn=[],Rr=[],Lr=[],bc=1,ya=2,gn=[],Ir=[];IA("UpsampleRgbLinePair",ke,3),IA("UpsampleBgrLinePair",At,3),IA("UpsampleRgbaLinePair",Cr,4),IA("UpsampleBgraLinePair",mt,4),IA("UpsampleArgbLinePair",Vt,4),IA("UpsampleRgba4444LinePair",Le,2),IA("UpsampleRgb565LinePair",et,2);var Uc=V.UpsampleRgbLinePair,ko=V.UpsampleBgrLinePair,fi=V.UpsampleRgbaLinePair,Ca=V.UpsampleBgraLinePair,Fa=V.UpsampleArgbLinePair,Qa=V.UpsampleRgba4444LinePair,Ec=V.UpsampleRgb565LinePair,no=16,so=1<F.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),F.ca.f.kb.F!=null&&pA()),F.Pb&&0(K=B.Md)?0:100W;++W)12>(yA=S.pb[W]).lc&&(yA.ia=K*La[0>yA.lc?0:yA.lc]>>3),nA|=yA.ia;nA&&(alert("todo:VP8InitRandom"),S.ia=1)}S.Ga=B.Id,100S.Ga&&(S.Ga=0)}Jn(A,F)||(o=A.a)}}else o=A.a}o==0&&P.Oa!=null&&P.Oa.fd&&(o=As(P.ba))}P=o}j=P!=0?null:11>j?D.f.RGBA.eb:D.f.kb.y}else j=null;return j};var Ia=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function m(V,dA){for(var cA="",T=0;T<4;T++)cA+=String.fromCharCode(V[dA++]);return cA}function l(V,dA){return(V[dA+0]<<0|V[dA+1]<<8|V[dA+2]<<16)>>>0}function y(V,dA){return(V[dA+0]<<0|V[dA+1]<<8|V[dA+2]<<16|V[dA+3]<<24)>>>0}new f;var C=[0],g=[0],L=[],E=new f,x=a,Q=function(V,dA){var cA={},T=0,M=!1,z=0,J=0;if(cA.frames=[],!function(X,q,eA,uA){for(var gA=0;gA>1&1}vA!="ANMF"&&(dA+=UA)}return cA}}(x,0);Q.response=x,Q.rgbaoutput=!0,Q.dataurl=!1;var U=Q.header?Q.header:null,I=Q.frames?Q.frames:null;if(U){U.loop_counter=U.loop_count,C=[U.canvas_height],g=[U.canvas_width];for(var _=0;_>>1)&255;return Q},f=function(C,g,L){var E,x,Q,U,I=[],_=C.length;I[0]=4;for(var R=0;R<_;R+=1)E=C[R-g]||0,x=L&&L[R]||0,Q=L&&L[R-g]||0,U=m(E,x,Q),I[R+1]=C[R]-U+256&255;return I},m=function(C,g,L){if(C===g&&g===L)return C;var E=Math.abs(g-L),x=Math.abs(C-L),Q=Math.abs(C+g-L-L);return E<=x&&E<=Q?C:x<=Q?g:L},l=function(){return[d,u,p,v,f]},y=function(C){var g=C.map(function(L){return L.reduce(function(E,x){return E+Math.abs(x)},0)});return g.indexOf(Math.min.apply(null,g))};a.processPNG=function(C,g,L,E){var x,Q,U,I,_,R,Z,AA,V,dA,cA,T,M,z,J,tA=this.decode.FLATE_DECODE,aA="";if(this.__addimage__.isArrayBuffer(C)&&(C=new Uint8Array(C)),this.__addimage__.isArrayBufferView(C)){if(C=(U=new kh(C)).imgData,Q=U.bits,x=U.colorSpace,_=U.colors,[4,6].indexOf(U.colorType)!==-1){if(U.bits===8){V=(AA=U.pixelBitlength==32?new Uint32Array(U.decodePixels().buffer):U.pixelBitlength==16?new Uint16Array(U.decodePixels().buffer):new Uint8Array(U.decodePixels().buffer)).length,cA=new Uint8Array(V*U.colors),dA=new Uint8Array(V);var vA,hA=U.pixelBitlength-U.bits;for(z=0,J=0;z>>vA&255,vA+=U.bits;dA[z]=M>>>vA&255}}if(U.bits===16){V=(AA=new Uint32Array(U.decodePixels().buffer)).length,cA=new Uint8Array(V*(32/U.pixelBitlength)*U.colors),dA=new Uint8Array(V*(32/U.pixelBitlength)),T=U.colors>1,z=0,J=0;for(var UA=0;z>>0&255,T&&(cA[J++]=M>>>16&255,M=AA[z++],cA[J++]=M>>>0&255),dA[UA++]=M>>>16&255;Q=8}E!==a.image_compression.NONE&&t()?(C=n(cA,U.width*U.colors,U.colors,E),Z=n(dA,U.width,1,E)):(C=cA,Z=dA,tA=void 0)}if(U.colorType===3&&(x=this.color_spaces.INDEXED,R=U.palette,U.transparency.indexed)){var QA=U.transparency.indexed,PA=0;for(z=0,V=QA.length;z=0;a--){for(var c=this.bottom_up?a:this.height-1-a,d=0;d>7-v&1];this.data[p+4*v]=f.blue,this.data[p+4*v+1]=f.green,this.data[p+4*v+2]=f.red,this.data[p+4*v+3]=255}n!==0&&(this.pos+=4-n)}},wn.prototype.bit4=function(){for(var a=Math.ceil(this.width/2),t=a%4,n=this.height-1;n>=0;n--){for(var c=this.bottom_up?n:this.height-1-n,d=0;d>4,f=15&u,m=this.palette[v];if(this.data[p]=m.blue,this.data[p+1]=m.green,this.data[p+2]=m.red,this.data[p+3]=255,2*d+1>=this.width)break;m=this.palette[f],this.data[p+4]=m.blue,this.data[p+4+1]=m.green,this.data[p+4+2]=m.red,this.data[p+4+3]=255}t!==0&&(this.pos+=4-t)}},wn.prototype.bit8=function(){for(var a=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,c=0;c=0;n--){for(var c=this.bottom_up?n:this.height-1-n,d=0;d>5&t)/t*255|0,f=(u>>10&t)/t*255|0,m=u>>15?255:0,l=c*this.width*4+4*d;this.data[l]=f,this.data[l+1]=v,this.data[l+2]=p,this.data[l+3]=m}this.pos+=a}},wn.prototype.bit16=function(){for(var a=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),c=this.height-1;c>=0;c--){for(var d=this.bottom_up?c:this.height-1-c,u=0;u>5&n)/n*255|0,m=(p>>11)/t*255|0,l=d*this.width*4+4*u;this.data[l]=m,this.data[l+1]=f,this.data[l+2]=v,this.data[l+3]=255}this.pos+=a}},wn.prototype.bit24=function(){for(var a=this.height-1;a>=0;a--){for(var t=this.bottom_up?a:this.height-1-a,n=0;n=0;a--)for(var t=this.bottom_up?a:this.height-1-a,n=0;nc&&(d.push(a.slice(f,u)),v=0,f=u),v+=t[u],u++;return f!==u&&d.push(a.slice(f,u)),d},Cu=function(a,t,n){n||(n={});var c,d,u,p,v,f,m,l=[],y=[l],C=n.textIndent||0,g=0,L=0,E=a.split(" "),x=oc.apply(this,[" ",n])[0];if(f=n.lineIndent===-1?E[0].length+2:n.lineIndent||0){var Q=Array(f).join(" "),U=[];E.map(function(_){(_=_.split(/\s*\n/)).length>1?U=U.concat(_.map(function(R,Z){return(Z&&R.length?` `:"")+R})):U.push(_[0])}),E=U,f=mu.apply(this,[Q,n])}for(u=0,p=E.length;ut||I){if(L>t){for(v=yu.apply(this,[c,d,t-(C+g),t]),l.push(v.shift()),l=[v.pop()];v.length;)y.push([v.shift()]);L=d.slice(c.length-(l[0]?l[0].length:0)).reduce(function(_,R){return _+R},0)}else l=[c];y.push(l),C=L+f,g=x}else l.push(c),C+=g+L,g=x}return m=f?function(_,R){return(R?Q:"")+_.join(" ")}:function(_){return _.join(" ")},y.map(m)},Fo.splitTextToSize=function(a,t,n){var c,d=(n=n||{}).fontSize||this.internal.getFontSize(),u=(function(l){if(l.widths&&l.kerning)return{widths:l.widths,kerning:l.kerning};var y=this.internal.getFont(l.fontName,l.fontStyle);return y.metadata.Unicode?{widths:y.metadata.Unicode.widths||{0:1},kerning:y.metadata.Unicode.kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);c=Array.isArray(a)?a:String(a).split(/\r?\n/);var p=1*this.internal.scaleFactor*t/d;u.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/d:0,u.lineIndent=n.lineIndent;var v,f,m=[];for(v=0,f=c.length;vimport("./index.es-41cymvk1.js"),__vite__mapDeps([2,1,3]))).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Ue.API.addSvgAsImage=function(n,c,d,u,p,v,f,m){if(isNaN(c)||isNaN(d))throw ot.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(u)||isNaN(p))throw ot.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=u,l.height=p;var y=l.getContext("2d");y.fillStyle="#fff",y.fillRect(0,0,l.width,l.height);var C={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return t().then(function(L){return L.fromString(y,n,C)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(L){return L.render(C)}).then(function(){g.addImage(l.toDataURL("image/jpeg",1),c,d,u,p,f,m)})}}(),Ue.API.putTotalPages=function(a){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(a,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(a,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var c=1;c<=this.internal.getNumberOfPages();c++)for(var d=0;d1){for(l=0;lt||I){if(L>t){for(v=yu.apply(this,[c,d,t-(C+g),t]),l.push(v.shift()),l=[v.pop()];v.length;)y.push([v.shift()]);L=d.slice(c.length-(l[0]?l[0].length:0)).reduce(function(_,R){return _+R},0)}else l=[c];y.push(l),C=L+f,g=x}else l.push(c),C+=g+L,g=x}return m=f?function(_,R){return(R?Q:"")+_.join(" ")}:function(_){return _.join(" ")},y.map(m)},Fo.splitTextToSize=function(a,t,n){var c,d=(n=n||{}).fontSize||this.internal.getFontSize(),u=(function(l){if(l.widths&&l.kerning)return{widths:l.widths,kerning:l.kerning};var y=this.internal.getFont(l.fontName,l.fontStyle);return y.metadata.Unicode?{widths:y.metadata.Unicode.widths||{0:1},kerning:y.metadata.Unicode.kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);c=Array.isArray(a)?a:String(a).split(/\r?\n/);var p=1*this.internal.scaleFactor*t/d;u.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/d:0,u.lineIndent=n.lineIndent;var v,f,m=[];for(v=0,f=c.length;vimport("./index.es-DMTorwo1.js"),__vite__mapDeps([2,1,3]))).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Ue.API.addSvgAsImage=function(n,c,d,u,p,v,f,m){if(isNaN(c)||isNaN(d))throw ot.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(u)||isNaN(p))throw ot.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=u,l.height=p;var y=l.getContext("2d");y.fillStyle="#fff",y.fillRect(0,0,l.width,l.height);var C={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return t().then(function(L){return L.fromString(y,n,C)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(L){return L.render(C)}).then(function(){g.addImage(l.toDataURL("image/jpeg",1),c,d,u,p,f,m)})}}(),Ue.API.putTotalPages=function(a){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(a,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(a,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var c=1;c<=this.internal.getNumberOfPages();c++)for(var d=0;d1){for(l=0;l __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/dist/assets/index-F5ndk3lt.js b/assets/dist/assets/index-F5ndk3lt.js new file mode 100644 index 00000000..8451e7f1 --- /dev/null +++ b/assets/dist/assets/index-F5ndk3lt.js @@ -0,0 +1,58 @@ +import{g as tc}from"./_commonjsHelpers-BosuxZz1.js";function kp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var nc={exports:{}},Zo={},rc={exports:{}},R={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rr=Symbol.for("react.element"),xp=Symbol.for("react.portal"),Tp=Symbol.for("react.fragment"),Cp=Symbol.for("react.strict_mode"),Np=Symbol.for("react.profiler"),Ip=Symbol.for("react.provider"),Pp=Symbol.for("react.context"),Op=Symbol.for("react.forward_ref"),Rp=Symbol.for("react.suspense"),Dp=Symbol.for("react.memo"),Lp=Symbol.for("react.lazy"),mu=Symbol.iterator;function Mp(e){return e===null||typeof e!="object"?null:(e=mu&&e[mu]||e["@@iterator"],typeof e=="function"?e:null)}var oc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ic=Object.assign,sc={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=sc,this.updater=n||oc}Ln.prototype.isReactComponent={};Ln.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lc(){}lc.prototype=Ln.prototype;function al(e,t,n){this.props=e,this.context=t,this.refs=sc,this.updater=n||oc}var cl=al.prototype=new lc;cl.constructor=al;ic(cl,Ln.prototype);cl.isPureReactComponent=!0;var gu=Array.isArray,uc=Object.prototype.hasOwnProperty,fl={current:null},ac={key:!0,ref:!0,__self:!0,__source:!0};function cc(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)uc.call(t,r)&&!ac.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1Jp(e,r,n))}function Zp(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!Wt(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=bp(ns(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function ns(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let u=[...i];if(Wt(r[o],Error)){Su(s,l);const a=e(t,r[o]),d=u.length;Eu(a,o,d,l),u=ns(e,t,n,r[o],o,[a,...u],a,d)}return Array.isArray(r.errors)&&r.errors.forEach((a,d)=>{if(Wt(a,Error)){Su(s,l);const f=e(t,a),m=u.length;Eu(f,`errors[${d}]`,m,l),u=ns(e,t,n,a,o,[f,...u],f,m)}}),u}function Su(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Eu(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function bp(e,t){return e.map(n=>(n.value&&(n.value=gn(n.value,t)),n))}function Wr(e){return e&&e.Math==Math?e:void 0}const M=typeof globalThis=="object"&&Wr(globalThis)||typeof window=="object"&&Wr(window)||typeof self=="object"&&Wr(self)||typeof global=="object"&&Wr(global)||function(){return this}()||{};function gl(){return M}function mc(e,t,n){const r=n||M,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const yl=gl(),eh=80;function gc(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",u=l.length;let a;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||eh;for(;n&&i++1&&s+o.length*u+a.length>=f));)o.push(a),s+=a.length,n=n.parentNode;return o.reverse().join(l)}catch{return""}}function th(e,t){const n=e,r=[];let o,i,s,l,u;if(!n||!n.tagName)return"";if(yl.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(a&&a.length)a.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&nt(o))for(i=o.split(/\s+/),u=0;u"u"||__SENTRY_DEBUG__,oh="Sentry Logger ",rs=["debug","info","warn","error","log","assert","trace"],To={};function ri(e){if(!("console"in M))return e();const t=M.console,n={},r=Object.keys(To);r.forEach(o=>{const i=To[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function ih(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Dr?rs.forEach(n=>{t[n]=(...r)=>{e&&ri(()=>{M.console[n](`${oh}[${n}]:`,...r)})}}):rs.forEach(n=>{t[n]=()=>{}}),t}const N=ih(),sh=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function lh(e){return e==="http"||e==="https"}function Lr(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function uh(e){const t=sh.exec(e);if(!t){ri(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i,s="",l]=t.slice(1);let u="",a=l;const d=a.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),a=d.pop()),a){const f=a.match(/^\d+/);f&&(a=f[0])}return yc({host:i,pass:o,path:u,projectId:a,port:s,protocol:n,publicKey:r})}function yc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ah(e){if(!Dr)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(N.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?lh(r)?t&&isNaN(parseInt(t,10))?(N.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(N.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(N.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ch(e){const t=typeof e=="string"?uh(e):yc(e);if(!(!t||!ah(t)))return t}class Ge extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function ne(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&vc(o,r),e[t]=o}function fr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Dr&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function vc(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,fr(e,"__sentry_original__",t)}catch{}}function vl(e){return e.__sentry_original__}function fh(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function _c(e){if(pc(e))return{message:e.message,name:e.name,stack:e.stack,...ku(e)};if(ei(e)){const t={type:e.type,target:wu(e.target),currentTarget:wu(e.currentTarget),...ku(e)};return typeof CustomEvent<"u"&&Wt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function wu(e){try{return Qp(e)?gc(e):Object.prototype.toString.call(e)}catch{return""}}function ku(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function dh(e,t=40){const n=Object.keys(_c(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return gn(n[0],t);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:gn(o,t)}return""}function Ze(e){return os(e,new Map)}function os(e,t){if(ph(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=os(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(os(o,t))}),r}return e}function ph(e){if(!kn(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Sc=50,xu=/\(error: (.*)\)/,Tu=/captureMessage|captureException/;function Ec(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const o=[],i=n.split(` +`);for(let s=r;s1024)continue;const u=xu.test(l)?l.replace(xu,"$1"):l;if(!u.match(/\S*Error: /)){for(const a of t){const d=a(u);if(d){o.push(d);break}}if(o.length>=Sc)break}}return mh(o)}}function hh(e){return Array.isArray(e)?Ec(...e):e}function mh(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Tu.test(t[t.length-1].function||"")&&(t.pop(),Tu.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Sc).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Ni="";function Nt(e){try{return!e||typeof e!="function"?Ni:e.name||Ni}catch{return Ni}}const ho={},Cu={};function Jt(e,t){ho[e]=ho[e]||[],ho[e].push(t)}function Zt(e,t){Cu[e]||(t(),Cu[e]=!0)}function Ae(e,t){const n=e&&ho[e];if(n)for(const r of n)try{r(t)}catch(o){Dr&&N.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${Nt(r)} +Error:`,o)}}function gh(e){const t="console";Jt(t,e),Zt(t,yh)}function yh(){"console"in M&&rs.forEach(function(e){e in M.console&&ne(M.console,e,function(t){return To[e]=t,function(...n){Ae("console",{args:n,level:e});const o=To[e];o&&o.apply(M.console,n)}})})}function Pe(){const e=M,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function wc(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ht(e){const{message:t,event_id:n}=e;if(t)return t;const r=wc(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function is(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function dr(e,t){const n=wc(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function Nu(e){if(e&&e.__sentry_captured__)return!0;try{fr(e,"__sentry_captured__",!0)}catch{}return!1}function kc(e){return Array.isArray(e)?e:[e]}const nn=M,vh=1e3;let Iu,ss,ls;function _h(e){const t="dom";Jt(t,e),Zt(t,Sh)}function Sh(){if(!nn.document)return;const e=Ae.bind(null,"dom"),t=Pu(e,!0);nn.document.addEventListener("click",t,!1),nn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=nn[n]&&nn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(ne(r,"addEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,a=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},d=a[i]=a[i]||{refCount:0};if(!d.handler){const f=Pu(e);d.handler=f,o.call(this,i,f,l)}d.refCount++}catch{}return o.call(this,i,s,l)}}),ne(r,"removeEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,a=u.__sentry_instrumentation_handlers__||{},d=a[i];d&&(d.refCount--,d.refCount<=0&&(o.call(this,i,d.handler,l),d.handler=void 0,delete a[i]),Object.keys(a).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,l)}}))})}function Eh(e){if(e.type!==ss)return!1;try{if(!e.target||e.target._sentryId!==ls)return!1}catch{}return!0}function wh(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Pu(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=kh(n);if(wh(n.type,r))return;fr(n,"_sentryCaptured",!0),r&&!r._sentryId&&fr(r,"_sentryId",Pe());const o=n.type==="keypress"?"input":n.type;Eh(n)||(e({event:n,name:o,global:t}),ss=n.type,ls=r?r._sentryId:void 0),clearTimeout(Iu),Iu=nn.setTimeout(()=>{ls=void 0,ss=void 0},vh)}}function kh(e){try{return e.target}catch{return null}}const us=gl();function xc(){if(!("fetch"in us))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function as(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function xh(){if(typeof EdgeRuntime=="string")return!0;if(!xc())return!1;if(as(us.fetch))return!0;let e=!1;const t=us.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=as(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Dr&&N.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Th(e){const t="fetch";Jt(t,e),Zt(t,Ch)}function Ch(){xh()&&ne(M,"fetch",function(e){return function(...t){const{method:n,url:r}=Nh(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Ae("fetch",{...o}),e.apply(M,t).then(i=>{const s={...o,endTimestamp:Date.now(),response:i};return Ae("fetch",s),i},i=>{const s={...o,endTimestamp:Date.now(),error:i};throw Ae("fetch",s),i})}})}function cs(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ou(e){return typeof e=="string"?e:e?cs(e,"url")?e.url:e.toString?e.toString():"":""}function Nh(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ou(n),method:cs(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Ou(t),method:cs(t,"method")?String(t.method).toUpperCase():"GET"}}let Vr=null;function Ih(e){const t="error";Jt(t,e),Zt(t,Ph)}function Ph(){Vr=M.onerror,M.onerror=function(e,t,n,r,o){return Ae("error",{column:r,error:o,line:n,msg:e,url:t}),Vr&&!Vr.__SENTRY_LOADER__?Vr.apply(this,arguments):!1},M.onerror.__SENTRY_INSTRUMENTED__=!0}let Gr=null;function Oh(e){const t="unhandledrejection";Jt(t,e),Zt(t,Rh)}function Rh(){Gr=M.onunhandledrejection,M.onunhandledrejection=function(e){return Ae("unhandledrejection",e),Gr&&!Gr.__SENTRY_LOADER__?Gr.apply(this,arguments):!0},M.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Yr=gl();function Dh(){const e=Yr.chrome,t=e&&e.app&&e.app.runtime,n="history"in Yr&&!!Yr.history.pushState&&!!Yr.history.replaceState;return!t&&n}const Un=M;let Qr;function Tc(e){const t="history";Jt(t,e),Zt(t,Lh)}function Lh(){if(!Dh())return;const e=Un.onpopstate;Un.onpopstate=function(...n){const r=Un.location.href,o=Qr;if(Qr=r,Ae("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const i=Qr,s=String(o);Qr=s,Ae("history",{from:i,to:s})}return n.apply(this,r)}}ne(Un.history,"pushState",t),ne(Un.history,"replaceState",t)}const Mh=M,qn="__sentry_xhr_v3__";function zh(e){const t="xhr";Jt(t,e),Zt(t,Fh)}function Fh(){if(!Mh.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;ne(e,"open",function(t){return function(...n){const r=Date.now(),o=nt(n[0])?n[0].toUpperCase():void 0,i=$h(n[1]);if(!o||!i)return t.apply(this,n);this[qn]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[qn];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const u={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Ae("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?ne(this,"onreadystatechange",function(l){return function(...u){return s(),l.apply(this,u)}}):this.addEventListener("readystatechange",s),ne(this,"setRequestHeader",function(l){return function(...u){const[a,d]=u,f=this[qn];return f&&nt(a)&&nt(d)&&(f.request_headers[a.toLowerCase()]=d),l.apply(this,u)}}),t.apply(this,n)}}),ne(e,"send",function(t){return function(...n){const r=this[qn];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Ae("xhr",o),t.apply(this,n)}})}function $h(e){if(nt(e))return e;try{return e.toString()}catch{}}function Ah(){return"npm"}function jh(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;in?Cc(e,t-1,n):r}function fs(e,t,n=1/0,r=1/0,o=jh()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!qp(t))return t;const l=Uh(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const a=t;if(a&&typeof a.toJSON=="function")try{const g=a.toJSON();return fs("",g,u-1,r,o)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const m=_c(t);for(const g in m){if(!Object.prototype.hasOwnProperty.call(m,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const _=m[g];d[g]=fs(g,_,u-1,r,o),f++}return s(t),d}function Uh(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(hc(t))return"[VueViewModel]";if(Xp(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Nt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Hh(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Hh(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Bh(e){return~-encodeURI(e).split(/%..|./).length}function Wh(e){return Bh(JSON.stringify(e))}var Xe;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Xe||(Xe={}));function xn(e){return new Se(t=>{t(e)})}function _l(e){return new Se((t,n)=>{n(e)})}class Se{constructor(t){Se.prototype.__init.call(this),Se.prototype.__init2.call(this),Se.prototype.__init3.call(this),Se.prototype.__init4.call(this),this._state=Xe.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Se((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Se((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(Xe.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Xe.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Xe.PENDING){if(ti(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Xe.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Xe.RESOLVED&&n[1](this._value),this._state===Xe.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Vh(e){const t=[];function n(){return e===void 0||t.lengthr(l)).then(null,()=>r(l).then(null,()=>{})),l}function i(s){return new Se((l,u)=>{let a=t.length;if(!a)return l(!0);const d=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(f=>{xn(f).then(()=>{--a||(clearTimeout(d),l(!0))},u)})})}return{$:t,add:o,drain:i}}function Ii(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Gh=["fatal","error","warning","log","info","debug"];function Yh(e){return e==="warn"?"warning":Gh.includes(e)?e:"log"}const Nc=1e3;function Mr(){return Date.now()/Nc}function Qh(){const{performance:e}=M;if(!e||!e.now)return Mr;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Nc}const Ic=Qh();(()=>{const{performance:e}=M;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=oo+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function Jh(e,t){const n=typeof e.data=="string"?ds(e.data,t):e.data;return[Ze({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Zh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Du(e){return Zh[e]}function Pc(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function bh(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Lr(r)},...o&&{trace:Ze({...o})}}}function em(e,t,n){const r=[{type:"client_report"},{timestamp:n||Mr(),discarded_events:e}];return zn(t?{dsn:t}:{},[r])}const tm=60*1e3;function nm(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?tm:r-t}function rm(e,t){return e[t]||e.all||0}function om(e,t,n=Date.now()){return rm(e,t)>n}function im(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const l of i.trim().split(",")){const[u,a]=l.split(":",2),d=parseInt(u,10),f=(isNaN(d)?60:d)*1e3;if(!a)o.all=r+f;else for(const m of a.split(";"))o[m]=r+f}else s?o.all=r+nm(s,r):t===429&&(o.all=r+60*1e3);return o}const $=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oi="production";function Sl(){return mc("globalEventProcessors",()=>[])}function sm(e){Sl().push(e)}function Co(e,t,n,r=0){return new Se((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);$&&s.id&&l===null&&N.log(`Event processor "${s.id}" dropped event`),ti(l)?l.then(u=>Co(e,u,n,r+1).then(o)).then(null,i):Co(e,l,n,r+1).then(o).then(null,i)}})}function Oc(e){const t=Ic(),n={sid:Pe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>lm(n)};return e&&Vt(n,e),n}function Vt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ic(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Pe()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Rc(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Vt(e,n)}function lm(e){return Ze({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const um=1;function am(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:l,origin:u}=pr(e);return Ze({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:l,trace_id:n,origin:u})}function pr(e){return cm(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function cm(e){return typeof e.getSpanJSON=="function"}function fm(e){const{traceFlags:t}=e.spanContext();return!!(t&um)}function dm(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Pe(),timestamp:t.timestamp||Mr()},a=n.integrations||e.integrations.map(O=>O.name);pm(u,e),gm(u,a),t.type===void 0&&hm(u,e.stackParser);const d=vm(r,n.captureContext);n.mechanism&&dr(u,n.mechanism);const f=o&&o.getEventProcessors?o.getEventProcessors():[],m=Dm().getScopeData();if(i){const O=i.getScopeData();Fu(m,O)}if(d){const O=d.getScopeData();Fu(m,O)}const g=[...n.attachments||[],...m.attachments];g.length&&(n.attachments=g),$c(u,m);const _=[...f,...Sl(),...m.eventProcessors];return Co(_,u,n).then(O=>(O&&mm(O),typeof s=="number"&&s>0?ym(O,s,l):O))}function pm(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:oi),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=gn(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=gn(s.value,i));const l=e.request;l&&l.url&&(l.url=gn(l.url,i))}const Lu=new WeakMap;function hm(e,t){const n=M._sentryDebugIds;if(!n)return;let r;const o=Lu.get(t);o?r=o:(r=new Map,Lu.set(t,r));const i=Object.keys(n).reduce((s,l)=>{let u;const a=r.get(l);a?u=a:(u=t(l),r.set(l,u));for(let d=u.length-1;d>=0;d--){const f=u[d];if(f.filename){s[f.filename]=n[l];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=i[l.filename])})})}catch{}}function mm(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function gm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ym(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:ft(o.data,t,n)}}))},...e.user&&{user:ft(e.user,t,n)},...e.contexts&&{contexts:ft(e.contexts,t,n)},...e.extra&&{extra:ft(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ft(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>{const i=pr(o).data;return i&&(o.data=ft(i,t,n)),o})),r}function vm(e,t){if(!t)return e;const n=e?e.clone():new rt;return n.update(t),n}function _m(e){if(e)return Sm(e)?{captureContext:e}:wm(e)?{captureContext:e}:e}function Sm(e){return e instanceof rt||typeof e=="function"}const Em=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function wm(e){return Object.keys(e).some(t=>Em.includes(t))}function km(e,t){return Be().captureException(e,_m(t))}function U0(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return Be().captureMessage(e,n,r)}function Dc(e,t){return Be().captureEvent(e,t)}function Gt(e,t){Be().addBreadcrumb(e,t)}function H0(e,t){Be().setContext(e,t)}function xm(...e){const t=Be();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function ve(){return Be().getClient()}function zr(){return Be().getScope()}function Mu(e){const t=ve(),n=si(),r=zr(),{release:o,environment:i=oi}=t&&t.getOptions()||{},{userAgent:s}=M.navigator||{},l=Oc({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),u=n.getSession();return u&&u.status==="ok"&&Vt(u,{status:"exited"}),Lc(),n.setSession(l),r.setSession(l),l}function Lc(){const e=si(),t=zr(),n=t.getSession()||e.getSession();n&&Rc(n),Mc(),e.setSession(),t.setSession()}function Mc(){const e=si(),t=zr(),n=ve(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function zu(e=!1){if(e){Lc();return}Mc()}function zc(e){return e.transaction}function Fc(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=Ze({environment:r.environment||oi,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Tm(e){const t=ve();if(!t)return{};const n=Fc(pr(e).trace_id||"",t,zr()),r=zc(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:s}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const l=pr(r);return s&&s!=="url"&&(n.transaction=l.description),n.sampled=String(fm(r)),t.emit&&t.emit("createDsc",n),n}function $c(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Cm(e,t),r&&Pm(e,r),Om(e,n),Nm(e,o),Im(e,i)}function Fu(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:a,eventProcessors:d,attachments:f,propagationContext:m,transactionName:g,span:_}=t;Hn(e,"extra",n),Hn(e,"tags",r),Hn(e,"user",o),Hn(e,"contexts",i),Hn(e,"sdkProcessingMetadata",l),s&&(e.level=s),g&&(e.transactionName=g),_&&(e.span=_),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),a.length&&(e.fingerprint=[...e.fingerprint,...a]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...m}}function Hn(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Cm(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:l}=t,u=Ze(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const a=Ze(r);a&&Object.keys(a).length&&(e.tags={...a,...e.tags});const d=Ze(o);d&&Object.keys(d).length&&(e.user={...d,...e.user});const f=Ze(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),l&&(e.transaction=l)}function Nm(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Im(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Pm(e,t){e.contexts={trace:am(t),...e.contexts};const n=zc(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Tm(t),...e.sdkProcessingMetadata};const r=pr(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Om(e,t){e.fingerprint=e.fingerprint?kc(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Rm=100;let Pi;class rt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=$u()}static clone(t){return t?t.clone():new rt}clone(){const t=new rt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Vt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof rt){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(kn(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=$u(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Rm;if(r<=0)return this;const o={timestamp:Mr(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:s,_level:l,_fingerprint:u,_eventProcessors:a,_propagationContext:d,_sdkProcessingMetadata:f,_transactionName:m,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:s,level:l,fingerprint:u||[],eventProcessors:a,propagationContext:d,sdkProcessingMetadata:f,transactionName:m,span:g}}applyToEvent(t,n={},r=[]){$c(t,this.getScopeData());const o=[...r,...Sl(),...this._eventProcessors];return Co(o,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Pe();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:Pe();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Pe();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(N.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Dm(){return Pi||(Pi=new rt),Pi}function $u(){return{traceId:Pe(),spanId:Pe().substring(16)}}const ps="7.102.1",Ac=parseFloat(ps),Lm=100;class jc{constructor(t,n,r,o=Ac){this._version=o;let i;n?i=n:(i=new rt,i.setClient(t));let s;r?s=r:(s=new rt,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Pe(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){const o=this._lastEventId=r&&r.event_id?r.event_id:Pe(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Pe();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Lm}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const u={timestamp:Mr(),...t},a=i?ri(()=>i(u,n)):u;a!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",a,n),r.addBreadcrumb(a,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Au(this);try{t(this)}finally{Au(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return $&&N.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return $&&!r&&(this.getClient()?N.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +Sentry.addTracingExtensions(); +Sentry.init({...}); +`):N.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Rc(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=oi}=r&&r.getOptions()||{},{userAgent:s}=M.navigator||{},l=Oc({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&Vt(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const o=ii().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);$&&N.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ii(){return M.__SENTRY__=M.__SENTRY__||{extensions:{},hub:void 0},M}function Au(e){const t=ii(),n=hs(t);return Uc(t,e),n}function Be(){const e=ii();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Mm(e)}function si(){return Be().getIsolationScope()}function Mm(e=ii()){return(!zm(e)||hs(e).isOlderThan(Ac))&&Uc(e,new jc),hs(e)}function zm(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function hs(e){return mc("hub",()=>new jc,e)}function Uc(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Fm(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function $m(e,t,n,r){const o=Pc(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Lr(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return zn(i,[s])}function Am(e,t,n,r){const o=Pc(n),i=e.type&&e.type!=="replay_event"?e.type:"event";Fm(e,n&&n.sdk);const s=bh(e,o,r,t);return delete e.sdkProcessingMetadata,zn(s,[[{type:i},e]])}const jm="7";function Um(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Hm(e){return`${Um(e)}${e.projectId}/envelope/`}function Bm(e,t){return fh({sentry_key:e.publicKey,sentry_version:jm,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Wm(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Hm(e)}?${Bm(e,r)}`}const ju=[];function Vm(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Gm(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=kc(n(t)):r=t;const o=Vm(r),i=Qm(o,s=>s.name==="Debug");if(i!==-1){const[s]=o.splice(i,1);o.push(s)}return o}function Ym(e,t){const n={};return t.forEach(r=>{r&&Hc(e,r,n)}),n}function Uu(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Hc(e,t,n){if(n[t.name]){$&&N.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,ju.indexOf(t.name)===-1&&(t.setupOnce(sm,Be),ju.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}$&&N.log(`Integration installed: ${t.name}`)}function Qm(e,t){for(let n=0;n0?`|#${r.map(([i,s])=>`${i}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp} +`}return t}function Xm(e,t,n,r){const o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=Lr(t));const i=qm(e);return zn(o,[i])}function qm(e){const t=Km(e);return[{type:"statsd",length:t.length},t]}const Hu="Not capturing exception because it's already been captured.";class Jm{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ch(t.dsn):$&&N.warn("No DSN provided, client will not send events."),this._dsn){const n=Wm(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Nu(t)){$&&N.log(Hu);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id;const s=hl(t)?t:String(t),l=ml(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(l.then(u=>this._captureEvent(u,r,o)).then(u=>{i=u})),i}captureEvent(t,n,r){if(n&&n.originalException&&Nu(n.originalException)){$&&N.log(Hu);return}let o=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(l=>{o=l})),o}captureSession(t){typeof t.release!="string"?$&&N.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Vt(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):xn(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return $&&N.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];Hc(this,t,this._integrations),n||Uu(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Am(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=Kh(r,Jh(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=$m(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=`${t}:${n}`;$&&N.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}captureAggregateMetrics(t){$&&N.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=Xm(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Ym(this,t),Uu(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const u of i){const a=u.mechanism;if(a&&a.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Vt(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Se(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=si()){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),dm(i,t,n,r,this,o).then(l=>{if(l===null)return l;const u={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(l.contexts&&l.contexts.trace)&&u){const{traceId:d,spanId:f,parentSpanId:m,dsc:g}=u;l.contexts={trace:{trace_id:d,span_id:f,parent_span_id:m},...l.contexts};const _=g||Fc(d,this,r);l.sdkProcessingMetadata={dynamicSamplingContext:_,...l.sdkProcessingMetadata}}return l})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if($){const i=o;i.logLevel==="log"?N.log(i.message):N.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=Wc(t),l=Bc(t),u=t.type||"error",a=`before send for type \`${u}\``;if(l&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),_l(new Ge(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d=u==="replay_event"?"replay":u,m=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,m).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",d,t),new Ge("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=bm(o,g,n);return Zm(S,a)}).then(g=>{if(g===null)throw this.recordDroppedEvent("before_send",d,t),new Ge(`${a} returned \`null\`, will not send event.`,"log");const _=r&&r.getSession();!s&&_&&this._updateSessionFromEvent(_,g);const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const O="custom";g.transaction_info={...S,source:O}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Ge?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Ge(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{$&&N.error("Error while sending event:",n)});$&&N.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}}function Zm(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ti(e))return e.then(r=>{if(!kn(r)&&r!==null)throw new Ge(n);return r},r=>{throw new Ge(`${t} rejected with ${r}`)});if(!kn(e)&&e!==null)throw new Ge(n);return e}function bm(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return Bc(t)&&r?r(t,n):Wc(t)&&o?o(t,n):t}function Bc(e){return e.type===void 0}function Wc(e){return e.type==="transaction"}function eg(e,t){t.debug===!0&&($?N.enable():ri(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),zr().update(t.initialScope);const r=new e(t);tg(r),ng(r)}function tg(e){const n=Be().getStackTop();n.client=e,n.scope.setClient(e)}function ng(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const rg=30;function Vc(e,t,n=Vh(e.bufferSize||rg)){let r={};const o=s=>n.drain(s);function i(s){const l=[];if(Ru(s,(f,m)=>{const g=Du(m);if(om(r,g)){const _=Bu(f,m);e.recordDroppedEvent("ratelimit_backoff",g,_)}else l.push(f)}),l.length===0)return xn();const u=zn(s[0],l),a=f=>{Ru(u,(m,g)=>{const _=Bu(m,g);e.recordDroppedEvent(f,Du(g),_)})},d=()=>t({body:Xh(u,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&$&&N.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=im(r,f),f),f=>{throw a("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof Ge)return $&&N.error("Skipped sending event because buffer is full."),a("queue_overflow"),xn();throw f})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function Bu(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Gc(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:ps})),version:ps}),e._metadata=o}const og=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ig=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Yc="InboundFilters",sg=(e={})=>({name:Yc,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),i=lg(e,o);return ug(t,i)?null:t}}),Qc=sg;Ot(Yc,Qc);function lg(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:og],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:ig],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function ug(e,t){return t.ignoreInternal&&hg(e)?($&&N.warn(`Event dropped due to being internal Sentry Error. +Event: ${ht(e)}`),!0):ag(e,t.ignoreErrors)?($&&N.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${ht(e)}`),!0):cg(e,t.ignoreTransactions)?($&&N.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${ht(e)}`),!0):fg(e,t.denyUrls)?($&&N.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${ht(e)}. +Url: ${No(e)}`),!0):dg(e,t.allowUrls)?!1:($&&N.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${ht(e)}. +Url: ${No(e)}`),!0)}function ag(e,t){return e.type||!t||!t.length?!1:pg(e).some(n=>ni(n,t))}function cg(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?ni(n,t):!1}function fg(e,t){if(!t||!t.length)return!1;const n=No(e);return n?ni(n,t):!1}function dg(e,t){if(!t||!t.length)return!0;const n=No(e);return n?ni(n,t):!0}function pg(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),$&&t.length===0&&N.error(`Could not extract message for event ${ht(e)}`),t}function hg(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function mg(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function No(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?mg(t):null}catch{return $&&N.error(`Cannot extract url for event ${ht(e)}`),null}}let Wu;const Kc="FunctionToString",Vu=new WeakMap,gg=()=>({name:Kc,setupOnce(){Wu=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=vl(this),n=Vu.has(ve())&&t!==void 0?t:this;return Wu.apply(n,e)}}catch{}},setup(e){Vu.set(e,!0)}}),Xc=gg;Ot(Kc,Xc);const F=M;let ms=0;function qc(){return ms>0}function yg(){ms++,setTimeout(()=>{ms--})}function Tn(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(vl(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const i=o.map(s=>Tn(s,t));return e.apply(this,i)}catch(i){throw yg(),xm(s=>{s.addEventProcessor(l=>(t.mechanism&&(is(l,void 0,void 0),dr(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),km(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}vc(r,e),fr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const be=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Jc(e,t){const n=El(e,t),r={type:t&&t.name,value:Eg(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function vg(e,t,n,r){const o=ve(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:ei(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:xg(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Cc(t,i)}};if(n){const l=El(e,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function Oi(e,t){return{exception:{values:[Jc(e,t)]}}}function El(e,t){const n=t.stacktrace||t.stack||"",r=Sg(t);try{return e(n,r)}catch{}return[]}const _g=/Minified React error #\d+;/i;function Sg(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(_g.test(e.message))return 1}return 0}function Eg(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function wg(e,t,n,r){const o=n&&n.syntheticException||void 0,i=wl(e,t,o,r);return dr(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),xn(i)}function kg(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=gs(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),xn(s)}function wl(e,t,n,r,o){let i;if(pl(t)&&t.error)return Oi(e,t.error);if(vu(t)||Yp(t)){const s=t;if("stack"in t)i=Oi(e,t);else{const l=s.name||(vu(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;i=gs(e,u,n,r),is(i,u)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return pc(t)?Oi(e,t):kn(t)||ei(t)?(i=vg(e,t,n,o),dr(i,{synthetic:!0}),i):(i=gs(e,t,n,r),is(i,`${t}`,void 0),dr(i,{synthetic:!0}),i)}function gs(e,t,n,r){const o={};if(r&&n){const i=El(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(hl(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function xg(e,{isUnhandledRejection:t}){const n=dh(e),r=t?"promise rejection":"exception";return pl(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ei(e)?`Event \`${Tg(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Tg(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Cg(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Lr(r)}},i=Ng(e);return zn(o,[i])}function Ng(e){return[{type:"user_report"},e]}class Ig extends Jm{constructor(t){const n=F.SENTRY_SDK_SOURCE||Ah();Gc(t,"browser",["browser"],n),super(t),t.sendClientReports&&F.document&&F.document.addEventListener("visibilitychange",()=>{F.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return wg(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return kg(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){be&&N.warn("SDK not enabled, will not capture user feedback.");return}const n=Cg(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){be&&N.log("No outcomes to send");return}if(!this._dsn){be&&N.log("No dsn provided, will not send outcomes");return}be&&N.log("Sending outcomes:",t);const n=em(t,this._options.tunnel&&Lr(this._dsn));this._sendEnvelope(n)}}let Jn;function Pg(){if(Jn)return Jn;if(as(F.fetch))return Jn=F.fetch.bind(F);const e=F.document;let t=F.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){be&&N.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Jn=t.bind(F)}function Og(){Jn=void 0}function Rg(e,t=Pg()){let n=0,r=0;function o(i){const s=i.body.length;n+=s,r++;const l={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,l).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return Og(),n-=s,r--,_l(u)}}return Vc(e,o)}const Dg=4;function Lg(e){function t(n){return new Se((r,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===Dg&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return Vc(e,t)}const li="?",Mg=30,zg=40,Fg=50;function kl(e,t,n,r){const o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const $g=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ag=/\((\S*)(?::(\d+))(?::(\d+))\)/,jg=e=>{const t=$g.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=Ag.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,o]=Zc(t[1]||li,t[2]);return kl(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Ug=[Mg,jg],Hg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Wg=e=>{const t=Hg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=Bg.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||li;return[o,r]=Zc(o,r),kl(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Vg=[Fg,Wg],Gg=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Yg=e=>{const t=Gg.exec(e);return t?kl(t[2],t[1]||li,+t[3],t[4]?+t[4]:void 0):void 0},Qg=[zg,Yg],Kg=[Ug,Vg,Qg],Xg=Ec(...Kg),Zc=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:li,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Kr=1024,bc="Breadcrumbs",qg=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:bc,setupOnce(){},setup(n){t.console&&gh(bg(n)),t.dom&&_h(Zg(n,t.dom)),t.xhr&&zh(ey(n)),t.fetch&&Th(ty(n)),t.history&&Tc(ny(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Jg(n))}}},ef=qg;Ot(bc,ef);function Jg(e){return function(n){ve()===e&&Gt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ht(n)},{event:n})}}function Zg(e,t){return function(r){if(ve()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,l=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;l&&l>Kr&&(be&&N.warn(`\`dom.maxStringLength\` cannot exceed ${Kr}, but a value of ${l} was configured. Sentry will use ${Kr} instead.`),l=Kr),typeof s=="string"&&(s=[s]);try{const a=r.event,d=ry(a)?a.target:a;o=gc(d,{keyAttrs:s,maxStringLength:l}),i=rh(d)}catch{o=""}if(o.length===0)return;const u={category:`ui.${r.name}`,message:o};i&&(u.data={"ui.component_name":i}),Gt(u,{event:r.event,name:r.name,global:r.global})}}function bg(e){return function(n){if(ve()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Yh(n.level),message:_u(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${_u(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Gt(r,{input:n.args,level:n.level})}}function ey(e){return function(n){if(ve()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[qn];if(!r||!o||!i)return;const{method:s,url:l,status_code:u,body:a}=i,d={method:s,url:l,status_code:u},f={xhr:n.xhr,input:a,startTimestamp:r,endTimestamp:o};Gt({category:"xhr",data:d,type:"http"},f)}}function ty(e){return function(n){if(ve()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Gt({category:"fetch",data:i,level:"error",type:"http"},s)}else{const i=n.response,s={...n.fetchData,status_code:i&&i.status},l={input:n.args,response:i,startTimestamp:r,endTimestamp:o};Gt({category:"fetch",data:s,type:"http"},l)}}}function ny(e){return function(n){if(ve()!==e)return;let r=n.from,o=n.to;const i=Ii(F.location.href);let s=r?Ii(r):void 0;const l=Ii(o);(!s||!s.path)&&(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),Gt({category:"navigation",data:{from:r,to:o}})}}function ry(e){return!!e&&!!e.target}const tf="Dedupe",oy=()=>{let e;return{name:tf,setupOnce(){},processEvent(t){if(t.type)return t;try{if(iy(t,e))return be&&N.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},nf=oy;Ot(tf,nf);function iy(e,t){return t?!!(sy(e,t)||ly(e,t)):!1}function sy(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!of(e,t)||!rf(e,t))}function ly(e,t){const n=Gu(t),r=Gu(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!of(e,t)||!rf(e,t))}function rf(e,t){let n=Yu(e),r=Yu(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:sf,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(ay(n),Qu("onerror")),t.onunhandledrejection&&(cy(n),Qu("onunhandledrejection"))}}},lf=uy;Ot(sf,lf);function ay(e){Ih(t=>{const{stackParser:n,attachStacktrace:r}=af();if(ve()!==e||qc())return;const{msg:o,url:i,line:s,column:l,error:u}=t,a=u===void 0&&nt(o)?py(o,i,s,l):uf(wl(n,u||o,void 0,r,!1),i,s,l);a.level="error",Dc(a,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function cy(e){Oh(t=>{const{stackParser:n,attachStacktrace:r}=af();if(ve()!==e||qc())return;const o=fy(t),i=ml(o)?dy(o):wl(n,o,void 0,r,!0);i.level="error",Dc(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function fy(e){if(ml(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function dy(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function py(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=pl(e)?e.message:e,s="Error";const l=i.match(o);return l&&(s=l[1],i=l[2]),uf({exception:{values:[{type:s,value:i}]}},t,n,r)}function uf(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],a=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=nt(t)&&t.length>0?t:nh();return u.length===0&&u.push({colno:a,filename:f,function:"?",in_app:!0,lineno:d}),e}function Qu(e){be&&N.log(`Global Handler attached: ${e}`)}function af(){const e=ve();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const cf="HttpContext",hy=()=>({name:cf,setupOnce(){},preprocessEvent(e){if(!F.navigator&&!F.location&&!F.document)return;const t=e.request&&e.request.url||F.location&&F.location.href,{referrer:n}=F.document||{},{userAgent:r}=F.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),ff=hy;Ot(cf,ff);const my="cause",gy=5,df="LinkedErrors",yy=(e={})=>{const t=e.limit||gy,n=e.key||my;return{name:df,setupOnce(){},preprocessEvent(r,o,i){const s=i.getOptions();Zp(Jc,s.stackParser,s.maxValueLength,n,t,r,o)}}},pf=yy;Ot(df,pf);const vy=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],hf="TryCatch",_y=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:hf,setupOnce(){t.setTimeout&&ne(F,"setTimeout",Ku),t.setInterval&&ne(F,"setInterval",Ku),t.requestAnimationFrame&&ne(F,"requestAnimationFrame",Sy),t.XMLHttpRequest&&"XMLHttpRequest"in F&&ne(XMLHttpRequest.prototype,"send",Ey);const n=t.eventTarget;n&&(Array.isArray(n)?n:vy).forEach(wy)}}},mf=_y;Ot(hf,mf);function Ku(e){return function(...t){const n=t[0];return t[0]=Tn(n,{mechanism:{data:{function:Nt(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Sy(e){return function(t){return e.apply(this,[Tn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Nt(e)},handled:!1,type:"instrument"}})])}}function Ey(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&ne(n,o,function(i){const s={mechanism:{data:{function:o,handler:Nt(i)},handled:!1,type:"instrument"}},l=vl(i);return l&&(s.mechanism.data.handler=Nt(l)),Tn(i,s)})}),e.apply(this,t)}}function wy(e){const t=F,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(ne(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=Tn(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Nt(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,Tn(i,{mechanism:{data:{function:"addEventListener",handler:Nt(i),target:e},handled:!1,type:"instrument"}}),s])}}),ne(n,"removeEventListener",function(r){return function(o,i,s){const l=i;try{const u=l&&l.__sentry_wrapped__;u&&r.call(this,o,u,s)}catch{}return r.call(this,o,l,s)}}))}const ky=[Qc(),Xc(),mf(),ef(),lf(),pf(),nf(),ff()];function xy(e){return[...ky]}function Ty(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=xy()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),F.SENTRY_RELEASE&&F.SENTRY_RELEASE.id&&(e.release=F.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:hh(e.stackParser||Xg),integrations:Gm(e),transport:e.transport||(xc()?Rg:Lg)};eg(Ig,t),e.autoSessionTracking&&Cy()}function Cy(){if(typeof F.document>"u"){be&&N.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Mu({ignoreDuration:!0}),zu(),Tc(({from:e,to:t})=>{e!==void 0&&e!==t&&(Mu({ignoreDuration:!0}),zu())})}function B0(e){const t={...e};Gc(t,"react"),Ty(t)}var gf={exports:{}},xe={},yf={exports:{}},vf={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(k,I){var P=k.length;k.push(I);e:for(;0>>1,Z=k[Q];if(0>>1;Qo(Ti,P))zto(Hr,Ti)?(k[Q]=Hr,k[zt]=P,Q=zt):(k[Q]=Ti,k[Mt]=P,Q=Mt);else if(zto(Hr,P))k[Q]=Hr,k[zt]=P,Q=zt;else break e}}return I}function o(k,I){var P=k.sortIndex-I.sortIndex;return P!==0?P:k.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],a=[],d=1,f=null,m=3,g=!1,_=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(k){for(var I=n(a);I!==null;){if(I.callback===null)r(a);else if(I.startTime<=k)r(a),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(a)}}function y(k){if(S=!1,h(k),!_)if(n(u)!==null)_=!0,ki(w);else{var I=n(a);I!==null&&xi(y,I.startTime-k)}}function w(k,I){_=!1,S&&(S=!1,p(C),C=-1),g=!0;var P=m;try{for(h(I),f=n(u);f!==null&&(!(f.expirationTime>I)||k&&!Le());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,m=f.priorityLevel;var Z=Q(f.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(u)&&r(u),h(I)}else r(u);f=n(u)}if(f!==null)var Ur=!0;else{var Mt=n(a);Mt!==null&&xi(y,Mt.startTime-I),Ur=!1}return Ur}finally{f=null,m=P,g=!1}}var x=!1,T=null,C=-1,Y=5,D=-1;function Le(){return!(e.unstable_now()-Dk||125Q?(k.sortIndex=P,t(a,k),n(u)===null&&k===n(a)&&(S?(p(C),C=-1):S=!0,xi(y,P-Q))):(k.sortIndex=Z,t(u,k),_||g||(_=!0,ki(w))),k},e.unstable_shouldYield=Le,e.unstable_wrapCallback=function(k){var I=m;return function(){var P=m;m=I;try{return k.apply(this,arguments)}finally{m=P}}}})(vf);yf.exports=vf;var Ny=yf.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _f=bo,ke=Ny;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ys=Object.prototype.hasOwnProperty,Iy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xu={},qu={};function Py(e){return ys.call(qu,e)?!0:ys.call(Xu,e)?!1:Iy.test(e)?qu[e]=!0:(Xu[e]=!0,!1)}function Oy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ry(e,t,n,r){if(t===null||typeof t>"u"||Oy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){oe[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var xl=/[\-:]([a-z])/g;function Tl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xl,Tl);oe[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xl,Tl);oe[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xl,Tl);oe[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cl(e,t,n,r){var o=oe.hasOwnProperty(t)?oe[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var u=` +`+o[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Di=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zn(e):""}function Dy(e){switch(e.tag){case 5:return Zn(e.type);case 16:return Zn("Lazy");case 13:return Zn("Suspense");case 19:return Zn("SuspenseList");case 0:case 2:case 15:return e=Li(e.type,!1),e;case 11:return e=Li(e.type.render,!1),e;case 1:return e=Li(e.type,!0),e;default:return""}}function Es(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 on:return"Fragment";case rn:return"Portal";case vs:return"Profiler";case Nl:return"StrictMode";case _s:return"Suspense";case Ss:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wf:return(e.displayName||"Context")+".Consumer";case Ef:return(e._context.displayName||"Context")+".Provider";case Il:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pl:return t=e.displayName||null,t!==null?t:Es(e.type)||"Memo";case dt:t=e._payload,e=e._init;try{return Es(e(t))}catch{}}return null}function Ly(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 Es(t);case 8:return t===Nl?"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 It(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function My(e){var t=xf(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qr(e){e._valueTracker||(e._valueTracker=My(e))}function Tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Io(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 ws(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=It(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 Cf(e,t){t=t.checked,t!=null&&Cl(e,"checked",t,!1)}function ks(e,t){Cf(e,t);var n=It(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")?xs(e,t.type,n):t.hasOwnProperty("defaultValue")&&xs(e,t.type,It(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bu(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 xs(e,t,n){(t!=="number"||Io(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bn=Array.isArray;function yn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var nr={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},zy=["Webkit","ms","Moz","O"];Object.keys(nr).forEach(function(e){zy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nr[t]=nr[e]})});function Of(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||nr.hasOwnProperty(e)&&nr[e]?(""+t).trim():t+"px"}function Rf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Of(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Fy=V({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 Ns(e,t){if(t){if(Fy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(v(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(v(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(v(61))}if(t.style!=null&&typeof t.style!="object")throw Error(v(62))}}function Is(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 Ps=null;function Ol(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Os=null,vn=null,_n=null;function na(e){if(e=Ar(e)){if(typeof Os!="function")throw Error(v(280));var t=e.stateNode;t&&(t=di(t),Os(e.stateNode,e.type,t))}}function Df(e){vn?_n?_n.push(e):_n=[e]:vn=e}function Lf(){if(vn){var e=vn,t=_n;if(_n=vn=null,na(e),t)for(e=0;e>>=0,e===0?32:31-(Qy(e)/Ky|0)|0}var Zr=64,br=4194304;function er(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 Do(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=er(l):(i&=s,i!==0&&(r=er(i)))}else s=n&~o,s!==0?r=er(s):i!==0&&(r=er(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-je(t),e[t]=n}function Zy(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=or),fa=" ",da=!1;function bf(e,t){switch(e){case"keyup":return Cv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ed(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sn=!1;function Iv(e,t){switch(e){case"compositionend":return ed(t);case"keypress":return t.which!==32?null:(da=!0,fa);case"textInput":return e=t.data,e===fa&&da?null:e;default:return null}}function Pv(e,t){if(sn)return e==="compositionend"||!Al&&bf(e,t)?(e=Jf(),go=zl=yt=null,sn=!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=ga(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function id(){for(var e=window,t=Io();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Io(e.document)}return t}function jl(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 Av(e){var t=id(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&od(n.ownerDocument.documentElement,n)){if(r!==null&&jl(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ya(n,i);var s=ya(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,ln=null,Fs=null,sr=null,$s=!1;function va(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$s||ln==null||ln!==Io(r)||(r=ln,"selectionStart"in r&&jl(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}),sr&&Er(sr,r)||(sr=r,r=zo(Fs,"onSelect"),0cn||(e.current=Ws[cn],Ws[cn]=null,cn--)}function A(e,t){cn++,Ws[cn]=e.current,e.current=t}var Pt={},ue=Dt(Pt),me=Dt(!1),Yt=Pt;function Nn(e,t){var n=e.type.contextTypes;if(!n)return Pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ge(e){return e=e.childContextTypes,e!=null}function $o(){U(me),U(ue)}function Ta(e,t,n){if(ue.current!==Pt)throw Error(v(168));A(ue,t),A(me,n)}function hd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(v(108,Ly(e)||"Unknown",o));return V({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Yt=ue.current,A(ue,e),A(me,me.current),!0}function Ca(e,t,n){var r=e.stateNode;if(!r)throw Error(v(169));n?(e=hd(e,t,Yt),r.__reactInternalMemoizedMergedChildContext=e,U(me),U(ue),A(ue,e)):U(me),A(me,n)}var Je=null,pi=!1,Qi=!1;function md(e){Je===null?Je=[e]:Je.push(e)}function qv(e){pi=!0,md(e)}function Lt(){if(!Qi&&Je!==null){Qi=!0;var e=0,t=z;try{var n=Je;for(z=1;e>=s,o-=s,et=1<<32-je(t)+o|n<C?(Y=T,T=null):Y=T.sibling;var D=m(p,T,h[C],y);if(D===null){T===null&&(T=Y);break}e&&T&&D.alternate===null&&t(p,T),c=i(D,c,C),x===null?w=D:x.sibling=D,x=D,T=Y}if(C===h.length)return n(p,T),H&&Ft(p,C),w;if(T===null){for(;CC?(Y=T,T=null):Y=T.sibling;var Le=m(p,T,D.value,y);if(Le===null){T===null&&(T=Y);break}e&&T&&Le.alternate===null&&t(p,T),c=i(Le,c,C),x===null?w=Le:x.sibling=Le,x=Le,T=Y}if(D.done)return n(p,T),H&&Ft(p,C),w;if(T===null){for(;!D.done;C++,D=h.next())D=f(p,D.value,y),D!==null&&(c=i(D,c,C),x===null?w=D:x.sibling=D,x=D);return H&&Ft(p,C),w}for(T=r(p,T);!D.done;C++,D=h.next())D=g(T,p,C,D.value,y),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?C:D.key),c=i(D,c,C),x===null?w=D:x.sibling=D,x=D);return e&&T.forEach(function(An){return t(p,An)}),H&&Ft(p,C),w}function O(p,c,h,y){if(typeof h=="object"&&h!==null&&h.type===on&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Xr:e:{for(var w=h.key,x=c;x!==null;){if(x.key===w){if(w=h.type,w===on){if(x.tag===7){n(p,x.sibling),c=o(x,h.props.children),c.return=p,p=c;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===dt&&La(w)===x.type){n(p,x.sibling),c=o(x,h.props),c.ref=Qn(p,x,h),c.return=p,p=c;break e}n(p,x);break}else t(p,x);x=x.sibling}h.type===on?(c=Bt(h.props.children,p.mode,y,h.key),c.return=p,p=c):(y=xo(h.type,h.key,h.props,null,p.mode,y),y.ref=Qn(p,c,h),y.return=p,p=y)}return s(p);case rn:e:{for(x=h.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(p,c.sibling),c=o(c,h.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=ts(h,p.mode,y),c.return=p,p=c}return s(p);case dt:return x=h._init,O(p,c,x(h._payload),y)}if(bn(h))return _(p,c,h,y);if(Bn(h))return S(p,c,h,y);so(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(p,c.sibling),c=o(c,h),c.return=p,p=c):(n(p,c),c=es(h,p.mode,y),c.return=p,p=c),s(p)):n(p,c)}return O}var Pn=kd(!0),xd=kd(!1),jr={},Ke=Dt(jr),Tr=Dt(jr),Cr=Dt(jr);function Ut(e){if(e===jr)throw Error(v(174));return e}function Kl(e,t){switch(A(Cr,t),A(Tr,e),A(Ke,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cs(t,e)}U(Ke),A(Ke,t)}function On(){U(Ke),U(Tr),U(Cr)}function Td(e){Ut(Cr.current);var t=Ut(Ke.current),n=Cs(t,e.type);t!==n&&(A(Tr,e),A(Ke,n))}function Xl(e){Tr.current===e&&(U(Ke),U(Tr))}var B=Dt(0);function Vo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ki=[];function ql(){for(var e=0;en?n:4,e(!0);var r=Xi.transition;Xi.transition={};try{e(!1),t()}finally{z=n,Xi.transition=r}}function Hd(){return De().memoizedState}function e0(e,t,n){var r=Tt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bd(e))Wd(t,n);else if(n=_d(e,t,n,r),n!==null){var o=ce();Ue(n,e,r,o),Vd(n,t,r)}}function t0(e,t,n){var r=Tt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bd(e))Wd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,He(l,s)){var u=t.interleaved;u===null?(o.next=o,Yl(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=_d(e,t,o,r),n!==null&&(o=ce(),Ue(n,e,r,o),Vd(n,t,r))}}function Bd(e){var t=e.alternate;return e===W||t!==null&&t===W}function Wd(e,t){lr=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dl(e,n)}}var Yo={readContext:Re,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},n0={readContext:Re,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,So(4194308,4,Fd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return So(4194308,4,e,t)},useInsertionEffect:function(e,t){return So(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();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=e0.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:Ma,useDebugValue:tu,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=bv.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,o=Ve();if(H){if(n===void 0)throw Error(v(407));n=n()}else{if(n=t(),ee===null)throw Error(v(349));Kt&30||Id(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,za(Od.bind(null,r,i,e),[e]),r.flags|=2048,Pr(9,Pd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ee.identifierPrefix;if(H){var n=tt,r=et;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ye]=t,e[xr]=r,bd(e,t,!1,!1),t.stateNode=e;e:{switch(s=Is(n,r),n){case"dialog":j("cancel",e),j("close",e),o=r;break;case"iframe":case"object":case"embed":j("load",e),o=r;break;case"video":case"audio":for(o=0;oDn&&(t.flags|=128,r=!0,Kn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Vo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!H)return se(t),null}else 2*K()-i.renderingStartTime>Dn&&n!==1073741824&&(t.flags|=128,r=!0,Kn(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=K(),t.sibling=null,n=B.current,A(B,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_e&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(v(156,t.tag))}function c0(e,t){switch(Hl(t),t.tag){case 1:return ge(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),U(me),U(ue),ql(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xl(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(v(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return On(),null;case 10:return Gl(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var uo=!1,le=!1,f0=typeof WeakSet=="function"?WeakSet:Set,E=null;function hn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){G(e,t,r)}}var Va=!1;function d0(e,t){if(As=Lo,e=id(),jl(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++a===o&&(l=s),m===i&&++d===r&&(u=s),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(js={focusedElem:e,selectionRange:n},Lo=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var S=_.memoizedProps,O=_.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:ze(t.type,S),O);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(v(163))}}catch(y){G(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return _=Va,Va=!1,_}function ur(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tl(t,n,i)}o=o.next}while(o!==r)}}function gi(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 nl(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 np(e){var t=e.alternate;t!==null&&(e.alternate=null,np(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[xr],delete t[Bs],delete t[Kv],delete t[Xv])),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 rp(e){return e.tag===5||e.tag===3||e.tag===4}function Ga(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rp(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 rl(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=Fo));else if(r!==4&&(e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function ol(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(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}var te=null,Fe=!1;function ct(e,t,n){for(n=n.child;n!==null;)op(e,t,n),n=n.sibling}function op(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(ui,n)}catch{}switch(n.tag){case 5:le||hn(n,t);case 6:var r=te,o=Fe;te=null,ct(e,t,n),te=r,Fe=o,te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Fe?(e=te,n=n.stateNode,e.nodeType===8?Yi(e.parentNode,n):e.nodeType===1&&Yi(e,n),_r(e)):Yi(te,n.stateNode));break;case 4:r=te,o=Fe,te=n.stateNode.containerInfo,Fe=!0,ct(e,t,n),te=r,Fe=o;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&tl(n,t,s),o=o.next}while(o!==r)}ct(e,t,n);break;case 1:if(!le&&(hn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){G(n,t,l)}ct(e,t,n);break;case 21:ct(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,ct(e,t,n),le=r):ct(e,t,n);break;default:ct(e,t,n)}}function Ya(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new f0),t.forEach(function(r){var o=E0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Me(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*h0(r/1960))-r,10e?16:e,vt===null)var r=!1;else{if(e=vt,vt=null,Xo=0,L&6)throw Error(v(331));var o=L;for(L|=4,E=e.current;E!==null;){var i=E,s=i.child;if(E.flags&16){var l=i.deletions;if(l!==null){for(var u=0;uK()-iu?Ht(e,0):ou|=n),ye(e,t)}function dp(e,t){t===0&&(e.mode&1?(t=br,br<<=1,!(br&130023424)&&(br=4194304)):t=1);var n=ce();e=lt(e,t),e!==null&&(Fr(e,t,n),ye(e,n))}function S0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dp(e,n)}function E0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(v(314))}r!==null&&r.delete(t),dp(e,n)}var pp;pp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,u0(e,t,n);he=!!(e.flags&131072)}else he=!1,H&&t.flags&1048576&&gd(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Eo(e,t),e=t.pendingProps;var o=Nn(t,ue.current);En(t,n),o=Zl(null,t,r,e,o,n);var i=bl();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(i=!0,Ao(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ql(t),o.updater=hi,t.stateNode=o,o._reactInternals=t,Ks(t,r,e,n),t=Js(null,t,r,!0,i,n)):(t.tag=0,H&&i&&Ul(t),ae(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Eo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=k0(r),e=ze(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=Ha(null,t,r,e,n);break e;case 11:t=ja(null,t,r,e,n);break e;case 14:t=Ua(null,t,r,ze(r.type,e),n);break e}throw Error(v(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),Ha(e,t,r,o,n);case 3:e:{if(qd(t),e===null)throw Error(v(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Sd(e,t),Wo(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Rn(Error(v(423)),t),t=Ba(e,t,r,n,o);break e}else if(r!==o){o=Rn(Error(v(424)),t),t=Ba(e,t,r,n,o);break e}else for(Ee=wt(t.stateNode.containerInfo.firstChild),we=t,H=!0,$e=null,n=xd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(In(),r===o){t=ut(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Td(t),e===null&&Gs(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Us(r,o)?s=null:i!==null&&Us(r,i)&&(t.flags|=32),Xd(e,t),ae(e,t,s,n),t.child;case 6:return e===null&&Gs(t),null;case 13:return Jd(e,t,n);case 4:return Kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pn(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),ja(e,t,r,o,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,A(Ho,r._currentValue),r._currentValue=s,i!==null)if(He(i.value,s)){if(i.children===o.children&&!me.current){t=ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=ot(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ys(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(v(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ys(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ae(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,En(t,n),o=Re(o),r=r(o),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,o=ze(r,t.pendingProps),o=ze(r.type,o),Ua(e,t,r,o,n);case 15:return Qd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),Eo(e,t),t.tag=1,ge(r)?(e=!0,Ao(t)):e=!1,En(t,n),wd(t,r,o),Ks(t,r,o,n),Js(null,t,r,!0,e,n);case 19:return Zd(e,t,n);case 22:return Kd(e,t,n)}throw Error(v(156,t.tag))};function hp(e,t){return Uf(e,t)}function w0(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 Ie(e,t,n,r){return new w0(e,t,n,r)}function au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k0(e){if(typeof e=="function")return au(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Il)return 11;if(e===Pl)return 14}return 2}function Ct(e,t){var n=e.alternate;return n===null?(n=Ie(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 xo(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")au(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case on:return Bt(n.children,o,i,t);case Nl:s=8,o|=8;break;case vs:return e=Ie(12,n,t,o|2),e.elementType=vs,e.lanes=i,e;case _s:return e=Ie(13,n,t,o),e.elementType=_s,e.lanes=i,e;case Ss:return e=Ie(19,n,t,o),e.elementType=Ss,e.lanes=i,e;case kf:return vi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ef:s=10;break e;case wf:s=9;break e;case Il:s=11;break e;case Pl:s=14;break e;case dt:s=16,r=null;break e}throw Error(v(130,e==null?e:typeof e,""))}return t=Ie(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Bt(e,t,n,r){return e=Ie(7,e,r,t),e.lanes=n,e}function vi(e,t,n,r){return e=Ie(22,e,r,t),e.elementType=kf,e.lanes=n,e.stateNode={isHidden:!1},e}function es(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function ts(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function x0(e,t,n,r,o){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=zi(0),this.expirationTimes=zi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cu(e,t,n,r,o,i,s,l,u){return e=new x0(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ie(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ql(i),e}function T0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vp)}catch(e){console.error(e)}}vp(),gf.exports=xe;var O0=gf.exports,R0,ec=O0;R0=ec.createRoot,ec.hydrateRoot;var _p={exports:{}},D0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",L0=D0,M0=L0;function Sp(){}function Ep(){}Ep.resetWarningCache=Sp;var z0=function(){function e(r,o,i,s,l,u){if(u!==M0){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}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:Ep,resetWarningCache:Sp};return n.PropTypes=n,n};_p.exports=z0();var F0=_p.exports;const W0=tc(F0);export{W0 as P,jp as R,O0 as a,U0 as b,R0 as c,A0 as e,B0 as i,j0 as j,F0 as p,bo as r,H0 as s,xm as w}; diff --git a/assets/dist/assets/index-xG0evL3U.js b/assets/dist/assets/index-xG0evL3U.js deleted file mode 100644 index 353fde3d..00000000 --- a/assets/dist/assets/index-xG0evL3U.js +++ /dev/null @@ -1,58 +0,0 @@ -import{g as ba}from"./_commonjsHelpers-4gQjN7DL.js";function fp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ec={exports:{}},Zo={},tc={exports:{}},O={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Rr=Symbol.for("react.element"),dp=Symbol.for("react.portal"),pp=Symbol.for("react.fragment"),hp=Symbol.for("react.strict_mode"),mp=Symbol.for("react.profiler"),gp=Symbol.for("react.provider"),yp=Symbol.for("react.context"),vp=Symbol.for("react.forward_ref"),_p=Symbol.for("react.suspense"),Sp=Symbol.for("react.memo"),Ep=Symbol.for("react.lazy"),mu=Symbol.iterator;function wp(e){return e===null||typeof e!="object"?null:(e=mu&&e[mu]||e["@@iterator"],typeof e=="function"?e:null)}var nc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rc=Object.assign,oc={};function Dn(e,t,n){this.props=e,this.context=t,this.refs=oc,this.updater=n||nc}Dn.prototype.isReactComponent={};Dn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Dn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ic(){}ic.prototype=Dn.prototype;function al(e,t,n){this.props=e,this.context=t,this.refs=oc,this.updater=n||nc}var cl=al.prototype=new ic;cl.constructor=al;rc(cl,Dn.prototype);cl.isPureReactComponent=!0;var gu=Array.isArray,sc=Object.prototype.hasOwnProperty,fl={current:null},lc={key:!0,ref:!0,__self:!0,__source:!0};function uc(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)sc.call(t,r)&&!lc.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1jp(e,r,n))}function Up(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!Bt(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=Hp(rs(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function rs(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let u=[...i];if(Bt(r[o],Error)){Su(s,l);const a=e(t,r[o]),d=u.length;Eu(a,o,d,l),u=rs(e,t,n,r[o],o,[a,...u],a,d)}return Array.isArray(r.errors)&&r.errors.forEach((a,d)=>{if(Bt(a,Error)){Su(s,l);const f=e(t,a),m=u.length;Eu(f,`errors[${d}]`,m,l),u=rs(e,t,n,a,o,[f,...u],f,m)}}),u}function Su(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Eu(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Hp(e,t){return e.map(n=>(n.value&&(n.value=mn(n.value,t)),n))}function Wr(e){return e&&e.Math==Math?e:void 0}const M=typeof globalThis=="object"&&Wr(globalThis)||typeof window=="object"&&Wr(window)||typeof self=="object"&&Wr(self)||typeof global=="object"&&Wr(global)||function(){return this}()||{};function gl(){return M}function pc(e,t,n){const r=n||M,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const yl=gl(),Bp=80;function hc(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",u=l.length;let a;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||Bp;for(;n&&i++1&&s+o.length*u+a.length>=f));)o.push(a),s+=a.length,n=n.parentNode;return o.reverse().join(l)}catch{return""}}function Wp(e,t){const n=e,r=[];let o,i,s,l,u;if(!n||!n.tagName)return"";if(yl.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(a&&a.length)a.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&nt(o))for(i=o.split(/\s+/),u=0;u"u"||__SENTRY_DEBUG__,Yp="Sentry Logger ",os=["debug","info","warn","error","log","assert","trace"],To={};function ri(e){if(!("console"in M))return e();const t=M.console,n={},r=Object.keys(To);r.forEach(o=>{const i=To[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Qp(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Dr?os.forEach(n=>{t[n]=(...r)=>{e&&ri(()=>{M.console[n](`${Yp}[${n}]:`,...r)})}}):os.forEach(n=>{t[n]=()=>{}}),t}const N=Qp(),Kp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Xp(e){return e==="http"||e==="https"}function Lr(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function qp(e){const t=Kp.exec(e);if(!t){ri(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i,s="",l]=t.slice(1);let u="",a=l;const d=a.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),a=d.pop()),a){const f=a.match(/^\d+/);f&&(a=f[0])}return mc({host:i,pass:o,path:u,projectId:a,port:s,protocol:n,publicKey:r})}function mc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Jp(e){if(!Dr)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(N.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Xp(r)?t&&isNaN(parseInt(t,10))?(N.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(N.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(N.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Zp(e){const t=typeof e=="string"?qp(e):mc(e);if(!(!t||!Jp(t)))return t}class Ge extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function ne(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&gc(o,r),e[t]=o}function cr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Dr&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function gc(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,cr(e,"__sentry_original__",t)}catch{}}function vl(e){return e.__sentry_original__}function bp(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function yc(e){if(fc(e))return{message:e.message,name:e.name,stack:e.stack,...ku(e)};if(ei(e)){const t={type:e.type,target:wu(e.target),currentTarget:wu(e.currentTarget),...ku(e)};return typeof CustomEvent<"u"&&Bt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function wu(e){try{return zp(e)?hc(e):Object.prototype.toString.call(e)}catch{return""}}function ku(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function eh(e,t=40){const n=Object.keys(yc(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return mn(n[0],t);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:mn(o,t)}return""}function Mr(e){return is(e,new Map)}function is(e,t){if(wn(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=is(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(is(o,t))}),r}return e}const vc=50,xu=/\(error: (.*)\)/,Tu=/captureMessage|captureException/;function _c(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const o=[],i=n.split(` -`);for(let s=r;s1024)continue;const u=xu.test(l)?l.replace(xu,"$1"):l;if(!u.match(/\S*Error: /)){for(const a of t){const d=a(u);if(d){o.push(d);break}}if(o.length>=vc)break}}return nh(o)}}function th(e){return Array.isArray(e)?_c(...e):e}function nh(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Tu.test(t[t.length-1].function||"")&&(t.pop(),Tu.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,vc).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Pi="";function Ct(e){try{return!e||typeof e!="function"?Pi:e.name||Pi}catch{return Pi}}const ho={},Cu={};function qt(e,t){ho[e]=ho[e]||[],ho[e].push(t)}function Jt(e,t){Cu[e]||(t(),Cu[e]=!0)}function je(e,t){const n=e&&ho[e];if(n)for(const r of n)try{r(t)}catch(o){Dr&&N.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${Ct(r)} -Error:`,o)}}function rh(e){const t="console";qt(t,e),Jt(t,oh)}function oh(){"console"in M&&os.forEach(function(e){e in M.console&&ne(M.console,e,function(t){return To[e]=t,function(...n){je("console",{args:n,level:e});const o=To[e];o&&o.apply(M.console,n)}})})}function Oe(){const e=M,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Sc(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function pt(e){const{message:t,event_id:n}=e;if(t)return t;const r=Sc(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function ss(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function fr(e,t){const n=Sc(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function Nu(e){if(e&&e.__sentry_captured__)return!0;try{cr(e,"__sentry_captured__",!0)}catch{}return!1}function Ec(e){return Array.isArray(e)?e:[e]}const tn=M,ih=1e3;let Pu,ls,us;function sh(e){const t="dom";qt(t,e),Jt(t,lh)}function lh(){if(!tn.document)return;const e=je.bind(null,"dom"),t=Iu(e,!0);tn.document.addEventListener("click",t,!1),tn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=tn[n]&&tn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(ne(r,"addEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,a=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},d=a[i]=a[i]||{refCount:0};if(!d.handler){const f=Iu(e);d.handler=f,o.call(this,i,f,l)}d.refCount++}catch{}return o.call(this,i,s,l)}}),ne(r,"removeEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,a=u.__sentry_instrumentation_handlers__||{},d=a[i];d&&(d.refCount--,d.refCount<=0&&(o.call(this,i,d.handler,l),d.handler=void 0,delete a[i]),Object.keys(a).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,l)}}))})}function uh(e){if(e.type!==ls)return!1;try{if(!e.target||e.target._sentryId!==us)return!1}catch{}return!0}function ah(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Iu(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ch(n);if(ah(n.type,r))return;cr(n,"_sentryCaptured",!0),r&&!r._sentryId&&cr(r,"_sentryId",Oe());const o=n.type==="keypress"?"input":n.type;uh(n)||(e({event:n,name:o,global:t}),ls=n.type,us=r?r._sentryId:void 0),clearTimeout(Pu),Pu=tn.setTimeout(()=>{us=void 0,ls=void 0},ih)}}function ch(e){try{return e.target}catch{return null}}const as=gl();function wc(){if(!("fetch"in as))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function cs(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function fh(){if(typeof EdgeRuntime=="string")return!0;if(!wc())return!1;if(cs(as.fetch))return!0;let e=!1;const t=as.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=cs(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Dr&&N.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function dh(e){const t="fetch";qt(t,e),Jt(t,ph)}function ph(){fh()&&ne(M,"fetch",function(e){return function(...t){const{method:n,url:r}=hh(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return je("fetch",{...o}),e.apply(M,t).then(i=>{const s={...o,endTimestamp:Date.now(),response:i};return je("fetch",s),i},i=>{const s={...o,endTimestamp:Date.now(),error:i};throw je("fetch",s),i})}})}function fs(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ou(e){return typeof e=="string"?e:e?fs(e,"url")?e.url:e.toString?e.toString():"":""}function hh(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ou(n),method:fs(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Ou(t),method:fs(t,"method")?String(t.method).toUpperCase():"GET"}}let Vr=null;function mh(e){const t="error";qt(t,e),Jt(t,gh)}function gh(){Vr=M.onerror,M.onerror=function(e,t,n,r,o){return je("error",{column:r,error:o,line:n,msg:e,url:t}),Vr&&!Vr.__SENTRY_LOADER__?Vr.apply(this,arguments):!1},M.onerror.__SENTRY_INSTRUMENTED__=!0}let Gr=null;function yh(e){const t="unhandledrejection";qt(t,e),Jt(t,vh)}function vh(){Gr=M.onunhandledrejection,M.onunhandledrejection=function(e){return je("unhandledrejection",e),Gr&&!Gr.__SENTRY_LOADER__?Gr.apply(this,arguments):!0},M.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Yr=gl();function _h(){const e=Yr.chrome,t=e&&e.app&&e.app.runtime,n="history"in Yr&&!!Yr.history.pushState&&!!Yr.history.replaceState;return!t&&n}const jn=M;let Qr;function kc(e){const t="history";qt(t,e),Jt(t,Sh)}function Sh(){if(!_h())return;const e=jn.onpopstate;jn.onpopstate=function(...n){const r=jn.location.href,o=Qr;if(Qr=r,je("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const i=Qr,s=String(o);Qr=s,je("history",{from:i,to:s})}return n.apply(this,r)}}ne(jn.history,"pushState",t),ne(jn.history,"replaceState",t)}const Eh=M,Xn="__sentry_xhr_v3__";function wh(e){const t="xhr";qt(t,e),Jt(t,kh)}function kh(){if(!Eh.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;ne(e,"open",function(t){return function(...n){const r=Date.now(),o=nt(n[0])?n[0].toUpperCase():void 0,i=xh(n[1]);if(!o||!i)return t.apply(this,n);this[Xn]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[Xn];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const u={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};je("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?ne(this,"onreadystatechange",function(l){return function(...u){return s(),l.apply(this,u)}}):this.addEventListener("readystatechange",s),ne(this,"setRequestHeader",function(l){return function(...u){const[a,d]=u,f=this[Xn];return f&&nt(a)&&nt(d)&&(f.request_headers[a.toLowerCase()]=d),l.apply(this,u)}}),t.apply(this,n)}}),ne(e,"send",function(t){return function(...n){const r=this[Xn];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return je("xhr",o),t.apply(this,n)}})}function xh(e){if(nt(e))return e;try{return e.toString()}catch{}}function Th(){return"npm"}function Ch(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;in?xc(e,t-1,n):r}function ds(e,t,n=1/0,r=1/0,o=Ch()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Ap(t))return t;const l=Nh(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const a=t;if(a&&typeof a.toJSON=="function")try{const g=a.toJSON();return ds("",g,u-1,r,o)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const m=yc(t);for(const g in m){if(!Object.prototype.hasOwnProperty.call(m,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const _=m[g];d[g]=ds(g,_,u-1,r,o),f++}return s(t),d}function Nh(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(dc(t))return"[VueViewModel]";if($p(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Ct(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Ph(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ph(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Ih(e){return~-encodeURI(e).split(/%..|./).length}function Oh(e){return Ih(JSON.stringify(e))}var qe;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(qe||(qe={}));function kn(e){return new _e(t=>{t(e)})}function _l(e){return new _e((t,n)=>{n(e)})}class _e{constructor(t){_e.prototype.__init.call(this),_e.prototype.__init2.call(this),_e.prototype.__init3.call(this),_e.prototype.__init4.call(this),this._state=qe.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new _e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new _e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(qe.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(qe.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===qe.PENDING){if(ti(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===qe.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===qe.RESOLVED&&n[1](this._value),this._state===qe.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Rh(e){const t=[];function n(){return e===void 0||t.lengthr(l)).then(null,()=>r(l).then(null,()=>{})),l}function i(s){return new _e((l,u)=>{let a=t.length;if(!a)return l(!0);const d=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(f=>{kn(f).then(()=>{--a||(clearTimeout(d),l(!0))},u)})})}return{$:t,add:o,drain:i}}function Ii(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Dh=["fatal","error","warning","log","info","debug"];function Lh(e){return e==="warn"?"warning":Dh.includes(e)?e:"log"}const Tc=1e3;function zr(){return Date.now()/Tc}function Mh(){const{performance:e}=M;if(!e||!e.now)return zr;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Tc}const Cc=Mh();(()=>{const{performance:e}=M;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=oo+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function Ah(e,t){const n=typeof e.data=="string"?ps(e.data,t):e.data;return[Mr({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const jh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Du(e){return jh[e]}function Nc(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Uh(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Lr(r)},...o&&{trace:Mr({...o})}}}function Hh(e,t,n){const r=[{type:"client_report"},{timestamp:n||zr(),discarded_events:e}];return Mn(t?{dsn:t}:{},[r])}const Bh=60*1e3;function Wh(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Bh:r-t}function Vh(e,t){return e[t]||e.all||0}function Gh(e,t,n=Date.now()){return Vh(e,t)>n}function Yh(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const l of i.trim().split(",")){const[u,a]=l.split(":",2),d=parseInt(u,10),f=(isNaN(d)?60:d)*1e3;if(!a)o.all=r+f;else for(const m of a.split(";"))o[m]=r+f}else s?o.all=r+Wh(s,r):t===429&&(o.all=r+60*1e3);return o}const $=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oi="production";function Sl(){return pc("globalEventProcessors",()=>[])}function Qh(e){Sl().push(e)}function Co(e,t,n,r=0){return new _e((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);$&&s.id&&l===null&&N.log(`Event processor "${s.id}" dropped event`),ti(l)?l.then(u=>Co(e,u,n,r+1).then(o)).then(null,i):Co(e,l,n,r+1).then(o).then(null,i)}})}function Pc(e){const t=Cc(),n={sid:Oe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Kh(n)};return e&&Wt(n,e),n}function Wt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Cc(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Oe()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ic(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Wt(e,n)}function Kh(e){return Mr({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Xh=1;function qh(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:l,origin:u}=dr(e);return Mr({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:l,trace_id:n,origin:u})}function dr(e){return Jh(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Jh(e){return typeof e.getSpanJSON=="function"}function Zh(e){const{traceFlags:t}=e.spanContext();return!!(t&Xh)}function bh(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Oe(),timestamp:t.timestamp||zr()},a=n.integrations||e.integrations.map(R=>R.name);em(u,e),rm(u,a),t.type===void 0&&tm(u,e.stackParser);const d=im(r,n.captureContext);n.mechanism&&fr(u,n.mechanism);const f=o&&o.getEventProcessors?o.getEventProcessors():[],m=_m().getScopeData();if(i){const R=i.getScopeData();Fu(m,R)}if(d){const R=d.getScopeData();Fu(m,R)}const g=[...n.attachments||[],...m.attachments];g.length&&(n.attachments=g),Mc(u,m);const _=[...f,...Sl(),...m.eventProcessors];return Co(_,u,n).then(R=>(R&&nm(R),typeof s=="number"&&s>0?om(R,s,l):R))}function em(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:oi),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=mn(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=mn(s.value,i));const l=e.request;l&&l.url&&(l.url=mn(l.url,i))}const Lu=new WeakMap;function tm(e,t){const n=M._sentryDebugIds;if(!n)return;let r;const o=Lu.get(t);o?r=o:(r=new Map,Lu.set(t,r));const i=Object.keys(n).reduce((s,l)=>{let u;const a=r.get(l);a?u=a:(u=t(l),r.set(l,u));for(let d=u.length-1;d>=0;d--){const f=u[d];if(f.filename){s[f.filename]=n[l];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=i[l.filename])})})}catch{}}function nm(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function rm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function om(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:ct(o.data,t,n)}}))},...e.user&&{user:ct(e.user,t,n)},...e.contexts&&{contexts:ct(e.contexts,t,n)},...e.extra&&{extra:ct(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ct(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>{const i=dr(o).data;return i&&(o.data=ct(i,t,n)),o})),r}function im(e,t){if(!t)return e;const n=e?e.clone():new Qe;return n.update(t),n}function sm(e){if(e)return lm(e)?{captureContext:e}:am(e)?{captureContext:e}:e}function lm(e){return e instanceof Qe||typeof e=="function"}const um=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function am(e){return Object.keys(e).some(t=>um.includes(t))}function cm(e,t){return Ee().captureException(e,sm(t))}function D0(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return Ee().captureMessage(e,n,r)}function Oc(e,t){return Ee().captureEvent(e,t)}function Vt(e,t){Ee().addBreadcrumb(e,t)}function L0(e,t){Ee().setContext(e,t)}function fm(...e){if(e.length===2){const[t,n]=e;if(!t)return Ee().withScope(n);const r=Ee();return r.withScope(()=>(r.getStackTop().scope=t,n(t)))}return Ee().withScope(e[0])}function xe(){return Ee().getClient()}function ii(){return Ee().getScope()}function Mu(e){const t=xe(),n=li(),r=ii(),{release:o,environment:i=oi}=t&&t.getOptions()||{},{userAgent:s}=M.navigator||{},l=Pc({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...e}),u=n.getSession();return u&&u.status==="ok"&&Wt(u,{status:"exited"}),Rc(),n.setSession(l),r.setSession(l),l}function Rc(){const e=li(),t=ii(),n=e.getSession();n&&Ic(n),Dc(),e.setSession(),t.setSession()}function Dc(){const e=li(),t=ii(),n=xe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function zu(e=!1){if(e){Rc();return}Dc()}function Lc(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=Mr({environment:r.environment||oi,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function dm(e){const t=xe();if(!t)return{};const n=Lc(dr(e).trace_id||"",t,ii()),r=e.transaction;if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:s}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const l=dr(r);return s&&s!=="url"&&(n.transaction=l.description),n.sampled=String(Zh(r)),t.emit&&t.emit("createDsc",n),n}function Mc(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i,propagationContext:s}=t;pm(e,t),r&&gm(e,r),ym(e,n),hm(e,o),mm(e,i,s)}function Fu(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:a,eventProcessors:d,attachments:f,propagationContext:m,transactionName:g,span:_}=t;Un(e,"extra",n),Un(e,"tags",r),Un(e,"user",o),Un(e,"contexts",i),Un(e,"sdkProcessingMetadata",l),s&&(e.level=s),g&&(e.transactionName=g),_&&(e.span=_),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),a.length&&(e.fingerprint=[...e.fingerprint,...a]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...m}}function Un(e,t,n){n&&Object.keys(n).length&&(e[t]={...e[t],...n})}function pm(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:l}=t;n&&Object.keys(n).length&&(e.extra={...n,...e.extra}),r&&Object.keys(r).length&&(e.tags={...r,...e.tags}),o&&Object.keys(o).length&&(e.user={...o,...e.user}),i&&Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),l&&(e.transaction=l)}function hm(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function mm(e,t,n){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t,propagationContext:n}}function gm(e,t){e.contexts={trace:qh(t),...e.contexts};const n=t.transaction;if(n){e.sdkProcessingMetadata={dynamicSamplingContext:dm(t),...e.sdkProcessingMetadata};const r=dr(n).description;r&&(e.tags={transaction:r,...e.tags})}}function ym(e,t){e.fingerprint=e.fingerprint?Ec(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const vm=100;let Oi;class Qe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=$u()}static clone(t){return t?t.clone():new Qe}clone(){const t=new Qe;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Wt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Qe?n:this}return t instanceof Qe?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):wn(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=$u(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:vm;if(r<=0)return this;const o={timestamp:zr(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:s,_level:l,_fingerprint:u,_eventProcessors:a,_propagationContext:d,_sdkProcessingMetadata:f,_transactionName:m,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:s,level:l,fingerprint:u||[],eventProcessors:a,propagationContext:d,sdkProcessingMetadata:f,transactionName:m,span:g}}applyToEvent(t,n={},r=[]){Mc(t,this.getScopeData());const o=[...r,...Sl(),...this._eventProcessors];return Co(o,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Oe();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:Oe();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Oe();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(N.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function _m(){return Oi||(Oi=new Qe),Oi}function $u(){return{traceId:Oe(),spanId:Oe().substring(16)}}const pr="7.93.0",zc=parseFloat(pr),Sm=100;class Fc{constructor(t,n,r,o=zc){this._version=o;let i;n?i=n:(i=new Qe,i.setClient(t));let s;r?s=r:(s=new Qe,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Oe(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){const o=this._lastEventId=r&&r.event_id?r.event_id:Oe(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Oe();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Sm}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const u={timestamp:zr(),...t},a=i?ri(()=>i(u,n)):u;a!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",a,n),r.addBreadcrumb(a,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Au(this);try{t(this)}finally{Au(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return $&&N.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return $&&!r&&(this.getClient()?N.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': -Sentry.addTracingExtensions(); -Sentry.init({...}); -`):N.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Ic(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=oi}=r&&r.getOptions()||{},{userAgent:s}=M.navigator||{},l=Pc({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&Wt(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const o=si().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);$&&N.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function si(){return M.__SENTRY__=M.__SENTRY__||{extensions:{},hub:void 0},M}function Au(e){const t=si(),n=hs(t);return $c(t,e),n}function Ee(){const e=si();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Em(e)}function li(){return Ee().getIsolationScope()}function Em(e=si()){return(!wm(e)||hs(e).isOlderThan(zc))&&$c(e,new Fc),hs(e)}function wm(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function hs(e){return pc("hub",()=>new Fc,e)}function $c(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function km(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function xm(e,t,n,r){const o=Nc(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Lr(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Mn(i,[s])}function Tm(e,t,n,r){const o=Nc(n),i=e.type&&e.type!=="replay_event"?e.type:"event";km(e,n&&n.sdk);const s=Uh(e,o,r,t);return delete e.sdkProcessingMetadata,Mn(s,[[{type:i},e]])}const Cm="7";function Nm(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Pm(e){return`${Nm(e)}${e.projectId}/envelope/`}function Im(e,t){return bp({sentry_key:e.publicKey,sentry_version:Cm,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Om(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Pm(e)}?${Im(e,r)}`}const ju=[];function Rm(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Dm(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Ec(n(t)):r=t;const o=Rm(r),i=Mm(o,s=>s.name==="Debug");if(i!==-1){const[s]=o.splice(i,1);o.push(s)}return o}function Lm(e,t){const n={};return t.forEach(r=>{r&&Ac(e,r,n)}),n}function Ac(e,t,n){if(n[t.name]){$&&N.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,ju.indexOf(t.name)===-1&&(t.setupOnce(Qh,Ee),ju.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}$&&N.log(`Integration installed: ${t.name}`)}function Mm(e,t){for(let n=0;n{},...t(...r)}},{id:e})}function zm(e){let t="";for(const n of e){const r=Object.entries(n.tags),o=r.length>0?`|#${r.map(([i,s])=>`${i}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp} -`}return t}function Fm(e,t,n,r){const o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=Lr(t));const i=$m(e);return Mn(o,[i])}function $m(e){const t=zm(e);return[{type:"statsd",length:t.length},t]}const Uu="Not capturing exception because it's already been captured.";class Am{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Zp(t.dsn):$&&N.warn("No DSN provided, client will not send events."),this._dsn){const n=Om(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Nu(t)){$&&N.log(Uu);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id;const s=hl(t)?t:String(t),l=ml(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(l.then(u=>this._captureEvent(u,r,o)).then(u=>{i=u})),i}captureEvent(t,n,r){if(n&&n.originalException&&Nu(n.originalException)){$&&N.log(Uu);return}let o=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(i=>{o=i})),o}captureSession(t){typeof t.release!="string"?$&&N.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Wt(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):kn(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=Lm(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return $&&N.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){Ac(this,t,this._integrations)}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Tm(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=zh(r,Ah(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=xm(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=`${t}:${n}`;$&&N.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}captureAggregateMetrics(t){$&&N.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=Fm(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const u of i){const a=u.mechanism;if(a&&a.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Wt(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new _e(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=li()){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),bh(i,t,n,r,this,o).then(l=>{if(l===null)return l;const{propagationContext:u}=l.sdkProcessingMetadata||{};if(!(l.contexts&&l.contexts.trace)&&u){const{traceId:d,spanId:f,parentSpanId:m,dsc:g}=u;l.contexts={trace:{trace_id:d,span_id:f,parent_span_id:m},...l.contexts};const _=g||Lc(d,this,r);l.sdkProcessingMetadata={dynamicSamplingContext:_,...l.sdkProcessingMetadata}}return l})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if($){const i=o;i.logLevel==="log"?N.log(i.message):N.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=Uc(t),l=jc(t),u=t.type||"error",a=`before send for type \`${u}\``;if(l&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),_l(new Ge(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",d,t),new Ge("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;const g=Um(o,f,n);return jm(g,a)}).then(f=>{if(f===null)throw this.recordDroppedEvent("before_send",d,t),new Ge(`${a} returned \`null\`, will not send event.`,"log");const m=r&&r.getSession();!s&&m&&this._updateSessionFromEvent(m,f);const g=f.transaction_info;if(s&&g&&f.transaction!==t.transaction){const _="custom";f.transaction_info={...g,source:_}}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof Ge?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new Ge(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${f}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{$&&N.error("Error while sending event:",n)});$&&N.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}}function jm(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ti(e))return e.then(r=>{if(!wn(r)&&r!==null)throw new Ge(n);return r},r=>{throw new Ge(`${t} rejected with ${r}`)});if(!wn(e)&&e!==null)throw new Ge(n);return e}function Um(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return jc(t)&&r?r(t,n):Uc(t)&&o?o(t,n):t}function jc(e){return e.type===void 0}function Uc(e){return e.type==="transaction"}function Hm(e,t){t.debug===!0&&($?N.enable():ri(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));const n=Ee();n.getScope().update(t.initialScope);const o=new e(t);n.bindClient(o)}const Bm=30;function Hc(e,t,n=Rh(e.bufferSize||Bm)){let r={};const o=s=>n.drain(s);function i(s){const l=[];if(Ru(s,(f,m)=>{const g=Du(m);if(Gh(r,g)){const _=Hu(f,m);e.recordDroppedEvent("ratelimit_backoff",g,_)}else l.push(f)}),l.length===0)return kn();const u=Mn(s[0],l),a=f=>{Ru(u,(m,g)=>{const _=Hu(m,g);e.recordDroppedEvent(f,Du(g),_)})},d=()=>t({body:Fh(u,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&$&&N.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Yh(r,f),f),f=>{throw a("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof Ge)return $&&N.error("Skipped sending event because buffer is full."),a("queue_overflow"),kn();throw f})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function Hu(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}let Bu;const Bc="FunctionToString",Wm=()=>({name:Bc,setupOnce(){Bu=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=vl(this)||this;return Bu.apply(t,e)}}catch{}}}),Vm=It(Bc,Wm),Gm=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ym=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Wc="InboundFilters",Qm=e=>({name:Wc,processEvent(t,n,r){const o=r.getOptions(),i=Xm(e,o);return qm(t,i)?null:t}}),Km=It(Wc,Qm);function Xm(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Gm],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Ym],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function qm(e,t){return t.ignoreInternal&&ng(e)?($&&N.warn(`Event dropped due to being internal Sentry Error. -Event: ${pt(e)}`),!0):Jm(e,t.ignoreErrors)?($&&N.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${pt(e)}`),!0):Zm(e,t.ignoreTransactions)?($&&N.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${pt(e)}`),!0):bm(e,t.denyUrls)?($&&N.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${pt(e)}. -Url: ${No(e)}`),!0):eg(e,t.allowUrls)?!1:($&&N.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${pt(e)}. -Url: ${No(e)}`),!0)}function Jm(e,t){return e.type||!t||!t.length?!1:tg(e).some(n=>ni(n,t))}function Zm(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?ni(n,t):!1}function bm(e,t){if(!t||!t.length)return!1;const n=No(e);return n?ni(n,t):!1}function eg(e,t){if(!t||!t.length)return!0;const n=No(e);return n?ni(n,t):!0}function tg(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),$&&t.length===0&&N.error(`Could not extract message for event ${pt(e)}`),t}function ng(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function rg(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function No(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?rg(t):null}catch{return $&&N.error(`Cannot extract url for event ${pt(e)}`),null}}const F=M;let ms=0;function Vc(){return ms>0}function og(){ms++,setTimeout(()=>{ms--})}function xn(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(vl(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const i=o.map(s=>xn(s,t));return e.apply(this,i)}catch(i){throw og(),fm(s=>{s.addEventProcessor(l=>(t.mechanism&&(ss(l,void 0,void 0),fr(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),cm(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}gc(r,e),cr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const be=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Gc(e,t){const n=El(e,t),r={type:t&&t.name,value:ug(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function ig(e,t,n,r){const o=xe(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:ei(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:fg(t,{isUnhandledRejection:r})}]},extra:{__serialized__:xc(t,i)}};if(n){const l=El(e,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function Ri(e,t){return{exception:{values:[Gc(e,t)]}}}function El(e,t){const n=t.stacktrace||t.stack||"",r=lg(t);try{return e(n,r)}catch{}return[]}const sg=/Minified React error #\d+;/i;function lg(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(sg.test(e.message))return 1}return 0}function ug(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function ag(e,t,n,r){const o=n&&n.syntheticException||void 0,i=wl(e,t,o,r);return fr(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),kn(i)}function cg(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=gs(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),kn(s)}function wl(e,t,n,r,o){let i;if(pl(t)&&t.error)return Ri(e,t.error);if(vu(t)||Mp(t)){const s=t;if("stack"in t)i=Ri(e,t);else{const l=s.name||(vu(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;i=gs(e,u,n,r),ss(i,u)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return fc(t)?Ri(e,t):wn(t)||ei(t)?(i=ig(e,t,n,o),fr(i,{synthetic:!0}),i):(i=gs(e,t,n,r),ss(i,`${t}`,void 0),fr(i,{synthetic:!0}),i)}function gs(e,t,n,r){const o={};if(r&&n){const i=El(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(hl(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function fg(e,{isUnhandledRejection:t}){const n=eh(e),r=t?"promise rejection":"exception";return pl(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ei(e)?`Event \`${dg(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function dg(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function pg(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Lr(r)}},i=hg(e);return Mn(o,[i])}function hg(e){return[{type:"user_report"},e]}class mg extends Am{constructor(t){const n=F.SENTRY_SDK_SOURCE||Th();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:pr}],version:pr},super(t),t.sendClientReports&&F.document&&F.document.addEventListener("visibilitychange",()=>{F.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return ag(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return cg(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){be&&N.warn("SDK not enabled, will not capture user feedback.");return}const n=pg(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){be&&N.log("No outcomes to send");return}if(!this._dsn){be&&N.log("No dsn provided, will not send outcomes");return}be&&N.log("Sending outcomes:",t);const n=Hh(t,this._options.tunnel&&Lr(this._dsn));this._sendEnvelope(n)}}let qn;function gg(){if(qn)return qn;if(cs(F.fetch))return qn=F.fetch.bind(F);const e=F.document;let t=F.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){be&&N.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return qn=t.bind(F)}function yg(){qn=void 0}function vg(e,t=gg()){let n=0,r=0;function o(i){const s=i.body.length;n+=s,r++;const l={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,l).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return yg(),n-=s,r--,_l(u)}}return Hc(e,o)}const _g=4;function Sg(e){function t(n){return new _e((r,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===_g&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return Hc(e,t)}const ui="?",Eg=30,wg=40,kg=50;function kl(e,t,n,r){const o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const xg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tg=/\((\S*)(?::(\d+))(?::(\d+))\)/,Cg=e=>{const t=xg.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=Tg.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,o]=Yc(t[1]||ui,t[2]);return kl(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Ng=[Eg,Cg],Pg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ig=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Og=e=>{const t=Pg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=Ig.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||ui;return[o,r]=Yc(o,r),kl(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Rg=[kg,Og],Dg=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Lg=e=>{const t=Dg.exec(e);return t?kl(t[2],t[1]||ui,+t[3],t[4]?+t[4]:void 0):void 0},Mg=[wg,Lg],zg=[Ng,Rg,Mg],Fg=_c(...zg),Yc=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ui,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Qc="GlobalHandlers",$g=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Qc,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(jg(n),Wu("onerror")),t.onunhandledrejection&&(Ug(n),Wu("onunhandledrejection"))}}},Ag=It(Qc,$g);function jg(e){mh(t=>{const{stackParser:n,attachStacktrace:r}=Xc();if(xe()!==e||Vc())return;const{msg:o,url:i,line:s,column:l,error:u}=t,a=u===void 0&&nt(o)?Wg(o,i,s,l):Kc(wl(n,u||o,void 0,r,!1),i,s,l);a.level="error",Oc(a,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function Ug(e){yh(t=>{const{stackParser:n,attachStacktrace:r}=Xc();if(xe()!==e||Vc())return;const o=Hg(t),i=ml(o)?Bg(o):wl(n,o,void 0,r,!0);i.level="error",Oc(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Hg(e){if(ml(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Bg(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Wg(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=pl(e)?e.message:e,s="Error";const l=i.match(o);return l&&(s=l[1],i=l[2]),Kc({exception:{values:[{type:s,value:i}]}},t,n,r)}function Kc(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],a=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=nt(t)&&t.length>0?t:Vp();return u.length===0&&u.push({colno:a,filename:f,function:"?",in_app:!0,lineno:d}),e}function Wu(e){be&&N.log(`Global Handler attached: ${e}`)}function Xc(){const e=xe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Vg=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],qc="TryCatch",Gg=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:qc,setupOnce(){t.setTimeout&&ne(F,"setTimeout",Vu),t.setInterval&&ne(F,"setInterval",Vu),t.requestAnimationFrame&&ne(F,"requestAnimationFrame",Qg),t.XMLHttpRequest&&"XMLHttpRequest"in F&&ne(XMLHttpRequest.prototype,"send",Kg);const n=t.eventTarget;n&&(Array.isArray(n)?n:Vg).forEach(Xg)}}},Yg=It(qc,Gg);function Vu(e){return function(...t){const n=t[0];return t[0]=xn(n,{mechanism:{data:{function:Ct(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Qg(e){return function(t){return e.apply(this,[xn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ct(e)},handled:!1,type:"instrument"}})])}}function Kg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&ne(n,o,function(i){const s={mechanism:{data:{function:o,handler:Ct(i)},handled:!1,type:"instrument"}},l=vl(i);return l&&(s.mechanism.data.handler=Ct(l)),xn(i,s)})}),e.apply(this,t)}}function Xg(e){const t=F,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(ne(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=xn(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ct(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,xn(i,{mechanism:{data:{function:"addEventListener",handler:Ct(i),target:e},handled:!1,type:"instrument"}}),s])}}),ne(n,"removeEventListener",function(r){return function(o,i,s){const l=i;try{const u=l&&l.__sentry_wrapped__;u&&r.call(this,o,u,s)}catch{}return r.call(this,o,l,s)}}))}const Kr=1024,Jc="Breadcrumbs",qg=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Jc,setup(n){t.console&&rh(ey(n)),t.dom&&sh(bg(n,t.dom)),t.xhr&&wh(ty(n)),t.fetch&&dh(ny(n)),t.history&&kc(ry(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Zg(n))}}},Jg=It(Jc,qg);function Zg(e){return function(n){xe()===e&&Vt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:pt(n)},{event:n})}}function bg(e,t){return function(r){if(xe()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,l=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;l&&l>Kr&&(be&&N.warn(`\`dom.maxStringLength\` cannot exceed ${Kr}, but a value of ${l} was configured. Sentry will use ${Kr} instead.`),l=Kr),typeof s=="string"&&(s=[s]);try{const a=r.event,d=oy(a)?a.target:a;o=hc(d,{keyAttrs:s,maxStringLength:l}),i=Gp(d)}catch{o=""}if(o.length===0)return;const u={category:`ui.${r.name}`,message:o};i&&(u.data={"ui.component_name":i}),Vt(u,{event:r.event,name:r.name,global:r.global})}}function ey(e){return function(n){if(xe()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Lh(n.level),message:_u(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${_u(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Vt(r,{input:n.args,level:n.level})}}function ty(e){return function(n){if(xe()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[Xn];if(!r||!o||!i)return;const{method:s,url:l,status_code:u,body:a}=i,d={method:s,url:l,status_code:u},f={xhr:n.xhr,input:a,startTimestamp:r,endTimestamp:o};Vt({category:"xhr",data:d,type:"http"},f)}}function ny(e){return function(n){if(xe()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Vt({category:"fetch",data:i,level:"error",type:"http"},s)}else{const i=n.response,s={...n.fetchData,status_code:i&&i.status},l={input:n.args,response:i,startTimestamp:r,endTimestamp:o};Vt({category:"fetch",data:s,type:"http"},l)}}}function ry(e){return function(n){if(xe()!==e)return;let r=n.from,o=n.to;const i=Ii(F.location.href);let s=r?Ii(r):void 0;const l=Ii(o);(!s||!s.path)&&(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),Vt({category:"navigation",data:{from:r,to:o}})}}function oy(e){return!!e&&!!e.target}const iy="cause",sy=5,Zc="LinkedErrors",ly=(e={})=>{const t=e.limit||sy,n=e.key||iy;return{name:Zc,preprocessEvent(r,o,i){const s=i.getOptions();Up(Gc,s.stackParser,s.maxValueLength,n,t,r,o)}}},uy=It(Zc,ly),bc="HttpContext",ay=()=>({name:bc,preprocessEvent(e){if(!F.navigator&&!F.location&&!F.document)return;const t=e.request&&e.request.url||F.location&&F.location.href,{referrer:n}=F.document||{},{userAgent:r}=F.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),cy=It(bc,ay),ef="Dedupe",fy=()=>{let e;return{name:ef,processEvent(t){if(t.type)return t;try{if(py(t,e))return be&&N.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},dy=It(ef,fy);function py(e,t){return t?!!(hy(e,t)||my(e,t)):!1}function hy(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!nf(e,t)||!tf(e,t))}function my(e,t){const n=Gu(t),r=Gu(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!nf(e,t)||!tf(e,t))}function tf(e,t){let n=Yu(e),r=Yu(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o"u"){be&&N.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Mu({ignoreDuration:!0}),zu(),kc(({from:e,to:t})=>{e!==void 0&&e!==t&&(Mu({ignoreDuration:!0}),zu())})}function M0(e){const t={_metadata:{},...e};t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:pr}],version:pr},yy(t)}var rf={exports:{}},Te={},of={exports:{}},sf={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e){function t(k,P){var I=k.length;k.push(P);e:for(;0>>1,Z=k[Q];if(0>>1;Qo(Ci,I))Mto(Hr,Ci)?(k[Q]=Hr,k[Mt]=I,Q=Mt):(k[Q]=Ci,k[Lt]=I,Q=Lt);else if(Mto(Hr,I))k[Q]=Hr,k[Mt]=I,Q=Mt;else break e}}return P}function o(k,P){var I=k.sortIndex-P.sortIndex;return I!==0?I:k.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],a=[],d=1,f=null,m=3,g=!1,_=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(k){for(var P=n(a);P!==null;){if(P.callback===null)r(a);else if(P.startTime<=k)r(a),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(a)}}function y(k){if(S=!1,h(k),!_)if(n(u)!==null)_=!0,xi(w);else{var P=n(a);P!==null&&Ti(y,P.startTime-k)}}function w(k,P){_=!1,S&&(S=!1,p(C),C=-1),g=!0;var I=m;try{for(h(P),f=n(u);f!==null&&(!(f.expirationTime>P)||k&&!Me());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,m=f.priorityLevel;var Z=Q(f.expirationTime<=P);P=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(u)&&r(u),h(P)}else r(u);f=n(u)}if(f!==null)var Ur=!0;else{var Lt=n(a);Lt!==null&&Ti(y,Lt.startTime-P),Ur=!1}return Ur}finally{f=null,m=I,g=!1}}var x=!1,T=null,C=-1,Y=5,D=-1;function Me(){return!(e.unstable_now()-Dk||125Q?(k.sortIndex=I,t(a,k),n(u)===null&&k===n(a)&&(S?(p(C),C=-1):S=!0,Ti(y,I-Q))):(k.sortIndex=Z,t(u,k),_||g||(_=!0,xi(w))),k},e.unstable_shouldYield=Me,e.unstable_wrapCallback=function(k){var P=m;return function(){var I=m;m=P;try{return k.apply(this,arguments)}finally{m=I}}}})(sf);of.exports=sf;var _y=of.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var lf=bo,ke=_y;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ys=Object.prototype.hasOwnProperty,Sy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Qu={},Ku={};function Ey(e){return ys.call(Ku,e)?!0:ys.call(Qu,e)?!1:Sy.test(e)?Ku[e]=!0:(Qu[e]=!0,!1)}function wy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ky(e,t,n,r){if(t===null||typeof t>"u"||wy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){oe[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var xl=/[\-:]([a-z])/g;function Tl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xl,Tl);oe[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xl,Tl);oe[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xl,Tl);oe[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cl(e,t,n,r){var o=oe.hasOwnProperty(t)?oe[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var u=` -`+o[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Li=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jn(e):""}function xy(e){switch(e.tag){case 5:return Jn(e.type);case 16:return Jn("Lazy");case 13:return Jn("Suspense");case 19:return Jn("SuspenseList");case 0:case 2:case 15:return e=Mi(e.type,!1),e;case 11:return e=Mi(e.type.render,!1),e;case 1:return e=Mi(e.type,!0),e;default:return""}}function Es(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 rn:return"Fragment";case nn:return"Portal";case vs:return"Profiler";case Nl:return"StrictMode";case _s:return"Suspense";case Ss:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cf:return(e.displayName||"Context")+".Consumer";case af:return(e._context.displayName||"Context")+".Provider";case Pl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Il:return t=e.displayName||null,t!==null?t:Es(e.type)||"Memo";case ft:t=e._payload,e=e._init;try{return Es(e(t))}catch{}}return null}function Ty(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 Es(t);case 8:return t===Nl?"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 Nt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cy(e){var t=df(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qr(e){e._valueTracker||(e._valueTracker=Cy(e))}function pf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=df(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Po(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 ws(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nt(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 hf(e,t){t=t.checked,t!=null&&Cl(e,"checked",t,!1)}function ks(e,t){hf(e,t);var n=Nt(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")?xs(e,t.type,n):t.hasOwnProperty("defaultValue")&&xs(e,t.type,Nt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ju(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 xs(e,t,n){(t!=="number"||Po(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zn=Array.isArray;function gn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tr={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},Ny=["Webkit","ms","Moz","O"];Object.keys(tr).forEach(function(e){Ny.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tr[t]=tr[e]})});function vf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||tr.hasOwnProperty(e)&&tr[e]?(""+t).trim():t+"px"}function _f(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Py=V({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 Ns(e,t){if(t){if(Py[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(v(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(v(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(v(61))}if(t.style!=null&&typeof t.style!="object")throw Error(v(62))}}function Ps(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 Is=null;function Ol(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Os=null,yn=null,vn=null;function ea(e){if(e=Ar(e)){if(typeof Os!="function")throw Error(v(280));var t=e.stateNode;t&&(t=pi(t),Os(e.stateNode,e.type,t))}}function Sf(e){yn?vn?vn.push(e):vn=[e]:yn=e}function Ef(){if(yn){var e=yn,t=vn;if(vn=yn=null,ea(e),t)for(e=0;e>>=0,e===0?32:31-(jy(e)/Uy|0)|0}var Zr=64,br=4194304;function bn(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 Do(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=bn(l):(i&=s,i!==0&&(r=bn(i)))}else s=n&~o,s!==0?r=bn(s):i!==0&&(r=bn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function Vy(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=rr),aa=" ",ca=!1;function Hf(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function Sv(e,t){switch(e){case"compositionend":return Bf(t);case"keypress":return t.which!==32?null:(ca=!0,aa);case"textInput":return e=t.data,e===aa&&ca?null:e;default:return null}}function Ev(e,t){if(on)return e==="compositionend"||!Al&&Hf(e,t)?(e=jf(),go=zl=gt=null,on=!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=ha(n)}}function Yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qf(){for(var e=window,t=Po();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Po(e.document)}return t}function jl(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 Ov(e){var t=Qf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yf(n.ownerDocument.documentElement,n)){if(r!==null&&jl(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ma(n,i);var s=ma(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,sn=null,Fs=null,ir=null,$s=!1;function ga(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$s||sn==null||sn!==Po(r)||(r=sn,"selectionStart"in r&&jl(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}),ir&&Er(ir,r)||(ir=r,r=zo(Fs,"onSelect"),0an||(e.current=Ws[an],Ws[an]=null,an--)}function A(e,t){an++,Ws[an]=e.current,e.current=t}var Pt={},ue=Rt(Pt),me=Rt(!1),Gt=Pt;function Cn(e,t){var n=e.type.contextTypes;if(!n)return Pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ge(e){return e=e.childContextTypes,e!=null}function $o(){U(me),U(ue)}function ka(e,t,n){if(ue.current!==Pt)throw Error(v(168));A(ue,t),A(me,n)}function nd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(v(108,Ty(e)||"Unknown",o));return V({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Gt=ue.current,A(ue,e),A(me,me.current),!0}function xa(e,t,n){var r=e.stateNode;if(!r)throw Error(v(169));n?(e=nd(e,t,Gt),r.__reactInternalMemoizedMergedChildContext=e,U(me),U(ue),A(ue,e)):U(me),A(me,n)}var Ze=null,hi=!1,Ki=!1;function rd(e){Ze===null?Ze=[e]:Ze.push(e)}function Bv(e){hi=!0,rd(e)}function Dt(){if(!Ki&&Ze!==null){Ki=!0;var e=0,t=z;try{var n=Ze;for(z=1;e>=s,o-=s,et=1<<32-Ue(t)+o|n<C?(Y=T,T=null):Y=T.sibling;var D=m(p,T,h[C],y);if(D===null){T===null&&(T=Y);break}e&&T&&D.alternate===null&&t(p,T),c=i(D,c,C),x===null?w=D:x.sibling=D,x=D,T=Y}if(C===h.length)return n(p,T),H&&zt(p,C),w;if(T===null){for(;CC?(Y=T,T=null):Y=T.sibling;var Me=m(p,T,D.value,y);if(Me===null){T===null&&(T=Y);break}e&&T&&Me.alternate===null&&t(p,T),c=i(Me,c,C),x===null?w=Me:x.sibling=Me,x=Me,T=Y}if(D.done)return n(p,T),H&&zt(p,C),w;if(T===null){for(;!D.done;C++,D=h.next())D=f(p,D.value,y),D!==null&&(c=i(D,c,C),x===null?w=D:x.sibling=D,x=D);return H&&zt(p,C),w}for(T=r(p,T);!D.done;C++,D=h.next())D=g(T,p,C,D.value,y),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?C:D.key),c=i(D,c,C),x===null?w=D:x.sibling=D,x=D);return e&&T.forEach(function($n){return t(p,$n)}),H&&zt(p,C),w}function R(p,c,h,y){if(typeof h=="object"&&h!==null&&h.type===rn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Xr:e:{for(var w=h.key,x=c;x!==null;){if(x.key===w){if(w=h.type,w===rn){if(x.tag===7){n(p,x.sibling),c=o(x,h.props.children),c.return=p,p=c;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ft&&Ra(w)===x.type){n(p,x.sibling),c=o(x,h.props),c.ref=Yn(p,x,h),c.return=p,p=c;break e}n(p,x);break}else t(p,x);x=x.sibling}h.type===rn?(c=Ht(h.props.children,p.mode,y,h.key),c.return=p,p=c):(y=xo(h.type,h.key,h.props,null,p.mode,y),y.ref=Yn(p,c,h),y.return=p,p=y)}return s(p);case nn:e:{for(x=h.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(p,c.sibling),c=o(c,h.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=ns(h,p.mode,y),c.return=p,p=c}return s(p);case ft:return x=h._init,R(p,c,x(h._payload),y)}if(Zn(h))return _(p,c,h,y);if(Hn(h))return S(p,c,h,y);so(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(p,c.sibling),c=o(c,h),c.return=p,p=c):(n(p,c),c=ts(h,p.mode,y),c.return=p,p=c),s(p)):n(p,c)}return R}var Pn=fd(!0),dd=fd(!1),jr={},Xe=Rt(jr),Tr=Rt(jr),Cr=Rt(jr);function jt(e){if(e===jr)throw Error(v(174));return e}function Kl(e,t){switch(A(Cr,t),A(Tr,e),A(Xe,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cs(t,e)}U(Xe),A(Xe,t)}function In(){U(Xe),U(Tr),U(Cr)}function pd(e){jt(Cr.current);var t=jt(Xe.current),n=Cs(t,e.type);t!==n&&(A(Tr,e),A(Xe,n))}function Xl(e){Tr.current===e&&(U(Xe),U(Tr))}var B=Rt(0);function Vo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xi=[];function ql(){for(var e=0;en?n:4,e(!0);var r=qi.transition;qi.transition={};try{e(!1),t()}finally{z=n,qi.transition=r}}function Id(){return Le().memoizedState}function Yv(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Od(e))Rd(t,n);else if(n=ld(e,t,n,r),n!==null){var o=ce();He(n,e,r,o),Dd(n,t,r)}}function Qv(e,t,n){var r=xt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Od(e))Rd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Be(l,s)){var u=t.interleaved;u===null?(o.next=o,Yl(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=ld(e,t,o,r),n!==null&&(o=ce(),He(n,e,r,o),Dd(n,t,r))}}function Od(e){var t=e.alternate;return e===W||t!==null&&t===W}function Rd(e,t){sr=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dl(e,n)}}var Yo={readContext:De,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},Kv={readContext:De,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:La,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,So(4194308,4,xd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return So(4194308,4,e,t)},useInsertionEffect:function(e,t){return So(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();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=Yv.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:Da,useDebugValue:tu,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Gv.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,o=Ve();if(H){if(n===void 0)throw Error(v(407));n=n()}else{if(n=t(),ee===null)throw Error(v(349));Qt&30||gd(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,La(vd.bind(null,r,i,e),[e]),r.flags|=2048,Ir(9,yd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ee.identifierPrefix;if(H){var n=tt,r=et;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ye]=t,e[xr]=r,Hd(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ps(n,r),n){case"dialog":j("cancel",e),j("close",e),o=r;break;case"iframe":case"object":case"embed":j("load",e),o=r;break;case"video":case"audio":for(o=0;oRn&&(t.flags|=128,r=!0,Qn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Vo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!H)return se(t),null}else 2*K()-i.renderingStartTime>Rn&&n!==1073741824&&(t.flags|=128,r=!0,Qn(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=K(),t.sibling=null,n=B.current,A(B,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(v(156,t.tag))}function n0(e,t){switch(Hl(t),t.tag){case 1:return ge(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return In(),U(me),U(ue),ql(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xl(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(v(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return In(),null;case 10:return Gl(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var uo=!1,le=!1,r0=typeof WeakSet=="function"?WeakSet:Set,E=null;function pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){G(e,t,r)}}var Ba=!1;function o0(e,t){if(As=Lo,e=Qf(),jl(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++a===o&&(l=s),m===i&&++d===r&&(u=s),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(js={focusedElem:e,selectionRange:n},Lo=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var S=_.memoizedProps,R=_.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:Fe(t.type,S),R);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(v(163))}}catch(y){G(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return _=Ba,Ba=!1,_}function lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tl(t,n,i)}o=o.next}while(o!==r)}}function yi(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 nl(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 Vd(e){var t=e.alternate;t!==null&&(e.alternate=null,Vd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[xr],delete t[Bs],delete t[Uv],delete t[Hv])),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 Gd(e){return e.tag===5||e.tag===3||e.tag===4}function Wa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gd(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 rl(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=Fo));else if(r!==4&&(e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function ol(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(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}var te=null,$e=!1;function at(e,t,n){for(n=n.child;n!==null;)Yd(e,t,n),n=n.sibling}function Yd(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(ai,n)}catch{}switch(n.tag){case 5:le||pn(n,t);case 6:var r=te,o=$e;te=null,at(e,t,n),te=r,$e=o,te!==null&&($e?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&($e?(e=te,n=n.stateNode,e.nodeType===8?Qi(e.parentNode,n):e.nodeType===1&&Qi(e,n),_r(e)):Qi(te,n.stateNode));break;case 4:r=te,o=$e,te=n.stateNode.containerInfo,$e=!0,at(e,t,n),te=r,$e=o;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&tl(n,t,s),o=o.next}while(o!==r)}at(e,t,n);break;case 1:if(!le&&(pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){G(n,t,l)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,at(e,t,n),le=r):at(e,t,n);break;default:at(e,t,n)}}function Va(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new r0),t.forEach(function(r){var o=p0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s0(r/1960))-r,10e?16:e,yt===null)var r=!1;else{if(e=yt,yt=null,Xo=0,L&6)throw Error(v(331));var o=L;for(L|=4,E=e.current;E!==null;){var i=E,s=i.child;if(E.flags&16){var l=i.deletions;if(l!==null){for(var u=0;uK()-iu?Ut(e,0):ou|=n),ye(e,t)}function ep(e,t){t===0&&(e.mode&1?(t=br,br<<=1,!(br&130023424)&&(br=4194304)):t=1);var n=ce();e=st(e,t),e!==null&&(Fr(e,t,n),ye(e,n))}function d0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ep(e,n)}function p0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(v(314))}r!==null&&r.delete(t),ep(e,n)}var tp;tp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,e0(e,t,n);he=!!(e.flags&131072)}else he=!1,H&&t.flags&1048576&&od(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Eo(e,t),e=t.pendingProps;var o=Cn(t,ue.current);Sn(t,n),o=Zl(null,t,r,e,o,n);var i=bl();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(i=!0,Ao(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ql(t),o.updater=mi,t.stateNode=o,o._reactInternals=t,Ks(t,r,e,n),t=Js(null,t,r,!0,i,n)):(t.tag=0,H&&i&&Ul(t),ae(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Eo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=m0(r),e=Fe(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=ja(null,t,r,e,n);break e;case 11:t=$a(null,t,r,e,n);break e;case 14:t=Aa(null,t,r,Fe(r.type,e),n);break e}throw Error(v(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),ja(e,t,r,o,n);case 3:e:{if(Ad(t),e===null)throw Error(v(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ud(e,t),Wo(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=On(Error(v(423)),t),t=Ua(e,t,r,n,o);break e}else if(r!==o){o=On(Error(v(424)),t),t=Ua(e,t,r,n,o);break e}else for(Se=Et(t.stateNode.containerInfo.firstChild),we=t,H=!0,Ae=null,n=dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nn(),r===o){t=lt(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return pd(t),e===null&&Gs(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Us(r,o)?s=null:i!==null&&Us(r,i)&&(t.flags|=32),$d(e,t),ae(e,t,s,n),t.child;case 6:return e===null&&Gs(t),null;case 13:return jd(e,t,n);case 4:return Kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pn(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),$a(e,t,r,o,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,A(Ho,r._currentValue),r._currentValue=s,i!==null)if(Be(i.value,s)){if(i.children===o.children&&!me.current){t=lt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=rt(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ys(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(v(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ys(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ae(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sn(t,n),o=De(o),r=r(o),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,o=Fe(r,t.pendingProps),o=Fe(r.type,o),Aa(e,t,r,o,n);case 15:return zd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),Eo(e,t),t.tag=1,ge(r)?(e=!0,Ao(t)):e=!1,Sn(t,n),cd(t,r,o),Ks(t,r,o,n),Js(null,t,r,!0,e,n);case 19:return Ud(e,t,n);case 22:return Fd(e,t,n)}throw Error(v(156,t.tag))};function np(e,t){return Pf(e,t)}function h0(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 Ie(e,t,n,r){return new h0(e,t,n,r)}function au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m0(e){if(typeof e=="function")return au(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pl)return 11;if(e===Il)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=Ie(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 xo(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")au(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case rn:return Ht(n.children,o,i,t);case Nl:s=8,o|=8;break;case vs:return e=Ie(12,n,t,o|2),e.elementType=vs,e.lanes=i,e;case _s:return e=Ie(13,n,t,o),e.elementType=_s,e.lanes=i,e;case Ss:return e=Ie(19,n,t,o),e.elementType=Ss,e.lanes=i,e;case ff:return _i(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case af:s=10;break e;case cf:s=9;break e;case Pl:s=11;break e;case Il:s=14;break e;case ft:s=16,r=null;break e}throw Error(v(130,e==null?e:typeof e,""))}return t=Ie(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ht(e,t,n,r){return e=Ie(7,e,r,t),e.lanes=n,e}function _i(e,t,n,r){return e=Ie(22,e,r,t),e.elementType=ff,e.lanes=n,e.stateNode={isHidden:!1},e}function ts(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function ns(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g0(e,t,n,r,o){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=Fi(0),this.expirationTimes=Fi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cu(e,t,n,r,o,i,s,l,u){return e=new g0(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ie(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ql(i),e}function y0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sp)}catch(e){console.error(e)}}sp(),rf.exports=Te;var w0=rf.exports,k0,Za=w0;k0=Za.createRoot,Za.hydrateRoot;var lp={exports:{}},x0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",T0=x0,C0=T0;function up(){}function ap(){}ap.resetWarningCache=up;var N0=function(){function e(r,o,i,s,l,u){if(u!==C0){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}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:ap,resetWarningCache:up};return n.PropTypes=n,n};lp.exports=N0();var P0=lp.exports;const z0=ba(P0);export{z0 as P,Np as R,w0 as a,D0 as b,k0 as c,O0 as e,M0 as i,R0 as j,P0 as p,bo as r,L0 as s,fm as w}; diff --git a/assets/dist/assets/index.es-41cymvk1.js b/assets/dist/assets/index.es-41cymvk1.js deleted file mode 100644 index 89239f96..00000000 --- a/assets/dist/assets/index.es-41cymvk1.js +++ /dev/null @@ -1,18 +0,0 @@ -import{c as Ze,g as Ro}from"./_commonjsHelpers-4gQjN7DL.js";import{_ as Ga}from"./html2pdf-SF21G6Sk.js";import"./preload-helper-H-c3VWY_.js";var ft=function(a){return a&&a.Math===Math&&a},D=ft(typeof globalThis=="object"&&globalThis)||ft(typeof window=="object"&&window)||ft(typeof self=="object"&&self)||ft(typeof Ze=="object"&&Ze)||ft(typeof Ze=="object"&&Ze)||function(){return this}()||Function("return this")(),Ct={},L=function(a){try{return!!a()}catch{return!0}},Ol=L,le=!Ol(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Sl=L,br=!Sl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),El=br,Ht=Function.prototype.call,Q=El?Ht.bind(Ht):function(){return Ht.apply(Ht,arguments)},Io={},No={}.propertyIsEnumerable,Mo=Object.getOwnPropertyDescriptor,$l=Mo&&!No.call({1:2},1);Io.f=$l?function(e){var t=Mo(this,e);return!!t&&t.enumerable}:No;var Ti=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},_o=br,Vo=Function.prototype,Ha=Vo.call,wl=_o&&Vo.bind.bind(Ha,Ha),k=_o?wl:function(a){return function(){return Ha.apply(a,arguments)}},Do=k,Cl=Do({}.toString),Al=Do("".slice),Be=function(a){return Al(Cl(a),8,-1)},Pl=k,Rl=L,Il=Be,Kr=Object,Nl=Pl("".split),Lo=Rl(function(){return!Kr("z").propertyIsEnumerable(0)})?function(a){return Il(a)==="String"?Nl(a,""):Kr(a)}:Kr,Fe=function(a){return a==null},Ml=Fe,_l=TypeError,ge=function(a){if(Ml(a))throw new _l("Can't call method on "+a);return a},Vl=Lo,Dl=ge,At=function(a){return Vl(Dl(a))},Zr=typeof document=="object"&&document.all,B=typeof Zr>"u"&&Zr!==void 0?function(a){return typeof a=="function"||a===Zr}:function(a){return typeof a=="function"},Ll=B,de=function(a){return typeof a=="object"?a!==null:Ll(a)},Jr=D,kl=B,Bl=function(a){return kl(a)?a:void 0},je=function(a,e){return arguments.length<2?Bl(Jr[a]):Jr[a]&&Jr[a][e]},Fl=k,xr=Fl({}.isPrototypeOf),Tr=typeof navigator<"u"&&String(navigator.userAgent)||"",ko=D,ea=Tr,pn=ko.process,yn=ko.Deno,mn=pn&&pn.versions||yn&&yn.version,bn=mn&&mn.v8,ue,cr;bn&&(ue=bn.split("."),cr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!cr&&ea&&(ue=ea.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=ea.match(/Chrome\/(\d+)/),ue&&(cr=+ue[1])));var Oi=cr,xn=Oi,jl=L,Ul=D,zl=Ul.String,Bo=!!Object.getOwnPropertySymbols&&!jl(function(){var a=Symbol("symbol detection");return!zl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&xn&&xn<41}),Gl=Bo,Fo=Gl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Hl=je,Yl=B,Xl=xr,Wl=Fo,ql=Object,jo=Wl?function(a){return typeof a=="symbol"}:function(a){var e=Hl("Symbol");return Yl(e)&&Xl(e.prototype,ql(a))},Ql=String,Or=function(a){try{return Ql(a)}catch{return"Object"}},Kl=B,Zl=Or,Jl=TypeError,Te=function(a){if(Kl(a))return a;throw new Jl(Zl(a)+" is not a function")},eh=Te,th=Fe,ut=function(a,e){var t=a[e];return th(t)?void 0:eh(t)},ta=Q,ra=B,aa=de,rh=TypeError,ah=function(a,e){var t,r;if(e==="string"&&ra(t=a.toString)&&!aa(r=ta(t,a))||ra(t=a.valueOf)&&!aa(r=ta(t,a))||e!=="string"&&ra(t=a.toString)&&!aa(r=ta(t,a)))return r;throw new rh("Can't convert object to primitive value")},Uo={exports:{}},Tn=D,ih=Object.defineProperty,Si=function(a,e){try{ih(Tn,a,{value:e,configurable:!0,writable:!0})}catch{Tn[a]=e}return e},nh=D,sh=Si,On="__core-js_shared__",oh=nh[On]||sh(On,{}),Ei=oh,Sn=Ei;(Uo.exports=function(a,e){return Sn[a]||(Sn[a]=e!==void 0?e:{})})("versions",[]).push({version:"3.35.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"});var $i=Uo.exports,uh=ge,lh=Object,Sr=function(a){return lh(uh(a))},hh=k,vh=Sr,fh=hh({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return fh(vh(e),t)},ch=k,gh=0,dh=Math.random(),ph=ch(1 .toString),zo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+ph(++gh+dh,36)},yh=D,mh=$i,En=he,bh=zo,xh=Bo,Th=Fo,Je=yh.Symbol,ia=mh("wks"),Oh=Th?Je.for||Je:Je&&Je.withoutSetter||bh,G=function(a){return En(ia,a)||(ia[a]=xh&&En(Je,a)?Je[a]:Oh("Symbol."+a)),ia[a]},Sh=Q,$n=de,wn=jo,Eh=ut,$h=ah,wh=G,Ch=TypeError,Ah=wh("toPrimitive"),Ph=function(a,e){if(!$n(a)||wn(a))return a;var t=Eh(a,Ah),r;if(t){if(e===void 0&&(e="default"),r=Sh(t,a,e),!$n(r)||wn(r))return r;throw new Ch("Can't convert object to primitive value")}return e===void 0&&(e="number"),$h(a,e)},Rh=Ph,Ih=jo,Go=function(a){var e=Rh(a,"string");return Ih(e)?e:e+""},Nh=D,Cn=de,Ya=Nh.document,Mh=Cn(Ya)&&Cn(Ya.createElement),Er=function(a){return Mh?Ya.createElement(a):{}},_h=le,Vh=L,Dh=Er,Ho=!_h&&!Vh(function(){return Object.defineProperty(Dh("div"),"a",{get:function(){return 7}}).a!==7}),Lh=le,kh=Q,Bh=Io,Fh=Ti,jh=At,Uh=Go,zh=he,Gh=Ho,An=Object.getOwnPropertyDescriptor;Ct.f=Lh?An:function(e,t){if(e=jh(e),t=Uh(t),Gh)try{return An(e,t)}catch{}if(zh(e,t))return Fh(!kh(Bh.f,e,t),e[t])};var Oe={},Hh=le,Yh=L,Yo=Hh&&Yh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Xh=de,Wh=String,qh=TypeError,K=function(a){if(Xh(a))return a;throw new qh(Wh(a)+" is not an object")},Qh=le,Kh=Ho,Zh=Yo,Yt=K,Pn=Go,Jh=TypeError,na=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,sa="enumerable",oa="configurable",ua="writable";Oe.f=Qh?Zh?function(e,t,r){if(Yt(e),t=Pn(t),Yt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&ua in r&&!r[ua]){var i=ev(e,t);i&&i[ua]&&(e[t]=r.value,r={configurable:oa in r?r[oa]:i[oa],enumerable:sa in r?r[sa]:i[sa],writable:!1})}return na(e,t,r)}:na:function(e,t,r){if(Yt(e),t=Pn(t),Yt(r),Kh)try{return na(e,t,r)}catch{}if("get"in r||"set"in r)throw new Jh("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var tv=le,rv=Oe,av=Ti,Pt=tv?function(a,e,t){return rv.f(a,e,av(1,t))}:function(a,e,t){return a[e]=t,a},Xo={exports:{}},Xa=le,iv=he,Wo=Function.prototype,nv=Xa&&Object.getOwnPropertyDescriptor,wi=iv(Wo,"name"),sv=wi&&(function(){}).name==="something",ov=wi&&(!Xa||Xa&&nv(Wo,"name").configurable),$r={EXISTS:wi,PROPER:sv,CONFIGURABLE:ov},uv=k,lv=B,Wa=Ei,hv=uv(Function.toString);lv(Wa.inspectSource)||(Wa.inspectSource=function(a){return hv(a)});var Ci=Wa.inspectSource,vv=D,fv=B,Rn=vv.WeakMap,cv=fv(Rn)&&/native code/.test(String(Rn)),gv=$i,dv=zo,In=gv("keys"),Ai=function(a){return In[a]||(In[a]=dv(a))},Pi={},pv=cv,qo=D,yv=de,mv=Pt,la=he,ha=Ei,bv=Ai,xv=Pi,Nn="Object already initialized",qa=qo.TypeError,Tv=qo.WeakMap,gr,Et,dr,Ov=function(a){return dr(a)?Et(a):gr(a,{})},Sv=function(a){return function(e){var t;if(!yv(e)||(t=Et(e)).type!==a)throw new qa("Incompatible receiver, "+a+" required");return t}};if(pv||ha.state){var ce=ha.state||(ha.state=new Tv);ce.get=ce.get,ce.has=ce.has,ce.set=ce.set,gr=function(a,e){if(ce.has(a))throw new qa(Nn);return e.facade=a,ce.set(a,e),e},Et=function(a){return ce.get(a)||{}},dr=function(a){return ce.has(a)}}else{var Ye=bv("state");xv[Ye]=!0,gr=function(a,e){if(la(a,Ye))throw new qa(Nn);return e.facade=a,mv(a,Ye,e),e},Et=function(a){return la(a,Ye)?a[Ye]:{}},dr=function(a){return la(a,Ye)}}var wr={set:gr,get:Et,has:dr,enforce:Ov,getterFor:Sv},Ri=k,Ev=L,$v=B,Xt=he,Qa=le,wv=$r.CONFIGURABLE,Cv=Ci,Qo=wr,Av=Qo.enforce,Pv=Qo.get,Mn=String,or=Object.defineProperty,Rv=Ri("".slice),Iv=Ri("".replace),Nv=Ri([].join),Mv=Qa&&!Ev(function(){return or(function(){},"length",{value:8}).length!==8}),_v=String(String).split("String"),Vv=Xo.exports=function(a,e,t){Rv(Mn(e),0,7)==="Symbol("&&(e="["+Iv(Mn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Xt(a,"name")||wv&&a.name!==e)&&(Qa?or(a,"name",{value:e,configurable:!0}):a.name=e),Mv&&t&&Xt(t,"arity")&&a.length!==t.arity&&or(a,"length",{value:t.arity});try{t&&Xt(t,"constructor")&&t.constructor?Qa&&or(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=Av(a);return Xt(r,"source")||(r.source=Nv(_v,typeof e=="string"?e:"")),a};Function.prototype.toString=Vv(function(){return $v(this)&&Pv(this).source||Cv(this)},"toString");var Ko=Xo.exports,Dv=B,Lv=Oe,kv=Ko,Bv=Si,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Dv(t)&&kv(t,n,r),r.global)i?a[e]=t:Bv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:Lv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},Zo={},Fv=Math.ceil,jv=Math.floor,Uv=Math.trunc||function(e){var t=+e;return(t>0?jv:Fv)(t)},zv=Uv,Cr=function(a){var e=+a;return e!==e||e===0?0:zv(e)},Gv=Cr,Hv=Math.max,Yv=Math.min,Xv=function(a,e){var t=Gv(a);return t<0?Hv(t+e,0):Yv(t,e)},Wv=Cr,qv=Math.min,lt=function(a){return a>0?qv(Wv(a),9007199254740991):0},Qv=lt,Ii=function(a){return Qv(a.length)},Kv=At,Zv=Xv,Jv=Ii,_n=function(a){return function(e,t,r){var i=Kv(e),n=Jv(i),o=Zv(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},Jo={includes:_n(!0),indexOf:_n(!1)},ef=k,va=he,tf=At,rf=Jo.indexOf,af=Pi,Vn=ef([].push),eu=function(a,e){var t=tf(a),r=0,i=[],n;for(n in t)!va(af,n)&&va(t,n)&&Vn(i,n);for(;e.length>r;)va(t,n=e[r++])&&(~rf(i,n)||Vn(i,n));return i},Ni=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nf=eu,sf=Ni,of=sf.concat("length","prototype");Zo.f=Object.getOwnPropertyNames||function(e){return nf(e,of)};var tu={};tu.f=Object.getOwnPropertySymbols;var uf=je,lf=k,hf=Zo,vf=tu,ff=K,cf=lf([].concat),gf=uf("Reflect","ownKeys")||function(e){var t=hf.f(ff(e)),r=vf.f;return r?cf(t,r(e)):t},Dn=he,df=gf,pf=Ct,yf=Oe,mf=function(a,e,t){for(var r=df(e),i=yf.f,n=pf.f,o=0;of;f++)if(v=y(a[f]),v&&fs(gs,v))return v;return new hr(!1)}l=xd(a,h)}for(d=n?a.next:l.next;!(g=dd(d,l)).done;){try{v=y(g.value)}catch(x){cs(l,"throw",x)}if(typeof v=="object"&&v&&fs(gs,v))return v}return new hr(!1)},Sd=G,_u=Sd("iterator"),Vu=!1;try{var Ed=0,ds={next:function(){return{done:!!Ed++}},return:function(){Vu=!0}};ds[_u]=function(){return this},Array.from(ds,function(){throw 2})}catch{}var $d=function(a,e){try{if(!e&&!Vu)return!1}catch{return!1}var t=!1;try{var r={};r[_u]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},wd=Pr,Cd=$d,Ad=Mt.CONSTRUCTOR,Du=Ad||!Cd(function(a){wd.all(a).then(void 0,function(){})}),Pd=ee,Rd=Q,Id=Te,Nd=ht,Md=ki,_d=Mu,Vd=Du;Pd({target:"Promise",stat:!0,forced:Vd},{all:function(e){var t=this,r=Nd.f(t),i=r.resolve,n=r.reject,o=Md(function(){var s=Id(t.resolve),u=[],l=0,h=1;_d(e,function(f){var c=l++,v=!1;h++,Rd(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Dd=ee,Ld=Mt.CONSTRUCTOR,ii=Pr,kd=je,Bd=B,Fd=Ue,ps=ii&&ii.prototype;Dd({target:"Promise",proto:!0,forced:Ld,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Bd(ii)){var ys=kd("Promise").prototype.catch;ps.catch!==ys&&Fd(ps,"catch",ys,{unsafe:!0})}var jd=ee,Ud=Q,zd=Te,Gd=ht,Hd=ki,Yd=Mu,Xd=Du;jd({target:"Promise",stat:!0,forced:Xd},{race:function(e){var t=this,r=Gd.f(t),i=r.reject,n=Hd(function(){var o=zd(t.resolve);Yd(e,function(s){Ud(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Wd=ee,qd=ht,Qd=Mt.CONSTRUCTOR;Wd({target:"Promise",stat:!0,forced:Qd},{reject:function(e){var t=qd.f(this),r=t.reject;return r(e),t.promise}});var Kd=K,Zd=de,Jd=ht,ep=function(a,e){if(Kd(a),Zd(e)&&e.constructor===a)return e;var t=Jd.f(a),r=t.resolve;return r(e),t.promise},tp=ee,rp=je,ap=Mt.CONSTRUCTOR,ip=ep;rp("Promise");tp({target:"Promise",stat:!0,forced:ap},{resolve:function(e){return ip(this,e)}});function ms(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){t(l);return}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){ms(n,r,i,o,s,"next",u)}function s(u){ms(n,r,i,o,s,"throw",u)}o(void 0)})}}var np=Mi,sp=String,pe=function(a){if(np(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return sp(a)},op=K,Lu=function(){var a=op(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},zi=L,up=D,Gi=up.RegExp,Hi=zi(function(){var a=Gi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),lp=Hi||zi(function(){return!Gi("a","y").sticky}),hp=Hi||zi(function(){var a=Gi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),ku={BROKEN_CARET:hp,MISSED_STICKY:lp,UNSUPPORTED_Y:Hi},Bu={},vp=eu,fp=Ni,cp=Object.keys||function(e){return vp(e,fp)},gp=le,dp=Yo,pp=Oe,yp=K,mp=At,bp=cp;Bu.f=gp&&!dp?Object.defineProperties:function(e,t){yp(e);for(var r=mp(t),i=bp(t),n=i.length,o=0,s;n>o;)pp.f(e,s=i[o++],r[s]);return e};var xp=K,Tp=Bu,bs=Ni,Op=Pi,Sp=vu,Ep=Er,$p=Ai,xs=">",Ts="<",ni="prototype",si="script",Fu=$p("IE_PROTO"),Ea=function(){},ju=function(a){return Ts+si+xs+a+Ts+"/"+si+xs},Os=function(a){a.write(ju("")),a.close();var e=a.parentWindow.Object;return a=null,e},wp=function(){var a=Ep("iframe"),e="java"+si+":",t;return a.style.display="none",Sp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(ju("document.F=Object")),t.close(),t.F},er,vr=function(){try{er=new ActiveXObject("htmlfile")}catch{}vr=typeof document<"u"?document.domain&&er?Os(er):wp():Os(er);for(var a=bs.length;a--;)delete vr[ni][bs[a]];return vr()};Op[Fu]=!0;var Yi=Object.create||function(e,t){var r;return e!==null?(Ea[ni]=xp(e),r=new Ea,Ea[ni]=null,r[Fu]=e):r=vr(),t===void 0?r:Tp.f(r,t)},Cp=L,Ap=D,Pp=Ap.RegExp,Rp=Cp(function(){var a=Pp(".","s");return!(a.dotAll&&a.test(` -`)&&a.flags==="s")}),Ip=L,Np=D,Mp=Np.RegExp,_p=Ip(function(){var a=Mp("(?b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$c")!=="bc"}),tt=Q,Ir=k,Vp=pe,Dp=Lu,Lp=ku,kp=$i,Bp=Yi,Fp=wr.get,jp=Rp,Up=_p,zp=kp("native-string-replace",String.prototype.replace),mr=RegExp.prototype.exec,oi=mr,Gp=Ir("".charAt),Hp=Ir("".indexOf),Yp=Ir("".replace),$a=Ir("".slice),ui=function(){var a=/a/,e=/b*/g;return tt(mr,a,"a"),tt(mr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Uu=Lp.BROKEN_CARET,li=/()??/.exec("")[1]!==void 0,Xp=ui||li||Uu||jp||Up;Xp&&(oi=function(e){var t=this,r=Fp(t),i=Vp(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=tt(oi,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=Uu&&t.sticky,g=tt(Dp,t),p=t.source,y=0,x=i;if(d&&(g=Yp(g,"y",""),Hp(g,"g")===-1&&(g+="g"),x=$a(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Gp(i,t.lastIndex-1)!==` -`)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),li&&(s=new RegExp("^"+p+"$(?!\\s)",g)),ui&&(u=t.lastIndex),l=tt(mr,d?s:t,x),d?l?(l.input=$a(l.input,y),l[0]=$a(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:ui&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),li&&l&&l.length>1&&tt(zp,l[0],s,function(){for(h=1;h=n?a?"":void 0:(o=Cs(r,i),o<55296||o>56319||i+1===n||(s=Cs(r,i+1))<56320||s>57343?a?ty(r,i):o:a?ry(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},ay={codeAt:As(!1),charAt:As(!0)},iy=ay.charAt,qi=function(a,e,t){return e+(t?iy(a,e).length:1)},Ps=Q,ny=K,sy=B,oy=Be,uy=Nr,ly=TypeError,Qi=function(a,e){var t=a.exec;if(sy(t)){var r=Ps(t,a,e);return r!==null&&ny(r),r}if(oy(a)==="RegExp")return Ps(uy,a,e);throw new ly("RegExp#exec called on incompatible receiver")},hy=Q,vy=Xi,fy=K,cy=Fe,gy=lt,Ca=pe,dy=ge,py=ut,yy=qi,Rs=Qi;vy("match",function(a,e,t){return[function(i){var n=dy(this),o=cy(i)?void 0:py(i,a);return o?hy(o,i,n):new RegExp(i)[a](Ca(n))},function(r){var i=fy(this),n=Ca(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return Rs(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=Rs(i,n))!==null;){var f=Ca(h[0]);u[l]=f,f===""&&(i.lastIndex=yy(n,gy(i.lastIndex),s)),l++}return l===0?null:u}]});var Ki=k,my=Sr,by=Math.floor,Aa=Ki("".charAt),xy=Ki("".replace),Pa=Ki("".slice),Ty=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oy=/\$([$&'`]|\d{1,2})/g,Sy=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=Oy;return i!==void 0&&(i=my(i),u=Ty),xy(n,u,function(l,h){var f;switch(Aa(h,0)){case"$":return"$";case"&":return a;case"`":return Pa(e,0,t);case"'":return Pa(e,o);case"<":f=i[Pa(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=by(c/10);return v===0?l:v<=s?r[v-1]===void 0?Aa(h,1):r[v-1]+Aa(h,1):l}f=r[c-1]}return f===void 0?"":f})},Ey=Vi,Is=Q,Mr=k,$y=Xi,wy=L,Cy=K,Ay=B,Py=Fe,Ry=Cr,Iy=lt,We=pe,Ny=ge,My=qi,_y=ut,Vy=Sy,Dy=Qi,Ly=G,hi=Ly("replace"),ky=Math.max,By=Math.min,Fy=Mr([].concat),Ra=Mr([].push),Ns=Mr("".indexOf),Ms=Mr("".slice),jy=function(a){return a===void 0?a:String(a)},Uy=function(){return"a".replace(/./,"$0")==="$0"}(),_s=function(){return/./[hi]?/./[hi]("a","$0")==="":!1}(),zy=!wy(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$")!=="7"});$y("replace",function(a,e,t){var r=_s?"$":"$0";return[function(n,o){var s=Ny(this),u=Py(n)?void 0:_y(n,hi);return u?Is(u,n,s,o):Is(e,We(s),n,o)},function(i,n){var o=Cy(this),s=We(i);if(typeof n=="string"&&Ns(n,r)===-1&&Ns(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=Ay(n);l||(n=We(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=Dy(o,s),!(v===null||(Ra(c,v),!h));){var d=We(v[0]);d===""&&(o.lastIndex=My(s,Iy(o.lastIndex),f))}for(var g="",p=0,y=0;y=p&&(g+=Ms(s,p,b)+$,p=b+x.length)}return g+Ms(s,p)}]},!zy||!Uy||_s);var Gy=de,Hy=Be,Yy=G,Xy=Yy("match"),Gu=function(a){var e;return Gy(a)&&((e=a[Xy])!==void 0?!!e:Hy(a)==="RegExp")},Wy=Gu,qy=TypeError,Zi=function(a){if(Wy(a))throw new qy("The method doesn't accept regular expressions");return a},Qy=G,Ky=Qy("match"),Ji=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[Ky]=!1,"/./"[a](e)}catch{}}return!1},Zy=ee,Jy=Nt,em=Ct.f,tm=lt,Vs=pe,rm=Zi,am=ge,im=Ji,nm=Jy("".slice),sm=Math.min,Hu=im("startsWith"),om=!Hu&&!!function(){var a=em(String.prototype,"startsWith");return a&&!a.writable}();Zy({target:"String",proto:!0,forced:!om&&!Hu},{startsWith:function(e){var t=Vs(am(this));rm(e);var r=tm(sm(arguments.length>1?arguments[1]:void 0,t.length)),i=Vs(e);return nm(t,r,r+i.length)===i}});var um=G,lm=Yi,hm=Oe.f,vi=um("unscopables"),fi=Array.prototype;fi[vi]===void 0&&hm(fi,vi,{configurable:!0,value:lm(null)});var vm=function(a){fi[vi][a]=!0},fm=L,cm=!fm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),gm=he,dm=B,pm=Sr,ym=Ai,mm=cm,Ds=ym("IE_PROTO"),ci=Object,bm=ci.prototype,Yu=mm?ci.getPrototypeOf:function(a){var e=pm(a);if(gm(e,Ds))return e[Ds];var t=e.constructor;return dm(t)&&e instanceof t?t.prototype:e instanceof ci?bm:null},xm=L,Tm=B,Om=de,Ls=Yu,Sm=Ue,Em=G,gi=Em("iterator"),Xu=!1,Le,Ia,Na;[].keys&&(Na=[].keys(),"next"in Na?(Ia=Ls(Ls(Na)),Ia!==Object.prototype&&(Le=Ia)):Xu=!0);var $m=!Om(Le)||xm(function(){var a={};return Le[gi].call(a)!==a});$m&&(Le={});Tm(Le[gi])||Sm(Le,gi,function(){return this});var Wu={IteratorPrototype:Le,BUGGY_SAFARI_ITERATORS:Xu},wm=Wu.IteratorPrototype,Cm=Yi,Am=Ti,Pm=Ar,Rm=_t,Im=function(){return this},Nm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=Cm(wm,{next:Am(+!r,t)}),Pm(a,i,!1),Rm[i]=Im,a},Mm=ee,_m=Q,qu=$r,Vm=B,Dm=Nm,ks=Yu,Bs=au,Lm=Ar,km=Pt,Ma=Ue,Bm=G,Fm=_t,Qu=Wu,jm=qu.PROPER,Um=qu.CONFIGURABLE,Fs=Qu.IteratorPrototype,tr=Qu.BUGGY_SAFARI_ITERATORS,gt=Bm("iterator"),js="keys",dt="values",Us="entries",zm=function(){return this},Gm=function(a,e,t,r,i,n,o){Dm(t,e,r);var s=function(y){if(y===i&&c)return c;if(!tr&&y&&y in h)return h[y];switch(y){case js:return function(){return new t(this,y)};case dt:return function(){return new t(this,y)};case Us:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[gt]||h["@@iterator"]||i&&h[i],c=!tr&&f||s(i),v=e==="Array"&&h.entries||f,d,g,p;if(v&&(d=ks(v.call(new a)),d!==Object.prototype&&d.next&&(ks(d)!==Fs&&(Bs?Bs(d,Fs):Vm(d[gt])||Ma(d,gt,zm)),Lm(d,u,!0))),jm&&i===dt&&f&&f.name!==dt&&(Um?km(h,"name",dt):(l=!0,c=function(){return _m(f,this)})),i)if(g={values:s(dt),keys:n?c:s(js),entries:s(Us)},o)for(p in g)(tr||l||!(p in h))&&Ma(h,p,g[p]);else Mm({target:e,proto:!0,forced:tr||l},g);return h[gt]!==c&&Ma(h,gt,c,{name:i}),Fm[e]=c,g},Hm=function(a,e){return{value:a,done:e}},Ym=At,en=vm,zs=_t,Ku=wr,Xm=Oe.f,Wm=Gm,rr=Hm,qm=le,Zu="Array Iterator",Qm=Ku.set,Km=Ku.getterFor(Zu),Zm=Wm(Array,"Array",function(a,e){Qm(this,{type:Zu,target:Ym(a),index:0,kind:e})},function(){var a=Km(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=void 0,rr(void 0,!0);switch(a.kind){case"keys":return rr(t,!1);case"values":return rr(e[t],!1)}return rr([t,e[t]],!1)},"values"),Gs=zs.Arguments=zs.Array;en("keys");en("values");en("entries");if(qm&&Gs.name!=="values")try{Xm(Gs,"name",{value:"values"})}catch{}var Jm={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},e0=Er,_a=e0("span").classList,Hs=_a&&_a.constructor&&_a.constructor.prototype,t0=Hs===Object.prototype?void 0:Hs,Ys=D,Ju=Jm,r0=t0,bt=Zm,Xs=Pt,a0=Ar,i0=G,Va=i0("iterator"),Da=bt.values,el=function(a,e){if(a){if(a[Va]!==Da)try{Xs(a,Va,Da)}catch{a[Va]=Da}if(a0(a,e,!0),Ju[e]){for(var t in bt)if(a[t]!==bt[t])try{Xs(a,t,bt[t])}catch{a[t]=bt[t]}}}};for(var La in Ju)el(Ys[La]&&Ys[La].prototype,La);el(r0,"DOMTokenList");function n0(a,e){if(Ga(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(Ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function s0(a){var e=n0(a,"string");return Ga(e)=="symbol"?e:String(e)}function tn(a,e,t){return e=s0(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var o0=Te,u0=Sr,l0=Lo,h0=Ii,v0=TypeError,Ws=function(a){return function(e,t,r,i){var n=u0(e),o=l0(n),s=h0(n);o0(t);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new v0("Reduce of empty array with no initial value")}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},f0={left:Ws(!1),right:Ws(!0)},c0=L,tl=function(a,e){var t=[][a];return!!t&&c0(function(){t.call(null,e||function(){return 1},1)})},g0=ee,d0=f0.left,p0=tl,qs=Oi,y0=It,m0=!y0&&qs>79&&qs<83,b0=m0||!p0("reduce");g0({target:"Array",proto:!0,forced:b0},{reduce:function(e){var t=arguments.length;return d0(this,e,t,t>1?arguments[1]:void 0)}});var x0=ee,T0=Nt,O0=Ct.f,S0=lt,Qs=pe,E0=Zi,$0=ge,w0=Ji,C0=T0("".slice),A0=Math.min,rl=w0("endsWith"),P0=!rl&&!!function(){var a=O0(String.prototype,"endsWith");return a&&!a.writable}();x0({target:"String",proto:!0,forced:!P0&&!rl},{endsWith:function(e){var t=Qs($0(this));E0(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:A0(S0(r),i),o=Qs(e);return C0(t,n-o.length,n)===o}});var R0=Vi,pt=Q,rn=k,I0=Xi,N0=K,M0=Fe,_0=Gu,Ks=ge,V0=lu,D0=qi,L0=lt,ka=pe,k0=ut,Zs=fu,Js=Qi,B0=Nr,F0=ku,j0=L,qe=F0.UNSUPPORTED_Y,eo=4294967295,U0=Math.min,al=[].push,z0=rn(/./.exec),Qe=rn(al),yt=rn("".slice),G0=!j0(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"});I0("split",function(a,e,t){var r;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?r=function(i,n){var o=ka(Ks(this)),s=n===void 0?eo:n>>>0;if(s===0)return[];if(i===void 0)return[o];if(!_0(i))return pt(e,o,i,s);for(var u=[],l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),h=0,f=new RegExp(i.source,l+"g"),c,v,d;(c=pt(B0,f,o))&&(v=f.lastIndex,!(v>h&&(Qe(u,yt(o,h,c.index)),c.length>1&&c.index=s)));)f.lastIndex===c.index&&f.lastIndex++;return h===o.length?(d||!z0(f,""))&&Qe(u,""):Qe(u,yt(o,h)),u.length>s?Zs(u,0,s):u}:"0".split(void 0,0).length?r=function(i,n){return i===void 0&&n===0?[]:pt(e,this,i,n)}:r=e,[function(n,o){var s=Ks(this),u=M0(n)?void 0:k0(n,a);return u?pt(u,n,s,o):pt(r,ka(s),n,o)},function(i,n){var o=N0(this),s=ka(i),u=t(r,o,s,n,r!==e);if(u.done)return u.value;var l=V0(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qe?"g":"y"),c=new l(qe?"^(?:"+o.source+")":o,f),v=n===void 0?eo:n>>>0;if(v===0)return[];if(s.length===0)return Js(c,s)===null?[s]:[];for(var d=0,g=0,p=[];g"u"?Ze:window,ar=["moz","webkit"],at="AnimationFrame",ot=be["request"+at],wt=be["cancel"+at]||be["cancelRequest"+at];for(var mt=0;!ot&&mt3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+g.toRGB()+" -> "+g.toHex());d.appendChild(p),d.appendChild(y),v.appendChild(d)}catch{}return v}};const pi=Ro(ob);var ub=ee,lb=Nt,hb=Jo.indexOf,vb=tl,yi=lb([].indexOf),nl=!!yi&&1/yi([1],1,-0)<0,fb=nl||!vb("indexOf");ub({target:"Array",proto:!0,forced:fb},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return nl?yi(this,e,t)||0:hb(this,e,t)}});var cb=ee,gb=k,db=Zi,pb=ge,no=pe,yb=Ji,mb=gb("".indexOf);cb({target:"String",proto:!0,forced:!yb("includes")},{includes:function(e){return!!~mb(no(pb(this)),no(db(e)),arguments.length>1?arguments[1]:void 0)}});var bb=Be,xb=Array.isArray||function(e){return bb(e)==="Array"},Tb=ee,Ob=k,Sb=xb,Eb=Ob([].reverse),so=[1,2];Tb({target:"Array",proto:!0,forced:String(so)===String(so.reverse())},{reverse:function(){return Sb(this)&&(this.length=this.length),Eb(this)}});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var sl=function(a,e){return(sl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)};function ol(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}sl(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function $b(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;ta.phi1&&(a.phi2-=2*Ee),a.sweepFlag===1&&a.phi2r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}var U,ye=Math.PI/180;function uo(a,e,t){return(1-t)*a+t*e}function lo(a,e,t,r){return a+Math.cos(r/180*Ee)*e+Math.sin(r/180*Ee)*t}function ho(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)O&&(v.sweepFlag=+!v.sweepFlag),v})}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}a.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),oe(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},a.TO_ABS=e,a.TO_REL=function(){return i(function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},a.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i(function(h,f,c,v,d){if(isNaN(v)&&!(h.type&m.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&m.HORIZ_LINE_TO&&(h.type=m.LINE_TO,h.y=h.relative?0:c),l&&h.type&m.VERT_LINE_TO&&(h.type=m.LINE_TO,h.x=h.relative?0:f),s&&h.type&m.CLOSE_PATH&&(h.type=m.LINE_TO,h.x=h.relative?v-f:v,h.y=h.relative?d-c:d),h.type&m.ARC&&(h.rX===0||h.rY===0)&&(h.type=m.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},a.NORMALIZE_ST=t,a.QT_TO_C=r,a.INFO=i,a.SANITIZE=function(s){s===void 0&&(s=0),oe(s);var u=NaN,l=NaN,h=NaN,f=NaN;return i(function(c,v,d,g,p){var y=Math.abs,x=!1,b=0,T=0;if(c.type&m.SMOOTH_CURVE_TO&&(b=isNaN(u)?0:v-u,T=isNaN(l)?0:d-l),c.type&(m.CURVE_TO|m.SMOOTH_CURVE_TO)?(u=c.relative?v+c.x2:c.x2,l=c.relative?d+c.y2:c.y2):(u=NaN,l=NaN),c.type&m.SMOOTH_QUAD_TO?(h=isNaN(h)?v:2*v-h,f=isNaN(f)?d:2*d-f):c.type&m.QUAD_TO?(h=c.relative?v+c.x1:c.x1,f=c.relative?d+c.y1:c.y2):(h=NaN,f=NaN),c.type&m.LINE_COMMANDS||c.type&m.ARC&&(c.rX===0||c.rY===0||!c.lArcFlag)||c.type&m.CURVE_TO||c.type&m.SMOOTH_CURVE_TO||c.type&m.QUAD_TO||c.type&m.SMOOTH_QUAD_TO){var $=c.x===void 0?0:c.relative?c.x:c.x-v,E=c.y===void 0?0:c.relative?c.y:c.y-d;b=isNaN(h)?c.x1===void 0?b:c.relative?c.x:c.x1-v:h-v,T=isNaN(f)?c.y1===void 0?T:c.relative?c.y:c.y1-d:f-d;var O=c.x2===void 0?0:c.relative?c.x:c.x2-v,C=c.y2===void 0?0:c.relative?c.y:c.y2-d;y($)<=s&&y(E)<=s&&y(b)<=s&&y(T)<=s&&y(O)<=s&&y(C)<=s&&(x=!0)}return c.type&m.CLOSE_PATH&&y(v-g)<=s&&y(d-p)<=s&&(x=!0),x?[]:c})},a.MATRIX=n,a.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),oe(s,u,l);var h=Math.sin(s),f=Math.cos(s);return n(f,h,-h,f,u-u*f+l*h,l-u*h-l*f)},a.TRANSLATE=function(s,u){return u===void 0&&(u=0),oe(s,u),n(1,0,0,1,s,u)},a.SCALE=function(s,u){return u===void 0&&(u=s),oe(s,u),n(s,0,0,u,0,0)},a.SKEW_X=function(s){return oe(s),n(1,0,Math.atan(s),1,0,0)},a.SKEW_Y=function(s){return oe(s),n(1,Math.atan(s),0,1,0,0)},a.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(-1,0,0,1,s,0)},a.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(1,0,0,-1,0,s)},a.A_TO_C=function(){return i(function(s,u,l){return m.ARC===s.type?function(h,f,c){var v,d,g,p;h.cX||Ua(h,f,c);for(var y=Math.min(h.phi1,h.phi2),x=Math.max(h.phi1,h.phi2)-y,b=Math.ceil(x/90),T=new Array(b),$=f,E=c,O=0;Of.maxX&&(f.maxX=M),Mf.maxY&&(f.maxY=M),MR&&p(vo(v,g.x1,g.x2,g.x,R));for(var T=0,$=ho(d,g.y1,g.y2,g.y);T<$.length;T++)0<(R=$[T])&&1>R&&y(vo(d,g.y1,g.y2,g.y,R))}if(g.type&m.ARC){p(g.x),y(g.y),Ua(g,v,d);for(var E=g.xRot/180*Math.PI,O=Math.cos(E)*g.rX,C=Math.sin(E)*g.rX,N=-Math.sin(E)*g.rY,_=Math.cos(E)*g.rY,F=g.phi1g.phi2?[g.phi2+360,g.phi1+360]:[g.phi2,g.phi1],P=F[0],Y=F[1],X=function(M){var Z=M[0],ne=M[1],fe=180*Math.atan2(ne,Z)/Math.PI;return feP&&RP&&Rh)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===Ab[this.curCommandType]&&(m.HORIZ_LINE_TO===this.curCommandType?n({type:m.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):m.VERT_LINE_TO===this.curCommandType?n({type:m.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===m.MOVE_TO||this.curCommandType===m.LINE_TO||this.curCommandType===m.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),m.MOVE_TO===this.curCommandType&&(this.curCommandType=m.LINE_TO)):this.curCommandType===m.CURVE_TO?n({type:m.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===m.SMOOTH_CURVE_TO?n({type:m.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.QUAD_TO?n({type:m.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.ARC&&n({type:m.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!wb(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=m.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=m.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=m.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=m.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=m.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=m.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=m.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=m.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=m.ARC,this.curCommandRelative=s==="a"}else r.push({type:m.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,r);n>$;if(o[b+3]=Fr,Fr!==0){var jr=255/Fr;o[b]=(M*T>>$)*jr,o[b+1]=(Z*T>>$)*jr,o[b+2]=(ne*T>>$)*jr}else o[b]=o[b+1]=o[b+2]=0;M-=W,Z-=H,ne-=q,fe-=R,W-=p.r,H-=p.g,q-=p.b,R-=p.a;var Ae=Br+n+1;Ae=x+(Ae>$,te>0?(te=255/te,o[re]=(Bt*T>>$)*te,o[re+1]=(Ft*T>>$)*te,o[re+2]=(jt*T>>$)*te):o[re]=o[re+1]=o[re+2]=0,Bt-=Ur,Ft-=zr,jt-=Gr,Ut-=Hr,Ur-=p.r,zr-=p.g,Gr-=p.b,Hr-=p.a,re=He+((re=Qr+h)0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:a,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return xe(function*(){var r=yield fetch(t),i=yield r.blob(),n=yield createImageBitmap(i);return n})()}};return(typeof DOMParser<"u"||typeof a>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function Wb(a){var{DOMParser:e,canvas:t,fetch:r}=a;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}var u2=Object.freeze({__proto__:null,offscreen:Xb,node:Wb});function vt(a){return a.replace(/(?!\u3000)\s+/gm," ")}function qb(a){return a.replace(/^[\n \t]+/,"")}function Qb(a){return a.replace(/[\n \t]+$/,"")}function ie(a){var e=(a||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var Kb=/^[A-Z-]+$/;function Zb(a){return Kb.test(a)?a.toLowerCase():a}function vl(a){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a)||[];return e[2]||e[3]||e[4]}function Jb(a){if(!a.startsWith("rgb"))return a;var e=3,t=a.replace(/\d+(\.\d+)?/g,(r,i)=>e--&&i?String(Math.round(parseFloat(r))):r);return t}var e1=/(\[[^\]]+\])/g,t1=/(#[^\s+>~.[:]+)/g,r1=/(\.[^\s+>~.[:]+)/g,a1=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,i1=/(:[\w-]+\([^)]*\))/gi,n1=/(:[^\s+>~.[:]+)/g,s1=/([^\s+>~.[:]+)/g;function _e(a,e){var t=e.exec(a);return t?[a.replace(e," "),t.length]:[a,0]}function o1(a){var e=[0,0,0],t=a.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=_e(t,e1),e[1]+=r,[t,r]=_e(t,t1),e[0]+=r,[t,r]=_e(t,r1),e[1]+=r,[t,r]=_e(t,a1),e[2]+=r,[t,r]=_e(t,i1),e[1]+=r,[t,r]=_e(t,n1),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=_e(t,s1),e[2]+=r,e.join("")}var it=1e-8;function yo(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2))}function bi(a,e){return(a[0]*e[0]+a[1]*e[1])/(yo(a)*yo(e))}function mo(a,e){return(a[0]*e[1]0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return vt(this.getString()).trim().split(e).map(i=>new S(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Jb(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*n.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?S.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=ie(e);return new V(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=ie(e);return new V(r,i)}static parsePath(e){for(var t=ie(e),r=t.length,i=[],n=0;n0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((n,o)=>{for(var{run:s}=n,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInPath&&t.isPointInPath(s,u)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInBox(s,u)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,n=new V(e,t),o=i.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var fl=typeof window<"u"?window:null,cl=typeof fetch<"u"?fetch.bind(void 0):null;class Vr{constructor(e){var{fetch:t=cl,window:r=fl}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new u1,this.mouse=new l1(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:n,desiredWidth:o,height:s,desiredHeight:u,minX:l=0,minY:h=0,refX:f,refY:c,clip:v=!1,clipX:d=0,clipY:g=0}=e,p=vt(i).replace(/^defer\s/,""),[y,x]=p.split(" "),b=y||"xMidYMid",T=x||"meet",$=n/o,E=s/u,O=Math.min($,E),C=Math.max($,E),N=o,_=u;T==="meet"&&(N*=O,_*=O),T==="slice"&&(N*=C,_*=C);var F=new S(t,"refX",f),P=new S(t,"refY",c),Y=F.hasValue()&&P.hasValue();if(Y&&r.translate(-O*F.getPixels("x"),-O*P.getPixels("y")),v){var X=O*d,z=O*g;r.beginPath(),r.moveTo(X,z),r.lineTo(n,z),r.lineTo(n,s),r.lineTo(X,s),r.closePath(),r.clip()}if(!Y){var W=T==="meet"&&O===E,H=T==="slice"&&C===E,q=T==="meet"&&O===$,R=T==="slice"&&C===$;b.startsWith("xMid")&&(W||H)&&r.translate(n/2-N/2,0),b.endsWith("YMid")&&(q||R)&&r.translate(0,s/2-_/2),b.startsWith("xMax")&&(W||H)&&r.translate(n-N,0),b.endsWith("YMax")&&(q||R)&&r.translate(0,s-_)}switch(!0){case b==="none":r.scale($,E);break;case T==="meet":r.scale(O,O);break;case T==="slice":r.scale(C,C);break}r.translate(-l,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:l,offsetX:h,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:c,mouse:v}=this,d=1e3/c;if(this.frameDuration=d,this.readyPromise=new Promise(b=>{this.resolveReady=b}),this.isReady()&&this.render(e,n,o,u,l,h,f),!!t){var g=Date.now(),p=g,y=0,x=()=>{g=Date.now(),y=g-p,y>=d&&(p=g-y%d,this.shouldUpdate(i,s)&&(this.render(e,n,o,u,l,h,f),v.runEvents())),this.intervalId=Fa(x)};r||v.start(),this.intervalId=Fa(x)}}stop(){this.intervalId&&(Fa.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((n,o)=>o.update(r)||n,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,n,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:l,viewPort:h,ctx:f,isFirstRender:c}=this,v=f.canvas;h.clear(),v.width&&v.height?h.setCurrent(v.width,v.height):h.setCurrent(u,l);var d=e.getStyle("width"),g=e.getStyle("height");!t&&(c||typeof i!="number"&&typeof n!="number")&&(d.hasValue()&&(v.width=d.getPixels("x"),v.style&&(v.style.width="".concat(v.width,"px"))),g.hasValue()&&(v.height=g.getPixels("y"),v.style&&(v.style.height="".concat(v.height,"px"))));var p=v.clientWidth||v.width,y=v.clientHeight||v.height;if(t&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),y=g.getPixels("y")),h.setCurrent(p,y),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof n=="number"){var x=ie(e.getAttribute("viewBox").getString()),b=0,T=0;if(typeof i=="number"){var $=e.getStyle("width");$.hasValue()?b=$.getPixels("x")/i:isNaN(x[2])||(b=x[2]/i)}if(typeof n=="number"){var E=e.getStyle("height");E.hasValue()?T=E.getPixels("y")/n:isNaN(x[3])||(T=x[3]/n)}b||(b=T),T||(T=b),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(n);var O=e.getStyle("transform",!0,!0);O.setValue("".concat(O.getString()," scale(").concat(1/b,", ").concat(1/T,")"))}r||f.clearRect(0,0,p,y),e.render(f),c&&(this.isFirstRender=!1)}}Vr.defaultWindow=fl;Vr.defaultFetch=cl;var{defaultFetch:h1}=Vr,v1=typeof DOMParser<"u"?DOMParser:null;class za{constructor(){var{fetch:e=h1,DOMParser:t=v1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return xe(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return xe(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}class f1{constructor(e,t){this.type="translate",this.point=null,this.point=V.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class c1{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=ie(t);this.angle=new S(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,n=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class g1{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=V.parseScale(t);(i.x===0||i.y===0)&&(i.x=it,i.y=it),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class gl{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ie(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,n=t.getPixels("x"),o=r.getPixels("y");e.translate(n,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-n,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,n=i[0],o=i[2],s=i[4],u=i[1],l=i[3],h=i[5],f=0,c=0,v=1,d=1/(n*(l*v-h*c)-o*(u*v-h*f)+s*(u*c-l*f)),g=t.getPixels("x"),p=r.getPixels("y");e.translate(g,p),e.transform(d*(l*v-h*c),d*(h*f-u*v),d*(s*c-o*v),d*(n*v-s*f),d*(o*h-s*l),d*(s*u-n*h)),e.translate(-g,-p)}applyToPoint(e){e.applyTransform(this.matrix)}}class dl extends gl{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new S(e,"angle",t)}}class d1 extends dl{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class p1 extends dl{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function y1(a){return vt(a).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function m1(a){var[e,t]=a.split("(");return[e.trim(),t.trim().replace(")","")]}class ke{constructor(e,t,r){this.document=e,this.transforms=[];var i=y1(t);i.forEach(n=>{if(n!=="none"){var[o,s]=m1(n),u=ke.transformTypes[o];typeof u<"u"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,n=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,n];return r.hasValue()?new ke(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var u=Zb(s.nodeName);this.attributes[u]=new S(e,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,l]=s.split(":").map(h=>h.trim());this.styles[u]=new S(e,u,l)}})}var{definitions:n}=e,o=this.getAttribute("id");o.hasValue()&&(n[o.getString()]||(n[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=e.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new S(this.document,e,"");return this.attributes[e]=i,i}return r||S.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return S.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var n=this.getAttribute(e);if(n!=null&&n.hasValue())return this.styles[e]=n,n;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var u=new S(this.document,e,"");return this.styles[e]=u,u}return i||S.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=ke.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof I?e:this.document.createElement(e);t.parent=this,I.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(n=>".".concat(n)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],n=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),n>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=n)}}}removeStyles(e,t){var r=t.reduce((i,n)=>{var o=e.getStyle(n);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[n,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,n]=r;e.getStyle(i,!0).setValue(n)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}I.ignoreChildTypes=["title"];class b1 extends I{constructor(e,t,r){super(e,t,r)}}function x1(a){var e=a.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function T1(a){return typeof process>"u"?a:a.trim().split(",").map(x1).join(",")}function O1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function S1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class J{constructor(e,t,r,i,n,o){var s=o?typeof o=="string"?J.parse(o):o:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",n="",o="",s="",u=vt(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(h=>{switch(!0){case(!l.fontStyle&&J.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&J.variants.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&J.weights.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([o]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new J(r,i,n,o,s,t)}toString(){return[O1(this.fontStyle),this.fontVariant,S1(this.fontWeight),this.fontSize,T1(this.fontFamily)].join(" ").trim()}}J.styles="normal|italic|oblique|inherit";J.variants="normal|small-caps|inherit";J.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class ve{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:n}=e;this.addPoint(t,r),this.addPoint(i,n)}}sumCubic(e,t,r,i,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*n}bezierCurveAdd(e,t,r,i,n){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*n,u=3*r-3*t;if(s===0){if(o===0)return;var l=-u/o;0=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new V(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==m.CURVE_TO&&e!==m.SMOOTH_CURVE_TO&&e!==m.QUAD_TO&&e!==m.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:n}}=this,o=new V(2*t-i,2*r-n);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new S(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var f=n.getString();f!=="inherit"&&(e.strokeStyle=f==="none"?"rgba(0,0,0,0)":f)}if(o.hasValue()){var c=new S(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=c}var v=this.getStyle("stroke-width");if(v.hasValue()){var d=v.getPixels();e.lineWidth=d||it}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),x=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),p.hasValue()&&(e.lineJoin=p.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),x.hasValue()&&x.getString()!=="none"){var T=ie(x.getString());typeof e.setLineDash<"u"?e.setLineDash(T):typeof e.webkitLineDash<"u"?e.webkitLineDash=T:typeof e.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);var $=b.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=$:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=$:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=$)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var E=this.getStyle("font"),O=this.getStyle("font-style"),C=this.getStyle("font-variant"),N=this.getStyle("font-weight"),_=this.getStyle("font-size"),F=this.getStyle("font-family"),P=new J(O.getString(),C.getString(),N.getString(),_.hasValue()?"".concat(_.getPixels(!0),"px"):"",F.getString(),J.parse(E.getString(),e.font));O.setValue(P.fontStyle),C.setValue(P.fontVariant),N.setValue(P.fontWeight),_.setValue(P.fontSize),F.setValue(P.fontFamily),e.font=P.toString(),_.isPixels()&&(this.document.emSize=_.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class A extends ze{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new w(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new ve;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case w.MOVE_TO:this.pathM(e,r);break;case w.LINE_TO:this.pathL(e,r);break;case w.HORIZ_LINE_TO:this.pathH(e,r);break;case w.VERT_LINE_TO:this.pathV(e,r);break;case w.CURVE_TO:this.pathC(e,r);break;case w.SMOOTH_CURVE_TO:this.pathS(e,r);break;case w.QUAD_TO:this.pathQ(e,r);break;case w.SMOOTH_QUAD_TO:this.pathT(e,r);break;case w.ARC:this.pathA(e,r);break;case w.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((n,o)=>[n,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=r[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var f=o.getDefinition(),c=1;c1&&(i*=Math.sqrt(c),n*=Math.sqrt(c));var v=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2))/(Math.pow(i,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2)));isNaN(v)&&(v=0);var d=new V(v*i*f.y/n,v*-n*f.x/i),g=new V((t.x+h.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+h.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),p=mo([1,0],[(f.x-d.x)/i,(f.y-d.y)/n]),y=[(f.x-d.x)/i,(f.y-d.y)/n],x=[(-f.x-d.x)/i,(-f.y-d.y)/n],b=mo(y,x);return bi(y,x)<=-1&&(b=Math.PI),bi(y,x)>=1&&(b=0),{currentPoint:h,rX:i,rY:n,sweepFlag:u,xAxisRotation:l,centp:g,a1:p,ad:b}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:f}=A.pathA(r),c=1-s?1:-1,v=h+c*(f/2),d=new V(l.x+n*Math.cos(v),l.y+o*Math.sin(v));if(r.addMarkerAngle(d,v-c*Math.PI/2),r.addMarkerAngle(i,v-c*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(h)&&!isNaN(f)){var g=n>o?n:o,p=n>o?1:n/o,y=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(p,y),e.arc(0,0,g,h,h+f,!!(1-s)),e.scale(1/p,1/y),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){A.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class pl extends A{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Ce extends ze{constructor(e,t,r){super(e,t,new.target===Ce?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,r=J.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new ve(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],n=null;if(e.isArabic){var o=t.length,s=t[r-1],u=t[r+1],l="isolated";if((r===0||s===" ")&&r0&&s!==" "&&r0&&s!==" "&&(r===o-1||u===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var h=e.glyphs[i];n=h instanceof pl?h:h[l]}}else n=e.glyphs[i];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),n=r.length-1,o=vt(t.textContent||"");return i===0&&(o=qb(o)),i===n&&(o=Qb(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=J.parse(t.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),h=u/o,f=n.isRTL?i.split("").reverse().join(""):i,c=ie(r.getAttribute("dx").getString()),v=f.length,d=0;d=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var n=r.children[i];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),f=!!h&&h.isRTL;i===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var c=n.measureText(e);return f&&(t.x-=c),o.hasValue()?(t.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(t.x+=u.getPixels("x")),n.x=t.x),t.x=n.x,f||(t.x+=c),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+c),t.maxX=Math.max(t.maxX,n.x,n.x+c),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,r,i){var n=r.children[i];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=t.getChildBoundingBox(e,t,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,t,r,i){var n=r.children[i];n.render(e),n.children.forEach((o,s)=>{t.renderChild(e,t,n,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=ie(r.getAttribute("dx").getString()),u=o.length,l=0,h=0;h0?"":this.getTextFromNode()}getText(){return this.text}}class E1 extends Dr{constructor(){super(...arguments),this.type="textNode"}}class Vt extends ze{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:n}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new S(r,"fontSize",J.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),f=this.getAttribute("refY"),c=this.getAttribute("viewBox"),v=c.hasValue()?ie(c.getString()):null,d=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",g=0,p=0,y=0,x=0;v&&(g=v[0],p=v[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=g,x=p,g=0,p=0)),i.viewPort.setCurrent(u,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),v&&(u=v[2],l=v[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:l,minX:g,minY:p,refX:h.getValue(),refY:f.getValue(),clip:d,clipX:y,clipY:x}),v&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),l=n.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),n.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||t)),s.hasValue()){var f=this.getStyle("width"),c=this.getStyle("height");f.hasValue()&&f.setValue("".concat(e,"px")),c.hasValue()&&c.setValue("".concat(t,"px"))}}}class yl extends A{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,i/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&i>0&&(e.moveTo(t+u,r),e.lineTo(t+i-u,r),e.bezierCurveTo(t+i-u+h*u,r,t+i,r+l-h*l,t+i,r+l),e.lineTo(t+i,r+n-l),e.bezierCurveTo(t+i,r+n-l+h*l,t+i-u+h*u,r+n,t+i-u,r+n),e.lineTo(t+u,r+n),e.bezierCurveTo(t+u-h*u,r+n,t,r+n-l+h*l,t,r+n-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-h*l,t+u-h*u,r,t+u,r),e.closePath())}return new ve(t,r,t+i,r+n)}getMarkers(){return null}}class $1 extends A{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new ve(t-i,r-i,t+i,r+i)}getMarkers(){return null}}class w1 extends A{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(n+r,o),e.bezierCurveTo(n+r,o+t*i,n+t*r,o+i,n,o+i),e.bezierCurveTo(n-t*r,o+i,n-r,o+t*i,n-r,o),e.bezierCurveTo(n-r,o-t*i,n-t*r,o-i,n,o-i),e.bezierCurveTo(n+t*r,o-i,n+r,o-t*i,n+r,o),e.closePath()),new ve(n-r,o-i,n+r,o+i)}getMarkers(){return null}}class C1 extends A{constructor(){super(...arguments),this.type="line"}getPoints(){return[new V(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new V(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,n)),new ve(t,r,i,n)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class ml extends A{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=V.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,n=new ve(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,n)=>{n!==t&&r.push([i,i.angleTo(e[n+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class A1 extends ml{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}class P1 extends I{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new Vt(this.document,null);o.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new S(this.document,"width","".concat(i,"px")),o.attributes.height=new S(this.document,"height","".concat(n,"px")),o.attributes.transform=new S(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new S(this.document,"x",f*s.width),o.attributes.y=new S(this.document,"y",c*s.height),o.render(u),u.restore();var v=e.createPattern(s,"repeat");return v}}class R1 extends I{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:n}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,n),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new Vt(this.document,null);u.type=this.type,u.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new S(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new S(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new S(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new S(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new S(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new S(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new S(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-r),e.translate(-i,-n)}}}class I1 extends I{constructor(){super(...arguments),this.type="defs"}render(){}}class nn extends ze{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new ve;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}class bl extends I{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(p=>{o.addColorStop(p.offset,this.addParentOpacity(r,p.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,f=new yl(s,null);f.attributes.x=new S(s,"x",-u/3),f.attributes.y=new S(s,"y",-u/3),f.attributes.width=new S(s,"width",u),f.attributes.height=new S(s,"height",u);var c=new nn(s,null);c.attributes.transform=new S(s,"transform",this.getAttribute("gradientTransform").getValue()),c.children=[f];var v=new Vt(s,null);v.attributes.x=new S(s,"x",0),v.attributes.y=new S(s,"y",0),v.attributes.width=new S(s,"width",h.width),v.attributes.height=new S(s,"height",h.height),v.children=[c];var d=s.createCanvas(h.width,h.height),g=d.getContext("2d");return g.fillStyle=o,v.render(g),g.createPattern(d,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new S(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}class N1 extends bl{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}}class M1 extends bl{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}}class _1 extends I{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=i,this.color=o.getColor()}}class sn extends I{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new S(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin{var l=n[u];return s+(l-s)*e}).join(" ");return o}}class L1 extends I{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:n}=this;for(var o of n)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class k1 extends I{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class B1 extends A{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class F1 extends Ce{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class j1 extends Ce{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,n=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:n}=t.screen,o=new S(t,"fontSize",J.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new ve(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new nn(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function wo(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function ir(a){for(var e=1;e{var{type:i,points:n}=r;switch(i){case w.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case w.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case w.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case w.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case w.ARC:{var[o,s,u,l,h,f,c,v]=n,d=u>l?u:l,g=u>l?1:u/l,p=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(c),e.scale(g,p),e.arc(0,0,d,h,h+f,!!(1-v)),e.scale(1/g,1/p),e.rotate(-c),e.translate(-o,-s));break}case w.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:f}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(f,0,0),e.strokeStyle&&e.strokeText(f,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(u.x,u.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,n,o,s,u,l){var h=o,f=this.measureText(e,u);u===" "&&t==="justify"&&r-1&&(h+=this.getLetterSpacingAt(l));var c=this.textHeight/20,v=this.getEquidistantPointOnPath(h,c,0),d=this.getEquidistantPointOnPath(h+f,c,0),g={p0:v,p1:d},p=v&&d?Math.atan2(d.y-v.y,d.x-v.x):0;if(s){var y=Math.cos(Math.PI/2+p)*s,x=Math.cos(-p)*s;g.p0=ir(ir({},v),{},{x:v.x+y,y:v.y+x}),g.p1=ir(ir({},d),{},{x:d.x+y,y:d.y+x})}return h+=f,{offset:h,segment:g,rotation:p}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(e,i);return r.set(i,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(T=>T.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var f=[],c=t.length;this.letterSpacingCache=f;for(var v=0;vE===0?0:T+$||0,0),g=this.measureText(e),p=Math.max(g+d,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),x=this.getStyle("startOffset").getNumber(0)*y,b=0;(s==="middle"||s==="center")&&(b=-p/2),(s==="end"||s==="right")&&(b=-p),b+=x,r.forEach((T,$)=>{var{offset:E,segment:O,rotation:C}=this.findSegmentToFitChar(e,s,p,y,i,b,o,T,$);b=E,!(!O.p0||!O.p1)&&this.glyphInfo.push({text:r[$],p0:O.p0,p1:O.p1,rotation:C})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,l=[];switch(s.type){case w.MOVE_TO:this.pathM(r,l);break;case w.LINE_TO:u=this.pathL(r,l);break;case w.HORIZ_LINE_TO:u=this.pathH(r,l);break;case w.VERT_LINE_TO:u=this.pathV(r,l);break;case w.CURVE_TO:this.pathC(r,l);break;case w.SMOOTH_CURVE_TO:u=this.pathS(r,l);break;case w.QUAD_TO:this.pathQ(r,l);break;case w.SMOOTH_QUAD_TO:u=this.pathT(r,l);break;case w.ARC:l=this.pathA(r);break;case w.CLOSE_PATH:A.pathZ(r);break}s.type!==w.CLOSE_PATH?t.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):t.push({type:w.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=A.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=A.pathL(e).point;return t.push(r,i),w.LINE_TO}pathH(e,t){var{x:r,y:i}=A.pathH(e).point;return t.push(r,i),w.LINE_TO}pathV(e,t){var{x:r,y:i}=A.pathV(e).point;return t.push(r,i),w.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathC(e);t.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathS(e);return t.push(r.x,r.y,i.x,i.y,n.x,n.y),w.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=A.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=A.pathT(e);return t.push(r.x,r.y,i.x,i.y),w.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:n,centp:o,a1:s,ad:u}=A.pathA(e);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,t,r,s,u,n,i]}calcLength(e,t,r,i){var n=0,o=null,s=null,u=0;switch(r){case w.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case w.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,t,i[0],i[1],i[2],i[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.ARC:{n=0;var l=i[4],h=i[5],f=i[4]+h,c=Math.PI/180;if(Math.abs(l-f)f;u-=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+c;u5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(n-r)/(i-t+it),l=Math.sqrt(e*e/(1+u*u));it)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&u>f)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case w.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case w.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,n,o,s,u,l){var h=u*bo(e)+o*xo(e)+i*To(e)+t*Oo(e),f=l*bo(e)+s*xo(e)+n*To(e)+r*Oo(e);return{x:h,y:f}}getPointOnQuadraticBezier(e,t,r,i,n,o,s){var u=o*So(e)+i*Eo(e)+t*$o(e),l=s*So(e)+n*Eo(e)+r*$o(e);return{x:u,y:l}}getPointOnEllipticalArc(e,t,r,i,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:t+(l.x*u+l.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,n=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var z1=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class G1 extends ze{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(e){var t=this;return xe(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return xe(function*(){var r=z1.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var n=yield t.document.fetch(e),o=yield n.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new ve(e,t,e+r,t+i)}}class H1 extends ze{constructor(){super(...arguments),this.type="symbol"}render(e){}}class Y1{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return xe(function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(t),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}class xl extends I{constructor(e,t,r){super(e,t,r),this.type="style";var i=vt(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),l=u[0].split(","),h=u[1].split(";");l.forEach(f=>{var c=f.trim();if(c){var v=e.styles[c]||{};if(h.forEach(p=>{var y=p.indexOf(":"),x=p.substr(0,y).trim(),b=p.substr(y+1,p.length-y).trim();x&&b&&(v[x]=new S(e,x,b))}),e.styles[c]=v,e.stylesSpecificity[c]=o1(c),c==="@font-face"){var d=v["font-family"].getString().replace(/"|'/g,""),g=v.src.getString().split(",");g.forEach(p=>{if(p.indexOf('format("svg")')>0){var y=vl(p);y&&new Y1(e).load(d,y)}})}}})}})}}xl.parseExternalUrl=vl;class X1 extends ze{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new Vt(t,null),i.attributes.viewBox=new S(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new S(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new S(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new S(t,"opacity",this.calculateOpacity())),i.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new S(t,"width",n.getString())),o.hasValue()&&(i.attributes.height=new S(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return ke.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function nr(a,e,t,r,i,n){return a[t*r*4+e*4+n]}function sr(a,e,t,r,i,n,o){a[t*r*4+e*4+n]=o}function j(a,e,t){var r=a[e];return r*t}function me(a,e,t,r){return e+Math.cos(a)*t+Math.sin(a)*r}class Tl extends I{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=ie(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[me(o,.213,.787,-.213),me(o,.715,-.715,-.715),me(o,.072,-.072,.928),0,0,me(o,.213,-.213,.143),me(o,.715,.285,.14),me(o,.072,-.072,-.283),0,0,me(o,.213,-.213,-.787),me(o,.715,-.715,.715),me(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,i,n),l=0;l{u.addBoundingBox(d.getBoundingBox(e))}),i=Math.floor(u.x1),n=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var l=this.removeStyles(t,Lr.ignoreStyles),h=r.createCanvas(i+o,n+s),f=h.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new Tl(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+o,n+s);var c=r.createCanvas(i+o,n+s),v=c.getContext("2d");r.screen.setDefaults(v),t.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=f.createPattern(h,"no-repeat"),v.fillRect(0,0,i+o,n+s),e.fillStyle=v.createPattern(c,"no-repeat"),e.fillRect(0,0,i+o,n+s),this.restoreStyles(t,l)}render(e){}}Lr.ignoreStyles=["mask","transform","clip-path"];var Co=()=>{};class W1 extends I{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:n}=e;r&&(r.beginPath=Co,r.closePath=Co),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=ke.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=n)}render(e){}}class kr extends I{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,n=t.getBoundingBox(e);if(n){var o=0,s=0;i.forEach(y=>{var x=y.extraFilterDistance||0;o=Math.max(o,x),s=Math.max(s,x)});var u=Math.floor(n.width),l=Math.floor(n.height),h=u+2*o,f=l+2*s;if(!(h<1||f<1)){var c=Math.floor(n.x),v=Math.floor(n.y),d=this.removeStyles(t,kr.ignoreStyles),g=r.createCanvas(h,f),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-c+o,-v+s),t.render(p),i.forEach(y=>{typeof y.apply=="function"&&y.apply(p,0,0,h,f)}),e.drawImage(g,0,0,h,f,c-o,v-s,h,f),this.restoreStyles(t,d)}}}render(e){}}kr.ignoreStyles=["filter","transform","clip-path"];class q1 extends I{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,n){}}class Q1 extends I{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,n){}}class K1 extends I{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,n){}}class Z1 extends I{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),Hb(l,t,r,i,n,s),u&&u.removeChild(l)}}class J1 extends I{constructor(){super(...arguments),this.type="title"}}class e2 extends I{constructor(){super(...arguments),this.type="desc"}}var t2={svg:Vt,rect:yl,circle:$1,ellipse:w1,line:C1,polyline:ml,polygon:A1,path:A,pattern:P1,marker:R1,defs:I1,linearGradient:N1,radialGradient:M1,stop:_1,animate:sn,animateColor:V1,animateTransform:D1,font:L1,"font-face":k1,"missing-glyph":B1,glyph:pl,text:Ce,tspan:Dr,tref:F1,a:j1,textPath:U1,image:G1,g:nn,symbol:H1,style:xl,use:X1,mask:Lr,clipPath:W1,filter:kr,feDropShadow:q1,feMorphology:Q1,feComposite:K1,feColorMatrix:Tl,feGaussianBlur:Z1,title:J1,desc:e2};function Ao(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function r2(a){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(n,o,s,u,l)=>{i(l)},t.src=a})}),xi.apply(this,arguments)}class $e{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=$e.createCanvas,createImage:n=$e.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=$e.elementTypes[t];return typeof r<"u"?new r(this,e):new b1(this,e)}createTextNode(e){return new E1(this,e)}setViewBox(e){this.screen.setViewBox(r2({document:this},e))}}$e.createCanvas=a2;$e.createImage=i2;$e.elementTypes=t2;function Po(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function Ve(a){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new za(r),this.screen=new Vr(e,r),this.options=r;var i=new $e(this,r),n=i.createDocumentElement(t);this.document=i,this.documentElement=n}static from(e,t){var r=arguments;return xe(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},n=new za(i),o=yield n.parse(t);return new Tt(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new za(r),n=i.parseFromString(t);return new Tt(e,n,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Tt.from(e,t,Ve(Ve({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Tt.fromString(e,t,Ve(Ve({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return xe(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(Ve({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,Ve(Ve({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}export{j1 as AElement,V1 as AnimateColorElement,sn as AnimateElement,D1 as AnimateTransformElement,ve as BoundingBox,bo as CB1,xo as CB2,To as CB3,Oo as CB4,Tt as Canvg,$1 as CircleElement,W1 as ClipPathElement,I1 as DefsElement,e2 as DescElement,$e as Document,I as Element,w1 as EllipseElement,Tl as FeColorMatrixElement,K1 as FeCompositeElement,q1 as FeDropShadowElement,Z1 as FeGaussianBlurElement,Q1 as FeMorphologyElement,kr as FilterElement,J as Font,L1 as FontElement,k1 as FontFaceElement,nn as GElement,pl as GlyphElement,bl as GradientElement,G1 as ImageElement,C1 as LineElement,N1 as LinearGradientElement,R1 as MarkerElement,Lr as MaskElement,gl as Matrix,B1 as MissingGlyphElement,l1 as Mouse,it as PSEUDO_ZERO,za as Parser,A as PathElement,w as PathParser,P1 as PatternElement,V as Point,A1 as PolygonElement,ml as PolylineElement,S as Property,So as QB1,Eo as QB2,$o as QB3,M1 as RadialGradientElement,yl as RectElement,ze as RenderedElement,c1 as Rotate,Vt as SVGElement,Y1 as SVGFontLoader,g1 as Scale,Vr as Screen,dl as Skew,d1 as SkewX,p1 as SkewY,_1 as StopElement,xl as StyleElement,H1 as SymbolElement,F1 as TRefElement,Dr as TSpanElement,Ce as TextElement,U1 as TextPathElement,J1 as TitleElement,ke as Transform,f1 as Translate,b1 as UnknownElement,X1 as UseElement,u1 as ViewPort,vt as compressSpaces,Tt as default,o1 as getSelectorSpecificity,Zb as normalizeAttributeName,Jb as normalizeColor,vl as parseExternalUrl,u2 as presets,ie as toNumbers,qb as trimLeft,Qb as trimRight,yo as vectorMagnitude,mo as vectorsAngle,bi as vectorsRatio}; diff --git a/assets/dist/assets/index.es-DMTorwo1.js b/assets/dist/assets/index.es-DMTorwo1.js new file mode 100644 index 00000000..26add159 --- /dev/null +++ b/assets/dist/assets/index.es-DMTorwo1.js @@ -0,0 +1,18 @@ +import{c as Ke,g as Po}from"./_commonjsHelpers-BosuxZz1.js";import{_ as Ua}from"./html2pdf-CISx9sC5.js";import"./preload-helper-DEPslLRF.js";var vt=function(a){return a&&a.Math===Math&&a},D=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),Et={},L=function(a){try{return!!a()}catch{return!0}},xl=L,le=!xl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Tl=L,pr=!Tl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Ol=pr,jt=Function.prototype.call,Y=Ol?jt.bind(jt):function(){return jt.apply(jt,arguments)},Ro={},No={}.propertyIsEnumerable,Io=Object.getOwnPropertyDescriptor,Sl=Io&&!No.call({1:2},1);Ro.f=Sl?function(e){var t=Io(this,e);return!!t&&t.enumerable}:No;var bi=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Mo=pr,_o=Function.prototype,Ga=_o.call,El=Mo&&_o.bind.bind(Ga,Ga),k=Mo?El:function(a){return function(){return Ga.apply(a,arguments)}},Vo=k,$l=Vo({}.toString),wl=Vo("".slice),Be=function(a){return wl($l(a),8,-1)},Cl=k,Al=L,Pl=Be,Wr=Object,Rl=Cl("".split),Do=Al(function(){return!Wr("z").propertyIsEnumerable(0)})?function(a){return Pl(a)==="String"?Rl(a,""):Wr(a)}:Wr,Fe=function(a){return a==null},Nl=Fe,Il=TypeError,ge=function(a){if(Nl(a))throw new Il("Can't call method on "+a);return a},Ml=Do,_l=ge,$t=function(a){return Ml(_l(a))},qr=typeof document=="object"&&document.all,B=typeof qr>"u"&&qr!==void 0?function(a){return typeof a=="function"||a===qr}:function(a){return typeof a=="function"},Vl=B,de=function(a){return typeof a=="object"?a!==null:Vl(a)},Qr=D,Dl=B,Ll=function(a){return Dl(a)?a:void 0},je=function(a,e){return arguments.length<2?Ll(Qr[a]):Qr[a]&&Qr[a][e]},kl=k,yr=kl({}.isPrototypeOf),mr=typeof navigator<"u"&&String(navigator.userAgent)||"",Lo=D,Kr=mr,cn=Lo.process,gn=Lo.Deno,dn=cn&&cn.versions||gn&&gn.version,pn=dn&&dn.v8,ue,hr;pn&&(ue=pn.split("."),hr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!hr&&Kr&&(ue=Kr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Kr.match(/Chrome\/(\d+)/),ue&&(hr=+ue[1])));var xi=hr,yn=xi,Bl=L,Fl=D,jl=Fl.String,ko=!!Object.getOwnPropertySymbols&&!Bl(function(){var a=Symbol("symbol detection");return!jl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&yn&&yn<41}),Ul=ko,Bo=Ul&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gl=je,zl=B,Hl=yr,Yl=Bo,Xl=Object,Fo=Yl?function(a){return typeof a=="symbol"}:function(a){var e=Gl("Symbol");return zl(e)&&Hl(e.prototype,Xl(a))},Wl=String,br=function(a){try{return Wl(a)}catch{return"Object"}},ql=B,Ql=br,Kl=TypeError,Te=function(a){if(ql(a))return a;throw new Kl(Ql(a)+" is not a function")},Zl=Te,Jl=Fe,ot=function(a,e){var t=a[e];return Jl(t)?void 0:Zl(t)},Zr=Y,Jr=B,ea=de,eh=TypeError,th=function(a,e){var t,r;if(e==="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a))||Jr(t=a.valueOf)&&!ea(r=Zr(t,a))||e!=="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a)))return r;throw new eh("Can't convert object to primitive value")},jo={exports:{}},mn=D,rh=Object.defineProperty,Ti=function(a,e){try{rh(mn,a,{value:e,configurable:!0,writable:!0})}catch{mn[a]=e}return e},ah=D,ih=Ti,bn="__core-js_shared__",xn=jo.exports=ah[bn]||ih(bn,{});(xn.versions||(xn.versions=[])).push({version:"3.36.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Oi=jo.exports,Tn=Oi,Si=function(a,e){return Tn[a]||(Tn[a]=e||{})},nh=ge,sh=Object,xr=function(a){return sh(nh(a))},oh=k,uh=xr,lh=oh({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return lh(uh(e),t)},hh=k,vh=0,fh=Math.random(),ch=hh(1 .toString),Uo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+ch(++vh+fh,36)},gh=D,dh=Si,On=he,ph=Uo,yh=ko,mh=Bo,Ze=gh.Symbol,ta=dh("wks"),bh=mh?Ze.for||Ze:Ze&&Ze.withoutSetter||ph,z=function(a){return On(ta,a)||(ta[a]=yh&&On(Ze,a)?Ze[a]:bh("Symbol."+a)),ta[a]},xh=Y,Sn=de,En=Fo,Th=ot,Oh=th,Sh=z,Eh=TypeError,$h=Sh("toPrimitive"),wh=function(a,e){if(!Sn(a)||En(a))return a;var t=Th(a,$h),r;if(t){if(e===void 0&&(e="default"),r=xh(t,a,e),!Sn(r)||En(r))return r;throw new Eh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Oh(a,e)},Ch=wh,Ah=Fo,Go=function(a){var e=Ch(a,"string");return Ah(e)?e:e+""},Ph=D,$n=de,za=Ph.document,Rh=$n(za)&&$n(za.createElement),Tr=function(a){return Rh?za.createElement(a):{}},Nh=le,Ih=L,Mh=Tr,zo=!Nh&&!Ih(function(){return Object.defineProperty(Mh("div"),"a",{get:function(){return 7}}).a!==7}),_h=le,Vh=Y,Dh=Ro,Lh=bi,kh=$t,Bh=Go,Fh=he,jh=zo,wn=Object.getOwnPropertyDescriptor;Et.f=_h?wn:function(e,t){if(e=kh(e),t=Bh(t),jh)try{return wn(e,t)}catch{}if(Fh(e,t))return Lh(!Vh(Dh.f,e,t),e[t])};var Oe={},Uh=le,Gh=L,Ho=Uh&&Gh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zh=de,Hh=String,Yh=TypeError,K=function(a){if(zh(a))return a;throw new Yh(Hh(a)+" is not an object")},Xh=le,Wh=zo,qh=Ho,Ut=K,Cn=Go,Qh=TypeError,ra=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,aa="enumerable",ia="configurable",na="writable";Oe.f=Xh?qh?function(e,t,r){if(Ut(e),t=Cn(t),Ut(r),typeof e=="function"&&t==="prototype"&&"value"in r&&na in r&&!r[na]){var i=Kh(e,t);i&&i[na]&&(e[t]=r.value,r={configurable:ia in r?r[ia]:i[ia],enumerable:aa in r?r[aa]:i[aa],writable:!1})}return ra(e,t,r)}:ra:function(e,t,r){if(Ut(e),t=Cn(t),Ut(r),Wh)try{return ra(e,t,r)}catch{}if("get"in r||"set"in r)throw new Qh("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Zh=le,Jh=Oe,ev=bi,wt=Zh?function(a,e,t){return Jh.f(a,e,ev(1,t))}:function(a,e,t){return a[e]=t,a},Yo={exports:{}},Ha=le,tv=he,Xo=Function.prototype,rv=Ha&&Object.getOwnPropertyDescriptor,Ei=tv(Xo,"name"),av=Ei&&(function(){}).name==="something",iv=Ei&&(!Ha||Ha&&rv(Xo,"name").configurable),Or={EXISTS:Ei,PROPER:av,CONFIGURABLE:iv},nv=k,sv=B,Ya=Oi,ov=nv(Function.toString);sv(Ya.inspectSource)||(Ya.inspectSource=function(a){return ov(a)});var $i=Ya.inspectSource,uv=D,lv=B,An=uv.WeakMap,hv=lv(An)&&/native code/.test(String(An)),vv=Si,fv=Uo,Pn=vv("keys"),wi=function(a){return Pn[a]||(Pn[a]=fv(a))},Ci={},cv=hv,Wo=D,gv=de,dv=wt,sa=he,oa=Oi,pv=wi,yv=Ci,Rn="Object already initialized",Xa=Wo.TypeError,mv=Wo.WeakMap,vr,Tt,fr,bv=function(a){return fr(a)?Tt(a):vr(a,{})},xv=function(a){return function(e){var t;if(!gv(e)||(t=Tt(e)).type!==a)throw new Xa("Incompatible receiver, "+a+" required");return t}};if(cv||oa.state){var ce=oa.state||(oa.state=new mv);ce.get=ce.get,ce.has=ce.has,ce.set=ce.set,vr=function(a,e){if(ce.has(a))throw new Xa(Rn);return e.facade=a,ce.set(a,e),e},Tt=function(a){return ce.get(a)||{}},fr=function(a){return ce.has(a)}}else{var Ye=pv("state");yv[Ye]=!0,vr=function(a,e){if(sa(a,Ye))throw new Xa(Rn);return e.facade=a,dv(a,Ye,e),e},Tt=function(a){return sa(a,Ye)?a[Ye]:{}},fr=function(a){return sa(a,Ye)}}var Sr={set:vr,get:Tt,has:fr,enforce:bv,getterFor:xv},Ai=k,Tv=L,Ov=B,Gt=he,Wa=le,Sv=Or.CONFIGURABLE,Ev=$i,qo=Sr,$v=qo.enforce,wv=qo.get,Nn=String,ir=Object.defineProperty,Cv=Ai("".slice),Av=Ai("".replace),Pv=Ai([].join),Rv=Wa&&!Tv(function(){return ir(function(){},"length",{value:8}).length!==8}),Nv=String(String).split("String"),Iv=Yo.exports=function(a,e,t){Cv(Nn(e),0,7)==="Symbol("&&(e="["+Av(Nn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Gt(a,"name")||Sv&&a.name!==e)&&(Wa?ir(a,"name",{value:e,configurable:!0}):a.name=e),Rv&&t&&Gt(t,"arity")&&a.length!==t.arity&&ir(a,"length",{value:t.arity});try{t&&Gt(t,"constructor")&&t.constructor?Wa&&ir(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=$v(a);return Gt(r,"source")||(r.source=Pv(Nv,typeof e=="string"?e:"")),a};Function.prototype.toString=Iv(function(){return Ov(this)&&wv(this).source||Ev(this)},"toString");var Qo=Yo.exports,Mv=B,_v=Oe,Vv=Qo,Dv=Ti,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Mv(t)&&Vv(t,n,r),r.global)i?a[e]=t:Dv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:_v.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},Ko={},Lv=Math.ceil,kv=Math.floor,Bv=Math.trunc||function(e){var t=+e;return(t>0?kv:Lv)(t)},Fv=Bv,Er=function(a){var e=+a;return e!==e||e===0?0:Fv(e)},jv=Er,Uv=Math.max,Gv=Math.min,zv=function(a,e){var t=jv(a);return t<0?Uv(t+e,0):Gv(t,e)},Hv=Er,Yv=Math.min,ut=function(a){var e=Hv(a);return e>0?Yv(e,9007199254740991):0},Xv=ut,Pi=function(a){return Xv(a.length)},Wv=$t,qv=zv,Qv=Pi,In=function(a){return function(e,t,r){var i=Wv(e),n=Qv(i);if(n===0)return!a&&-1;var o=qv(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},Zo={includes:In(!0),indexOf:In(!1)},Kv=k,ua=he,Zv=$t,Jv=Zo.indexOf,ef=Ci,Mn=Kv([].push),Jo=function(a,e){var t=Zv(a),r=0,i=[],n;for(n in t)!ua(ef,n)&&ua(t,n)&&Mn(i,n);for(;e.length>r;)ua(t,n=e[r++])&&(~Jv(i,n)||Mn(i,n));return i},Ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tf=Jo,rf=Ri,af=rf.concat("length","prototype");Ko.f=Object.getOwnPropertyNames||function(e){return tf(e,af)};var eu={};eu.f=Object.getOwnPropertySymbols;var nf=je,sf=k,of=Ko,uf=eu,lf=K,hf=sf([].concat),vf=nf("Reflect","ownKeys")||function(e){var t=of.f(lf(e)),r=uf.f;return r?hf(t,r(e)):t},_n=he,ff=vf,cf=Et,gf=Oe,df=function(a,e,t){for(var r=ff(e),i=gf.f,n=cf.f,o=0;of;f++)if(v=y(a[f]),v&&hs(fs,v))return v;return new or(!1)}l=yd(a,h)}for(d=n?a.next:l.next;!(g=fd(d,l)).done;){try{v=y(g.value)}catch(x){vs(l,"throw",x)}if(typeof v=="object"&&v&&hs(fs,v))return v}return new or(!1)},xd=z,Mu=xd("iterator"),_u=!1;try{var Td=0,cs={next:function(){return{done:!!Td++}},return:function(){_u=!0}};cs[Mu]=function(){return this},Array.from(cs,function(){throw 2})}catch{}var Od=function(a,e){try{if(!e&&!_u)return!1}catch{return!1}var t=!1;try{var r={};r[Mu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Sd=Cr,Ed=Od,$d=Pt.CONSTRUCTOR,Vu=$d||!Ed(function(a){Sd.all(a).then(void 0,function(){})}),wd=ee,Cd=Y,Ad=Te,Pd=lt,Rd=Vi,Nd=Iu,Id=Vu;wd({target:"Promise",stat:!0,forced:Id},{all:function(e){var t=this,r=Pd.f(t),i=r.resolve,n=r.reject,o=Rd(function(){var s=Ad(t.resolve),u=[],l=0,h=1;Nd(e,function(f){var c=l++,v=!1;h++,Cd(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Md=ee,_d=Pt.CONSTRUCTOR,ri=Cr,Vd=je,Dd=B,Ld=Ue,gs=ri&&ri.prototype;Md({target:"Promise",proto:!0,forced:_d,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Dd(ri)){var ds=Vd("Promise").prototype.catch;gs.catch!==ds&&Ld(gs,"catch",ds,{unsafe:!0})}var kd=ee,Bd=Y,Fd=Te,jd=lt,Ud=Vi,Gd=Iu,zd=Vu;kd({target:"Promise",stat:!0,forced:zd},{race:function(e){var t=this,r=jd.f(t),i=r.reject,n=Ud(function(){var o=Fd(t.resolve);Gd(e,function(s){Bd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Hd=ee,Yd=lt,Xd=Pt.CONSTRUCTOR;Hd({target:"Promise",stat:!0,forced:Xd},{reject:function(e){var t=Yd.f(this),r=t.reject;return r(e),t.promise}});var Wd=K,qd=de,Qd=lt,Kd=function(a,e){if(Wd(a),qd(e)&&e.constructor===a)return e;var t=Qd.f(a),r=t.resolve;return r(e),t.promise},Zd=ee,Jd=je,ep=Pt.CONSTRUCTOR,tp=Kd;Jd("Promise");Zd({target:"Promise",stat:!0,forced:ep},{resolve:function(e){return tp(this,e)}});function ps(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){t(l);return}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){ps(n,r,i,o,s,"next",u)}function s(u){ps(n,r,i,o,s,"throw",u)}o(void 0)})}}var rp=Ni,ap=String,pe=function(a){if(rp(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ap(a)},ip=K,Du=function(){var a=ip(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Fi=L,np=D,ji=np.RegExp,Ui=Fi(function(){var a=ji("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),sp=Ui||Fi(function(){return!ji("a","y").sticky}),op=Ui||Fi(function(){var a=ji("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Lu={BROKEN_CARET:op,MISSED_STICKY:sp,UNSUPPORTED_Y:Ui},ku={},up=Jo,lp=Ri,hp=Object.keys||function(e){return up(e,lp)},vp=le,fp=Ho,cp=Oe,gp=K,dp=$t,pp=hp;ku.f=vp&&!fp?Object.defineProperties:function(e,t){gp(e);for(var r=dp(t),i=pp(t),n=i.length,o=0,s;n>o;)cp.f(e,s=i[o++],r[s]);return e};var yp=K,mp=ku,ys=Ri,bp=Ci,xp=vu,Tp=Tr,Op=wi,ms=">",bs="<",ai="prototype",ii="script",Bu=Op("IE_PROTO"),xa=function(){},Fu=function(a){return bs+ii+ms+a+bs+"/"+ii+ms},xs=function(a){a.write(Fu("")),a.close();var e=a.parentWindow.Object;return a=null,e},Sp=function(){var a=Tp("iframe"),e="java"+ii+":",t;return a.style.display="none",xp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Fu("document.F=Object")),t.close(),t.F},Kt,ur=function(){try{Kt=new ActiveXObject("htmlfile")}catch{}ur=typeof document<"u"?document.domain&&Kt?xs(Kt):Sp():xs(Kt);for(var a=ys.length;a--;)delete ur[ai][ys[a]];return ur()};bp[Bu]=!0;var Gi=Object.create||function(e,t){var r;return e!==null?(xa[ai]=yp(e),r=new xa,xa[ai]=null,r[Bu]=e):r=ur(),t===void 0?r:mp.f(r,t)},Ep=L,$p=D,wp=$p.RegExp,Cp=Ep(function(){var a=wp(".","s");return!(a.dotAll&&a.test(` +`)&&a.flags==="s")}),Ap=L,Pp=D,Rp=Pp.RegExp,Np=Ap(function(){var a=Rp("(?b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$c")!=="bc"}),et=Y,Pr=k,Ip=pe,Mp=Du,_p=Lu,Vp=Si,Dp=Gi,Lp=Sr.get,kp=Cp,Bp=Np,Fp=Vp("native-string-replace",String.prototype.replace),dr=RegExp.prototype.exec,ni=dr,jp=Pr("".charAt),Up=Pr("".indexOf),Gp=Pr("".replace),Ta=Pr("".slice),si=function(){var a=/a/,e=/b*/g;return et(dr,a,"a"),et(dr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),ju=_p.BROKEN_CARET,oi=/()??/.exec("")[1]!==void 0,zp=si||oi||ju||kp||Bp;zp&&(ni=function(e){var t=this,r=Lp(t),i=Ip(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=et(ni,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=ju&&t.sticky,g=et(Mp,t),p=t.source,y=0,x=i;if(d&&(g=Gp(g,"y",""),Up(g,"g")===-1&&(g+="g"),x=Ta(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&jp(i,t.lastIndex-1)!==` +`)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),oi&&(s=new RegExp("^"+p+"$(?!\\s)",g)),si&&(u=t.lastIndex),l=et(dr,d?s:t,x),d?l?(l.input=Ta(l.input,y),l[0]=Ta(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:si&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),oi&&l&&l.length>1&&et(Fp,l[0],s,function(){for(h=1;h=n?a?"":void 0:(o=$s(r,i),o<55296||o>56319||i+1===n||(s=$s(r,i+1))<56320||s>57343?a?Zp(r,i):o:a?Jp(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},ey={codeAt:ws(!1),charAt:ws(!0)},ty=ey.charAt,Xi=function(a,e,t){return e+(t?ty(a,e).length:1)},Cs=Y,ry=K,ay=B,iy=Be,ny=zi,sy=TypeError,Wi=function(a,e){var t=a.exec;if(ay(t)){var r=Cs(t,a,e);return r!==null&&ry(r),r}if(iy(a)==="RegExp")return Cs(ny,a,e);throw new sy("RegExp#exec called on incompatible receiver")},oy=Y,uy=Hi,ly=K,hy=Fe,vy=ut,Sa=pe,fy=ge,cy=ot,gy=Xi,As=Wi;uy("match",function(a,e,t){return[function(i){var n=fy(this),o=hy(i)?void 0:cy(i,a);return o?oy(o,i,n):new RegExp(i)[a](Sa(n))},function(r){var i=ly(this),n=Sa(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return As(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=As(i,n))!==null;){var f=Sa(h[0]);u[l]=f,f===""&&(i.lastIndex=gy(n,vy(i.lastIndex),s)),l++}return l===0?null:u}]});var qi=k,dy=xr,py=Math.floor,Ea=qi("".charAt),yy=qi("".replace),$a=qi("".slice),my=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,by=/\$([$&'`]|\d{1,2})/g,xy=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=by;return i!==void 0&&(i=dy(i),u=my),yy(n,u,function(l,h){var f;switch(Ea(h,0)){case"$":return"$";case"&":return a;case"`":return $a(e,0,t);case"'":return $a(e,o);case"<":f=i[$a(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=py(c/10);return v===0?l:v<=s?r[v-1]===void 0?Ea(h,1):r[v-1]+Ea(h,1):l}f=r[c-1]}return f===void 0?"":f})},Ty=hu,Ps=Y,Rr=k,Oy=Hi,Sy=L,Ey=K,$y=B,wy=Fe,Cy=Er,Ay=ut,We=pe,Py=ge,Ry=Xi,Ny=ot,Iy=xy,My=Wi,_y=z,ui=_y("replace"),Vy=Math.max,Dy=Math.min,Ly=Rr([].concat),wa=Rr([].push),Rs=Rr("".indexOf),Ns=Rr("".slice),ky=function(a){return a===void 0?a:String(a)},By=function(){return"a".replace(/./,"$0")==="$0"}(),Is=function(){return/./[ui]?/./[ui]("a","$0")==="":!1}(),Fy=!Sy(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$")!=="7"});Oy("replace",function(a,e,t){var r=Is?"$":"$0";return[function(n,o){var s=Py(this),u=wy(n)?void 0:Ny(n,ui);return u?Ps(u,n,s,o):Ps(e,We(s),n,o)},function(i,n){var o=Ey(this),s=We(i);if(typeof n=="string"&&Rs(n,r)===-1&&Rs(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=$y(n);l||(n=We(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=My(o,s),!(v===null||(wa(c,v),!h));){var d=We(v[0]);d===""&&(o.lastIndex=Ry(s,Ay(o.lastIndex),f))}for(var g="",p=0,y=0;y=p&&(g+=Ns(s,p,b)+$,p=b+x.length)}return g+Ns(s,p)}]},!Fy||!By||Is);var jy=de,Uy=Be,Gy=z,zy=Gy("match"),Hy=function(a){var e;return jy(a)&&((e=a[zy])!==void 0?!!e:Uy(a)==="RegExp")},Yy=Hy,Xy=TypeError,Qi=function(a){if(Yy(a))throw new Xy("The method doesn't accept regular expressions");return a},Wy=z,qy=Wy("match"),Ki=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[qy]=!1,"/./"[a](e)}catch{}}return!1},Qy=ee,Ky=wr,Zy=Et.f,Jy=ut,Ms=pe,em=Qi,tm=ge,rm=Ki,am=Ky("".slice),im=Math.min,Gu=rm("startsWith"),nm=!Gu&&!!function(){var a=Zy(String.prototype,"startsWith");return a&&!a.writable}();Qy({target:"String",proto:!0,forced:!nm&&!Gu},{startsWith:function(e){var t=Ms(tm(this));em(e);var r=Jy(im(arguments.length>1?arguments[1]:void 0,t.length)),i=Ms(e);return am(t,r,r+i.length)===i}});var sm=z,om=Gi,um=Oe.f,li=sm("unscopables"),hi=Array.prototype;hi[li]===void 0&&um(hi,li,{configurable:!0,value:om(null)});var lm=function(a){hi[li][a]=!0},hm=L,vm=!hm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),fm=he,cm=B,gm=xr,dm=wi,pm=vm,_s=dm("IE_PROTO"),vi=Object,ym=vi.prototype,zu=pm?vi.getPrototypeOf:function(a){var e=gm(a);if(fm(e,_s))return e[_s];var t=e.constructor;return cm(t)&&e instanceof t?t.prototype:e instanceof vi?ym:null},mm=L,bm=B,xm=de,Vs=zu,Tm=Ue,Om=z,fi=Om("iterator"),Hu=!1,Le,Ca,Aa;[].keys&&(Aa=[].keys(),"next"in Aa?(Ca=Vs(Vs(Aa)),Ca!==Object.prototype&&(Le=Ca)):Hu=!0);var Sm=!xm(Le)||mm(function(){var a={};return Le[fi].call(a)!==a});Sm&&(Le={});bm(Le[fi])||Tm(Le,fi,function(){return this});var Yu={IteratorPrototype:Le,BUGGY_SAFARI_ITERATORS:Hu},Em=Yu.IteratorPrototype,$m=Gi,wm=bi,Cm=$r,Am=Rt,Pm=function(){return this},Rm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=$m(Em,{next:wm(+!r,t)}),Cm(a,i,!1),Am[i]=Pm,a},Nm=ee,Im=Y,Xu=Or,Mm=B,_m=Rm,Ds=zu,Ls=ru,Vm=$r,Dm=wt,Pa=Ue,Lm=z,km=Rt,Wu=Yu,Bm=Xu.PROPER,Fm=Xu.CONFIGURABLE,ks=Wu.IteratorPrototype,Zt=Wu.BUGGY_SAFARI_ITERATORS,ct=Lm("iterator"),Bs="keys",gt="values",Fs="entries",jm=function(){return this},Um=function(a,e,t,r,i,n,o){_m(t,e,r);var s=function(y){if(y===i&&c)return c;if(!Zt&&y&&y in h)return h[y];switch(y){case Bs:return function(){return new t(this,y)};case gt:return function(){return new t(this,y)};case Fs:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[ct]||h["@@iterator"]||i&&h[i],c=!Zt&&f||s(i),v=e==="Array"&&h.entries||f,d,g,p;if(v&&(d=Ds(v.call(new a)),d!==Object.prototype&&d.next&&(Ds(d)!==ks&&(Ls?Ls(d,ks):Mm(d[ct])||Pa(d,ct,jm)),Vm(d,u,!0))),Bm&&i===gt&&f&&f.name!==gt&&(Fm?Dm(h,"name",gt):(l=!0,c=function(){return Im(f,this)})),i)if(g={values:s(gt),keys:n?c:s(Bs),entries:s(Fs)},o)for(p in g)(Zt||l||!(p in h))&&Pa(h,p,g[p]);else Nm({target:e,proto:!0,forced:Zt||l},g);return h[ct]!==c&&Pa(h,ct,c,{name:i}),km[e]=c,g},Gm=function(a,e){return{value:a,done:e}},zm=$t,Zi=lm,js=Rt,qu=Sr,Hm=Oe.f,Ym=Um,Jt=Gm,Xm=le,Qu="Array Iterator",Wm=qu.set,qm=qu.getterFor(Qu),Qm=Ym(Array,"Array",function(a,e){Wm(this,{type:Qu,target:zm(a),index:0,kind:e})},function(){var a=qm(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=void 0,Jt(void 0,!0);switch(a.kind){case"keys":return Jt(t,!1);case"values":return Jt(e[t],!1)}return Jt([t,e[t]],!1)},"values"),Us=js.Arguments=js.Array;Zi("keys");Zi("values");Zi("entries");if(Xm&&Us.name!=="values")try{Hm(Us,"name",{value:"values"})}catch{}var Km={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Zm=Tr,Ra=Zm("span").classList,Gs=Ra&&Ra.constructor&&Ra.constructor.prototype,Jm=Gs===Object.prototype?void 0:Gs,zs=D,Ku=Km,e0=Jm,pt=Qm,Hs=wt,t0=$r,r0=z,Na=r0("iterator"),Ia=pt.values,Zu=function(a,e){if(a){if(a[Na]!==Ia)try{Hs(a,Na,Ia)}catch{a[Na]=Ia}if(t0(a,e,!0),Ku[e]){for(var t in pt)if(a[t]!==pt[t])try{Hs(a,t,pt[t])}catch{a[t]=pt[t]}}}};for(var Ma in Ku)Zu(zs[Ma]&&zs[Ma].prototype,Ma);Zu(e0,"DOMTokenList");function a0(a,e){if(Ua(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(Ua(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function i0(a){var e=a0(a,"string");return Ua(e)=="symbol"?e:String(e)}function Ji(a,e,t){return e=i0(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var n0=Te,s0=xr,o0=Do,u0=Pi,Ys=TypeError,Xs="Reduce of empty array with no initial value",Ws=function(a){return function(e,t,r,i){var n=s0(e),o=o0(n),s=u0(n);if(n0(t),s===0&&r<2)throw new Ys(Xs);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new Ys(Xs)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},l0={left:Ws(!1),right:Ws(!0)},h0=L,Ju=function(a,e){var t=[][a];return!!t&&h0(function(){t.call(null,e||function(){return 1},1)})},v0=ee,f0=l0.left,c0=Ju,qs=xi,g0=At,d0=!g0&&qs>79&&qs<83,p0=d0||!c0("reduce");v0({target:"Array",proto:!0,forced:p0},{reduce:function(e){var t=arguments.length;return f0(this,e,t,t>1?arguments[1]:void 0)}});var y0=ee,m0=wr,b0=Et.f,x0=ut,Qs=pe,T0=Qi,O0=ge,S0=Ki,E0=m0("".slice),$0=Math.min,el=S0("endsWith"),w0=!el&&!!function(){var a=b0(String.prototype,"endsWith");return a&&!a.writable}();y0({target:"String",proto:!0,forced:!w0&&!el},{endsWith:function(e){var t=Qs(O0(this));T0(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:$0(x0(r),i),o=Qs(e);return E0(t,n-o.length,n)===o}});var _a=Y,tl=k,C0=Hi,A0=K,P0=Fe,R0=ge,N0=uu,I0=Xi,M0=ut,Ks=pe,_0=ot,Zs=Wi,V0=Lu,D0=L,qe=V0.UNSUPPORTED_Y,L0=4294967295,k0=Math.min,Va=tl([].push),Da=tl("".slice),B0=!D0(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),Js="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;C0("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:_a(e,this,i,n)}:e;return[function(n,o){var s=R0(this),u=P0(n)?void 0:_0(n,a);return u?_a(u,n,s,o):_a(r,Ks(s),n,o)},function(i,n){var o=A0(this),s=Ks(i);if(!Js){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=N0(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qe?"g":"y"),c=new l(qe?"^(?:"+o.source+")":o,f),v=n===void 0?L0:n>>>0;if(v===0)return[];if(s.length===0)return Zs(c,s)===null?[s]:[];for(var d=0,g=0,p=[];g"u"?Ke:window,er=["moz","webkit"],rt="AnimationFrame",st=be["request"+rt],St=be["cancel"+rt]||be["cancelRequest"+rt];for(var dt=0;!st&&dt3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+g.toRGB()+" -> "+g.toHex());d.appendChild(p),d.appendChild(y),v.appendChild(d)}catch{}return v}};const gi=Po(rb);var ab=ee,ib=wr,nb=Zo.indexOf,sb=Ju,di=ib([].indexOf),al=!!di&&1/di([1],1,-0)<0,ob=al||!sb("indexOf");ab({target:"Array",proto:!0,forced:ob},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return al?di(this,e,t)||0:nb(this,e,t)}});var ub=ee,lb=k,hb=Qi,vb=ge,io=pe,fb=Ki,cb=lb("".indexOf);ub({target:"String",proto:!0,forced:!fb("includes")},{includes:function(e){return!!~cb(io(vb(this)),io(hb(e)),arguments.length>1?arguments[1]:void 0)}});var gb=Be,db=Array.isArray||function(e){return gb(e)==="Array"},pb=ee,yb=k,mb=db,bb=yb([].reverse),no=[1,2];pb({target:"Array",proto:!0,forced:String(no)===String(no.reverse())},{reverse:function(){return mb(this)&&(this.length=this.length),bb(this)}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var il=function(a,e){return(il=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)};function nl(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}il(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function xb(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;ta.phi1&&(a.phi2-=2*Ee),a.sweepFlag===1&&a.phi2r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}var U,ye=Math.PI/180;function oo(a,e,t){return(1-t)*a+t*e}function uo(a,e,t,r){return a+Math.cos(r/180*Ee)*e+Math.sin(r/180*Ee)*t}function lo(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)O&&(v.sweepFlag=+!v.sweepFlag),v})}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}a.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),oe(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},a.TO_ABS=e,a.TO_REL=function(){return i(function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},a.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i(function(h,f,c,v,d){if(isNaN(v)&&!(h.type&m.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&m.HORIZ_LINE_TO&&(h.type=m.LINE_TO,h.y=h.relative?0:c),l&&h.type&m.VERT_LINE_TO&&(h.type=m.LINE_TO,h.x=h.relative?0:f),s&&h.type&m.CLOSE_PATH&&(h.type=m.LINE_TO,h.x=h.relative?v-f:v,h.y=h.relative?d-c:d),h.type&m.ARC&&(h.rX===0||h.rY===0)&&(h.type=m.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},a.NORMALIZE_ST=t,a.QT_TO_C=r,a.INFO=i,a.SANITIZE=function(s){s===void 0&&(s=0),oe(s);var u=NaN,l=NaN,h=NaN,f=NaN;return i(function(c,v,d,g,p){var y=Math.abs,x=!1,b=0,T=0;if(c.type&m.SMOOTH_CURVE_TO&&(b=isNaN(u)?0:v-u,T=isNaN(l)?0:d-l),c.type&(m.CURVE_TO|m.SMOOTH_CURVE_TO)?(u=c.relative?v+c.x2:c.x2,l=c.relative?d+c.y2:c.y2):(u=NaN,l=NaN),c.type&m.SMOOTH_QUAD_TO?(h=isNaN(h)?v:2*v-h,f=isNaN(f)?d:2*d-f):c.type&m.QUAD_TO?(h=c.relative?v+c.x1:c.x1,f=c.relative?d+c.y1:c.y2):(h=NaN,f=NaN),c.type&m.LINE_COMMANDS||c.type&m.ARC&&(c.rX===0||c.rY===0||!c.lArcFlag)||c.type&m.CURVE_TO||c.type&m.SMOOTH_CURVE_TO||c.type&m.QUAD_TO||c.type&m.SMOOTH_QUAD_TO){var $=c.x===void 0?0:c.relative?c.x:c.x-v,E=c.y===void 0?0:c.relative?c.y:c.y-d;b=isNaN(h)?c.x1===void 0?b:c.relative?c.x:c.x1-v:h-v,T=isNaN(f)?c.y1===void 0?T:c.relative?c.y:c.y1-d:f-d;var O=c.x2===void 0?0:c.relative?c.x:c.x2-v,C=c.y2===void 0?0:c.relative?c.y:c.y2-d;y($)<=s&&y(E)<=s&&y(b)<=s&&y(T)<=s&&y(O)<=s&&y(C)<=s&&(x=!0)}return c.type&m.CLOSE_PATH&&y(v-g)<=s&&y(d-p)<=s&&(x=!0),x?[]:c})},a.MATRIX=n,a.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),oe(s,u,l);var h=Math.sin(s),f=Math.cos(s);return n(f,h,-h,f,u-u*f+l*h,l-u*h-l*f)},a.TRANSLATE=function(s,u){return u===void 0&&(u=0),oe(s,u),n(1,0,0,1,s,u)},a.SCALE=function(s,u){return u===void 0&&(u=s),oe(s,u),n(s,0,0,u,0,0)},a.SKEW_X=function(s){return oe(s),n(1,0,Math.atan(s),1,0,0)},a.SKEW_Y=function(s){return oe(s),n(1,Math.atan(s),0,1,0,0)},a.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(-1,0,0,1,s,0)},a.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(1,0,0,-1,0,s)},a.A_TO_C=function(){return i(function(s,u,l){return m.ARC===s.type?function(h,f,c){var v,d,g,p;h.cX||Fa(h,f,c);for(var y=Math.min(h.phi1,h.phi2),x=Math.max(h.phi1,h.phi2)-y,b=Math.ceil(x/90),T=new Array(b),$=f,E=c,O=0;Of.maxX&&(f.maxX=M),Mf.maxY&&(f.maxY=M),MR&&p(ho(v,g.x1,g.x2,g.x,R));for(var T=0,$=lo(d,g.y1,g.y2,g.y);T<$.length;T++)0<(R=$[T])&&1>R&&y(ho(d,g.y1,g.y2,g.y,R))}if(g.type&m.ARC){p(g.x),y(g.y),Fa(g,v,d);for(var E=g.xRot/180*Math.PI,O=Math.cos(E)*g.rX,C=Math.sin(E)*g.rX,I=-Math.sin(E)*g.rY,_=Math.cos(E)*g.rY,F=g.phi1g.phi2?[g.phi2+360,g.phi1+360]:[g.phi2,g.phi1],P=F[0],X=F[1],W=function(M){var Z=M[0],ne=M[1],fe=180*Math.atan2(ne,Z)/Math.PI;return feP&&RP&&Rh)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===Sb[this.curCommandType]&&(m.HORIZ_LINE_TO===this.curCommandType?n({type:m.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):m.VERT_LINE_TO===this.curCommandType?n({type:m.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===m.MOVE_TO||this.curCommandType===m.LINE_TO||this.curCommandType===m.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),m.MOVE_TO===this.curCommandType&&(this.curCommandType=m.LINE_TO)):this.curCommandType===m.CURVE_TO?n({type:m.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===m.SMOOTH_CURVE_TO?n({type:m.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.QUAD_TO?n({type:m.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.ARC&&n({type:m.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Tb(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=m.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=m.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=m.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=m.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=m.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=m.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=m.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=m.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=m.ARC,this.curCommandRelative=s==="a"}else r.push({type:m.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,r);n>>$;if(o[b+3]=Lr,Lr!==0){var kr=255/Lr;o[b]=(M*T>>>$)*kr,o[b+1]=(Z*T>>>$)*kr,o[b+2]=(ne*T>>>$)*kr}else o[b]=o[b+1]=o[b+2]=0;M-=q,Z-=H,ne-=Q,fe-=R,q-=p.r,H-=p.g,Q-=p.b,R-=p.a;var Ae=Dr+n+1;Ae=x+(Ae>>$,te>0?(te=255/te,o[re]=(Vt*T>>>$)*te,o[re+1]=(Dt*T>>>$)*te,o[re+2]=(Lt*T>>>$)*te):o[re]=o[re+1]=o[re+2]=0,Vt-=Br,Dt-=Fr,Lt-=jr,kt-=Ur,Br-=p.r,Fr-=p.g,jr-=p.b,Ur-=p.a,re=He+((re=Xr+h)0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:a,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return xe(function*(){var r=yield fetch(t),i=yield r.blob(),n=yield createImageBitmap(i);return n})()}};return(typeof DOMParser<"u"||typeof a>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function Gb(a){var{DOMParser:e,canvas:t,fetch:r}=a;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}var a2=Object.freeze({__proto__:null,offscreen:Ub,node:Gb});function ht(a){return a.replace(/(?!\u3000)\s+/gm," ")}function zb(a){return a.replace(/^[\n \t]+/,"")}function Hb(a){return a.replace(/[\n \t]+$/,"")}function ie(a){var e=(a||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var Yb=/^[A-Z-]+$/;function Xb(a){return Yb.test(a)?a.toLowerCase():a}function ll(a){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a)||[];return e[2]||e[3]||e[4]}function Wb(a){if(!a.startsWith("rgb"))return a;var e=3,t=a.replace(/\d+(\.\d+)?/g,(r,i)=>e--&&i?String(Math.round(parseFloat(r))):r);return t}var qb=/(\[[^\]]+\])/g,Qb=/(#[^\s+>~.[:]+)/g,Kb=/(\.[^\s+>~.[:]+)/g,Zb=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Jb=/(:[\w-]+\([^)]*\))/gi,e1=/(:[^\s+>~.[:]+)/g,t1=/([^\s+>~.[:]+)/g;function _e(a,e){var t=e.exec(a);return t?[a.replace(e," "),t.length]:[a,0]}function r1(a){var e=[0,0,0],t=a.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=_e(t,qb),e[1]+=r,[t,r]=_e(t,Qb),e[0]+=r,[t,r]=_e(t,Kb),e[1]+=r,[t,r]=_e(t,Zb),e[2]+=r,[t,r]=_e(t,Jb),e[1]+=r,[t,r]=_e(t,e1),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=_e(t,t1),e[2]+=r,e.join("")}var at=1e-8;function po(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2))}function yi(a,e){return(a[0]*e[0]+a[1]*e[1])/(po(a)*po(e))}function yo(a,e){return(a[0]*e[1]0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return ht(this.getString()).trim().split(e).map(i=>new S(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Wb(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*n.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?S.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=ie(e);return new V(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=ie(e);return new V(r,i)}static parsePath(e){for(var t=ie(e),r=t.length,i=[],n=0;n0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((n,o)=>{for(var{run:s}=n,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInPath&&t.isPointInPath(s,u)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInBox(s,u)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,n=new V(e,t),o=i.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var hl=typeof window<"u"?window:null,vl=typeof fetch<"u"?fetch.bind(void 0):null;class Ir{constructor(e){var{fetch:t=vl,window:r=hl}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new a1,this.mouse=new i1(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:n,desiredWidth:o,height:s,desiredHeight:u,minX:l=0,minY:h=0,refX:f,refY:c,clip:v=!1,clipX:d=0,clipY:g=0}=e,p=ht(i).replace(/^defer\s/,""),[y,x]=p.split(" "),b=y||"xMidYMid",T=x||"meet",$=n/o,E=s/u,O=Math.min($,E),C=Math.max($,E),I=o,_=u;T==="meet"&&(I*=O,_*=O),T==="slice"&&(I*=C,_*=C);var F=new S(t,"refX",f),P=new S(t,"refY",c),X=F.hasValue()&&P.hasValue();if(X&&r.translate(-O*F.getPixels("x"),-O*P.getPixels("y")),v){var W=O*d,G=O*g;r.beginPath(),r.moveTo(W,G),r.lineTo(n,G),r.lineTo(n,s),r.lineTo(W,s),r.closePath(),r.clip()}if(!X){var q=T==="meet"&&O===E,H=T==="slice"&&C===E,Q=T==="meet"&&O===$,R=T==="slice"&&C===$;b.startsWith("xMid")&&(q||H)&&r.translate(n/2-I/2,0),b.endsWith("YMid")&&(Q||R)&&r.translate(0,s/2-_/2),b.startsWith("xMax")&&(q||H)&&r.translate(n-I,0),b.endsWith("YMax")&&(Q||R)&&r.translate(0,s-_)}switch(!0){case b==="none":r.scale($,E);break;case T==="meet":r.scale(O,O);break;case T==="slice":r.scale(C,C);break}r.translate(-l,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:l,offsetX:h,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:c,mouse:v}=this,d=1e3/c;if(this.frameDuration=d,this.readyPromise=new Promise(b=>{this.resolveReady=b}),this.isReady()&&this.render(e,n,o,u,l,h,f),!!t){var g=Date.now(),p=g,y=0,x=()=>{g=Date.now(),y=g-p,y>=d&&(p=g-y%d,this.shouldUpdate(i,s)&&(this.render(e,n,o,u,l,h,f),v.runEvents())),this.intervalId=ka(x)};r||v.start(),this.intervalId=ka(x)}}stop(){this.intervalId&&(ka.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((n,o)=>o.update(r)||n,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,n,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:l,viewPort:h,ctx:f,isFirstRender:c}=this,v=f.canvas;h.clear(),v.width&&v.height?h.setCurrent(v.width,v.height):h.setCurrent(u,l);var d=e.getStyle("width"),g=e.getStyle("height");!t&&(c||typeof i!="number"&&typeof n!="number")&&(d.hasValue()&&(v.width=d.getPixels("x"),v.style&&(v.style.width="".concat(v.width,"px"))),g.hasValue()&&(v.height=g.getPixels("y"),v.style&&(v.style.height="".concat(v.height,"px"))));var p=v.clientWidth||v.width,y=v.clientHeight||v.height;if(t&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),y=g.getPixels("y")),h.setCurrent(p,y),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof n=="number"){var x=ie(e.getAttribute("viewBox").getString()),b=0,T=0;if(typeof i=="number"){var $=e.getStyle("width");$.hasValue()?b=$.getPixels("x")/i:isNaN(x[2])||(b=x[2]/i)}if(typeof n=="number"){var E=e.getStyle("height");E.hasValue()?T=E.getPixels("y")/n:isNaN(x[3])||(T=x[3]/n)}b||(b=T),T||(T=b),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(n);var O=e.getStyle("transform",!0,!0);O.setValue("".concat(O.getString()," scale(").concat(1/b,", ").concat(1/T,")"))}r||f.clearRect(0,0,p,y),e.render(f),c&&(this.isFirstRender=!1)}}Ir.defaultWindow=hl;Ir.defaultFetch=vl;var{defaultFetch:n1}=Ir,s1=typeof DOMParser<"u"?DOMParser:null;class ja{constructor(){var{fetch:e=n1,DOMParser:t=s1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return xe(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return xe(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}class o1{constructor(e,t){this.type="translate",this.point=null,this.point=V.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class u1{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=ie(t);this.angle=new S(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,n=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class l1{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=V.parseScale(t);(i.x===0||i.y===0)&&(i.x=at,i.y=at),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class fl{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ie(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,n=t.getPixels("x"),o=r.getPixels("y");e.translate(n,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-n,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,n=i[0],o=i[2],s=i[4],u=i[1],l=i[3],h=i[5],f=0,c=0,v=1,d=1/(n*(l*v-h*c)-o*(u*v-h*f)+s*(u*c-l*f)),g=t.getPixels("x"),p=r.getPixels("y");e.translate(g,p),e.transform(d*(l*v-h*c),d*(h*f-u*v),d*(s*c-o*v),d*(n*v-s*f),d*(o*h-s*l),d*(s*u-n*h)),e.translate(-g,-p)}applyToPoint(e){e.applyTransform(this.matrix)}}class cl extends fl{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new S(e,"angle",t)}}class h1 extends cl{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class v1 extends cl{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function f1(a){return ht(a).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function c1(a){var[e,t]=a.split("(");return[e.trim(),t.trim().replace(")","")]}class ke{constructor(e,t,r){this.document=e,this.transforms=[];var i=f1(t);i.forEach(n=>{if(n!=="none"){var[o,s]=c1(n),u=ke.transformTypes[o];typeof u<"u"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,n=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,n];return r.hasValue()?new ke(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var u=Xb(s.nodeName);this.attributes[u]=new S(e,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,l]=s.split(":").map(h=>h.trim());this.styles[u]=new S(e,u,l)}})}var{definitions:n}=e,o=this.getAttribute("id");o.hasValue()&&(n[o.getString()]||(n[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=e.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new S(this.document,e,"");return this.attributes[e]=i,i}return r||S.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return S.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var n=this.getAttribute(e);if(n!=null&&n.hasValue())return this.styles[e]=n,n;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var u=new S(this.document,e,"");return this.styles[e]=u,u}return i||S.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=ke.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof N?e:this.document.createElement(e);t.parent=this,N.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(n=>".".concat(n)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],n=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),n>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=n)}}}removeStyles(e,t){var r=t.reduce((i,n)=>{var o=e.getStyle(n);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[n,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,n]=r;e.getStyle(i,!0).setValue(n)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}N.ignoreChildTypes=["title"];class g1 extends N{constructor(e,t,r){super(e,t,r)}}function d1(a){var e=a.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function p1(a){return typeof process>"u"?a:a.trim().split(",").map(d1).join(",")}function y1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function m1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class J{constructor(e,t,r,i,n,o){var s=o?typeof o=="string"?J.parse(o):o:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",n="",o="",s="",u=ht(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(h=>{switch(!0){case(!l.fontStyle&&J.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&J.variants.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&J.weights.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([o]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new J(r,i,n,o,s,t)}toString(){return[y1(this.fontStyle),this.fontVariant,m1(this.fontWeight),this.fontSize,p1(this.fontFamily)].join(" ").trim()}}J.styles="normal|italic|oblique|inherit";J.variants="normal|small-caps|inherit";J.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class ve{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:n}=e;this.addPoint(t,r),this.addPoint(i,n)}}sumCubic(e,t,r,i,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*n}bezierCurveAdd(e,t,r,i,n){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*n,u=3*r-3*t;if(s===0){if(o===0)return;var l=-u/o;0=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new V(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==m.CURVE_TO&&e!==m.SMOOTH_CURVE_TO&&e!==m.QUAD_TO&&e!==m.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:n}}=this,o=new V(2*t-i,2*r-n);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new S(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var f=n.getString();f!=="inherit"&&(e.strokeStyle=f==="none"?"rgba(0,0,0,0)":f)}if(o.hasValue()){var c=new S(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=c}var v=this.getStyle("stroke-width");if(v.hasValue()){var d=v.getPixels();e.lineWidth=d||at}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),x=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),p.hasValue()&&(e.lineJoin=p.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),x.hasValue()&&x.getString()!=="none"){var T=ie(x.getString());typeof e.setLineDash<"u"?e.setLineDash(T):typeof e.webkitLineDash<"u"?e.webkitLineDash=T:typeof e.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);var $=b.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=$:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=$:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=$)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var E=this.getStyle("font"),O=this.getStyle("font-style"),C=this.getStyle("font-variant"),I=this.getStyle("font-weight"),_=this.getStyle("font-size"),F=this.getStyle("font-family"),P=new J(O.getString(),C.getString(),I.getString(),_.hasValue()?"".concat(_.getPixels(!0),"px"):"",F.getString(),J.parse(E.getString(),e.font));O.setValue(P.fontStyle),C.setValue(P.fontVariant),I.setValue(P.fontWeight),_.setValue(P.fontSize),F.setValue(P.fontFamily),e.font=P.toString(),_.isPixels()&&(this.document.emSize=_.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class A extends Ge{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new w(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new ve;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case w.MOVE_TO:this.pathM(e,r);break;case w.LINE_TO:this.pathL(e,r);break;case w.HORIZ_LINE_TO:this.pathH(e,r);break;case w.VERT_LINE_TO:this.pathV(e,r);break;case w.CURVE_TO:this.pathC(e,r);break;case w.SMOOTH_CURVE_TO:this.pathS(e,r);break;case w.QUAD_TO:this.pathQ(e,r);break;case w.SMOOTH_QUAD_TO:this.pathT(e,r);break;case w.ARC:this.pathA(e,r);break;case w.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((n,o)=>[n,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=r[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var f=o.getDefinition(),c=1;c1&&(i*=Math.sqrt(c),n*=Math.sqrt(c));var v=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2))/(Math.pow(i,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2)));isNaN(v)&&(v=0);var d=new V(v*i*f.y/n,v*-n*f.x/i),g=new V((t.x+h.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+h.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),p=yo([1,0],[(f.x-d.x)/i,(f.y-d.y)/n]),y=[(f.x-d.x)/i,(f.y-d.y)/n],x=[(-f.x-d.x)/i,(-f.y-d.y)/n],b=yo(y,x);return yi(y,x)<=-1&&(b=Math.PI),yi(y,x)>=1&&(b=0),{currentPoint:h,rX:i,rY:n,sweepFlag:u,xAxisRotation:l,centp:g,a1:p,ad:b}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:f}=A.pathA(r),c=1-s?1:-1,v=h+c*(f/2),d=new V(l.x+n*Math.cos(v),l.y+o*Math.sin(v));if(r.addMarkerAngle(d,v-c*Math.PI/2),r.addMarkerAngle(i,v-c*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(h)&&!isNaN(f)){var g=n>o?n:o,p=n>o?1:n/o,y=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(p,y),e.arc(0,0,g,h,h+f,!!(1-s)),e.scale(1/p,1/y),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){A.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class gl extends A{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Ce extends Ge{constructor(e,t,r){super(e,t,new.target===Ce?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,r=J.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new ve(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],n=null;if(e.isArabic){var o=t.length,s=t[r-1],u=t[r+1],l="isolated";if((r===0||s===" ")&&r0&&s!==" "&&r0&&s!==" "&&(r===o-1||u===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var h=e.glyphs[i];n=h instanceof gl?h:h[l]}}else n=e.glyphs[i];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),n=r.length-1,o=ht(t.textContent||"");return i===0&&(o=zb(o)),i===n&&(o=Hb(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=J.parse(t.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),h=u/o,f=n.isRTL?i.split("").reverse().join(""):i,c=ie(r.getAttribute("dx").getString()),v=f.length,d=0;d=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var n=r.children[i];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),f=!!h&&h.isRTL;i===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var c=n.measureText(e);return f&&(t.x-=c),o.hasValue()?(t.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(t.x+=u.getPixels("x")),n.x=t.x),t.x=n.x,f||(t.x+=c),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+c),t.maxX=Math.max(t.maxX,n.x,n.x+c),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,r,i){var n=r.children[i];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=t.getChildBoundingBox(e,t,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,t,r,i){var n=r.children[i];n.render(e),n.children.forEach((o,s)=>{t.renderChild(e,t,n,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=ie(r.getAttribute("dx").getString()),u=o.length,l=0,h=0;h0?"":this.getTextFromNode()}getText(){return this.text}}class b1 extends Mr{constructor(){super(...arguments),this.type="textNode"}}class Nt extends Ge{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:n}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new S(r,"fontSize",J.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),f=this.getAttribute("refY"),c=this.getAttribute("viewBox"),v=c.hasValue()?ie(c.getString()):null,d=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",g=0,p=0,y=0,x=0;v&&(g=v[0],p=v[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=g,x=p,g=0,p=0)),i.viewPort.setCurrent(u,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),v&&(u=v[2],l=v[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:l,minX:g,minY:p,refX:h.getValue(),refY:f.getValue(),clip:d,clipX:y,clipY:x}),v&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),l=n.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),n.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||t)),s.hasValue()){var f=this.getStyle("width"),c=this.getStyle("height");f.hasValue()&&f.setValue("".concat(e,"px")),c.hasValue()&&c.setValue("".concat(t,"px"))}}}class dl extends A{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,i/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&i>0&&(e.moveTo(t+u,r),e.lineTo(t+i-u,r),e.bezierCurveTo(t+i-u+h*u,r,t+i,r+l-h*l,t+i,r+l),e.lineTo(t+i,r+n-l),e.bezierCurveTo(t+i,r+n-l+h*l,t+i-u+h*u,r+n,t+i-u,r+n),e.lineTo(t+u,r+n),e.bezierCurveTo(t+u-h*u,r+n,t,r+n-l+h*l,t,r+n-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-h*l,t+u-h*u,r,t+u,r),e.closePath())}return new ve(t,r,t+i,r+n)}getMarkers(){return null}}class x1 extends A{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new ve(t-i,r-i,t+i,r+i)}getMarkers(){return null}}class T1 extends A{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(n+r,o),e.bezierCurveTo(n+r,o+t*i,n+t*r,o+i,n,o+i),e.bezierCurveTo(n-t*r,o+i,n-r,o+t*i,n-r,o),e.bezierCurveTo(n-r,o-t*i,n-t*r,o-i,n,o-i),e.bezierCurveTo(n+t*r,o-i,n+r,o-t*i,n+r,o),e.closePath()),new ve(n-r,o-i,n+r,o+i)}getMarkers(){return null}}class O1 extends A{constructor(){super(...arguments),this.type="line"}getPoints(){return[new V(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new V(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,n)),new ve(t,r,i,n)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class pl extends A{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=V.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,n=new ve(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,n)=>{n!==t&&r.push([i,i.angleTo(e[n+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class S1 extends pl{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}class E1 extends N{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new Nt(this.document,null);o.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new S(this.document,"width","".concat(i,"px")),o.attributes.height=new S(this.document,"height","".concat(n,"px")),o.attributes.transform=new S(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new S(this.document,"x",f*s.width),o.attributes.y=new S(this.document,"y",c*s.height),o.render(u),u.restore();var v=e.createPattern(s,"repeat");return v}}class $1 extends N{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:n}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,n),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new Nt(this.document,null);u.type=this.type,u.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new S(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new S(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new S(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new S(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new S(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new S(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new S(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-r),e.translate(-i,-n)}}}class w1 extends N{constructor(){super(...arguments),this.type="defs"}render(){}}class tn extends Ge{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new ve;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}class yl extends N{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(p=>{o.addColorStop(p.offset,this.addParentOpacity(r,p.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,f=new dl(s,null);f.attributes.x=new S(s,"x",-u/3),f.attributes.y=new S(s,"y",-u/3),f.attributes.width=new S(s,"width",u),f.attributes.height=new S(s,"height",u);var c=new tn(s,null);c.attributes.transform=new S(s,"transform",this.getAttribute("gradientTransform").getValue()),c.children=[f];var v=new Nt(s,null);v.attributes.x=new S(s,"x",0),v.attributes.y=new S(s,"y",0),v.attributes.width=new S(s,"width",h.width),v.attributes.height=new S(s,"height",h.height),v.children=[c];var d=s.createCanvas(h.width,h.height),g=d.getContext("2d");return g.fillStyle=o,v.render(g),g.createPattern(d,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new S(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}class C1 extends yl{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}}class A1 extends yl{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}}class P1 extends N{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=i,this.color=o.getColor()}}class rn extends N{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new S(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin{var l=n[u];return s+(l-s)*e}).join(" ");return o}}class I1 extends N{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:n}=this;for(var o of n)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class M1 extends N{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class _1 extends A{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class V1 extends Ce{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class D1 extends Ce{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,n=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:n}=t.screen,o=new S(t,"fontSize",J.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new ve(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new tn(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function $o(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function tr(a){for(var e=1;e{var{type:i,points:n}=r;switch(i){case w.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case w.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case w.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case w.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case w.ARC:{var[o,s,u,l,h,f,c,v]=n,d=u>l?u:l,g=u>l?1:u/l,p=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(c),e.scale(g,p),e.arc(0,0,d,h,h+f,!!(1-v)),e.scale(1/g,1/p),e.rotate(-c),e.translate(-o,-s));break}case w.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:f}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(f,0,0),e.strokeStyle&&e.strokeText(f,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(u.x,u.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,n,o,s,u,l){var h=o,f=this.measureText(e,u);u===" "&&t==="justify"&&r-1&&(h+=this.getLetterSpacingAt(l));var c=this.textHeight/20,v=this.getEquidistantPointOnPath(h,c,0),d=this.getEquidistantPointOnPath(h+f,c,0),g={p0:v,p1:d},p=v&&d?Math.atan2(d.y-v.y,d.x-v.x):0;if(s){var y=Math.cos(Math.PI/2+p)*s,x=Math.cos(-p)*s;g.p0=tr(tr({},v),{},{x:v.x+y,y:v.y+x}),g.p1=tr(tr({},d),{},{x:d.x+y,y:d.y+x})}return h+=f,{offset:h,segment:g,rotation:p}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(e,i);return r.set(i,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(T=>T.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var f=[],c=t.length;this.letterSpacingCache=f;for(var v=0;vE===0?0:T+$||0,0),g=this.measureText(e),p=Math.max(g+d,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),x=this.getStyle("startOffset").getNumber(0)*y,b=0;(s==="middle"||s==="center")&&(b=-p/2),(s==="end"||s==="right")&&(b=-p),b+=x,r.forEach((T,$)=>{var{offset:E,segment:O,rotation:C}=this.findSegmentToFitChar(e,s,p,y,i,b,o,T,$);b=E,!(!O.p0||!O.p1)&&this.glyphInfo.push({text:r[$],p0:O.p0,p1:O.p1,rotation:C})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,l=[];switch(s.type){case w.MOVE_TO:this.pathM(r,l);break;case w.LINE_TO:u=this.pathL(r,l);break;case w.HORIZ_LINE_TO:u=this.pathH(r,l);break;case w.VERT_LINE_TO:u=this.pathV(r,l);break;case w.CURVE_TO:this.pathC(r,l);break;case w.SMOOTH_CURVE_TO:u=this.pathS(r,l);break;case w.QUAD_TO:this.pathQ(r,l);break;case w.SMOOTH_QUAD_TO:u=this.pathT(r,l);break;case w.ARC:l=this.pathA(r);break;case w.CLOSE_PATH:A.pathZ(r);break}s.type!==w.CLOSE_PATH?t.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):t.push({type:w.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=A.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=A.pathL(e).point;return t.push(r,i),w.LINE_TO}pathH(e,t){var{x:r,y:i}=A.pathH(e).point;return t.push(r,i),w.LINE_TO}pathV(e,t){var{x:r,y:i}=A.pathV(e).point;return t.push(r,i),w.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathC(e);t.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathS(e);return t.push(r.x,r.y,i.x,i.y,n.x,n.y),w.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=A.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=A.pathT(e);return t.push(r.x,r.y,i.x,i.y),w.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:n,centp:o,a1:s,ad:u}=A.pathA(e);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,t,r,s,u,n,i]}calcLength(e,t,r,i){var n=0,o=null,s=null,u=0;switch(r){case w.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case w.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,t,i[0],i[1],i[2],i[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.ARC:{n=0;var l=i[4],h=i[5],f=i[4]+h,c=Math.PI/180;if(Math.abs(l-f)f;u-=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+c;u5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(n-r)/(i-t+at),l=Math.sqrt(e*e/(1+u*u));it)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&u>f)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case w.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case w.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,n,o,s,u,l){var h=u*mo(e)+o*bo(e)+i*xo(e)+t*To(e),f=l*mo(e)+s*bo(e)+n*xo(e)+r*To(e);return{x:h,y:f}}getPointOnQuadraticBezier(e,t,r,i,n,o,s){var u=o*Oo(e)+i*So(e)+t*Eo(e),l=s*Oo(e)+n*So(e)+r*Eo(e);return{x:u,y:l}}getPointOnEllipticalArc(e,t,r,i,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:t+(l.x*u+l.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,n=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var k1=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class B1 extends Ge{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(e){var t=this;return xe(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return xe(function*(){var r=k1.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var n=yield t.document.fetch(e),o=yield n.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new ve(e,t,e+r,t+i)}}class F1 extends Ge{constructor(){super(...arguments),this.type="symbol"}render(e){}}class j1{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return xe(function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(t),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}class ml extends N{constructor(e,t,r){super(e,t,r),this.type="style";var i=ht(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),l=u[0].split(","),h=u[1].split(";");l.forEach(f=>{var c=f.trim();if(c){var v=e.styles[c]||{};if(h.forEach(p=>{var y=p.indexOf(":"),x=p.substr(0,y).trim(),b=p.substr(y+1,p.length-y).trim();x&&b&&(v[x]=new S(e,x,b))}),e.styles[c]=v,e.stylesSpecificity[c]=r1(c),c==="@font-face"){var d=v["font-family"].getString().replace(/"|'/g,""),g=v.src.getString().split(",");g.forEach(p=>{if(p.indexOf('format("svg")')>0){var y=ll(p);y&&new j1(e).load(d,y)}})}}})}})}}ml.parseExternalUrl=ll;class U1 extends Ge{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new Nt(t,null),i.attributes.viewBox=new S(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new S(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new S(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new S(t,"opacity",this.calculateOpacity())),i.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new S(t,"width",n.getString())),o.hasValue()&&(i.attributes.height=new S(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return ke.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function rr(a,e,t,r,i,n){return a[t*r*4+e*4+n]}function ar(a,e,t,r,i,n,o){a[t*r*4+e*4+n]=o}function j(a,e,t){var r=a[e];return r*t}function me(a,e,t,r){return e+Math.cos(a)*t+Math.sin(a)*r}class bl extends N{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=ie(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[me(o,.213,.787,-.213),me(o,.715,-.715,-.715),me(o,.072,-.072,.928),0,0,me(o,.213,-.213,.143),me(o,.715,.285,.14),me(o,.072,-.072,-.283),0,0,me(o,.213,-.213,-.787),me(o,.715,-.715,.715),me(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,i,n),l=0;l{u.addBoundingBox(d.getBoundingBox(e))}),i=Math.floor(u.x1),n=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var l=this.removeStyles(t,_r.ignoreStyles),h=r.createCanvas(i+o,n+s),f=h.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new bl(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+o,n+s);var c=r.createCanvas(i+o,n+s),v=c.getContext("2d");r.screen.setDefaults(v),t.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=f.createPattern(h,"no-repeat"),v.fillRect(0,0,i+o,n+s),e.fillStyle=v.createPattern(c,"no-repeat"),e.fillRect(0,0,i+o,n+s),this.restoreStyles(t,l)}render(e){}}_r.ignoreStyles=["mask","transform","clip-path"];var wo=()=>{};class G1 extends N{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:n}=e;r&&(r.beginPath=wo,r.closePath=wo),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=ke.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=n)}render(e){}}class Vr extends N{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,n=t.getBoundingBox(e);if(n){var o=0,s=0;i.forEach(y=>{var x=y.extraFilterDistance||0;o=Math.max(o,x),s=Math.max(s,x)});var u=Math.floor(n.width),l=Math.floor(n.height),h=u+2*o,f=l+2*s;if(!(h<1||f<1)){var c=Math.floor(n.x),v=Math.floor(n.y),d=this.removeStyles(t,Vr.ignoreStyles),g=r.createCanvas(h,f),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-c+o,-v+s),t.render(p),i.forEach(y=>{typeof y.apply=="function"&&y.apply(p,0,0,h,f)}),e.drawImage(g,0,0,h,f,c-o,v-s,h,f),this.restoreStyles(t,d)}}}render(e){}}Vr.ignoreStyles=["filter","transform","clip-path"];class z1 extends N{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,n){}}class H1 extends N{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,n){}}class Y1 extends N{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,n){}}class X1 extends N{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),Fb(l,t,r,i,n,s),u&&u.removeChild(l)}}class W1 extends N{constructor(){super(...arguments),this.type="title"}}class q1 extends N{constructor(){super(...arguments),this.type="desc"}}var Q1={svg:Nt,rect:dl,circle:x1,ellipse:T1,line:O1,polyline:pl,polygon:S1,path:A,pattern:E1,marker:$1,defs:w1,linearGradient:C1,radialGradient:A1,stop:P1,animate:rn,animateColor:R1,animateTransform:N1,font:I1,"font-face":M1,"missing-glyph":_1,glyph:gl,text:Ce,tspan:Mr,tref:V1,a:D1,textPath:L1,image:B1,g:tn,symbol:F1,style:ml,use:U1,mask:_r,clipPath:G1,filter:Vr,feDropShadow:z1,feMorphology:H1,feComposite:Y1,feColorMatrix:bl,feGaussianBlur:X1,title:W1,desc:q1};function Co(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function K1(a){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(n,o,s,u,l)=>{i(l)},t.src=a})}),mi.apply(this,arguments)}class $e{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=$e.createCanvas,createImage:n=$e.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=$e.elementTypes[t];return typeof r<"u"?new r(this,e):new g1(this,e)}createTextNode(e){return new b1(this,e)}setViewBox(e){this.screen.setViewBox(K1({document:this},e))}}$e.createCanvas=Z1;$e.createImage=J1;$e.elementTypes=Q1;function Ao(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function Ve(a){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new ja(r),this.screen=new Ir(e,r),this.options=r;var i=new $e(this,r),n=i.createDocumentElement(t);this.document=i,this.documentElement=n}static from(e,t){var r=arguments;return xe(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},n=new ja(i),o=yield n.parse(t);return new mt(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new ja(r),n=i.parseFromString(t);return new mt(e,n,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return mt.from(e,t,Ve(Ve({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return mt.fromString(e,t,Ve(Ve({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return xe(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(Ve({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,Ve(Ve({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}export{D1 as AElement,R1 as AnimateColorElement,rn as AnimateElement,N1 as AnimateTransformElement,ve as BoundingBox,mo as CB1,bo as CB2,xo as CB3,To as CB4,mt as Canvg,x1 as CircleElement,G1 as ClipPathElement,w1 as DefsElement,q1 as DescElement,$e as Document,N as Element,T1 as EllipseElement,bl as FeColorMatrixElement,Y1 as FeCompositeElement,z1 as FeDropShadowElement,X1 as FeGaussianBlurElement,H1 as FeMorphologyElement,Vr as FilterElement,J as Font,I1 as FontElement,M1 as FontFaceElement,tn as GElement,gl as GlyphElement,yl as GradientElement,B1 as ImageElement,O1 as LineElement,C1 as LinearGradientElement,$1 as MarkerElement,_r as MaskElement,fl as Matrix,_1 as MissingGlyphElement,i1 as Mouse,at as PSEUDO_ZERO,ja as Parser,A as PathElement,w as PathParser,E1 as PatternElement,V as Point,S1 as PolygonElement,pl as PolylineElement,S as Property,Oo as QB1,So as QB2,Eo as QB3,A1 as RadialGradientElement,dl as RectElement,Ge as RenderedElement,u1 as Rotate,Nt as SVGElement,j1 as SVGFontLoader,l1 as Scale,Ir as Screen,cl as Skew,h1 as SkewX,v1 as SkewY,P1 as StopElement,ml as StyleElement,F1 as SymbolElement,V1 as TRefElement,Mr as TSpanElement,Ce as TextElement,L1 as TextPathElement,W1 as TitleElement,ke as Transform,o1 as Translate,g1 as UnknownElement,U1 as UseElement,a1 as ViewPort,ht as compressSpaces,mt as default,r1 as getSelectorSpecificity,Xb as normalizeAttributeName,Wb as normalizeColor,ll as parseExternalUrl,a2 as presets,ie as toNumbers,zb as trimLeft,Hb as trimRight,po as vectorMagnitude,yo as vectorsAngle,yi as vectorsRatio}; diff --git a/assets/dist/assets/interactive-DCALKLPt.js b/assets/dist/assets/interactive-DCALKLPt.js new file mode 100644 index 00000000..96c75885 --- /dev/null +++ b/assets/dist/assets/interactive-DCALKLPt.js @@ -0,0 +1,30 @@ +var Js=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);import{r as d,e as pn,p as T,j as u,P as ea,a as ta,R as z,w as xi,s as Qr,b as yi,c as ra,i as na}from"./index-F5ndk3lt.js";import{g as ho}from"./_commonjsHelpers-BosuxZz1.js";var km=Js((Se,we)=>{var mo={exports:{}},Z={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fe=typeof Symbol=="function"&&Symbol.for,Fn=fe?Symbol.for("react.element"):60103,In=fe?Symbol.for("react.portal"):60106,yr=fe?Symbol.for("react.fragment"):60107,Sr=fe?Symbol.for("react.strict_mode"):60108,wr=fe?Symbol.for("react.profiler"):60114,Tr=fe?Symbol.for("react.provider"):60109,Er=fe?Symbol.for("react.context"):60110,An=fe?Symbol.for("react.async_mode"):60111,Or=fe?Symbol.for("react.concurrent_mode"):60111,jr=fe?Symbol.for("react.forward_ref"):60112,$r=fe?Symbol.for("react.suspense"):60113,ia=fe?Symbol.for("react.suspense_list"):60120,Cr=fe?Symbol.for("react.memo"):60115,Rr=fe?Symbol.for("react.lazy"):60116,oa=fe?Symbol.for("react.block"):60121,sa=fe?Symbol.for("react.fundamental"):60117,aa=fe?Symbol.for("react.responder"):60118,la=fe?Symbol.for("react.scope"):60119;function Te(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Fn:switch(e=e.type,e){case An:case Or:case yr:case wr:case Sr:case $r:return e;default:switch(e=e&&e.$$typeof,e){case Er:case jr:case Rr:case Cr:case Tr:return e;default:return t}}case In:return t}}}function bo(e){return Te(e)===Or}Z.AsyncMode=An;Z.ConcurrentMode=Or;Z.ContextConsumer=Er;Z.ContextProvider=Tr;Z.Element=Fn;Z.ForwardRef=jr;Z.Fragment=yr;Z.Lazy=Rr;Z.Memo=Cr;Z.Portal=In;Z.Profiler=wr;Z.StrictMode=Sr;Z.Suspense=$r;Z.isAsyncMode=function(e){return bo(e)||Te(e)===An};Z.isConcurrentMode=bo;Z.isContextConsumer=function(e){return Te(e)===Er};Z.isContextProvider=function(e){return Te(e)===Tr};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fn};Z.isForwardRef=function(e){return Te(e)===jr};Z.isFragment=function(e){return Te(e)===yr};Z.isLazy=function(e){return Te(e)===Rr};Z.isMemo=function(e){return Te(e)===Cr};Z.isPortal=function(e){return Te(e)===In};Z.isProfiler=function(e){return Te(e)===wr};Z.isStrictMode=function(e){return Te(e)===Sr};Z.isSuspense=function(e){return Te(e)===$r};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yr||e===Or||e===wr||e===Sr||e===$r||e===ia||typeof e=="object"&&e!==null&&(e.$$typeof===Rr||e.$$typeof===Cr||e.$$typeof===Tr||e.$$typeof===Er||e.$$typeof===jr||e.$$typeof===sa||e.$$typeof===aa||e.$$typeof===la||e.$$typeof===oa)};Z.typeOf=Te;mo.exports=Z;var ua=mo.exports,go=ua,ca={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},da={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vo={};vo[go.ForwardRef]=ca;vo[go.Memo]=da;function fa(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,i,o,s=[],a="",l=e.split("/");for(l[0]||l.shift();i=l.shift();)r=i[0],r==="*"?(s.push(r),a+=i[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(n=i.indexOf("?",1),o=i.indexOf(".",1),s.push(i.substring(1,~n?n:~o?o:i.length)),a+=~n&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(a+=(~n?"?":"")+"\\"+i.substring(o))):a+="/"+i;return{keys:s,pattern:new RegExp("^"+a+(t?"(?=$|/)":"/?$"),"i")}}var xo={exports:{}},yo={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var jt=d;function pa(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ha=typeof Object.is=="function"?Object.is:pa,ma=jt.useState,ba=jt.useEffect,ga=jt.useLayoutEffect,va=jt.useDebugValue;function xa(e,t){var r=t(),n=ma({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return ga(function(){i.value=r,i.getSnapshot=t,Xr(i)&&o({inst:i})},[e,r,t]),ba(function(){return Xr(i)&&o({inst:i}),e(function(){Xr(i)&&o({inst:i})})},[e]),va(r),r}function Xr(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ha(e,r)}catch{return!0}}function ya(e,t){return t()}var Sa=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ya:xa;yo.useSyncExternalStore=jt.useSyncExternalStore!==void 0?jt.useSyncExternalStore:Sa;xo.exports=yo;var wa=xo.exports;const{useEffect:Ta,useLayoutEffect:Ea,useRef:Oa,useInsertionEffect:ja}=pn,$a=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",So=$a?Ea:Ta,Ca=ja||So,_n=e=>{const t=Oa([e,(...r)=>t[0](...r)]).current;return Ca(()=>{t[0]=e}),t[1]},Ra="popstate",Pn="pushState",Nn="replaceState",Fa="hashchange",Si=[Ra,Pn,Nn,Fa],Ia=e=>{for(const t of Si)addEventListener(t,e);return()=>{for(const t of Si)removeEventListener(t,e)}},wo=(e,t)=>wa.useSyncExternalStore(Ia,e,t),Aa=()=>location.search,_a=({ssrSearch:e=""}={})=>wo(Aa,()=>e),wi=()=>location.pathname,Pa=({ssrPath:e}={})=>wo(wi,e?()=>e:wi),Na=(e,{replace:t=!1,state:r=null}={})=>history[t?Nn:Pn](r,"",e),ka=(e={})=>[Pa(e),Na],Ti=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ti]>"u"){for(const e of[Pn,Nn]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,Ti,{value:!0})}const Da=(e="",t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Ma=(e,t="")=>e[0]==="~"?e.slice(1):t+e,La=e=>{try{return decodeURI(e)}catch{return e}},To={hook:ka,searchHook:_a,parser:fa,base:"",ssrPath:void 0,ssrSearch:void 0},Eo=d.createContext(To),Ut=()=>d.useContext(Eo),Va=d.createContext({}),Fr=e=>{const[t,r]=e.hook(e);return[La(Da(e.base,t)),_n((n,i)=>r(Ma(n,e.base),i))]},et=()=>Fr(Ut()),Oo=(e,t,r,n)=>{const{pattern:i,keys:o}=e(t||"*",n),[s,...a]=i.exec(r)||[];return s!==void 0?[!0,Object.fromEntries(o.map((l,c)=>[l,a[c]])),...n?[s]:[]]:[!1,null]},jo=({children:e,...t})=>{const r=Ut(),n=t.hook?To:r;let i=n,o=d.useRef({}),s=o.current,a=s;for(let l in n){const c=l==="base"?n[l]+(t[l]||""):t[l]||n[l];s===a&&c!==a[l]&&(o.current=a={...a}),a[l]=c,c!==n[l]&&(i=a)}return d.createElement(Eo.Provider,{value:i,children:e})},Ei=({children:e,component:t},r)=>t?d.createElement(t,{params:r}):typeof e=="function"?e(r):e,Ge=({path:e,nest:t,match:r,...n})=>{const i=Ut(),[o]=Fr(i),[s,a,l]=r??Oo(i.parser,e,o,t);if(!s)return null;const c=l?d.createElement(jo,{base:l},Ei(n,a)):Ei(n,a);return d.createElement(Va.Provider,{value:a,children:c})},$o=d.forwardRef((e,t)=>{const r=Ut(),[,n]=Fr(r),{to:i,href:o=i,onClick:s,asChild:a,children:l,replace:c,state:p,...m}=e,h=_n(b=>{b.ctrlKey||b.metaKey||b.altKey||b.shiftKey||b.button!==0||(s&&s(b),b.defaultPrevented||(b.preventDefault(),n(o,e)))}),f=o[0]==="~"?o.slice(1):r.base+o;return a&&d.isValidElement(l)?d.cloneElement(l,{href:f,onClick:h}):d.createElement("a",{...m,href:f,onClick:h,children:l,ref:t})}),hn=e=>Array.isArray(e)?[].concat(...e.map(t=>t&&t.type===d.Fragment?hn(t.props.children):hn(t))):[e],za=({children:e,location:t})=>{const r=Ut(),[n]=Fr(r);for(const i of hn(e)){let o=0;if(d.isValidElement(i)&&(o=Oo(r.parser,i.props.path,t||n,i.props.nest))[0])return d.cloneElement(i,{match:o})}return null},Ht=e=>{const{to:t,href:r=t}=e,[,n]=et(),i=_n(()=>n(t||r,e));return So(()=>{i()},[]),null},kn=d.createContext({basePath:"",csrfToken:"",codelistGroups:[]});kn.displayName="AppData";function Ft(){const e=d.useContext(kn);if(e===void 0)throw new Error("useAppData must be used within a AppData.Provider component");return e}const Dn=d.createContext();Dn.displayName="FormData";function Co({children:e}){const[t,r]=d.useState({}),n=d.useMemo(()=>({formData:t,setFormData:r}),[t]);return u.jsx(Dn.Provider,{value:n,children:e})}function Ce(){const e=d.useContext(Dn);if(e===void 0)throw new Error("useFormData must be used within a FormData.Provider component");return e}Co.propTypes={children:T.element.isRequired};const qa=({dateStart:e,dateEnd:t})=>{const r=new Date(e),n=new Date(t),i={year:"numeric",month:"long",day:"numeric"};return{endISO:n.toISOString(),endStr:n.toLocaleDateString("en-GB",i),startISO:r.toISOString(),startStr:r.toLocaleDateString("en-GB",i)}},Ro=[{label:"Weeks",value:"weeks"},{label:"Months",value:"months"},{label:"Years",value:"years"}],sr={label:"Filter the population",items:[{label:"All people",value:"all"},{label:"Adults only",value:"adults"},{label:"Children only",value:"children"}]},Nt={label:"Break down the report by demographics",items:[{label:"Sex",value:"sex"},{label:"Age",value:"age"},{label:"Ethnicity",value:"ethnicity"},{label:"Index of Multiple Deprivation (IMD)",value:"imd"},{label:"Region",value:"region"}]};function je(...e){return e.filter(Boolean).join(" ")}function Oi(e){const t=document.getElementById(e);return t!=null&&t.textContent?JSON.parse(t==null?void 0:t.textContent).map(i=>({label:i.name,organisation:i.organisation,type:e.slice(9,e.length-1),user:i.user,value:i.slug,updatedDate:i.updated_date})):[]}function Gt(e){const{formData:t}=Ce(),r=[];return e.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)||r.push(n)}),!!r.length}function Ba(e){return!!e&&e.constructor===Object}function Ua({dataset:{basePath:e,csrfToken:t,events:r,medications:n,dateStart:i,dateEnd:o}}){return{basePath:e,csrfToken:t,codelistGroups:[{name:"SNOMED CT",id:"event",codelists:Oi(r)},{name:"dm+d",id:"medication",codelists:Oi(n)}],dates:{...qa({dateStart:i,dateEnd:o})}}}const Ha=e=>(Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e);function Fo({children:e}){const[t]=et(),r=t==="/",n=t==="/success";return u.jsxs("main",{className:"min-h-[66vh] flex-grow pb-12 bg-gray-100",children:[u.jsxs("div",{className:"mb-6 mt-3 flex flex-col gap-y-2 text-left md:mt-0",children:[u.jsx("h1",{className:"text-3xl tracking-tight break-words md:text-4xl font-bold text-gray-900",children:"Interactive request"}),u.jsx("p",{className:"font-lg text-gray-600",children:"Make a new request for an interactive report."})]}),u.jsx("section",{className:"max-w-3xl relative",children:u.jsxs("div",{className:je("bg-white p-6 shadow rounded",!r&&!n?"pt-12":null),children:[!r&&!n?u.jsx("button",{className:je("absolute top-0 left-0 text-sm font-semibold py-1 pl-2 pr-3 flex text-white bg-oxford-800 rounded-br transition-colors","hover:text-oxford-50 hover:bg-oxford-700","focus-within:text-oxford-50 focus-within:bg-oxford-700"),onClick:()=>window.history.back(),type:"button",children:"← Back"}):null,e]})})]})}Fo.propTypes={children:ea.node.isRequired};var Ga=function(t){return Ka(t)&&!Za(t)};function Ka(e){return!!e&&typeof e=="object"}function Za(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qa(e)}var Wa=typeof Symbol=="function"&&Symbol.for,Ya=Wa?Symbol.for("react.element"):60103;function Qa(e){return e.$$typeof===Ya}function Xa(e){return Array.isArray(e)?[]:{}}function pr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Mt(Xa(e),e,t):e}function Ja(e,t,r){return e.concat(t).map(function(n){return pr(n,r)})}function el(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(i){n[i]=pr(e[i],r)}),Object.keys(t).forEach(function(i){!r.isMergeableObject(t[i])||!e[i]?n[i]=pr(t[i],r):n[i]=Mt(e[i],t[i],r)}),n}function Mt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ja,r.isMergeableObject=r.isMergeableObject||Ga;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):el(e,t,r):pr(t,r)}Mt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Mt(n,i,r)},{})};var mn=Mt,Io=typeof global=="object"&&global&&global.Object===Object&&global,tl=typeof self=="object"&&self&&self.Object===Object&&self,De=Io||tl||Function("return this")(),Qe=De.Symbol,Ao=Object.prototype,rl=Ao.hasOwnProperty,nl=Ao.toString,Pt=Qe?Qe.toStringTag:void 0;function il(e){var t=rl.call(e,Pt),r=e[Pt];try{e[Pt]=void 0;var n=!0}catch{}var i=nl.call(e);return n&&(t?e[Pt]=r:delete e[Pt]),i}var ol=Object.prototype,sl=ol.toString;function al(e){return sl.call(e)}var ll="[object Null]",ul="[object Undefined]",ji=Qe?Qe.toStringTag:void 0;function ft(e){return e==null?e===void 0?ul:ll:ji&&ji in Object(e)?il(e):al(e)}function _o(e,t){return function(r){return e(t(r))}}var Mn=_o(Object.getPrototypeOf,Object);function pt(e){return e!=null&&typeof e=="object"}var cl="[object Object]",dl=Function.prototype,fl=Object.prototype,Po=dl.toString,pl=fl.hasOwnProperty,hl=Po.call(Object);function $i(e){if(!pt(e)||ft(e)!=cl)return!1;var t=Mn(e);if(t===null)return!0;var r=pl.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Po.call(r)==hl}var Ci=Array.isArray,Ri=Object.keys,ml=Object.prototype.hasOwnProperty,bl=typeof Element<"u";function bn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Ci(e),n=Ci(t),i,o,s;if(r&&n){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!bn(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var a=e instanceof Date,l=t instanceof Date;if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,p=t instanceof RegExp;if(c!=p)return!1;if(c&&p)return e.toString()==t.toString();var m=Ri(e);if(o=m.length,o!==Ri(t).length)return!1;for(i=o;i--!==0;)if(!ml.call(t,m[i]))return!1;if(bl&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(s=m[i],!(s==="_owner"&&e.$$typeof)&&!bn(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}var gl=function(t,r){try{return bn(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const it=ho(gl);function vl(){this.__data__=[],this.size=0}function No(e,t){return e===t||e!==e&&t!==t}function Ir(e,t){for(var r=e.length;r--;)if(No(e[r][0],t))return r;return-1}var xl=Array.prototype,yl=xl.splice;function Sl(e){var t=this.__data__,r=Ir(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():yl.call(t,r,1),--this.size,!0}function wl(e){var t=this.__data__,r=Ir(t,e);return r<0?void 0:t[r][1]}function Tl(e){return Ir(this.__data__,e)>-1}function El(e,t){var r=this.__data__,n=Ir(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Be(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Eu}var Ou="[object Arguments]",ju="[object Array]",$u="[object Boolean]",Cu="[object Date]",Ru="[object Error]",Fu="[object Function]",Iu="[object Map]",Au="[object Number]",_u="[object Object]",Pu="[object RegExp]",Nu="[object Set]",ku="[object String]",Du="[object WeakMap]",Mu="[object ArrayBuffer]",Lu="[object DataView]",Vu="[object Float32Array]",zu="[object Float64Array]",qu="[object Int8Array]",Bu="[object Int16Array]",Uu="[object Int32Array]",Hu="[object Uint8Array]",Gu="[object Uint8ClampedArray]",Ku="[object Uint16Array]",Zu="[object Uint32Array]",ee={};ee[Vu]=ee[zu]=ee[qu]=ee[Bu]=ee[Uu]=ee[Hu]=ee[Gu]=ee[Ku]=ee[Zu]=!0;ee[Ou]=ee[ju]=ee[Mu]=ee[$u]=ee[Lu]=ee[Cu]=ee[Ru]=ee[Fu]=ee[Iu]=ee[Au]=ee[_u]=ee[Pu]=ee[Nu]=ee[ku]=ee[Du]=!1;function Wu(e){return pt(e)&&qo(e.length)&&!!ee[ft(e)]}function Ln(e){return function(t){return e(t)}}var Bo=typeof Se=="object"&&Se&&!Se.nodeType&&Se,Dt=Bo&&typeof we=="object"&&we&&!we.nodeType&&we,Yu=Dt&&Dt.exports===Bo,en=Yu&&Io.process,$t=function(){try{var e=Dt&&Dt.require&&Dt.require("util").types;return e||en&&en.binding&&en.binding("util")}catch{}}(),Ni=$t&&$t.isTypedArray,Qu=Ni?Ln(Ni):Wu,Xu=Object.prototype,Ju=Xu.hasOwnProperty;function Uo(e,t){var r=Zt(e),n=!r&&gu(e),i=!r&&!n&&zo(e),o=!r&&!n&&!i&&Qu(e),s=r||n||i||o,a=s?pu(e.length,String):[],l=a.length;for(var c in e)(t||Ju.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Tu(c,l)))&&a.push(c);return a}var ec=Object.prototype;function Vn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ec;return e===r}var tc=_o(Object.keys,Object),rc=Object.prototype,nc=rc.hasOwnProperty;function ic(e){if(!Vn(e))return tc(e);var t=[];for(var r in Object(e))nc.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ho(e){return e!=null&&qo(e.length)&&!ko(e)}function zn(e){return Ho(e)?Uo(e):ic(e)}function oc(e,t){return e&&_r(t,zn(t),e)}function sc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ac=Object.prototype,lc=ac.hasOwnProperty;function uc(e){if(!Kt(e))return sc(e);var t=Vn(e),r=[];for(var n in e)n=="constructor"&&(t||!lc.call(e,n))||r.push(n);return r}function qn(e){return Ho(e)?Uo(e,!0):uc(e)}function cc(e,t){return e&&_r(t,qn(t),e)}var Go=typeof Se=="object"&&Se&&!Se.nodeType&&Se,ki=Go&&typeof we=="object"&&we&&!we.nodeType&&we,dc=ki&&ki.exports===Go,Di=dc?De.Buffer:void 0,Mi=Di?Di.allocUnsafe:void 0;function fc(e,t){if(t)return e.slice();var r=e.length,n=Mi?Mi(r):new e.constructor(r);return e.copy(n),n}function Ko(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0)&&(r[i]=e[i]);return r}var Pr=d.createContext(void 0);Pr.displayName="FormikContext";var Zd=Pr.Provider;Pr.Consumer;function Ue(){var e=d.useContext(Pr);return e}var ye=function(t){return typeof t=="function"},Nr=function(t){return t!==null&&typeof t=="object"},Wd=function(t){return String(Math.floor(Number(t)))===t},tn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Yd=function(t){return d.Children.count(t)===0},rn=function(t){return Nr(t)&&ye(t.then)};function xe(e,t,r,n){n===void 0&&(n=0);for(var i=ns(t);e&&n=0?[]:{}}}return(o===0?e:i)[s[o]]===r?e:(r===void 0?delete i[s[o]]:i[s[o]]=r,o===0&&r===void 0&&delete n[s[o]],n)}function is(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var i=0,o=Object.keys(e);i0?j.map(function(N){return R(N,xe(g,N))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(N){return N.reduce(function(L,K,de){return K==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||K&&(L=lt(L,j[de],K)),L},{})})},[R]),H=d.useCallback(function(g){return Promise.all([C(g),h.validationSchema?q(g):{},h.validate?_(g):{}]).then(function(j){var I=j[0],N=j[1],L=j[2],K=mn.all([I,N,L],{arrayMerge:tf});return K})},[h.validate,h.validationSchema,C,_,q]),U=Ee(function(g){return g===void 0&&(g=E.values),F({type:"SET_ISVALIDATING",payload:!0}),H(g).then(function(j){return v.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:j})),j})});d.useEffect(function(){s&&v.current===!0&&it(f.current,h.initialValues)&&U(f.current)},[s,U]);var ae=d.useCallback(function(g){var j=g&&g.values?g.values:f.current,I=g&&g.errors?g.errors:b.current?b.current:h.initialErrors||{},N=g&&g.touched?g.touched:y.current?y.current:h.initialTouched||{},L=g&&g.status?g.status:x.current?x.current:h.initialStatus;f.current=j,b.current=I,y.current=N,x.current=L;var K=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!g&&!!g.isSubmitting,errors:I,touched:N,status:L,values:j,isValidating:!!g&&!!g.isValidating,submitCount:g&&g.submitCount&&typeof g.submitCount=="number"?g.submitCount:0}})};if(h.onReset){var de=h.onReset(E.values,_t);rn(de)?de.then(K):K()}else K()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);d.useEffect(function(){v.current===!0&&!it(f.current,h.initialValues)&&c&&(f.current=h.initialValues,ae(),s&&U(f.current))},[c,h.initialValues,ae,s,U]),d.useEffect(function(){c&&v.current===!0&&!it(b.current,h.initialErrors)&&(b.current=h.initialErrors||nt,F({type:"SET_ERRORS",payload:h.initialErrors||nt}))},[c,h.initialErrors]),d.useEffect(function(){c&&v.current===!0&&!it(y.current,h.initialTouched)&&(y.current=h.initialTouched||rr,F({type:"SET_TOUCHED",payload:h.initialTouched||rr}))},[c,h.initialTouched]),d.useEffect(function(){c&&v.current===!0&&!it(x.current,h.initialStatus)&&(x.current=h.initialStatus,F({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var S=Ee(function(g){if(w.current[g]&&ye(w.current[g].validate)){var j=xe(E.values,g),I=w.current[g].validate(j);return rn(I)?(F({type:"SET_ISVALIDATING",payload:!0}),I.then(function(N){return N}).then(function(N){F({type:"SET_FIELD_ERROR",payload:{field:g,value:N}}),F({type:"SET_ISVALIDATING",payload:!1})})):(F({type:"SET_FIELD_ERROR",payload:{field:g,value:I}}),Promise.resolve(I))}else if(h.validationSchema)return F({type:"SET_ISVALIDATING",payload:!0}),q(E.values,g).then(function(N){return N}).then(function(N){F({type:"SET_FIELD_ERROR",payload:{field:g,value:xe(N,g)}}),F({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ne=d.useCallback(function(g,j){var I=j.validate;w.current[g]={validate:I}},[]),G=d.useCallback(function(g){delete w.current[g]},[]),ue=Ee(function(g,j){F({type:"SET_TOUCHED",payload:g});var I=j===void 0?i:j;return I?U(E.values):Promise.resolve()}),X=d.useCallback(function(g){F({type:"SET_ERRORS",payload:g})},[]),re=Ee(function(g,j){var I=ye(g)?g(E.values):g;F({type:"SET_VALUES",payload:I});var N=j===void 0?r:j;return N?U(I):Promise.resolve()}),ce=d.useCallback(function(g,j){F({type:"SET_FIELD_ERROR",payload:{field:g,value:j}})},[]),ie=Ee(function(g,j,I){F({type:"SET_FIELD_VALUE",payload:{field:g,value:j}});var N=I===void 0?r:I;return N?U(lt(E.values,g,j)):Promise.resolve()}),Pe=d.useCallback(function(g,j){var I=j,N=g,L;if(!tn(g)){g.persist&&g.persist();var K=g.target?g.target:g.currentTarget,de=K.type,Me=K.name,Wr=K.id,Yr=K.value,Qs=K.checked,Dm=K.outerHTML,vi=K.options,Xs=K.multiple;I=j||Me||Wr,N=/number|range/.test(de)?(L=parseFloat(Yr),isNaN(L)?"":L):/checkbox/.test(de)?nf(xe(E.values,I),Qs,Yr):vi&&Xs?rf(vi):Yr}I&&ie(I,N)},[ie,E.values]),k=Ee(function(g){if(tn(g))return function(j){return Pe(j,g)};Pe(g)}),V=Ee(function(g,j,I){j===void 0&&(j=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:g,value:j}});var N=I===void 0?i:I;return N?U(E.values):Promise.resolve()}),oe=d.useCallback(function(g,j){g.persist&&g.persist();var I=g.target,N=I.name,L=I.id,K=I.outerHTML,de=j||N||L;V(de,!0)},[V]),ve=Ee(function(g){if(tn(g))return function(j){return oe(j,g)};oe(g)}),rt=d.useCallback(function(g){ye(g)?F({type:"SET_FORMIK_STATE",payload:g}):F({type:"SET_FORMIK_STATE",payload:function(){return g}})},[]),M=d.useCallback(function(g){F({type:"SET_STATUS",payload:g})},[]),W=d.useCallback(function(g){F({type:"SET_ISSUBMITTING",payload:g})},[]),pe=Ee(function(){return F({type:"SUBMIT_ATTEMPT"}),U().then(function(g){var j=g instanceof Error,I=!j&&Object.keys(g).length===0;if(I){var N;try{if(N=Us(),N===void 0)return}catch(L){throw L}return Promise.resolve(N).then(function(L){return v.current&&F({type:"SUBMIT_SUCCESS"}),L}).catch(function(L){if(v.current)throw F({type:"SUBMIT_FAILURE"}),L})}else if(v.current&&(F({type:"SUBMIT_FAILURE"}),j))throw g})}),xt=Ee(function(g){g&&g.preventDefault&&ye(g.preventDefault)&&g.preventDefault(),g&&g.stopPropagation&&ye(g.stopPropagation)&&g.stopPropagation(),pe().catch(function(j){console.warn("Warning: An unhandled error was caught from submitForm()",j)})}),_t={resetForm:ae,validateForm:U,validateField:S,setErrors:X,setFieldError:ce,setFieldTouched:V,setFieldValue:ie,setStatus:M,setSubmitting:W,setTouched:ue,setValues:re,setFormikState:rt,submitForm:pe},Us=Ee(function(){return p(E.values,_t)}),Hs=Ee(function(g){g&&g.preventDefault&&ye(g.preventDefault)&&g.preventDefault(),g&&g.stopPropagation&&ye(g.stopPropagation)&&g.stopPropagation(),ae()}),Gs=d.useCallback(function(g){return{value:xe(E.values,g),error:xe(E.errors,g),touched:!!xe(E.touched,g),initialValue:xe(f.current,g),initialTouched:!!xe(y.current,g),initialError:xe(b.current,g)}},[E.errors,E.touched,E.values]),Ks=d.useCallback(function(g){return{setValue:function(I,N){return ie(g,I,N)},setTouched:function(I,N){return V(g,I,N)},setError:function(I){return ce(g,I)}}},[ie,V,ce]),Zs=d.useCallback(function(g){var j=Nr(g),I=j?g.name:g,N=xe(E.values,I),L={name:I,value:N,onChange:k,onBlur:ve};if(j){var K=g.type,de=g.value,Me=g.as,Wr=g.multiple;K==="checkbox"?de===void 0?L.checked=!!N:(L.checked=!!(Array.isArray(N)&&~N.indexOf(de)),L.value=de):K==="radio"?(L.checked=N===de,L.value=de):Me==="select"&&Wr&&(L.value=L.value||[],L.multiple=!0)}return L},[ve,k,E.values]),Zr=d.useMemo(function(){return!it(f.current,E.values)},[f.current,E.values]),Ws=d.useMemo(function(){return typeof a<"u"?Zr?E.errors&&Object.keys(E.errors).length===0:a!==!1&&ye(a)?a(h):a:E.errors&&Object.keys(E.errors).length===0},[a,Zr,E.errors,h]),Ys=te({},E,{initialValues:f.current,initialErrors:b.current,initialTouched:y.current,initialStatus:x.current,handleBlur:ve,handleChange:k,handleReset:Hs,handleSubmit:xt,resetForm:ae,setErrors:X,setFormikState:rt,setFieldTouched:V,setFieldValue:ie,setFieldError:ce,setStatus:M,setSubmitting:W,setTouched:ue,setValues:re,submitForm:pe,validateForm:U,validateField:S,isValid:Ws,dirty:Zr,unregisterField:G,registerField:ne,getFieldProps:Zs,getFieldMeta:Gs,getFieldHelpers:Ks,validateOnBlur:i,validateOnChange:r,validateOnMount:s});return Ys}function kr(e){var t=Xd(e),r=e.component,n=e.children,i=e.render,o=e.innerRef;return d.useImperativeHandle(o,function(){return t}),d.createElement(Zd,{value:t},r?d.createElement(r,t):i?i(t):n?ye(n)?n(t):Yd(n)?null:d.Children.only(n):null)}function Jd(e){var t={};if(e.inner){if(e.inner.length===0)return lt(t,e.path,e.message);for(var i=e.inner,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var s=o;xe(t,s.path)||(t=lt(t,s.path,s.message))}}return t}function ef(e,t,r,n){r===void 0&&(r=!1);var i=Sn(e);return t[r?"validateSync":"validate"](i,{abortEarly:!1,context:n||i})}function Sn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(i){return Array.isArray(i)===!0||$i(i)?Sn(i):i!==""?i:void 0}):$i(e[n])?t[n]=Sn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function tf(e,t,r){var n=e.slice();return t.forEach(function(o,s){if(typeof n[s]>"u"){var a=r.clone!==!1,l=a&&r.isMergeableObject(o);n[s]=l?mn(Array.isArray(o)?[]:{},o,r):o}else r.isMergeableObject(o)?n[s]=mn(e[s],o,r):e.indexOf(o)===-1&&n.push(o)}),n}function rf(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function nf(e,t,r){if(typeof e=="boolean")return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,o=e.indexOf(r),i=o>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}var of=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function Ee(e){var t=d.useRef(e);return of(function(){t.current=e}),d.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var sf=/[^.^\]^[]+|(?=\[\]|\.\.)/g,os=/^\d+$/,af=/^\d/,lf=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,uf=/^\s*(['"]?)(.*?)(\1)\s*$/,Zn=512,eo=new bt(Zn),to=new bt(Zn),ro=new bt(Zn),ut={Cache:bt,split:wn,normalizePath:nn,setter:function(e){var t=nn(e);return to.get(e)||to.set(e,function(n,i){for(var o=0,s=t.length,a=n;oe.match(hf)||[],Mr=e=>e[0].toUpperCase()+e.slice(1),Yn=(e,t)=>Dr(e).join(t).toLowerCase(),ss=e=>Dr(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),mf=e=>Mr(ss(e)),bf=e=>Yn(e,"_"),gf=e=>Yn(e,"-"),vf=e=>Mr(Yn(e," ")),xf=e=>Dr(e).map(Mr).join(" ");var on={words:Dr,upperFirst:Mr,camelCase:ss,pascalCase:mf,snakeCase:bf,kebabCase:gf,sentenceCase:vf,titleCase:xf},Qn={exports:{}};Qn.exports=function(e){return as(yf(e),e)};Qn.exports.array=as;function as(e,t){var r=e.length,n=new Array(r),i={},o=r,s=Sf(t),a=wf(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return n;function l(c,p,m){if(m.has(c)){var h;try{h=", node was:"+JSON.stringify(c)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[p]){i[p]=!0;var f=s.get(c)||new Set;if(f=Array.from(f),p=f.length){m.add(c);do{var b=f[--p];l(b,a.get(b),m)}while(p);m.delete(c)}n[--r]=c}}}function yf(e){for(var t=new Set,r=0,n=e.length;r"",Rf=/^Symbol\((.*)\)(.*)$/;function Ff(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function no(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return Ff(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return Cf.call(e).replace(Rf,"Symbol($1)");const n=Of.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+jf.call(e)+"]":n==="RegExp"?$f.call(e):null}function ze(e,t){let r=no(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let o=no(this[n],t);return o!==null?o:i},2)}function ls(e){return e==null?[]:[].concat(e)}let us,If=/\$\{\s*(\w+)\s*\}/g;us=Symbol.toStringTag;class be extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(If,(i,o)=>ze(r[o])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[us]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],ls(t).forEach(s=>{if(be.isError(s)){this.errors.push(...s.errors);const a=s.inner.length?s.inner:[s];this.inner.push(...a)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!o&&Error.captureStackTrace&&Error.captureStackTrace(this,be)}}let Ne={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${ze(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ze(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${ze(r,!0)}\``+i}},Re={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ze={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Tn={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Af={isValue:"${path} field must be ${value}"},En={noUnknown:"${path} field has unspecified keys: ${unknown}"},lr={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},_f={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.lengthi)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${ze(r,!0)}\``}return be.formatError(Ne.notType,e)}};Object.assign(Object.create(null),{mixed:Ne,string:Re,number:Ze,date:Tn,object:En,array:lr,boolean:Af,tuple:_f});const Lr=e=>e&&e.__isYupSchema__;class hr{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,s=typeof n=="function"?n:(...a)=>a.every(l=>l===n);return new hr(t,(a,l)=>{var c;let p=s(...a)?i:o;return(c=p==null?void 0:p(l))!=null?c:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(o=>o.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!Lr(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const nr={context:"$",value:"."};class gt{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===nr.context,this.isValue=this.key[0]===nr.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?nr.context:this.isValue?nr.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&ut.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}gt.prototype.__isYupRef=!0;const Ve=e=>e==null;function yt(e){function t({value:r,path:n="",options:i,originalValue:o,schema:s},a,l){const{name:c,test:p,params:m,message:h,skipAbsent:f}=e;let{parent:b,context:y,abortEarly:x=s.spec.abortEarly,disableStackTrace:v=s.spec.disableStackTrace}=i;function w(C){return gt.isRef(C)?C.getValue(r,b,y):C}function $(C={}){var H;const U=Object.assign({value:r,originalValue:o,label:s.spec.label,path:C.path||n,spec:s.spec},m,C.params);for(const S of Object.keys(U))U[S]=w(U[S]);const ae=new be(be.formatError(C.message||h,U),r,U.path,C.type||c,(H=C.disableStackTrace)!=null?H:v);return ae.params=U,ae}const A=x?a:l;let P={path:n,parent:b,type:c,from:i.from,createError:$,resolve:w,options:i,originalValue:o,schema:s};const E=C=>{be.isError(C)?A(C):C?l(null):A($())},F=C=>{be.isError(C)?A(C):a(C)};if(f&&Ve(r))return E(!0);let q;try{var R;if(q=p.call(P,r,P),typeof((R=q)==null?void 0:R.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(q).then(E,F)}}catch(C){F(C);return}E(q)}return t.OPTIONS=e,t}function Pf(e,t,r,n=r){let i,o,s;return t?(ut.forEach(t,(a,l,c)=>{let p=l?a.slice(1,a.length-1):a;e=e.resolve({context:n,parent:i,value:r});let m=e.type==="tuple",h=c?parseInt(p,10):0;if(e.innerType||m){if(m&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[h],e=m?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r=r&&r[p],e=e.fields[p]}o=p,s=l?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class mr extends Set{describe(){const t=[];for(const r of this.values())t.push(gt.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new mr(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function Ot(e,t=new Map){if(Lr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n{this.typeError(Ne.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Ot(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(o=>{t.tests.forEach(s=>{o.test(s.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,o)=>o.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,o;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",o=n._cast(t,r);if(r.assert!==!1&&!n.isType(o)){if(i&&Ve(o))return o;let s=ze(t),a=ze(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". + +attempted value: ${s} +`+(a!==s?`result of cast: ${a}`:""))}return o}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:o,originalValue:s=t,strict:a=this.spec.strict}=r,l=t;a||(l=this._cast(l,Object.assign({assert:!1},r)));let c=[];for(let p of Object.values(this.internalTests))p&&c.push(p);this.runTests({path:o,value:l,originalValue:s,options:r,tests:c},n,p=>{if(p.length)return i(p,l);this.runTests({path:o,value:l,originalValue:s,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:o,value:s,originalValue:a,path:l,options:c}=t,p=y=>{i||(i=!0,r(y,s))},m=y=>{i||(i=!0,n(y,s))},h=o.length,f=[];if(!h)return m([]);let b={value:s,originalValue:a,path:l,options:c,schema:this};for(let y=0;ythis.resolve(p)._validate(c,p,h,f)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((s,a)=>i._validate(t,r,(l,c)=>{be.isError(l)&&(l.value=c),a(l)},(l,c)=>{l.length?a(new be(l,c,void 0,void 0,o)):s(c)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o,s=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(a,l)=>{throw be.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new be(a,t,void 0,void 0,s);o=l}),o}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(be.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(be.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Ot(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=yt({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=yt({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=Ne.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ne.notNull){return this.nullability(!1,t)}required(t=Ne.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Ne.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=yt(r),o=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(s=>!(s.OPTIONS.name===r.name&&(o||s.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=ls(t).map(o=>new gt(o));return i.forEach(o=>{o.isSibling&&n.deps.push(o.key)}),n.conditions.push(typeof r=="function"?new hr(i,r):hr.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=yt({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Ne.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=yt({message:r,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,s=o.resolveAll(this.resolve);return s.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:s}})}}),n}notOneOf(t,r=Ne.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=yt({message:r,name:"notOneOf",test(i){let o=this.schema._blacklist,s=o.resolveAll(this.resolve);return s.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:s}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:o,nullable:s}=r.spec;return{meta:i,label:n,optional:o,nullable:s,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,p)=>p.findIndex(m=>m.name===l.name)===c)}}}$e.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])$e.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:s}=Pf(this,t,r,n.context);return s[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])$e.prototype[e]=$e.prototype.oneOf;for(const e of["not","nope"])$e.prototype[e]=$e.prototype.notOneOf;let Nf=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kf=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Df=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Mf=e=>Ve(e)||e===e.trim(),Lf={}.toString();function Ae(){return new cs}class cs extends $e{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===Lf?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Ne.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Re.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Re.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Re.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,o;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:o}=r:i=r),this.test({name:o||"matches",message:i||Re.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&n||s.search(t)!==-1})}email(t=Re.email){return this.matches(Nf,{name:"email",message:t,excludeEmptyString:!0})}url(t=Re.url){return this.matches(kf,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Re.uuid){return this.matches(Df,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Re.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Mf})}lowercase(t=Re.lowercase){return this.transform(r=>Ve(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Ve(r)||r===r.toLowerCase()})}uppercase(t=Re.uppercase){return this.transform(r=>Ve(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Ve(r)||r===r.toUpperCase()})}}Ae.prototype=cs.prototype;let Vf=e=>e!=+e;function ds(){return new fs}class fs extends $e{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Vf(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(t,r=Ze.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=Ze.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=Ze.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return nthis.resolve(t)}})}positive(t=Ze.positive){return this.moreThan(0,t)}negative(t=Ze.negative){return this.lessThan(0,t)}integer(t=Ze.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>Ve(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>Ve(i)?i:Math[t](i))}}ds.prototype=fs.prototype;const zf=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Le(e,t=0){return Number(e)||t}function qf(e){const t=zf.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const r={year:Le(t[1]),month:Le(t[2],1)-1,day:Le(t[3],1),hour:Le(t[4]),minute:Le(t[5]),second:Le(t[6]),millisecond:t[7]?Le(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Le(t[10]),minuteOffset:Le(t[11])};if(r.z===void 0&&r.plusMinus===void 0)return new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond).valueOf();let n=0;return r.z!=="Z"&&r.plusMinus!==void 0&&(n=r.hourOffset*60+r.minuteOffset,r.plusMinus==="+"&&(n=0-n)),Date.UTC(r.year,r.month,r.day,r.hour,r.minute+n,r.second,r.millisecond)}let Bf=new Date(""),Uf=e=>Object.prototype.toString.call(e)==="[object Date]";class Vr extends $e{constructor(){super({type:"date",check(t){return Uf(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=qf(t),isNaN(t)?Vr.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(gt.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=Tn.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=Tn.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}Vr.INVALID_DATE=Bf;Vr.prototype;function Hf(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([s,a])=>`${s}-${a}`));function o(s,a){let l=ut.split(s)[0];n.add(l),i.has(`${a}-${l}`)||r.push([a,l])}for(const s of Object.keys(e)){let a=e[s];n.add(s),gt.isRef(a)&&a.isSibling?o(a.path,s):Lr(a)&&"deps"in a&&a.deps.forEach(l=>o(l,s))}return Ef.array(Array.from(n),r).reverse()}function io(e,t){let r=1/0;return e.some((n,i)=>{var o;if((o=t.path)!=null&&o.includes(n))return r=i,!0}),r}function ps(e){return(t,r)=>io(e,t)-io(e,r)}const hs=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function ur(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=ur(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ur(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ur)}):"optional"in e?e.optional():e}const Gf=(e,t)=>{const r=[...ut.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=ut.getter(ut.join(r),!0)(e);return!!(i&&n in i)};let oo=e=>Object.prototype.toString.call(e)==="[object Object]";function Kf(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Zf=ps([]);function At(e){return new ms(e)}class ms extends $e{constructor(t){super({type:"object",check(r){return oo(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Zf,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let o=this.fields,s=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),l={},c=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),p=!1;for(const m of a){let h=o[m],f=m in i;if(h){let b,y=i[m];c.path=(r.path?`${r.path}.`:"")+m,h=h.resolve({value:y,context:r.context,parent:l});let x=h instanceof $e?h.spec:void 0,v=x==null?void 0:x.strict;if(x!=null&&x.strip){p=p||m in i;continue}b=!r.__validating||!v?h.cast(i[m],c):i[m],b!==void 0&&(l[m]=b)}else f&&!s&&(l[m]=i[m]);(f!==m in l||l[m]!==i[m])&&(p=!0)}return p?l:i}_validate(t,r={},n,i){let{from:o=[],originalValue:s=t,recursive:a=this.spec.recursive}=r;r.from=[{schema:this,value:s},...o],r.__validating=!0,r.originalValue=s,super._validate(t,r,n,(l,c)=>{if(!a||!oo(c)){i(l,c);return}s=s||c;let p=[];for(let m of this._nodes){let h=this.fields[m];!h||gt.isRef(h)||p.push(h.asNestedTest({options:r,key:m,parent:c,parentPath:r.path,originalParent:s}))}this.runTests({tests:p,value:c,originalValue:s,options:r},n,m=>{i(m.sort(this._sortErrors).concat(l),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,o]of Object.entries(this.fields)){const s=n[i];n[i]=s===void 0?o:s}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const o=this.fields[n];let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[n]})),r[n]=o&&"getDefault"in o?o.getDefault(s):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=Hf(t,r),n._sortErrors=ps(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return ur(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=ut.getter(t,!0);return this.transform(o=>{if(!o)return o;let s=o;return Gf(o,t)&&(s=Object.assign({},o),n||delete s[t],s[r]=i(o)),s})}json(){return this.transform(hs)}noUnknown(t=!0,r=En.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const o=Kf(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=En.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(on.camelCase)}snakeCase(){return this.transformKeys(on.snakeCase)}constantCase(){return this.transformKeys(t=>on.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[o,s]of Object.entries(r.fields)){var i;let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),n.fields[o]=s.describe(a)}return n}}At.prototype=ms.prototype;function bs(e){return new gs(e)}class gs extends $e{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const o=n.map((s,a)=>{const l=this.innerType.cast(s,Object.assign({},r,{path:`${r.path||""}[${a}]`}));return l!==s&&(i=!0),l});return i?o:n}_validate(t,r={},n,i){var o;let s=this.innerType,a=(o=r.recursive)!=null?o:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,c)=>{var p;if(!a||!s||!this._typeCheck(c)){i(l,c);return}let m=new Array(c.length);for(let f=0;fi(f.concat(l),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(hs)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!Lr(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+ze(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=lr.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||lr.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||lr.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,o)=>!t(n,i,o):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var i;let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=r.innerType.describe(o)}return n}}bs.prototype=gs.prototype;const vs=e=>(e.preventDefault(),e.returnValue="");function xs(){return window.addEventListener("beforeunload",vs,{capture:!0})}function Xn(){return window.removeEventListener("beforeunload",vs,{capture:!0})}function Yt(){const{formData:e}=Ce(),{dirty:t}=Ue();return d.useEffect(()=>t||Object.keys(e).length?xs():Xn(),[t,e]),null}Yt.defaultProps={hasForm:!1};function ys(){const{formData:e}=Ce();return d.useEffect(()=>e?xs():Xn(),[e]),null}function He({children:e,className:t,disabled:r,onClick:n,size:i,type:o,variant:s}){return u.jsx("button",{className:je("inline-flex w-fit items-center justify-center rounded border-b-2 shadow transition-buttons duration-200 px-4 py-2 font-semibold","hover:shadow-lg","focus:ring-offset-white focus:outline-none focus:ring-2 focus:ring-offset-2",s==="primary"?"bg-oxford-600 border-b-oxford-700 text-white hover:bg-oxford-700 focus:bg-oxford-700 focus:ring-oxford-500":null,s==="danger"?"bg-bn-ribbon-600 border-b-bn-ribbon-700 text-white hover:bg-bn-ribbon-700 focus:bg-bn-ribbon-700 focus:ring-bn-ribbon-500":null,s==="danger-outline"?"bg-bn-ribbon-50 border border-bn-ribbon-200 border-b-bn-ribbon-200 text-bn-ribbon-700 hover:bg-bn-ribbon-100 focus:bg-bn-ribbon-100 focus:ring-bn-ribbon-400":null,i==="sm"?"text-sm !px-2 !py-1.5 font-normal":null,r?"opacity-75 cursor-not-allowed !bg-gray-700 !border-b-gray-800":null,t),disabled:r,onClick:n,type:o,children:e})}He.propTypes={children:T.node.isRequired,className:T.string,disabled:T.bool,onClick:T.func,size:T.oneOf(["sm","md","lg"]),type:T.oneOf(["button","submit","reset"]),variant:T.oneOf(["primary","danger","danger-outline"])};He.defaultProps={className:"",disabled:!1,onClick:()=>null,size:"md",type:"button",variant:"primary"};function Xe({children:e}){return u.jsx("div",{className:"border-l-2 border-l-bn-ribbon-600 bg-bn-ribbon-100 max-w-prose p-2 pl-4 mt-2 text-sm font-semibold text-bn-ribbon-800",children:e})}Xe.propTypes={children:T.node.isRequired};function Jn({field:e,min:t,max:r}){const{values:n}=Ue(),i=n==null?void 0:n[e].length;return i===r?u.jsx("p",{className:"text-sm",children:"No characters remaining"}):ir?u.jsxs("p",{className:"text-sm",children:["Remove ",i-r," characters"]}):u.jsx("p",{className:"text-sm",children:" chars remaining"})}Jn.defaultProps={min:null,max:null};Jn.propTypes={field:T.string.isRequired,min:T.number,max:T.number};function ei({children:e}){return u.jsx("div",{className:"-mt-2 mb-0.5 text-sm text-gray-700 flex flex-col gap-y-1",children:e})}ei.propTypes={children:T.node.isRequired};function br({characterCount:e,children:t,className:r,hintText:n,id:i,label:o,maxlength:s,minlength:a,placeholder:l,name:c,resize:p,rows:m,required:h,value:f}){const{setFieldValue:b,values:y}=Ue();return d.useEffect(()=>{b(i,y[i]||f)},[]),u.jsxs("div",{className:`flex flex-col gap-y-3 text-lg leading-tight ${r}`,children:[u.jsx("label",{className:"font-semibold tracking-tight",htmlFor:i,children:o}),n?u.jsx(ei,{children:n}):null,u.jsx(Ct,{as:"textarea",className:` + mt-1 block w-full max-w-prose rounded-md border-gray-400 text-gray-900 shadow-sm + ${p?"":"resize-none"} + sm:text-sm + focus:outline-none focus:ring-oxford-500 focus:border-oxford-500 + `,maxLength:s,minLength:a,name:c,placeholder:l,required:h,rows:m}),e&&(a||s)?u.jsx(Jn,{field:i,max:s,min:a}):null,t]})}br.defaultProps={className:null,children:null,characterCount:!1,hintText:null,maxlength:null,minlength:null,placeholder:null,required:!1,rows:8,value:""};br.propTypes={characterCount:T.bool,children:T.node,className:T.string,hintText:T.node,id:T.string.isRequired,label:T.string.isRequired,maxlength:T.number,minlength:T.number,name:T.string.isRequired,placeholder:T.string,required:T.bool,resize:T.bool.isRequired,rows:T.number,value:T.string};function Wf(){const[,e]=et(),{formData:t,setFormData:r}=Ce();if(Gt(["codelistA","codelistB","timeOption","filterPopulation"]))return u.jsx(Ht,{to:""});const n=At().shape({purpose:Ae().required("Write a purpose for this analysis").min(1,"Add a purpose").max(1e3,"Purpose is too long"),title:Ae().required("Write a title for this analysis").min(1,"Add a title").max(140,"Title is too long")}),i={purpose:t.purpose||"",title:t.title||""};return u.jsx(kr,{initialValues:i,onSubmit:(o,s)=>{s.validateForm().then(()=>{r({...t,...o}),e("/review-request")})},validateOnMount:!0,validationSchema:n,children:({errors:o,isValid:s,touched:a})=>u.jsxs(Wt,{className:"flex flex-col gap-y-4",children:[u.jsx(Yt,{}),u.jsx("h1",{className:"text-4xl font-bold",children:"Analysis information"}),u.jsx(br,{characterCount:!0,className:"mb-6",hintText:u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"The title will be shown at the top of the generated report. It should provide a short summary to anyone reading the report about what the analysis shows."}),u.jsx("p",{children:"You will be able to change this after the report is generated."})]}),id:"title",label:"Provide a title for the analysis",maxlength:140,name:"title",placeholder:"",required:!0,resize:!1,rows:2,value:`${t.codelistA.label} & ${t.codelistB.label} during the COVID-19 pandemic`,children:o.title&&a.title?u.jsx(Xe,{children:o.title}):null}),u.jsx(br,{characterCount:!0,hintText:u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"It must be clear that this analysis request is aligned with your approvals."}),u.jsx("p",{children:"Please refer to the approved version of your project application form, which you were sent by email."})]}),id:"purpose",label:"Explain why this analysis fits with the approved project purpose",maxlength:1e3,name:"purpose",required:!0,resize:!1}),o.purpose&&a.purpose?u.jsx(Xe,{children:o.purpose}):null,u.jsx("div",{className:"flex flex-row w-full gap-2 mt-4",children:u.jsx(He,{disabled:!s,type:"submit",children:"Next"})})]})})}const Oe=["The number of people who had","added to their health record each month from","to","who have also had","added to their health record in the same month as","or"],Ss="before.",Ie="at any time prior.",cr=e=>`up to ${e.timeValue} ${e.timeScale} before.`;function zt({children:e,legend:t,hideLegend:r}){return u.jsxs("fieldset",{children:[u.jsx("legend",{className:r?"sr-only":"text-2xl font-bold mb-4",children:u.jsx("h2",{children:t})}),u.jsx("div",{className:"flex flex-col gap-4",children:e})]})}zt.propTypes={children:T.node.isRequired,hideLegend:T.bool,legend:T.string.isRequired};zt.defaultProps={hideLegend:!1};function qt({children:e,id:t,label:r,labelClassName:n,name:i,onClick:o,value:s}){return u.jsxs("div",{className:"flex flex-row place-items-baseline gap-x-3 text-lg leading-tight",children:[u.jsx(Ct,{className:"peer cursor-pointer scale-150 top-[1px] relative checked:bg-oxford-600 focus:ring-bn-sun",id:t,name:i,onClick:o,type:"radio",value:s}),u.jsx("label",{"aria-label":e?r:null,className:`cursor-pointer touch-manipulation tracking-tight ${n||""}`,htmlFor:t,children:e||r})]})}qt.propTypes={children:T.node,id:T.string.isRequired,label:T.string.isRequired,labelClassName:T.string,name:T.string.isRequired,onClick:T.func,value:T.string.isRequired};qt.defaultProps={children:null,labelClassName:null,onClick:()=>null};function St(e,t,r){let n=r.initialDeps??[],i;return()=>{var o,s,a,l;let c;r.key&&((o=r.debug)!=null&&o.call(r))&&(c=Date.now());const p=e();if(!(p.length!==n.length||p.some((f,b)=>n[b]!==f)))return i;n=p;let h;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(h=Date.now()),i=t(...p),r.key&&((a=r.debug)!=null&&a.call(r))){const f=Math.round((Date.now()-c)*100)/100,b=Math.round((Date.now()-h)*100)/100,y=b/16,x=(v,w)=>{for(v=String(v);v.lengthMath.abs(e-t)<1,Qf=e=>e,Xf=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},Jf=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=o=>{const{width:s,height:a}=o;t({width:Math.round(s),height:Math.round(a)})};if(n(r.getBoundingClientRect()),typeof ResizeObserver>"u")return()=>{};const i=new ResizeObserver(o=>{const s=o[0];if(s!=null&&s.borderBoxSize){const a=s.borderBoxSize[0];if(a){n({width:a.inlineSize,height:a.blockSize});return}}n(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},ep=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=()=>{t(r[e.options.horizontal?"scrollLeft":"scrollTop"])};return n(),r.addEventListener("scroll",n,{passive:!0}),()=>{r.removeEventListener("scroll",n)}},tp=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},rp=(e,{adjustments:t=0,behavior:r},n)=>{var i,o;const s=e+t;(o=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class np{constructor(t){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(typeof ResizeObserver<"u"?r=new ResizeObserver(i=>{i.forEach(o=>{this._measureElement(o.target,o)})}):null);return{disconnect:()=>{var i;return(i=n())==null?void 0:i.disconnect()},observe:i=>{var o;return(o=n())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=n())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qf,rangeExtractor:Xf,onChange:()=>{},measureElement:tp,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,n=>{this.scrollAdjustments=0,this.scrollOffset!==n&&(this.isScrollingTimeoutId!==null&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()},this.options.scrollingDelay))})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(r,n,i,o)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:o}),{key:!1}),this.getFurthestMeasurement=(r,n)=>{const i=new Map,o=new Map;for(let s=n-1;s>=0;s--){const a=r[s];if(i.has(a.lane))continue;const l=o.get(a.lane);if(l==null||a.end>l.end?o.set(a.lane,a):a.ends.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurements=St(()=>[this.memoOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:o},s)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,a);for(let c=a;cthis.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(r,n,i)=>this.range=r.length>0&&n>0?ip({measurements:r,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=St(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,i,o)=>n===null?[]:r({...n,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const i=this.measurementsCache[this.indexFromElement(r)];if(!i||!r.isConnected){this.measureElementCache.forEach((a,l)=>{a===r&&(this.observer.unobserve(r),this.measureElementCache.delete(l))});return}const o=this.measureElementCache.get(i.key);o!==r&&(o&&this.observer.unobserve(o),this.observer.observe(r),this.measureElementCache.set(i.key,r));const s=this.options.measureElement(r,n,this);this.resizeItem(i,s)},this.resizeItem=(r,n)=>{const i=this.itemSizeCache.get(r.key)??r.size,o=n-i;o!==0&&(r.start{r&&this._measureElement(r,void 0)},this.getVirtualItems=St(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let o=0,s=r.length;othis.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();return sn(n[ws(0,n.length-1,i=>sn(n[i]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const i=this.getSize();n==="auto"&&(r<=this.scrollOffset?n="start":r>=this.scrollOffset+i?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-i:n==="center"&&(r=r-i/2);const o=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-this.getSize();return Math.max(Math.min(a,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=sn(this.getMeasurements()[r]);if(n==="auto")if(i.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)n="end";else if(i.start<=this.scrollOffset+this.options.scrollPaddingStart)n="start";else return[this.scrollOffset,n];const o=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,n),n]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(r,{align:n="auto",behavior:i}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[o,s]=this.getOffsetForIndex(r,n);this._scrollToOffset(o,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(r))){const[l]=this.getOffsetForIndex(r,s);Yf(l,this.scrollOffset)||this.scrollToIndex(r,{align:s,behavior:i})}else this.scrollToIndex(r,{align:s,behavior:i})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(o=>o.end)),i-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(r=>{this.itemSizeCache.set(r.key,r.size)}),this.maybeNotify()}}const ws=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,o=r(i);if(on)t=i-1;else return i}return e>0?e-1:0};function ip({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,o=ws(0,n,a=>e[a].start,r);let s=o;for(;s({}),{})[1],r={...e,onChange:(i,o)=>{var s;o?ta.flushSync(t):t(),(s=e.onChange)==null||s.call(e,i,o)}},[n]=d.useState(()=>new np(r));return n.setOptions(r),d.useEffect(()=>n._didMount(),[]),op(()=>n._willUpdate()),n}function ap(e){return sp({observeElementRect:Jf,observeElementOffset:ep,scrollToFn:rp,...e})}var lp=Object.defineProperty,up=(e,t,r)=>t in e?lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,an=(e,t,r)=>(up(e,typeof t!="symbol"?t+"":t,r),r);let cp=class{constructor(){an(this,"current",this.detect()),an(this,"handoffState","pending"),an(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ct=new cp,Q=(e,t)=>{ct.isServer?d.useEffect(e,t):d.useLayoutEffect(e,t)};function ge(e){let t=d.useRef(e);return Q(()=>{t.current=e},[e]),t}function Qt(e,t){let[r,n]=d.useState(e),i=ge(e);return Q(()=>n(i.current),[i,n,...t]),r}let O=function(e){let t=ge(e);return z.useCallback((...r)=>t.current(...r),[t])};function Ts(e,t,r){let[n,i]=d.useState(r),o=e!==void 0,s=d.useRef(o),a=d.useRef(!1),l=d.useRef(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,O(c=>(o||i(c),t==null?void 0:t(c)))]}function Es(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ke(){let e=[],t={addEventListener(r,n,i,o){return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Es(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=ke();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function qe(){let[e]=d.useState(ke);return d.useEffect(()=>()=>e.dispose(),[e]),e}function dp(){let e=typeof document>"u";return"useSyncExternalStore"in pn?(t=>t.useSyncExternalStore)(pn)(()=>()=>{},()=>!1,()=>!e):!1}function ti(){let e=dp(),[t,r]=d.useState(ct.isHandoffComplete);return t&&ct.isHandoffComplete===!1&&r(!1),d.useEffect(()=>{t!==!0&&r(!0)},[t]),d.useEffect(()=>ct.handoff(),[]),e?!1:t}var so;let _e=(so=z.useId)!=null?so:function(){let e=ti(),[t,r]=z.useState(e?()=>ct.nextId():null);return Q(()=>{t===null&&r(ct.nextId())},[t]),t!=null?""+t:void 0};function Y(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Y),n}function Xt(e){return ct.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let On=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Fe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Fe||{}),kt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(kt||{}),fp=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fp||{});function pp(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(On)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var ri=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ri||{});function Os(e,t=0){var r;return e===((r=Xt(e))==null?void 0:r.body)?!1:Y(t,{0(){return e.matches(On)},1(){let n=e;for(;n!==null;){if(n.matches(On))return!0;n=n.parentElement}return!1}})}var hp=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(hp||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let mp=["textarea","input"].join(",");function bp(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,mp))!=null?r:!1}function We(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wt(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?r?We(e):e:pp(e);i.length>0&&s.length>1&&(s=s.filter(f=>!i.includes(f))),n=n??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(n))-1;if(t&4)return Math.max(0,s.indexOf(n))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},p=0,m=s.length,h;do{if(p>=m||p+m<=0)return 0;let f=l+p;if(t&16)f=(f+m)%m;else{if(f<0)return 3;if(f>=m)return 1}h=s[f],h==null||h.focus(c),p+=a}while(h!==o.activeElement);return t&6&&bp(h)&&h.select(),2}function gp(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function vp(){return/Android/gi.test(window.navigator.userAgent)}function js(){return gp()||vp()}function ir(e,t,r){let n=ge(t);d.useEffect(()=>{function i(o){n.current(o)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}function xp(e,t,r){let n=ge(t);d.useEffect(()=>{function i(o){n.current(o)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function $s(e,t,r=!0){let n=d.useRef(!1);d.useEffect(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(s,a){if(!n.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function p(m){return typeof m=="function"?p(m()):Array.isArray(m)||m instanceof Set?m:[m]}(e);for(let p of c){if(p===null)continue;let m=p instanceof HTMLElement?p:p.current;if(m!=null&&m.contains(l)||s.composed&&s.composedPath().includes(m))return}return!Os(l,ri.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let o=d.useRef(null);ir("pointerdown",s=>{var a,l;n.current&&(o.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),ir("mousedown",s=>{var a,l;n.current&&(o.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),ir("click",s=>{js()||o.current&&(i(s,()=>o.current),o.current=null)},!0),ir("touchend",s=>i(s,()=>s.target instanceof HTMLElement?s.target:null),!0),xp("blur",s=>i(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function yp(...e){return d.useMemo(()=>Xt(...e),[...e])}function ao(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function ni(e,t){let[r,n]=d.useState(()=>ao(e));return Q(()=>{n(ao(e))},[e.type,e.as]),Q(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let Sp=Symbol();function me(...e){let t=d.useRef(e);d.useEffect(()=>{t.current=e},[e]);let r=O(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Sp]))?void 0:r}function lo(e){return[e.screenX,e.screenY]}function Cs(){let e=d.useRef([-1,-1]);return{wasMoved(t){let r=lo(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=lo(t)}}}function wp({container:e,accept:t,walk:r,enabled:n=!0}){let i=d.useRef(t),o=d.useRef(r);d.useEffect(()=>{i.current=t,o.current=r},[t,r]),Q(()=>{if(!e||!n)return;let s=Xt(e);if(!s)return;let a=i.current,l=o.current,c=Object.assign(m=>a(m),{acceptNode:a}),p=s.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;p.nextNode();)l(p.currentNode)},[e,n,i,o])}function uo(e,t){let r=d.useRef([]),n=O(e);d.useEffect(()=>{let i=[...r.current];for(let[o,s]of t.entries())if(r.current[o]!==s){let a=n(t,i);return r.current=t,a}},[n,...t])}function gr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Je=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Je||{}),Ye=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ye||{});function le({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??Tp;let l=Rs(t,e);if(o)return or(l,r,n,s,a);let c=i??0;if(c&2){let{static:p=!1,...m}=l;if(p)return or(m,r,n,s,a)}if(c&1){let{unmount:p=!0,...m}=l;return Y(p?0:1,{0(){return null},1(){return or({...m,hidden:!0,style:{display:"none"}},r,n,s,a)}})}return or(l,r,n,s,a)}function or(e,t={},r,n,i){let{as:o=r,children:s,refName:a="ref",...l}=ln(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},p=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let m={};if(t){let h=!1,f=[];for(let[b,y]of Object.entries(t))typeof y=="boolean"&&(h=!0),y===!0&&f.push(b);h&&(m["data-headlessui-state"]=f.join(" "))}if(o===d.Fragment&&Object.keys(vr(l)).length>0){if(!d.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(y=>` - ${y}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(` +`)].join(` +`));let h=p.props,f=typeof(h==null?void 0:h.className)=="function"?(...y)=>gr(h==null?void 0:h.className(...y),l.className):gr(h==null?void 0:h.className,l.className),b=f?{className:f}:{};return d.cloneElement(p,Object.assign({},Rs(p.props,vr(ln(l,["ref"]))),m,c,{ref:i(p.ref,c.ref)},b))}return d.createElement(o,Object.assign({},ln(l,["ref"]),o!==d.Fragment&&c,o!==d.Fragment&&m),p)}function Tp(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Rs(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let s=r[n];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function se(e){var t;return Object.assign(d.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function vr(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ln(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Ep="div";var zr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(zr||{});function Op(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return le({ourProps:o,theirProps:i,slot:{},defaultTag:Ep,name:"Hidden"})}let qr=se(Op),ii=d.createContext(null);ii.displayName="OpenClosedContext";var he=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(he||{});function Br(){return d.useContext(ii)}function oi({value:e,children:t}){return z.createElement(ii.Provider,{value:e},t)}function jp(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let at=[];jp(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&at[0]!==t.target&&(at.unshift(t.target),at=at.filter(r=>r!=null&&r.isConnected),at.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Fs(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&$p(r)?!1:n}function $p(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Cp(e){throw new Error("Unexpected object: "+e)}var B=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(B||{});function jn(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(D||{}),Rp={},Fp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Fp||{}),Ip=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ip||{}),Ap=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ap||{}),_p=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(_p||{});function un(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),i=n.length>0&&n[0].dataRef.current.order!==null?n.sort((s,a)=>s.dataRef.current.order-a.dataRef.current.order):We(n,s=>s.dataRef.current.domRef.current),o=r?i.indexOf(r):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let Pp={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,r;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((r=e.dataRef.current)!=null&&r.value){let n=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(n!==-1)return{...e,activeOptionIndex:n,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var r,n,i,o,s;if((r=e.dataRef.current)!=null&&r.disabled||(n=e.dataRef.current)!=null&&n.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let p=t.focus===B.Specific?t.idx:jn(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var h,f;return(f=(h=e.activeOptionIndex)!=null?h:e.virtual.options.findIndex(b=>!e.virtual.disabled(b)))!=null?f:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),m=(o=t.trigger)!=null?o:2;return e.activeOptionIndex===p&&e.activationTrigger===m?e:{...e,activeOptionIndex:p,activationTrigger:m}}let a=un(e);if(a.activeOptionIndex===null){let p=a.options.findIndex(m=>!m.dataRef.current.disabled);p!==-1&&(a.activeOptionIndex=p)}let l=t.focus===B.Specific?t.idx:jn(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled}),c=(s=t.trigger)!=null?s:2;return e.activeOptionIndex===l&&e.activationTrigger===c?e:{...e,...a,activeOptionIndex:l,activationTrigger:c}},3:(e,t)=>{var r,n,i;if((r=e.dataRef.current)!=null&&r.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,s=un(e,l=>(l.push(o),l));e.activeOptionIndex===null&&(n=e.dataRef.current)!=null&&n.isSelected(t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(o));let a={...e,...s,activationTrigger:2};return(i=e.dataRef.current)!=null&&i.__demoMode&&e.dataRef.current.value===void 0&&(a.activeOptionIndex=0),a},4:(e,t)=>{var r;if((r=e.dataRef.current)!=null&&r.virtual)return{...e,options:e.options.filter(i=>i.id!==t.id)};let n=un(e,i=>{let o=i.findIndex(s=>s.id===t.id);return o!==-1&&i.splice(o,1),i});return{...e,...n,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var r;if(((r=e.virtual)==null?void 0:r.options)===t.options)return e;let n=e.activeOptionIndex;if(e.activeOptionIndex!==null){let i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i!==-1?n=i:n=null}return{...e,activeOptionIndex:n,virtual:Object.assign({},e.virtual,{options:t.options})}}},ai=d.createContext(null);ai.displayName="ComboboxActionsContext";function Jt(e){let t=d.useContext(ai);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Jt),r}return t}let _s=d.createContext(null);function Np(e){var t;let r=vt("VirtualProvider"),[n,i]=d.useMemo(()=>{let l=r.optionsRef.current;if(!l)return[0,0];let c=window.getComputedStyle(l);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[r.optionsRef.current]),o=ap({scrollPaddingStart:n,scrollPaddingEnd:i,count:r.virtual.options.length,estimateSize(){return 40},getScrollElement(){var l;return(l=r.optionsRef.current)!=null?l:null},overscan:12}),[s,a]=d.useState(0);return Q(()=>{a(l=>l+1)},[(t=r.virtual)==null?void 0:t.options]),z.createElement(_s.Provider,{value:o},z.createElement("div",{style:{position:"relative",width:"100%",height:`${o.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Rp.JEST_WORKER_ID!==void 0||r.activationTrigger===0)return;r.activeOptionIndex!==null&&r.virtual.options.length>r.activeOptionIndex&&o.scrollToIndex(r.activeOptionIndex)}}},o.getVirtualItems().map(l=>{var c;return z.createElement(d.Fragment,{key:l.key},z.cloneElement((c=e.children)==null?void 0:c.call(e,{option:r.virtual.options[l.index],open:r.comboboxState===0}),{key:`${s}-${l.key}`,"data-index":l.index,"aria-setsize":r.virtual.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}}))})))}let li=d.createContext(null);li.displayName="ComboboxDataContext";function vt(e){let t=d.useContext(li);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,vt),r}return t}function kp(e,t){return Y(t.type,Pp,e,t)}let Dp=d.Fragment;function Mp(e,t){let{value:r,defaultValue:n,onChange:i,form:o,name:s,by:a=null,disabled:l=!1,__demoMode:c=!1,nullable:p=!1,multiple:m=!1,immediate:h=!1,virtual:f=null,...b}=e,y=!1,x=null,[v=m?[]:void 0,w]=Ts(r,i,n),[$,A]=d.useReducer(kp,{dataRef:d.createRef(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),P=d.useRef(!1),E=d.useRef({static:!1,hold:!1}),F=d.useRef(null),_=d.useRef(null),q=d.useRef(null),R=d.useRef(null),C=O(typeof a=="string"?(M,W)=>{let pe=a;return(M==null?void 0:M[pe])===(W==null?void 0:W[pe])}:a??((M,W)=>M===W)),H=O(M=>$.options.findIndex(W=>C(W.dataRef.current.value,M))),U=d.useCallback(M=>Y(S.mode,{1:()=>v.some(W=>C(W,M)),0:()=>C(v,M)}),[v]),ae=O(M=>$.activeOptionIndex===H(M)),S=d.useMemo(()=>({...$,immediate:y,optionsPropsRef:E,labelRef:F,inputRef:_,buttonRef:q,optionsRef:R,value:v,defaultValue:n,disabled:l,mode:m?1:0,virtual:$.virtual,get activeOptionIndex(){if(P.current&&$.activeOptionIndex===null&&$.options.length>0){let M=$.options.findIndex(W=>!W.dataRef.current.disabled);if(M!==-1)return M}return $.activeOptionIndex},calculateIndex:H,compare:C,isSelected:U,isActive:ae,nullable:p,__demoMode:c}),[v,n,l,m,p,c,$,x]);Q(()=>{},[x,void 0]),Q(()=>{$.dataRef.current=S},[S]),$s([S.buttonRef,S.inputRef,S.optionsRef],()=>V.closeCombobox(),S.comboboxState===0);let ne=d.useMemo(()=>{var M,W,pe;return{open:S.comboboxState===0,disabled:l,activeIndex:S.activeOptionIndex,activeOption:S.activeOptionIndex===null?null:S.virtual?S.virtual.options[(M=S.activeOptionIndex)!=null?M:0]:(pe=(W=S.options[S.activeOptionIndex])==null?void 0:W.dataRef.current.value)!=null?pe:null,value:v}},[S,l,v]),G=O(()=>{if(S.activeOptionIndex!==null){if(S.virtual)Pe(S.virtual.options[S.activeOptionIndex]);else{let{dataRef:M}=S.options[S.activeOptionIndex];Pe(M.current.value)}V.goToOption(B.Specific,S.activeOptionIndex)}}),ue=O(()=>{A({type:0}),P.current=!0}),X=O(()=>{A({type:1}),P.current=!1}),re=O((M,W,pe)=>(P.current=!1,M===B.Specific?A({type:2,focus:B.Specific,idx:W,trigger:pe}):A({type:2,focus:M,trigger:pe}))),ce=O((M,W)=>(A({type:3,payload:{id:M,dataRef:W}}),()=>{S.isActive(W.current.value)&&(P.current=!0),A({type:4,id:M})})),ie=O(M=>(A({type:5,id:M}),()=>A({type:5,id:null}))),Pe=O(M=>Y(S.mode,{0(){return w==null?void 0:w(M)},1(){let W=S.value.slice(),pe=W.findIndex(xt=>C(xt,M));return pe===-1?W.push(M):W.splice(pe,1),w==null?void 0:w(W)}})),k=O(M=>{A({type:6,trigger:M})}),V=d.useMemo(()=>({onChange:Pe,registerOption:ce,registerLabel:ie,goToOption:re,closeCombobox:X,openCombobox:ue,setActivationTrigger:k,selectActiveOption:G}),[]),oe=t===null?{}:{ref:t},ve=d.useRef(null),rt=qe();return d.useEffect(()=>{ve.current&&n!==void 0&&rt.addEventListener(ve.current,"reset",()=>{w==null||w(n)})},[ve,w]),z.createElement(ai.Provider,{value:V},z.createElement(li.Provider,{value:S},z.createElement(oi,{value:Y(S.comboboxState,{0:he.Open,1:he.Closed})},s!=null&&v!=null&&si({[s]:v}).map(([M,W],pe)=>z.createElement(qr,{features:zr.Hidden,ref:pe===0?xt=>{var _t;ve.current=(_t=xt==null?void 0:xt.closest("form"))!=null?_t:null}:void 0,...vr({key:M,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:M,value:W})})),le({ourProps:oe,theirProps:b,slot:ne,defaultTag:Dp,name:"Combobox"}))))}let Lp="input";function Vp(e,t){var r,n,i,o,s;let a=_e(),{id:l=`headlessui-combobox-input-${a}`,onChange:c,displayValue:p,type:m="text",...h}=e,f=vt("Combobox.Input"),b=Jt("Combobox.Input"),y=me(f.inputRef,t),x=yp(f.inputRef),v=d.useRef(!1),w=qe(),$=O(()=>{b.onChange(null),f.optionsRef.current&&(f.optionsRef.current.scrollTop=0),b.goToOption(B.Nothing)}),A=function(){var S;return typeof p=="function"&&f.value!==void 0?(S=p(f.value))!=null?S:"":typeof f.value=="string"?f.value:""}();uo(([S,ne],[G,ue])=>{if(v.current)return;let X=f.inputRef.current;X&&((ue===0&&ne===1||S!==G)&&(X.value=S),requestAnimationFrame(()=>{if(v.current||!X||(x==null?void 0:x.activeElement)!==X)return;let{selectionStart:re,selectionEnd:ce}=X;Math.abs((ce??0)-(re??0))===0&&re===0&&X.setSelectionRange(X.value.length,X.value.length)}))},[A,f.comboboxState,x]),uo(([S],[ne])=>{if(S===0&&ne===1){if(v.current)return;let G=f.inputRef.current;if(!G)return;let ue=G.value,{selectionStart:X,selectionEnd:re,selectionDirection:ce}=G;G.value="",G.value=ue,ce!==null?G.setSelectionRange(X,re,ce):G.setSelectionRange(X,re)}},[f.comboboxState]);let P=d.useRef(!1),E=O(()=>{P.current=!0}),F=O(()=>{w.nextFrame(()=>{P.current=!1})}),_=O(S=>{switch(v.current=!0,S.key){case D.Enter:if(v.current=!1,f.comboboxState!==0||P.current)return;if(S.preventDefault(),S.stopPropagation(),f.activeOptionIndex===null){b.closeCombobox();return}b.selectActiveOption(),f.mode===0&&b.closeCombobox();break;case D.ArrowDown:return v.current=!1,S.preventDefault(),S.stopPropagation(),Y(f.comboboxState,{0:()=>b.goToOption(B.Next),1:()=>b.openCombobox()});case D.ArrowUp:return v.current=!1,S.preventDefault(),S.stopPropagation(),Y(f.comboboxState,{0:()=>b.goToOption(B.Previous),1:()=>{b.openCombobox(),w.nextFrame(()=>{f.value||b.goToOption(B.Last)})}});case D.Home:if(S.shiftKey)break;return v.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.First);case D.PageUp:return v.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.First);case D.End:if(S.shiftKey)break;return v.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.Last);case D.PageDown:return v.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.Last);case D.Escape:return v.current=!1,f.comboboxState!==0?void 0:(S.preventDefault(),f.optionsRef.current&&!f.optionsPropsRef.current.static&&S.stopPropagation(),f.nullable&&f.mode===0&&f.value===null&&$(),b.closeCombobox());case D.Tab:if(v.current=!1,f.comboboxState!==0)return;f.mode===0&&f.activationTrigger!==1&&b.selectActiveOption(),b.closeCombobox();break}}),q=O(S=>{c==null||c(S),f.nullable&&f.mode===0&&S.target.value===""&&$(),b.openCombobox()}),R=O(S=>{var ne,G,ue;let X=(ne=S.relatedTarget)!=null?ne:at.find(re=>re!==S.currentTarget);if(v.current=!1,!((G=f.optionsRef.current)!=null&&G.contains(X))&&!((ue=f.buttonRef.current)!=null&&ue.contains(X))&&f.comboboxState===0)return S.preventDefault(),f.mode===0&&(f.nullable&&f.value===null?$():f.activationTrigger!==1&&b.selectActiveOption()),b.closeCombobox()}),C=O(S=>{var ne,G,ue;let X=(ne=S.relatedTarget)!=null?ne:at.find(re=>re!==S.currentTarget);(G=f.buttonRef.current)!=null&&G.contains(X)||(ue=f.optionsRef.current)!=null&&ue.contains(X)||f.disabled||f.immediate&&f.comboboxState!==0&&(b.openCombobox(),w.nextFrame(()=>{b.setActivationTrigger(1)}))}),H=Qt(()=>{if(f.labelId)return[f.labelId].join(" ")},[f.labelId]),U=d.useMemo(()=>({open:f.comboboxState===0,disabled:f.disabled}),[f]),ae={ref:y,id:l,role:"combobox",type:m,"aria-controls":(r=f.optionsRef.current)==null?void 0:r.id,"aria-expanded":f.comboboxState===0,"aria-activedescendant":f.activeOptionIndex===null?void 0:f.virtual?(n=f.options.find(S=>{var ne;return!((ne=f.virtual)!=null&&ne.disabled(S.dataRef.current.value))&&f.compare(S.dataRef.current.value,f.virtual.options[f.activeOptionIndex])}))==null?void 0:n.id:(i=f.options[f.activeOptionIndex])==null?void 0:i.id,"aria-labelledby":H,"aria-autocomplete":"list",defaultValue:(s=(o=e.defaultValue)!=null?o:f.defaultValue!==void 0?p==null?void 0:p(f.defaultValue):null)!=null?s:f.defaultValue,disabled:f.disabled,onCompositionStart:E,onCompositionEnd:F,onKeyDown:_,onChange:q,onFocus:C,onBlur:R};return le({ourProps:ae,theirProps:h,slot:U,defaultTag:Lp,name:"Combobox.Input"})}let zp="button";function qp(e,t){var r;let n=vt("Combobox.Button"),i=Jt("Combobox.Button"),o=me(n.buttonRef,t),s=_e(),{id:a=`headlessui-combobox-button-${s}`,...l}=e,c=qe(),p=O(y=>{switch(y.key){case D.ArrowDown:return y.preventDefault(),y.stopPropagation(),n.comboboxState===1&&i.openCombobox(),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case D.ArrowUp:return y.preventDefault(),y.stopPropagation(),n.comboboxState===1&&(i.openCombobox(),c.nextFrame(()=>{n.value||i.goToOption(B.Last)})),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case D.Escape:return n.comboboxState!==0?void 0:(y.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&y.stopPropagation(),i.closeCombobox(),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})}));default:return}}),m=O(y=>{if(Fs(y.currentTarget))return y.preventDefault();n.comboboxState===0?i.closeCombobox():(y.preventDefault(),i.openCombobox()),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})})}),h=Qt(()=>{if(n.labelId)return[n.labelId,a].join(" ")},[n.labelId,a]),f=d.useMemo(()=>({open:n.comboboxState===0,disabled:n.disabled,value:n.value}),[n]),b={ref:o,id:a,type:ni(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(r=n.optionsRef.current)==null?void 0:r.id,"aria-expanded":n.comboboxState===0,"aria-labelledby":h,disabled:n.disabled,onClick:m,onKeyDown:p};return le({ourProps:b,theirProps:l,slot:f,defaultTag:zp,name:"Combobox.Button"})}let Bp="label";function Up(e,t){let r=_e(),{id:n=`headlessui-combobox-label-${r}`,...i}=e,o=vt("Combobox.Label"),s=Jt("Combobox.Label"),a=me(o.labelRef,t);Q(()=>s.registerLabel(n),[n]);let l=O(()=>{var p;return(p=o.inputRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=d.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return le({ourProps:{ref:a,id:n,onClick:l},theirProps:i,slot:c,defaultTag:Bp,name:"Combobox.Label"})}let Hp="ul",Gp=Je.RenderStrategy|Je.Static;function Kp(e,t){let r=_e(),{id:n=`headlessui-combobox-options-${r}`,hold:i=!1,...o}=e,s=vt("Combobox.Options"),a=me(s.optionsRef,t),l=Br(),c=l!==null?(l&he.Open)===he.Open:s.comboboxState===0;Q(()=>{var f;s.optionsPropsRef.current.static=(f=e.static)!=null?f:!1},[s.optionsPropsRef,e.static]),Q(()=>{s.optionsPropsRef.current.hold=i},[s.optionsPropsRef,i]),wp({container:s.optionsRef.current,enabled:s.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});let p=Qt(()=>{var f,b;return(b=s.labelId)!=null?b:(f=s.buttonRef.current)==null?void 0:f.id},[s.labelId,s.buttonRef.current]),m=d.useMemo(()=>({open:s.comboboxState===0,option:void 0}),[s]),h={"aria-labelledby":p,role:"listbox","aria-multiselectable":s.mode===1?!0:void 0,id:n,ref:a};return s.virtual&&s.comboboxState===0&&Object.assign(o,{children:z.createElement(Np,null,o.children)}),le({ourProps:h,theirProps:o,slot:m,defaultTag:Hp,features:Gp,visible:c,name:"Combobox.Options"})}let Zp="li";function Wp(e,t){var r;let n=_e(),{id:i=`headlessui-combobox-option-${n}`,disabled:o=!1,value:s,order:a=null,...l}=e,c=vt("Combobox.Option"),p=Jt("Combobox.Option"),m=c.virtual?c.activeOptionIndex===c.calculateIndex(s):c.activeOptionIndex===null?!1:((r=c.options[c.activeOptionIndex])==null?void 0:r.id)===i,h=c.isSelected(s),f=d.useRef(null),b=ge({disabled:o,value:s,domRef:f,order:a}),y=d.useContext(_s),x=me(t,f,y?y.measureElement:null),v=O(()=>p.onChange(s));Q(()=>p.registerOption(i,b),[b,i]);let w=d.useRef(!(c.virtual||c.__demoMode));Q(()=>{if(!c.virtual||!c.__demoMode)return;let R=ke();return R.requestAnimationFrame(()=>{w.current=!0}),R.dispose},[c.virtual,c.__demoMode]),Q(()=>{if(!w.current||c.comboboxState!==0||!m||c.activationTrigger===0)return;let R=ke();return R.requestAnimationFrame(()=>{var C,H;(H=(C=f.current)==null?void 0:C.scrollIntoView)==null||H.call(C,{block:"nearest"})}),R.dispose},[f,m,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let $=O(R=>{var C;if(o||(C=c.virtual)!=null&&C.disabled(s))return R.preventDefault();v(),js()||requestAnimationFrame(()=>{var H;return(H=c.inputRef.current)==null?void 0:H.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>p.closeCombobox())}),A=O(()=>{var R;if(o||(R=c.virtual)!=null&&R.disabled(s))return p.goToOption(B.Nothing);let C=c.calculateIndex(s);p.goToOption(B.Specific,C)}),P=Cs(),E=O(R=>P.update(R)),F=O(R=>{var C;if(!P.wasMoved(R)||o||(C=c.virtual)!=null&&C.disabled(s)||m)return;let H=c.calculateIndex(s);p.goToOption(B.Specific,H,0)}),_=O(R=>{var C;P.wasMoved(R)&&(o||(C=c.virtual)!=null&&C.disabled(s)||m&&(c.optionsPropsRef.current.hold||p.goToOption(B.Nothing)))}),q=d.useMemo(()=>({active:m,selected:h,disabled:o}),[m,h,o]);return le({ourProps:{id:i,ref:x,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":h,disabled:void 0,onClick:$,onFocus:A,onPointerEnter:E,onMouseEnter:E,onPointerMove:F,onMouseMove:F,onPointerLeave:_,onMouseLeave:_},theirProps:l,slot:q,defaultTag:Zp,name:"Combobox.Option"})}let Yp=se(Mp),Qp=se(qp),Xp=se(Vp),Jp=se(Up),eh=se(Kp),th=se(Wp),dr=Object.assign(Yp,{Input:Xp,Button:Qp,Label:Jp,Options:eh,Option:th});function Ur(){let e=d.useRef(!1);return Q(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let co=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function fo(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(r=i.innerText)!=null?r:"":n;return co.test(s)&&(s=s.replace(co,"")),s}function rh(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():fo(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return fo(e).trim()}function nh(e){let t=d.useRef(""),r=d.useRef("");return O(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=rh(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var ih=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ih||{}),oh=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(oh||{}),sh=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sh||{}),ah=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(ah||{});function cn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=We(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let lh={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=cn(e),i=jn(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=cn(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=cn(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ui=d.createContext(null);ui.displayName="ListboxActionsContext";function er(e){let t=d.useContext(ui);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,er),r}return t}let ci=d.createContext(null);ci.displayName="ListboxDataContext";function tr(e){let t=d.useContext(ci);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,tr),r}return t}function uh(e,t){return Y(t.type,lh,e,t)}let ch=d.Fragment;function dh(e,t){let{value:r,defaultValue:n,form:i,name:o,onChange:s,by:a=(k,V)=>k===V,disabled:l=!1,horizontal:c=!1,multiple:p=!1,...m}=e;const h=c?"horizontal":"vertical";let f=me(t),[b=p?[]:void 0,y]=Ts(r,s,n),[x,v]=d.useReducer(uh,{dataRef:d.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=d.useRef({static:!1,hold:!1}),$=d.useRef(null),A=d.useRef(null),P=d.useRef(null),E=O(typeof a=="string"?(k,V)=>{let oe=a;return(k==null?void 0:k[oe])===(V==null?void 0:V[oe])}:a),F=d.useCallback(k=>Y(_.mode,{1:()=>b.some(V=>E(V,k)),0:()=>E(b,k)}),[b]),_=d.useMemo(()=>({...x,value:b,disabled:l,mode:p?1:0,orientation:h,compare:E,isSelected:F,optionsPropsRef:w,labelRef:$,buttonRef:A,optionsRef:P}),[b,l,p,x]);Q(()=>{x.dataRef.current=_},[_]),$s([_.buttonRef,_.optionsRef],(k,V)=>{var oe;v({type:1}),Os(V,ri.Loose)||(k.preventDefault(),(oe=_.buttonRef.current)==null||oe.focus())},_.listboxState===0);let q=d.useMemo(()=>({open:_.listboxState===0,disabled:l,value:b}),[_,l,b]),R=O(k=>{let V=_.options.find(oe=>oe.id===k);V&&G(V.dataRef.current.value)}),C=O(()=>{if(_.activeOptionIndex!==null){let{dataRef:k,id:V}=_.options[_.activeOptionIndex];G(k.current.value),v({type:2,focus:B.Specific,id:V})}}),H=O(()=>v({type:0})),U=O(()=>v({type:1})),ae=O((k,V,oe)=>k===B.Specific?v({type:2,focus:B.Specific,id:V,trigger:oe}):v({type:2,focus:k,trigger:oe})),S=O((k,V)=>(v({type:5,id:k,dataRef:V}),()=>v({type:6,id:k}))),ne=O(k=>(v({type:7,id:k}),()=>v({type:7,id:null}))),G=O(k=>Y(_.mode,{0(){return y==null?void 0:y(k)},1(){let V=_.value.slice(),oe=V.findIndex(ve=>E(ve,k));return oe===-1?V.push(k):V.splice(oe,1),y==null?void 0:y(V)}})),ue=O(k=>v({type:3,value:k})),X=O(()=>v({type:4})),re=d.useMemo(()=>({onChange:G,registerOption:S,registerLabel:ne,goToOption:ae,closeListbox:U,openListbox:H,selectActiveOption:C,selectOption:R,search:ue,clearSearch:X}),[]),ce={ref:f},ie=d.useRef(null),Pe=qe();return d.useEffect(()=>{ie.current&&n!==void 0&&Pe.addEventListener(ie.current,"reset",()=>{y==null||y(n)})},[ie,y]),z.createElement(ui.Provider,{value:re},z.createElement(ci.Provider,{value:_},z.createElement(oi,{value:Y(_.listboxState,{0:he.Open,1:he.Closed})},o!=null&&b!=null&&si({[o]:b}).map(([k,V],oe)=>z.createElement(qr,{features:zr.Hidden,ref:oe===0?ve=>{var rt;ie.current=(rt=ve==null?void 0:ve.closest("form"))!=null?rt:null}:void 0,...vr({key:k,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:k,value:V})})),le({ourProps:ce,theirProps:m,slot:q,defaultTag:ch,name:"Listbox"}))))}let fh="button";function ph(e,t){var r;let n=_e(),{id:i=`headlessui-listbox-button-${n}`,...o}=e,s=tr("Listbox.Button"),a=er("Listbox.Button"),l=me(s.buttonRef,t),c=qe(),p=O(x=>{switch(x.key){case D.Space:case D.Enter:case D.ArrowDown:x.preventDefault(),a.openListbox(),c.nextFrame(()=>{s.value||a.goToOption(B.First)});break;case D.ArrowUp:x.preventDefault(),a.openListbox(),c.nextFrame(()=>{s.value||a.goToOption(B.Last)});break}}),m=O(x=>{switch(x.key){case D.Space:x.preventDefault();break}}),h=O(x=>{if(Fs(x.currentTarget))return x.preventDefault();s.listboxState===0?(a.closeListbox(),c.nextFrame(()=>{var v;return(v=s.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(x.preventDefault(),a.openListbox())}),f=Qt(()=>{if(s.labelId)return[s.labelId,i].join(" ")},[s.labelId,i]),b=d.useMemo(()=>({open:s.listboxState===0,disabled:s.disabled,value:s.value}),[s]),y={ref:l,id:i,type:ni(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=s.optionsRef.current)==null?void 0:r.id,"aria-expanded":s.listboxState===0,"aria-labelledby":f,disabled:s.disabled,onKeyDown:p,onKeyUp:m,onClick:h};return le({ourProps:y,theirProps:o,slot:b,defaultTag:fh,name:"Listbox.Button"})}let hh="label";function mh(e,t){let r=_e(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,o=tr("Listbox.Label"),s=er("Listbox.Label"),a=me(o.labelRef,t);Q(()=>s.registerLabel(n),[n]);let l=O(()=>{var p;return(p=o.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=d.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled}),[o]);return le({ourProps:{ref:a,id:n,onClick:l},theirProps:i,slot:c,defaultTag:hh,name:"Listbox.Label"})}let bh="ul",gh=Je.RenderStrategy|Je.Static;function vh(e,t){var r;let n=_e(),{id:i=`headlessui-listbox-options-${n}`,...o}=e,s=tr("Listbox.Options"),a=er("Listbox.Options"),l=me(s.optionsRef,t),c=qe(),p=qe(),m=Br(),h=m!==null?(m&he.Open)===he.Open:s.listboxState===0;d.useEffect(()=>{var v;let w=s.optionsRef.current;w&&s.listboxState===0&&w!==((v=Xt(w))==null?void 0:v.activeElement)&&w.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let f=O(v=>{switch(p.dispose(),v.key){case D.Space:if(s.searchQuery!=="")return v.preventDefault(),v.stopPropagation(),a.search(v.key);case D.Enter:if(v.preventDefault(),v.stopPropagation(),s.activeOptionIndex!==null){let{dataRef:w}=s.options[s.activeOptionIndex];a.onChange(w.current.value)}s.mode===0&&(a.closeListbox(),ke().nextFrame(()=>{var w;return(w=s.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})}));break;case Y(s.orientation,{vertical:D.ArrowDown,horizontal:D.ArrowRight}):return v.preventDefault(),v.stopPropagation(),a.goToOption(B.Next);case Y(s.orientation,{vertical:D.ArrowUp,horizontal:D.ArrowLeft}):return v.preventDefault(),v.stopPropagation(),a.goToOption(B.Previous);case D.Home:case D.PageUp:return v.preventDefault(),v.stopPropagation(),a.goToOption(B.First);case D.End:case D.PageDown:return v.preventDefault(),v.stopPropagation(),a.goToOption(B.Last);case D.Escape:return v.preventDefault(),v.stopPropagation(),a.closeListbox(),c.nextFrame(()=>{var w;return(w=s.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})});case D.Tab:v.preventDefault(),v.stopPropagation();break;default:v.key.length===1&&(a.search(v.key),p.setTimeout(()=>a.clearSearch(),350));break}}),b=Qt(()=>{var v;return(v=s.buttonRef.current)==null?void 0:v.id},[s.buttonRef.current]),y=d.useMemo(()=>({open:s.listboxState===0}),[s]),x={"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":s.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":s.orientation,id:i,onKeyDown:f,role:"listbox",tabIndex:0,ref:l};return le({ourProps:x,theirProps:o,slot:y,defaultTag:bh,features:gh,visible:h,name:"Listbox.Options"})}let xh="li";function yh(e,t){let r=_e(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...s}=e,a=tr("Listbox.Option"),l=er("Listbox.Option"),c=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===n:!1,p=a.isSelected(o),m=d.useRef(null),h=nh(m),f=ge({disabled:i,value:o,domRef:m,get textValue(){return h()}}),b=me(t,m);Q(()=>{if(a.listboxState!==0||!c||a.activationTrigger===0)return;let E=ke();return E.requestAnimationFrame(()=>{var F,_;(_=(F=m.current)==null?void 0:F.scrollIntoView)==null||_.call(F,{block:"nearest"})}),E.dispose},[m,c,a.listboxState,a.activationTrigger,a.activeOptionIndex]),Q(()=>l.registerOption(n,f),[f,n]);let y=O(E=>{if(i)return E.preventDefault();l.onChange(o),a.mode===0&&(l.closeListbox(),ke().nextFrame(()=>{var F;return(F=a.buttonRef.current)==null?void 0:F.focus({preventScroll:!0})}))}),x=O(()=>{if(i)return l.goToOption(B.Nothing);l.goToOption(B.Specific,n)}),v=Cs(),w=O(E=>v.update(E)),$=O(E=>{v.wasMoved(E)&&(i||c||l.goToOption(B.Specific,n,0))}),A=O(E=>{v.wasMoved(E)&&(i||c&&l.goToOption(B.Nothing))}),P=d.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return le({ourProps:{id:n,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:x,onPointerEnter:w,onMouseEnter:w,onPointerMove:$,onMouseMove:$,onPointerLeave:A,onMouseLeave:A},theirProps:s,slot:P,defaultTag:xh,name:"Listbox.Option"})}let Sh=se(dh),wh=se(ph),Th=se(mh),Eh=se(vh),Oh=se(yh),fr=Object.assign(Sh,{Button:wh,Label:Th,Options:Eh,Option:Oh});function jh(e=0){let[t,r]=d.useState(e),n=Ur(),i=d.useCallback(l=>{n.current&&r(c=>c|l)},[t,n]),o=d.useCallback(l=>!!(t&l),[t]),s=d.useCallback(l=>{n.current&&r(c=>c&~l)},[r,n]),a=d.useCallback(l=>{n.current&&r(c=>c^l)},[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}function $h({onFocus:e}){let[t,r]=d.useState(!0),n=Ur();return t?z.createElement(qr,{as:"button",type:"button",features:zr.Focusable,onFocus:i=>{i.preventDefault();let o,s=50;function a(){if(s--<=0){o&&cancelAnimationFrame(o);return}if(e()){if(cancelAnimationFrame(o),!n.current)return;r(!1);return}o=requestAnimationFrame(a)}o=requestAnimationFrame(a)}}):null}const Ps=d.createContext(null);function Ch(){return{groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=(r=n.get(t))!=null?r:0;n.set(t,i+1);let o=Array.from(n.keys()).indexOf(t);function s(){let a=n.get(t);a>1?n.set(t,a-1):n.delete(t)}return[o,s]}}}function Rh({children:e}){let t=d.useRef(Ch());return d.createElement(Ps.Provider,{value:t},e)}function Ns(e){let t=d.useContext(Ps);if(!t)throw new Error("You must wrap your component in a ");let r=Fh(),[n,i]=t.current.get(e,r);return d.useEffect(()=>i,[]),n}function Fh(){var e,t,r;let n=(r=(t=(e=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:e.ReactCurrentOwner)==null?void 0:t.current)!=null?r:null;if(!n)return Symbol();let i=[],o=n;for(;o;)i.push(o.index),o=o.return;return"$."+i.join(".")}var Ih=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ih||{}),Ah=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Ah||{}),_h=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(_h||{});let Ph={0(e,t){var r;let n=We(e.tabs,p=>p.current),i=We(e.panels,p=>p.current),o=n.filter(p=>{var m;return!((m=p.current)!=null&&m.hasAttribute("disabled"))}),s={...e,tabs:n,panels:i};if(t.index<0||t.index>n.length-1){let p=Y(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Y(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(o.length===0)return s;let m=Y(p,{0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])});return{...s,selectedIndex:m===-1?e.selectedIndex:m}}let a=n.slice(0,t.index),l=[...n.slice(t.index),...a].find(p=>o.includes(p));if(!l)return s;let c=(r=n.indexOf(l))!=null?r:e.selectedIndex;return c===-1&&(c=e.selectedIndex),{...s,selectedIndex:c}},1(e,t){var r;if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],i=We([...e.tabs,t.tab],s=>s.current),o=(r=i.indexOf(n))!=null?r:e.selectedIndex;return o===-1&&(o=e.selectedIndex),{...e,tabs:i,selectedIndex:o}},2(e,t){return{...e,tabs:e.tabs.filter(r=>r!==t.tab)}},3(e,t){return e.panels.includes(t.panel)?e:{...e,panels:We([...e.panels,t.panel],r=>r.current)}},4(e,t){return{...e,panels:e.panels.filter(r=>r!==t.panel)}}},di=d.createContext(null);di.displayName="TabsDataContext";function Rt(e){let t=d.useContext(di);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Rt),r}return t}let fi=d.createContext(null);fi.displayName="TabsActionsContext";function pi(e){let t=d.useContext(fi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,pi),r}return t}function Nh(e,t){return Y(t.type,Ph,e,t)}let kh=d.Fragment;function Dh(e,t){let{defaultIndex:r=0,vertical:n=!1,manual:i=!1,onChange:o,selectedIndex:s=null,...a}=e;const l=n?"vertical":"horizontal",c=i?"manual":"auto";let p=s!==null,m=me(t),[h,f]=d.useReducer(Nh,{selectedIndex:s??r,tabs:[],panels:[]}),b=d.useMemo(()=>({selectedIndex:h.selectedIndex}),[h.selectedIndex]),y=ge(o||(()=>{})),x=ge(h.tabs),v=d.useMemo(()=>({orientation:l,activation:c,...h}),[l,c,h]),w=O(_=>(f({type:1,tab:_}),()=>f({type:2,tab:_}))),$=O(_=>(f({type:3,panel:_}),()=>f({type:4,panel:_}))),A=O(_=>{P.current!==_&&y.current(_),p||f({type:0,index:_})}),P=ge(p?e.selectedIndex:h.selectedIndex),E=d.useMemo(()=>({registerTab:w,registerPanel:$,change:A}),[]);Q(()=>{f({type:0,index:s??r})},[s]),Q(()=>{if(P.current===void 0||h.tabs.length<=0)return;let _=We(h.tabs,q=>q.current);_.some((q,R)=>h.tabs[R]!==q)&&A(_.indexOf(h.tabs[P.current]))});let F={ref:m};return z.createElement(Rh,null,z.createElement(fi.Provider,{value:E},z.createElement(di.Provider,{value:v},v.tabs.length<=0&&z.createElement($h,{onFocus:()=>{var _,q;for(let R of x.current)if(((_=R.current)==null?void 0:_.tabIndex)===0)return(q=R.current)==null||q.focus(),!0;return!1}}),le({ourProps:F,theirProps:a,slot:b,defaultTag:kh,name:"Tabs"}))))}let Mh="div";function Lh(e,t){let{orientation:r,selectedIndex:n}=Rt("Tab.List"),i=me(t);return le({ourProps:{ref:i,role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:Mh,name:"Tabs.List"})}let Vh="button";function zh(e,t){var r,n;let i=_e(),{id:o=`headlessui-tabs-tab-${i}`,...s}=e,{orientation:a,activation:l,selectedIndex:c,tabs:p,panels:m}=Rt("Tab"),h=pi("Tab"),f=Rt("Tab"),b=d.useRef(null),y=me(b,t);Q(()=>h.registerTab(b),[h,b]);let x=Ns("tabs"),v=p.indexOf(b);v===-1&&(v=x);let w=v===c,$=O(R=>{var C;let H=R();if(H===kt.Success&&l==="auto"){let U=(C=Xt(b))==null?void 0:C.activeElement,ae=f.tabs.findIndex(S=>S.current===U);ae!==-1&&h.change(ae)}return H}),A=O(R=>{let C=p.map(H=>H.current).filter(Boolean);if(R.key===D.Space||R.key===D.Enter){R.preventDefault(),R.stopPropagation(),h.change(v);return}switch(R.key){case D.Home:case D.PageUp:return R.preventDefault(),R.stopPropagation(),$(()=>wt(C,Fe.First));case D.End:case D.PageDown:return R.preventDefault(),R.stopPropagation(),$(()=>wt(C,Fe.Last))}if($(()=>Y(a,{vertical(){return R.key===D.ArrowUp?wt(C,Fe.Previous|Fe.WrapAround):R.key===D.ArrowDown?wt(C,Fe.Next|Fe.WrapAround):kt.Error},horizontal(){return R.key===D.ArrowLeft?wt(C,Fe.Previous|Fe.WrapAround):R.key===D.ArrowRight?wt(C,Fe.Next|Fe.WrapAround):kt.Error}}))===kt.Success)return R.preventDefault()}),P=d.useRef(!1),E=O(()=>{var R;P.current||(P.current=!0,(R=b.current)==null||R.focus({preventScroll:!0}),h.change(v),Es(()=>{P.current=!1}))}),F=O(R=>{R.preventDefault()}),_=d.useMemo(()=>({selected:w}),[w]),q={ref:y,onKeyDown:A,onMouseDown:F,onClick:E,id:o,role:"tab",type:ni(e,b),"aria-controls":(n=(r=m[v])==null?void 0:r.current)==null?void 0:n.id,"aria-selected":w,tabIndex:w?0:-1};return le({ourProps:q,theirProps:s,slot:_,defaultTag:Vh,name:"Tabs.Tab"})}let qh="div";function Bh(e,t){let{selectedIndex:r}=Rt("Tab.Panels"),n=me(t),i=d.useMemo(()=>({selectedIndex:r}),[r]);return le({ourProps:{ref:n},theirProps:e,slot:i,defaultTag:qh,name:"Tabs.Panels"})}let Uh="div",Hh=Je.RenderStrategy|Je.Static;function Gh(e,t){var r,n,i,o;let s=_e(),{id:a=`headlessui-tabs-panel-${s}`,tabIndex:l=0,...c}=e,{selectedIndex:p,tabs:m,panels:h}=Rt("Tab.Panel"),f=pi("Tab.Panel"),b=d.useRef(null),y=me(b,t);Q(()=>f.registerPanel(b),[f,b]);let x=Ns("panels"),v=h.indexOf(b);v===-1&&(v=x);let w=v===p,$=d.useMemo(()=>({selected:w}),[w]),A={ref:y,id:a,role:"tabpanel","aria-labelledby":(n=(r=m[v])==null?void 0:r.current)==null?void 0:n.id,tabIndex:w?l:-1};return!w&&((i=c.unmount)==null||i)&&!((o=c.static)!=null&&o)?z.createElement(qr,{as:"span","aria-hidden":"true",...A}):le({ourProps:A,theirProps:c,slot:$,defaultTag:Uh,features:Hh,visible:w,name:"Tabs.Panel"})}let Kh=se(zh),Zh=se(Dh),Wh=se(Lh),Yh=se(Bh),Qh=se(Gh),Bt=Object.assign(Kh,{Group:Zh,List:Wh,Panels:Yh,Panel:Qh});function Xh(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function dn(e,...t){e&&t.length>0&&e.classList.add(...t)}function fn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Jh(e,t){let r=ke();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,s]=[n,i].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,m)=>m-p);return c}),a=o+s;if(a!==0){r.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let l=r.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return r.add(()=>t()),r.dispose}function em(e,t,r,n){let i=r?"enter":"leave",o=ke(),s=n!==void 0?Xh(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=Y(i,{enter:()=>t.enter,leave:()=>t.leave}),l=Y(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Y(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return fn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),dn(e,...t.base,...a,...c),o.nextFrame(()=>{fn(e,...t.base,...a,...c),dn(e,...t.base,...a,...l),Jh(e,()=>(fn(e,...t.base,...a),dn(e,...t.base,...t.entered),s()))}),o.dispose}function tm({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let s=Ur(),a=qe(),l=ge(r);Q(()=>{e&&(l.current="enter")},[e]),Q(()=>{let c=ke();a.add(c.dispose);let p=t.current;if(p&&l.current!=="idle"&&s.current)return c.dispose(),i.current(l.current),c.add(em(p,n.current,l.current==="enter",()=>{c.dispose(),o.current(l.current)})),c.dispose},[r])}function Ke(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Hr=d.createContext(null);Hr.displayName="TransitionContext";var rm=(e=>(e.Visible="visible",e.Hidden="hidden",e))(rm||{});function nm(){let e=d.useContext(Hr);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function im(){let e=d.useContext(Gr);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Gr=d.createContext(null);Gr.displayName="NestingContext";function Kr(e){return"children"in e?Kr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function ks(e,t){let r=ge(e),n=d.useRef([]),i=Ur(),o=qe(),s=O((f,b=Ye.Hidden)=>{let y=n.current.findIndex(({el:x})=>x===f);y!==-1&&(Y(b,{[Ye.Unmount](){n.current.splice(y,1)},[Ye.Hidden](){n.current[y].state="hidden"}}),o.microTask(()=>{var x;!Kr(n)&&i.current&&((x=r.current)==null||x.call(r))}))}),a=O(f=>{let b=n.current.find(({el:y})=>y===f);return b?b.state!=="visible"&&(b.state="visible"):n.current.push({el:f,state:"visible"}),()=>s(f,Ye.Unmount)}),l=d.useRef([]),c=d.useRef(Promise.resolve()),p=d.useRef({enter:[],leave:[],idle:[]}),m=O((f,b,y)=>{l.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([x])=>x!==f)),t==null||t.chains.current[b].push([f,new Promise(x=>{l.current.push(x)})]),t==null||t.chains.current[b].push([f,new Promise(x=>{Promise.all(p.current[b].map(([v,w])=>w)).then(()=>x())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),h=O((f,b,y)=>{Promise.all(p.current[b].splice(0).map(([x,v])=>v)).then(()=>{var x;(x=l.current.shift())==null||x()}).then(()=>y(b))});return d.useMemo(()=>({children:n,register:a,unregister:s,onStart:m,onStop:h,wait:c,chains:p}),[a,s,n,m,h,p,c])}function om(){}let sm=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function po(e){var t;let r={};for(let n of sm)r[n]=(t=e[n])!=null?t:om;return r}function am(e){let t=d.useRef(po(e));return d.useEffect(()=>{t.current=po(e)},[e]),t}let lm="div",Ds=Je.RenderStrategy;function um(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:p,entered:m,leave:h,leaveFrom:f,leaveTo:b,...y}=e,x=d.useRef(null),v=me(x,t),w=(r=y.unmount)==null||r?Ye.Unmount:Ye.Hidden,{show:$,appear:A,initial:P}=nm(),[E,F]=d.useState($?"visible":"hidden"),_=im(),{register:q,unregister:R}=_;d.useEffect(()=>q(x),[q,x]),d.useEffect(()=>{if(w===Ye.Hidden&&x.current){if($&&E!=="visible"){F("visible");return}return Y(E,{hidden:()=>R(x),visible:()=>q(x)})}},[E,x,q,R,$,w]);let C=ge({base:Ke(y.className),enter:Ke(l),enterFrom:Ke(c),enterTo:Ke(p),entered:Ke(m),leave:Ke(h),leaveFrom:Ke(f),leaveTo:Ke(b)}),H=am({beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a}),U=ti();d.useEffect(()=>{if(U&&E==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,E,U]);let ae=P&&!A,S=A&&$&&P,ne=!U||ae?"idle":$?"enter":"leave",G=jh(0),ue=O(k=>Y(k,{enter:()=>{G.addFlag(he.Opening),H.current.beforeEnter()},leave:()=>{G.addFlag(he.Closing),H.current.beforeLeave()},idle:()=>{}})),X=O(k=>Y(k,{enter:()=>{G.removeFlag(he.Opening),H.current.afterEnter()},leave:()=>{G.removeFlag(he.Closing),H.current.afterLeave()},idle:()=>{}})),re=ks(()=>{F("hidden"),R(x)},_),ce=d.useRef(!1);tm({immediate:S,container:x,classes:C,direction:ne,onStart:ge(k=>{ce.current=!0,re.onStart(x,k,ue)}),onStop:ge(k=>{ce.current=!1,re.onStop(x,k,X),k==="leave"&&!Kr(re)&&(F("hidden"),R(x))})});let ie=y,Pe={ref:v};return S?ie={...ie,className:gr(y.className,...C.current.enter,...C.current.enterFrom)}:ce.current&&(ie.className=gr(y.className,(n=x.current)==null?void 0:n.className),ie.className===""&&delete ie.className),z.createElement(Gr.Provider,{value:re},z.createElement(oi,{value:Y(E,{visible:he.Open,hidden:he.Closed})|G.flags},le({ourProps:Pe,theirProps:ie,defaultTag:lm,features:Ds,visible:E==="visible",name:"Transition.Child"})))}function cm(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,s=d.useRef(null),a=me(s,t);ti();let l=Br();if(r===void 0&&l!==null&&(r=(l&he.Open)===he.Open),![!0,!1].includes(r))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=d.useState(r?"visible":"hidden"),m=ks(()=>{p("hidden")}),[h,f]=d.useState(!0),b=d.useRef([r]);Q(()=>{h!==!1&&b.current[b.current.length-1]!==r&&(b.current.push(r),f(!1))},[b,r]);let y=d.useMemo(()=>({show:r,appear:n,initial:h}),[r,n,h]);d.useEffect(()=>{if(r)p("visible");else if(!Kr(m))p("hidden");else{let $=s.current;if(!$)return;let A=$.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[r,m]);let x={unmount:i},v=O(()=>{var $;h&&f(!1),($=e.beforeEnter)==null||$.call(e)}),w=O(()=>{var $;h&&f(!1),($=e.beforeLeave)==null||$.call(e)});return z.createElement(Gr.Provider,{value:m},z.createElement(Hr.Provider,{value:y},le({ourProps:{...x,as:d.Fragment,children:z.createElement(Ms,{ref:a,...x,...o,beforeEnter:v,beforeLeave:w})},theirProps:{},defaultTag:d.Fragment,features:Ds,visible:c==="visible",name:"Transition"})))}function dm(e,t){let r=d.useContext(Hr)!==null,n=Br()!==null;return z.createElement(z.Fragment,null,!r&&n?z.createElement($n,{ref:t,...e}):z.createElement(Ms,{ref:t,...e}))}let $n=se(cm),Ms=se(um),fm=se(dm),pm=Object.assign($n,{Child:fm,Root:$n});function hm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M5.22 14.78a.75.75 0 0 0 1.06 0l7.22-7.22v5.69a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-.75-.75h-7.5a.75.75 0 0 0 0 1.5h5.69l-7.22 7.22a.75.75 0 0 0 0 1.06Z",clipRule:"evenodd"}))}const mm=d.forwardRef(hm),bm=mm;function gm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const vm=d.forwardRef(gm),Ls=vm;function xm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",clipRule:"evenodd"}))}const ym=d.forwardRef(xm),Sm=ym,hi={label:T.string,organisation:T.string,type:T.string,user:T.string,value:T.string},Vs={name:T.string.isRequired,id:T.string.isRequired,codelists:T.arrayOf(T.shape(hi)).isRequired};function Cn({label:e,value:t}){return u.jsx(fr.Option,{className:({active:r})=>je("relative cursor-pointer select-none py-2 pl-10 pr-4",r?"bg-oxford-600 text-white":"text-gray-900"),value:t,children:({selected:r,active:n})=>u.jsxs(u.Fragment,{children:[u.jsx("span",{className:je("block truncate",r?"font-medium":"font-normal"),children:u.jsx("span",{children:e})}),r?u.jsx("span",{className:je("absolute inset-y-0 left-0 flex items-center px-3 z-10",n?"text-white":"text-oxford-600"),children:u.jsx(Ls,{"aria-hidden":"true",className:"h-5 w-5"})}):null]})})}Cn.propTypes={label:T.string.isRequired,value:T.shape(hi).isRequired};function zs({defaultValue:e,handleChange:t,name:r}){const{formData:n}=Ce();return u.jsx(fr,{name:r,onChange:i=>t(i),value:e,children:u.jsxs("div",{className:"relative mt-1",children:[u.jsx(fr.Button,{className:je("relative w-fit max-w-prose rounded-md border-gray-400 border-2 bg-white py-2 pl-3 pr-10 text-left shadow-sm","focus:outline-none","focus-visible:border-oxford-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300"),children:({value:i})=>u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"block truncate",children:i.label}),u.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2 ",children:u.jsx(Sm,{"aria-hidden":"true",className:"h-5 w-5 text-gray-400"})})]})}),u.jsx(pm,{as:d.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:u.jsxs(fr.Options,{className:"absolute z-10 mt-1 max-h-60 w-fit max-w-prose overflow-auto rounded-md bg-white py-1 text-base divide-y divide-gray-200 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[n.codelist0?u.jsx(Cn,{label:n.codelist0.label,value:n.codelist0}):null,n.codelist1?u.jsx(Cn,{label:n.codelist1.label,value:n.codelist1}):null]})})]})})}zs.propTypes={defaultValue:T.shape(hi).isRequired,handleChange:T.func.isRequired,name:T.string.isRequired};function wm(){var m,h;const{dates:{startStr:e,endStr:t}}=Ft(),{formData:r}=Ce(),{errors:n,setFieldTouched:i,setFieldValue:o,touched:s,validateField:a,values:l}=Ue();function c(f){f===l.codelistA&&(o("codelistA",l.codelistB),o("codelistB",f)),f===l.codelistB&&(o("codelistB",l.codelistA),o("codelistA",f))}function p(f,b,y){a(b),i(b),o(b,f.target.value),i("timeOption"),o("timeOption",cr({[b]:f.target.value,[y]:l==null?void 0:l[y]}))}return u.jsxs("div",{className:"flex flex-col gap-y-1",children:[u.jsx("p",{className:"max-w-prose text-lg",children:Oe[0]}),u.jsx(zs,{defaultValue:(l==null?void 0:l.codelistA)||l.codelist0,handleChange:f=>c(f),name:"codelistA"}),u.jsxs("p",{className:"max-w-prose text-lg grid gap-y-1",children:[Oe[1],u.jsxs("span",{children:[u.jsx("strong",{children:e})," ",Oe[2]," ",u.jsx("strong",{children:t})]}),Oe[3]]}),u.jsxs("p",{className:"max-w-prose text-lg",children:[u.jsx("strong",{className:"block mb-1",children:l.codelistB.label||((m=r.codelist1)==null?void 0:m.label)}),Oe[4]," ",u.jsxs("span",{className:"block mt-1",children:[u.jsx("strong",{children:l.codelistA.label||((h=r.codelist0)==null?void 0:h.label)})," ",Oe[5]]})]}),u.jsxs(zt,{hideLegend:!0,legend:"Select a time scale",children:[u.jsxs(qt,{id:"timeHasValue",label:cr(l),labelClassName:"flex flex-row gap-1 items-center mt-2",name:"timeOption",type:"radio",value:cr(l),children:["up to",u.jsx(Ct,{className:"inline-flex w-[6ch] relative rounded-md border-gray-400 border-2 bg-white p-1 shadow-sm",inputMode:"numeric",max:"52",min:"0",name:"timeValue",onChange:f=>p(f,"timeValue","timeScale"),type:"text"}),u.jsx(Ct,{as:"select",className:"inline-flex w-[12ch] relative rounded-md border-gray-400 border-2 bg-white p-1 shadow-sm",name:"timeScale",onChange:f=>p(f,"timeScale","timeValue"),children:Ro.map(({label:f,value:b})=>u.jsx("option",{value:b,children:f},b))}),Ss]}),u.jsx(qt,{id:"anyTime",label:Ie,name:"timeOption",type:"radio",value:Ie})]}),n.timeValue&&s.timeValue?u.jsx(Xe,{children:n.timeValue}):null]})}const xr=e=>At().shape({label:Ae().required("Select a codelist"),organisation:Ae(),value:Ae().required("Select a codelist"),type:Ae().oneOf(e.map(t=>t.id)).required()}).required("Select a codelist");function Tm(e){return{codelistA:e.codelistA||e.codelist0,codelistB:e.codelistB||e.codelist1,timeOption:e.timeOption===Ie?Ie:cr({timeValue:e.timeValue||5,timeScale:e.timeScale||"years"}),timeValue:e.timeValue||5,timeScale:e.timeScale||"years"}}function Em(){const[,e]=et(),{codelistGroups:t}=Ft(),{formData:r,setFormData:n}=Ce();if(Gt(["codelist0","codelist1"]))return u.jsx(Ht,{to:""});const i=At().shape({codelistA:xr(t),codelistB:xr(t),timeOption:Ae().required(),timeValue:ds().typeError("Amount must be a number").positive("Time value must be a positive number").min(0,"Time scale cannot be less than 0").required("Amount of time is required").test("tenYears","Time scale cannot be longer than 10 years",(o,s)=>{const{timeScale:a,timeOption:l}=s.parent;return l===Ie?!0:!(o===void 0||Number.isNaN(o)||a==="weeks"&&o>522||a==="months"&&o>120||a==="years"&&o>10)}),timeScale:Ae().oneOf(Ro.map(o=>o.value)).required()});return u.jsx(kr,{initialValues:Tm(r),onSubmit:(o,s)=>s.validateForm().then(()=>{const{timeOption:a,timeScale:l,timeValue:c,...p}=o;return a===Ie?(n({...r,timeOption:a,timeEver:"true",timeScale:null,timeValue:null,...p}),e("/preview-request")):(n({...r,timeEver:null,...o}),e("/preview-request"))}),validateOnBlur:!0,validateOnChange:!0,validateOnMount:!0,validationSchema:i,children:({isValid:o})=>u.jsxs(Wt,{children:[u.jsx(Yt,{}),u.jsx("h2",{className:"text-3xl font-bold mb-3",children:"Report request"}),u.jsx(wm,{}),u.jsx(He,{className:"mt-6",disabled:!o,type:"submit",children:"Next"})]})})}function mi({id:e,label:t,name:r,value:n,onClick:i}){return u.jsxs("div",{className:"flex flex-row place-items-baseline gap-x-3 text-lg leading-tight",children:[u.jsx(Ct,{className:"peer cursor-pointer scale-150 top-[1px] relative checked:bg-oxford-600 focus:ring-bn-sun",id:e,name:r,onClick:i,type:"checkbox",value:n}),u.jsx("label",{className:"cursor-pointer touch-manipulation tracking-tight",htmlFor:e,children:t})]})}mi.propTypes={id:T.string.isRequired,label:T.string.isRequired,name:T.string.isRequired,onClick:T.func,value:T.string.isRequired};mi.defaultProps={onClick:()=>null};function Om(){const[,e]=et(),{formData:t,setFormData:r}=Ce();if(Gt(["codelistA","codelistB","timeOption"]))return u.jsx(Ht,{to:""});const n=At().shape({filterPopulation:Ae().oneOf(sr.items.map(o=>o.value)).required("Select a filter for the population"),demographics:bs().of(Ae().oneOf(Nt.items.map(o=>o.value))).min(0).max(Nt.items.length)}),i={filterPopulation:t.filterPopulation||"",demographics:t.demographics||[]};return u.jsx(kr,{initialValues:i,onSubmit:(o,s)=>{s.validateForm().then(()=>{r({...t,...o}),e("/analysis-information")})},validateOnMount:!0,validationSchema:n,children:({errors:o,isValid:s,touched:a})=>u.jsxs(Wt,{className:"flex flex-col gap-y-8",children:[u.jsx(Yt,{}),u.jsx("h1",{className:"text-4xl font-bold",children:"Set report filters"}),u.jsxs(zt,{legend:sr.label,children:[sr.items.map(l=>u.jsx(qt,{id:l.value,label:l.label,name:"filterPopulation",value:l.value},l.value)),o.filterPopulation&&a.filterPopulation?u.jsx(Xe,{children:o.filterPopulation}):null]}),u.jsxs(zt,{legend:Nt.label,children:[u.jsx(ei,{children:u.jsx("p",{children:"These should only be selected if they align with your approved project purpose. Selecting more options will increase report processing time."})}),Nt.items.map(l=>u.jsx(mi,{id:l.value,label:l.label,name:"demographics",value:l.value},l.value)),o.demographics&&a.demographics?u.jsx(Xe,{children:"Select one or more demographics"}):null]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(He,{disabled:!s,type:"submit",children:"Next"})})]})})}function jm(){const{codelistGroups:e}=Ft();return u.jsx(Bt.List,{className:"flex space-x-1 rounded bg-gray-100 p-1 max-w-prose",children:e.map(t=>u.jsx(Bt,{className:({selected:r})=>je("w-full rounded-lg p-1 font-semibold text-oxford-700 leading-5 md:py-2.5","ring-white ring-opacity-60 ring-offset-2 ring-offset-oxford-400 focus:outline-none focus:ring-2",r?"bg-white shadow":"hover:bg-white/[0.12] hover:text-oxford-900"),children:t.name},t.id))})}function $m(e){const t={year:"numeric",month:"short",day:"2-digit"},r=new Date(e);return new Intl.DateTimeFormat("en-GB",t).format(r)}function qs({codelistGroup:e,codelistID:t,query:r}){const{values:n}=Ue(),i=o=>r.length<2?o:o.filter(s=>s.label.toLowerCase().includes(r.toLowerCase()));return r.length<3?u.jsxs("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:["Type ",3-r.length," more characters to search"]}):i(e.codelists).length===0?u.jsx("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:"Nothing found"}):u.jsx(u.Fragment,{children:i(e.codelists.sort((o,s)=>o.label.localeCompare(s.label))).map(o=>u.jsx(dr.Option,{className:({active:s})=>je("relative cursor-pointer select-none py-2 pl-10 pr-4",s?"bg-oxford-600 text-white":"text-gray-900"),value:o,children:({selected:s,active:a})=>{var l;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:je("block truncate",s?"font-medium":"font-normal"),children:[u.jsx("span",{children:o.label}),u.jsxs("dl",{className:`flex flex-row flex-wrap text-sm mt-0.5 ${a?"text-white":"text-gray-600"}`,children:[u.jsxs("div",{className:"flex flex-row gap-1",children:[u.jsx("dt",{children:"From:"})," ",u.jsx("dd",{children:o.organisation?o.organisation:o.user})]}),u.jsxs("div",{className:"flex flex-row gap-1 ml-2 border-l border-l-gray-300 pl-2",children:[u.jsx("dt",{children:"Last updated:"})," ",u.jsx("dd",{children:$m(o.updatedDate)})]})]})]}),s||((l=n[t])==null?void 0:l.value)===o.value?u.jsx("span",{className:je("absolute inset-y-0 left-0 flex items-center pl-3 z-10",a?"text-white":"text-oxford-600"),children:u.jsx(Ls,{"aria-hidden":"true",className:"h-5 w-5"})}):null]})}},o.value))})}qs.propTypes={codelistGroup:T.shape(Vs).isRequired,codelistID:T.string.isRequired,query:T.string.isRequired};function Bs({codelistGroup:e,codelistID:t,query:r,setQuery:n}){const{errors:i,setFieldValue:o,setTouched:s,touched:a}=Ue(),[l,c]=d.useState("");return d.useEffect(()=>i[t]&&a[t]?Ba(i[t])?c(i[t].label):c(i[t]):c(""),[i,a,t]),u.jsx(Bt.Panel,{children:u.jsx(Ct,{name:t,children:({field:p})=>{var m;return u.jsxs("div",{className:"mt-2",children:[u.jsx(dr,{defaultValue:p.value,name:p.name,onChange:h=>{s({...a,[t]:!0}),o(p.name,h)},children:u.jsxs("div",{className:"relative w-full max-w-prose",children:[u.jsx(dr.Input,{autoComplete:"off",autoCorrect:"false",className:je("block w-full px-3 py-2 border-2 border-gray-400 rounded-md shadow-sm placeholder-gray-400","focus:cursor-text focus:outline-none focus:ring-oxford-500 focus:border-oxford-500"),displayValue:h=>h.label,onChange:h=>n(h.target.value),placeholder:"Type 3 or more characters to find a codelist"}),u.jsx(dr.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base divide-y divide-gray-200 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:u.jsx(qs,{codelistGroup:e,codelistID:t,query:r})})]})}),l?u.jsx(Xe,{children:l}):null,(m=p==null?void 0:p.value)!=null&&m.value?u.jsx("ul",{className:"text-sm mt-2",children:u.jsx("li",{children:u.jsxs("a",{className:"text-oxford-600 font-semibold underline underline-offset-1 transition-colors hover:text-oxford-700 hover:no-underline focus:text-oxford-900 focus:no-underline",href:`https://www.opencodelists.org/codelist/${p.value.value}`,rel:"noopener noreferrer",target:"_blank",children:["View “",p.value.label,"” codelist",u.jsx(bm,{className:"inline h-4 -mt-0.5",height:20,width:20})]})})}):null]})}})},e.id)}Bs.propTypes={codelistGroup:T.shape(Vs).isRequired,codelistID:T.string.isRequired,query:T.string.isRequired,setQuery:T.func.isRequired};function Rn({id:e,label:t}){const{setFieldValue:r}=Ue(),{formData:n}=Ce(),{codelistGroups:i}=Ft(),[o,s]=d.useState(""),a=`codelist${e}`,l=i.findIndex(c=>{var p;return c.id===((p=n==null?void 0:n[a])==null?void 0:p.type)});return u.jsxs(Bt.Group,{as:"div",defaultIndex:l!==-1?l:0,onChange:()=>{s(""),r(a,{})},children:[u.jsx("h2",{className:"text-2xl font-bold tracking-tight mb-2 md:mb-1",children:t}),u.jsx(jm,{}),u.jsx(Bt.Panels,{children:i.map(c=>u.jsx(Bs,{codelistGroup:c,codelistID:a,query:o,setQuery:s},c.id))})]})}Rn.propTypes={id:T.number.isRequired,label:T.string.isRequired};function Cm(){const{formData:e,setFormData:t}=Ce(),{codelistGroups:r}=Ft(),[,n]=et(),i=At({codelist0:xr(r),codelist1:xr(r).test("compare_codelists","Codelists cannot be the same, please change one codelist",(s,a)=>Object.entries(a.parent.codelist0).toString()!==Object.entries(s).toString())}),o={codelist0:e.codelist0||"",codelist1:e.codelist1||""};return u.jsx(kr,{initialValues:o,onSubmit:(s,a)=>{a.validateForm().then(()=>(t({...e,...s,codelistA:null,codelistB:null}),n("/build-query")))},validateOnMount:!0,validationSchema:i,children:({isValid:s})=>u.jsxs(Wt,{className:"flex flex-col gap-y-12",children:[u.jsx(Yt,{}),u.jsx(Rn,{id:0,label:"Select a codelist"}),u.jsx(Rn,{id:1,label:"Select a second codelist"}),u.jsx(He,{disabled:!s,type:"submit",children:"Next"})]})})}function Rm(){return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"prose prose-blue",children:[u.jsx("p",{className:"text-lg",children:"Requesting an analysis requires you to select two SNOMED CT or dm+d codelists to see how they are used in combination over time."}),u.jsx("p",{className:"text-lg",children:"To make sure this is the right tool for you, check that you understand the following terms before continuing."}),u.jsx("h3",{children:"Codelist"}),u.jsx("p",{children:"A codelist is a set of codes that can be recorded in clinical systems. Codelists are used to select patients with activities and conditions of interest."}),u.jsx("p",{children:"Any codelist you require in your Analysis Request must:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"use either the SNOMED CT or dm+d coding system"}),u.jsxs("li",{children:["be published on"," ",u.jsx("a",{href:"https://www.opencodelists.org/",rel:"noopener noreferrer",target:"_blank",children:"OpenCodelists"})]})]}),u.jsx("p",{children:"You should review the codelists you wish to use on OpenCodelists and confirm it is suitable for your request before you start."}),u.jsx("p",{children:"Speak to your co-pilot if you can’t find a codelist you want to use, or you wish to add a new codelist to OpenCodelists."}),u.jsx("h3",{children:"SNOMED CT"}),u.jsxs("p",{children:[u.jsx("a",{href:"https://digital.nhs.uk/services/terminology-and-classifications/snomed-ct",rel:"noopener noreferrer",target:"_blank",children:"SNOMED CT"})," ","is a systematically organised computer-processable collection of medical terms used in clinical documentation and reporting. It provides a consistent vocabulary for recording patient clinical information across the NHS and helps ensure data is recorded consistently and accurately."]}),u.jsx("p",{children:"SNOMED CT codelists can query data related to recording of events such as:"}),u.jsxs("ul",{children:[u.jsxs("li",{children:[u.jsx("strong",{children:"Condition Diagnoses "}),"— for example: Crohn’s Disease, Bipolar disorder"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Symptoms "}),"— for example: Headache, Blood in urine"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Test Results "}),"— for example: Potassium level, Abnormal ECG"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Procedures "}),"— for example: Coronary artery bypass graft, Hysterectomy"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Activities "}),"— for example: Medication review"]})]}),u.jsx("h3",{children:"dm+d"}),u.jsxs("p",{children:[u.jsx("a",{href:"https://www.nhsbsa.nhs.uk/pharmacies-gp-practices-and-appliance-contractors/dictionary-medicines-and-devices-dmd",rel:"noopener noreferrer",target:"_blank",children:"dm+d"})," ","is a dictionary of descriptions and codes which represent medicines and devices in use across the NHS."]}),u.jsx("p",{children:"dm+d codelists can query data related to prescriptions that have been issued for medicines or devices, for example: a prescription for Paracetamol 500mg tablets or for a Salbutamol 100micrograms/dose inhaler."})]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx($o,{asChild:!0,to:"/find-codelists",children:u.jsx(He,{children:"Next"})})})]})}function bi({timeOption:e,timeScale:t,timeValue:r}){const n=e==="at any time prior."?"Any time":`${r} ${t}`;return u.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 415 233",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",children:[u.jsx("path",{className:"fill-gray-300",d:"M194 52.03h6V157h-6zM394 52h6v105h-6z"}),u.jsx("path",{className:"fill-gray-500",d:"M3.9 99.9c-.6.5-.6 1.5 0 2l9.35 9.6c.26.2.57.3.89.3a1.5 1.5 0 0 0 1.18-2.4l-8.37-8.5 8.37-8.5a1.5 1.5 0 0 0-1.18-2.4c-.32 0-.63.1-.89.3l-9.46 9.5.1.1Zm189.1 2c.6-.5.6-1.5 0-2l-9.35-9.6c-.26-.2-.57-.3-.89-.3a1.5 1.5 0 0 0-1.18 2.4l8.37 8.5-8.37 8.5a1.5 1.5 0 0 0 1.18 2.4c.32 0 .63-.1.89-.3l9.46-9.5-.1-.1Zm-188.12.5h187.14v-3H4.88v3Z",fillRule:"nonzero"}),u.jsx("path",{className:"fill-green-600 stroke-green-600",d:"M1 128c-.6.5-.6 1.5 0 2l9.5 9.6a1.5 1.5 0 0 0 2.1-2.1L4.1 129l8.5-8.5a1.5 1.5 0 0 0-2.1-2.1l-9.6 9.5.1.1Zm392 2c.6-.5.6-1.5 0-2l-9.5-9.6a1.5 1.5 0 0 0-2.1 2.1l8.5 8.5-8.5 8.5a1.5 1.5 0 0 0 2.1 2.1l9.6-9.5-.1-.1Zm-391 .5h390v-3H2v3Z",fillRule:"nonzero",strokeWidth:"2",transform:"matrix(.99262 0 0 1 2.9 1.9)"}),u.jsx("path",{className:"fill-bn-ribbon-300 stroke-bn-ribbon-700",d:"M297 97.4 284.4 85l-3.5 3.5 12.5 12.5-12.4 12.3 3.5 3.5 12.4-12.4 12.4 12.4 3.5-3.5-12.4-12.4 12.4-12.4-3.5-3.5-12.4 12.4h.1Z"}),u.jsx("path",{className:"fill-oxford-300",d:"M296 74.55c.5.6 1.5.6 2 0l9.6-9.5a1.5 1.5 0 0 0-2.1-2.1l-8.5 8.5-8.5-8.5a1.5 1.5 0 0 0-2.1 2.1l9.5 9.6.1-.1Zm-.5-71v70h3v-70h-3ZM50 150.6c-.2-.8-1-1.3-1.8-1l-13 3.4a1.54 1.54 0 0 0 .7 3l11.6-3.2 3.1 11.6a1.5 1.5 0 0 0 2.9-.7l-3.5-13v-.1ZM3.3 232.4l46.6-80.6-2.6-1.6L.7 231l2.6 1.5v-.1Z",fillRule:"nonzero"}),u.jsx("text",{fontSize:"12",x:"177",y:"170",children:"Start of"}),u.jsx("text",{fontSize:"12",x:"180",y:"183",children:"month"}),u.jsx("text",{fontSize:"12",x:"379",y:"170",children:"End of"}),u.jsx("text",{fontSize:"12",x:"380",y:"183",children:"month"}),u.jsx("text",{fontSize:"12",x:"67",y:"88.63",children:n})]})}bi.propTypes={timeOption:T.string.isRequired,timeScale:T.string,timeValue:T.number};bi.defaultProps={timeScale:null,timeValue:null};function Fm(){const{formData:e}=Ce();return Gt(["codelistA","codelistB","timeOption"])?u.jsx(Ht,{to:""}):u.jsxs(u.Fragment,{children:[u.jsx(ys,{}),u.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Preview your request"}),u.jsx("div",{className:"px-4 py-24",children:u.jsxs("div",{className:"relative",children:[u.jsxs("p",{className:"absolute max-w-[28ch] text-center -translate-y-[80%] top-0 right-0 border-2 border-oxford-300 bg-slate-50 p-2",children:["Individual has qualifying event from:",u.jsx("br",{}),u.jsx("strong",{children:e.codelistA.label})]}),u.jsx(bi,{timeOption:e.timeOption,timeScale:e.timeScale,timeValue:e.timeValue}),u.jsxs("p",{className:"absolute max-w-[28ch] text-center bottom-0 translate-y-[80%] left-0 border-2 border-oxford-300 bg-slate-50 p-2",children:["Individual ALSO has an event from:",u.jsx("br",{}),u.jsx("strong",{children:e.codelistB.label})]})]})}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-16",children:u.jsx($o,{asChild:!0,to:"/filter-request",children:u.jsx(He,{children:"Next"})})})]})}function Tt({title:e,children:t,page:r}){const[,n]=et();return u.jsxs("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[u.jsx("dt",{className:"text-lg font-bold text-gray-700 md:text-base",children:e}),u.jsxs("dd",{className:"mt-1 flex text-gray-900 sm:col-span-2 sm:mt-0",children:[u.jsx("span",{className:"flex-grow break-words",children:t}),u.jsx("span",{className:"ml-4 flex-shrink-0",children:u.jsx("button",{className:"rounded-md bg-white font-medium text-oxford-600 hover:text-oxford-500 focus:outline-none focus:ring-2 focus:ring-oxford-500 focus:ring-offset-2",onClick:()=>n(`/${r}`),type:"button",children:"Edit"})})]})]})}Tt.propTypes={title:T.string.isRequired,children:T.node.isRequired,page:T.string.isRequired};function Im(){var b,y,x,v,w;const{basePath:e,csrfToken:t,dates:{startISO:r,endISO:n,startStr:i,endStr:o}}=Ft(),{formData:s}=Ce(),[a,l]=d.useState(!1),[c,p]=d.useState("");if(Gt(["codelistA","codelistB","timeOption","filterPopulation","title","purpose"]))return u.jsx(Ht,{to:""});const m=()=>{const{codelistA:$,codelistB:A,timeOption:P,timeScale:E,timeValue:F,filterPopulation:_,demographics:q,title:R,purpose:C}=s;return Ha({codelistA:{label:$.label,type:$.type,value:$.value},codelistB:{label:A.label,type:A.type,value:A.value},startDate:r.slice(0,10),endDate:n.slice(0,10),timeEver:P===Ie?"true":null,timeScale:P===Ie?void 0:E,timeValue:P===Ie?void 0:F,filterPopulation:_,demographics:q,title:R,purpose:C})},h=async()=>{l(!0),p("");const $=JSON.stringify(m());xi(P=>{P.setLevel("debug"),Qr("formData",$),yi("Submitting analysis request")});const A=await fetch(`${e}publish`,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":t},body:$});if(!A.ok){l(!1);const P=`An error has occurred: ${A.status} - ${A.statusText}`;throw p(P),new Error(P)}Xn(),xi(P=>{P.setLevel("debug"),Qr("formData",$),Qr("response",A.url),yi("Analysis ok, redirecting")}),window.location.href=A.url},f=s.timeOption===Ie?Ie:`up to ${s.timeValue} ${s.timeScale} ${Ss}`;return u.jsxs(u.Fragment,{children:[u.jsx(ys,{}),u.jsx("h2",{className:"text-4xl font-bold mb-6",children:"Review your request"}),u.jsx("div",{className:"mt-5 border-t border-gray-200",children:u.jsxs("dl",{className:"divide-y divide-gray-200",children:[u.jsxs(Tt,{page:"find-codelists",title:"Codelists",children:[(b=s.codelist0)==null?void 0:b.label,",",u.jsx("br",{}),(y=s.codelist1)==null?void 0:y.label]}),(x=s.codelistA)!=null&&x.label&&((v=s.codelistB)!=null&&v.label)?u.jsxs(Tt,{page:"build-query",title:"Report request",children:[` ${Oe[0]} `,u.jsx("strong",{children:s.codelistA.label}),` ${Oe[1]} `,u.jsx("strong",{children:i})," ",Oe[2]," ",u.jsx("strong",{children:o}),` ${Oe[3]} `,u.jsx("strong",{children:s.codelistB.label}),` ${Oe[4]} `,u.jsx("strong",{children:` ${s.codelistA.label}`}),` ${Oe[5]} ${f}`]}):null,u.jsx(Tt,{page:"filter-request",title:"Filter population",children:sr.items.filter($=>$.value===s.filterPopulation)[0].label}),u.jsx(Tt,{page:"filter-request",title:"Break down the report by demographics",children:s.demographics.length?u.jsx("ul",{children:(w=s.demographics)==null?void 0:w.map($=>{var A;return u.jsx("li",{children:(A=Nt.items.find(P=>(P==null?void 0:P.value)===$))==null?void 0:A.label},$)})}):u.jsx("p",{children:"No demographics selected"})}),u.jsxs(Tt,{page:"analysis-information",title:"Analysis information",children:[u.jsxs("p",{className:"mb-4",children:[u.jsx("strong",{children:"Title: "}),u.jsx("br",{}),s.title]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Description: "}),u.jsx("br",{}),s.purpose]})]})]})}),u.jsxs("section",{className:"prose prose-blue mt-8 pt-6 border-t max-w-full",children:[u.jsx("h2",{className:"sr-only",children:"Read and agree"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Your analyses will be run on primary care patient records for approximately 44% of the English population"}),u.jsx("li",{children:"The analysis you are requesting may take up to 5 days to return results"}),u.jsx("li",{children:"The time for the analysis to generate may vary significantly dependent on current loads on our servers and current demand for our disclosure checking service"}),u.jsx("p",{children:"By making this request you are agreeing:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"That your request falls within your approved project purpose"}),u.jsx("li",{children:"To abide by the Terms and Conditions you signed previously"}),u.jsx("li",{children:"That the contents of this request, along with your name and email address, will be publicly available"})]})]})]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(He,{disabled:a,onClick:h,type:"submit",children:a?u.jsxs(u.Fragment,{children:[u.jsxs("svg",{className:"h-5 w-5 flex-1 animate-spin stroke-current stroke-[3] mr-2",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{className:"stroke-current opacity-25",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"}),u.jsx("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 14.7255 3.09032 17.1962 4.85857 19"})]}),"Submitting"]}):"Submit request"})}),c?u.jsx(Xe,{children:c}):null]})}function Am(){const[e]=et();return d.useEffect(()=>{window.scrollTo(0,0)},[e]),null}var _m={BASE_URL:"/static/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const gi=document.getElementById("osi");if(!gi)throw new Error("Failed to find the root element");const Pm=ra(gi),{dataset:st}=gi,Nm={basePath:"Basename",csrfToken:"CSRF Token",dateEnd:"End date",dateStart:"Start date",events:"Events codelist data",medications:"Medications codelist data"};Object.entries(Nm).map(([e,t])=>{if(!st[e])throw new Error(`${t} not provided`);return null});na({dsn:_m.VITE_SENTRY_DSN,tracesSampleRate:1});Pm.render(u.jsx(z.StrictMode,{children:u.jsx(kn.Provider,{value:Ua({dataset:st}),children:u.jsx(Co,{children:u.jsxs(jo,{base:st.basePath.slice(0,-1),children:[u.jsx(Am,{}),u.jsx(Fo,{basePath:st.basePath,csrfToken:st.csrfToken,events:st.events,medications:st.medications,children:u.jsxs(za,{children:[u.jsx(Ge,{component:Rm,path:"/"}),u.jsx(Ge,{component:Cm,path:"/find-codelists"}),u.jsx(Ge,{component:Em,path:"/build-query"}),u.jsx(Ge,{component:Fm,path:"/preview-request"}),u.jsx(Ge,{component:Om,path:"/filter-request"}),u.jsx(Ge,{component:Wf,path:"/analysis-information"}),u.jsx(Ge,{component:Im,path:"/review-request"}),u.jsx(Ge,{path:"*",children:u.jsxs("div",{className:"prose",children:[u.jsx("h2",{children:"An error occurred"}),u.jsx("p",{className:"lead",children:"Your request was not submitted."}),u.jsxs("p",{children:["Please try again, or"," ",u.jsx("a",{href:"mailto:team@opensafely.org",children:"email team@opensafely.org"}),"."]})]})})]})})]})})})}))});export default km(); diff --git a/assets/dist/assets/interactive-_geFUJpO.js b/assets/dist/assets/interactive-_geFUJpO.js deleted file mode 100644 index 581d5023..00000000 --- a/assets/dist/assets/interactive-_geFUJpO.js +++ /dev/null @@ -1,75 +0,0 @@ -var Xa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);import{r as d,e as mn,p as T,j as u,P as Ja,a as es,R as z,w as wi,s as Jr,b as Ti,c as ts,i as rs}from"./index-xG0evL3U.js";import{g as vo}from"./_commonjsHelpers-4gQjN7DL.js";var km=Xa((Se,we)=>{var go={exports:{}},Z={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var fe=typeof Symbol=="function"&&Symbol.for,_n=fe?Symbol.for("react.element"):60103,Pn=fe?Symbol.for("react.portal"):60106,Sr=fe?Symbol.for("react.fragment"):60107,wr=fe?Symbol.for("react.strict_mode"):60108,Tr=fe?Symbol.for("react.profiler"):60114,Er=fe?Symbol.for("react.provider"):60109,Or=fe?Symbol.for("react.context"):60110,Nn=fe?Symbol.for("react.async_mode"):60111,jr=fe?Symbol.for("react.concurrent_mode"):60111,$r=fe?Symbol.for("react.forward_ref"):60112,Cr=fe?Symbol.for("react.suspense"):60113,ns=fe?Symbol.for("react.suspense_list"):60120,Rr=fe?Symbol.for("react.memo"):60115,Fr=fe?Symbol.for("react.lazy"):60116,is=fe?Symbol.for("react.block"):60121,os=fe?Symbol.for("react.fundamental"):60117,as=fe?Symbol.for("react.responder"):60118,ss=fe?Symbol.for("react.scope"):60119;function Te(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _n:switch(e=e.type,e){case Nn:case jr:case Sr:case Tr:case wr:case Cr:return e;default:switch(e=e&&e.$$typeof,e){case Or:case $r:case Fr:case Rr:case Er:return e;default:return t}}case Pn:return t}}}function xo(e){return Te(e)===jr}Z.AsyncMode=Nn;Z.ConcurrentMode=jr;Z.ContextConsumer=Or;Z.ContextProvider=Er;Z.Element=_n;Z.ForwardRef=$r;Z.Fragment=Sr;Z.Lazy=Fr;Z.Memo=Rr;Z.Portal=Pn;Z.Profiler=Tr;Z.StrictMode=wr;Z.Suspense=Cr;Z.isAsyncMode=function(e){return xo(e)||Te(e)===Nn};Z.isConcurrentMode=xo;Z.isContextConsumer=function(e){return Te(e)===Or};Z.isContextProvider=function(e){return Te(e)===Er};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_n};Z.isForwardRef=function(e){return Te(e)===$r};Z.isFragment=function(e){return Te(e)===Sr};Z.isLazy=function(e){return Te(e)===Fr};Z.isMemo=function(e){return Te(e)===Rr};Z.isPortal=function(e){return Te(e)===Pn};Z.isProfiler=function(e){return Te(e)===Tr};Z.isStrictMode=function(e){return Te(e)===wr};Z.isSuspense=function(e){return Te(e)===Cr};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sr||e===jr||e===Tr||e===wr||e===Cr||e===ns||typeof e=="object"&&e!==null&&(e.$$typeof===Fr||e.$$typeof===Rr||e.$$typeof===Er||e.$$typeof===Or||e.$$typeof===$r||e.$$typeof===os||e.$$typeof===as||e.$$typeof===ss||e.$$typeof===is)};Z.typeOf=Te;go.exports=Z;var ls=go.exports,yo=ls,us={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},So={};So[yo.ForwardRef]=us;So[yo.Memo]=cs;var wo={exports:{}},To={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var jt=d;function ds(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fs=typeof Object.is=="function"?Object.is:ds,ps=jt.useState,hs=jt.useEffect,ms=jt.useLayoutEffect,bs=jt.useDebugValue;function vs(e,t){var r=t(),n=ps({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return ms(function(){i.value=r,i.getSnapshot=t,en(i)&&o({inst:i})},[e,r,t]),hs(function(){return en(i)&&o({inst:i}),e(function(){en(i)&&o({inst:i})})},[e]),bs(r),r}function en(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!fs(e,r)}catch{return!0}}function gs(e,t){return t()}var xs=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gs:vs;To.useSyncExternalStore=jt.useSyncExternalStore!==void 0?jt.useSyncExternalStore:xs;wo.exports=To;var ys=wo.exports;const{useEffect:Ss,useLayoutEffect:ws,useRef:Ts,useInsertionEffect:Es}=mn,Os=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eo=Os?ws:Ss,Oo=Es||Eo,kn=e=>{const t=Ts([e,(...r)=>t[0](...r)]).current;return Oo(()=>{t[0]=e}),t[1]},js=(e="",t=location.pathname)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",$s=(e,t="")=>e[0]==="~"?e.slice(1):t+e,Cs="popstate",Dn="pushState",Mn="replaceState",Rs="hashchange",Ei=[Cs,Dn,Mn,Rs],Fs=e=>{for(const t of Ei)addEventListener(t,e);return()=>{for(const t of Ei)removeEventListener(t,e)}},Is=(e,t)=>ys.useSyncExternalStore(Fs,e,t),Oi=()=>location.pathname,As=({ssrPath:e}={})=>Is(Oi,e?()=>e:Oi),_s=(e,{replace:t=!1}={})=>history[t?Mn:Dn](null,"",e),Ps=(e={})=>[js(e.base,As(e)),kn((t,r)=>_s($s(t,e.base),r))];if(typeof history<"u")for(const e of[Dn,Mn]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}function Ns(e=Ds){let t={};const r=n=>t[n]||(t[n]=e(n));return(n,i)=>{const{regexp:o,keys:a}=r(n||""),s=o.exec(i);return s?[!0,a.reduce((c,f,h)=>(c[f.name]=s[h+1],c),{})]:[!1,null]}}const ji=e=>e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),ks=(e,t,r)=>{let n=e?"((?:[^\\/]+?)(?:\\/(?:[^\\/]+?))*)":"([^\\/]+?)";return t&&r&&(n="(?:\\/"+n+")"),n+(t?"?":"")},Ds=e=>{const t=/:([A-Za-z0-9_]+)([?+*]?)/g;let r=null,n=0,i=[],o="";for(;(r=t.exec(e))!==null;){const[a,s,l]=r,c=l==="+"||l==="*",f=l==="?"||l==="*",h=f&&e[r.index-1]==="/"?1:0,m=e.substring(n,r.index-h);i.push({name:s}),n=t.lastIndex,o+=ji(m)+ks(c,f,h)}return o+=ji(e.substring(n)),{keys:i,regexp:new RegExp("^"+o+"(?:\\/)?$","i")}},bn={hook:Ps,matcher:Ns(),base:""},jo=d.createContext(bn),Ir=()=>d.useContext(jo),Ar=e=>e.hook(e),De=()=>Ar(Ir()),Ms=e=>{const t=Ir(),[r]=Ar(t);return t.matcher(e,r)},Ls=d.createContext({params:{}}),Vs=({hook:e,matcher:t,ssrPath:r,base:n="",parent:i,children:o})=>{const a=(l,c=i||bn)=>(l.hook=e||c.hook,l.matcher=t||c.matcher,l.ssrPath=r||c.ssrPath,l.ownBase=n,l.parent=i,l),[s]=d.useState(()=>a({get base(){return(s.parent||bn).base+s.ownBase}}));return Oo(()=>{a(s)}),d.createElement(jo.Provider,{value:s,children:o})},$i=(e,t)=>d.createElement(Ls.Provider,{value:{params:e},children:t}),Ke=({path:e,match:t,component:r,children:n})=>{const i=Ms(e),[o,a]=t||i;return o?r?$i(a,d.createElement(r,{params:a})):$i(a,typeof n=="function"?n(a):n):null};d.forwardRef((e,t)=>{const r=Ir(),[,n]=Ar(r),{to:i,href:o=i,children:a,onClick:s}=e,l=kn(h=>{h.ctrlKey||h.metaKey||h.altKey||h.shiftKey||h.button!==0||(s&&s(h),h.defaultPrevented||(h.preventDefault(),n(i||o,e)))}),c={href:o[0]==="~"?o.slice(1):r.base+o,onClick:l,to:null,ref:t},f=d.isValidElement(a)?a:d.createElement("a",e);return d.cloneElement(f,c)});const vn=e=>Array.isArray(e)?[].concat(...e.map(t=>t&&t.type===d.Fragment?vn(t.props.children):vn(t))):[e],zs=({children:e,location:t})=>{const r=Ir(),n=r.matcher,[i]=Ar(r);for(const o of vn(e)){let a=0;if(d.isValidElement(o)&&(a=o.props.path?n(o.props.path,t||i):[!0,{}])[0])return d.cloneElement(o,{match:a})}return null},Ut=e=>{const{to:t,href:r=t}=e,[,n]=De(),i=kn(()=>n(t||r,e));return Eo(()=>{i()},[]),null},Ln=d.createContext({basePath:"",csrfToken:"",codelistGroups:[]});Ln.displayName="AppData";function Ft(){const e=d.useContext(Ln);if(e===void 0)throw new Error("useAppData must be used within a AppData.Provider component");return e}const Vn=d.createContext();Vn.displayName="FormData";function $o({children:e}){const[t,r]=d.useState({}),n=d.useMemo(()=>({formData:t,setFormData:r}),[t]);return u.jsx(Vn.Provider,{value:n,children:e})}function Ce(){const e=d.useContext(Vn);if(e===void 0)throw new Error("useFormData must be used within a FormData.Provider component");return e}$o.propTypes={children:T.element.isRequired};const qs=({dateStart:e,dateEnd:t})=>{const r=new Date(e),n=new Date(t),i={year:"numeric",month:"long",day:"numeric"};return{endISO:n.toISOString(),endStr:n.toLocaleDateString("en-GB",i),startISO:r.toISOString(),startStr:r.toLocaleDateString("en-GB",i)}},Co=[{label:"Weeks",value:"weeks"},{label:"Months",value:"months"},{label:"Years",value:"years"}],or={label:"Filter the population",items:[{label:"All people",value:"all"},{label:"Adults only",value:"adults"},{label:"Children only",value:"children"}]},Nt={label:"Break down the report by demographics",items:[{label:"Sex",value:"sex"},{label:"Age",value:"age"},{label:"Ethnicity",value:"ethnicity"},{label:"Index of Multiple Deprivation (IMD)",value:"imd"},{label:"Region",value:"region"}]};function je(...e){return e.filter(Boolean).join(" ")}function Ci(e){const t=document.getElementById(e);return t!=null&&t.textContent?JSON.parse(t==null?void 0:t.textContent).map(i=>({label:i.name,organisation:i.organisation,type:e.slice(9,e.length-1),user:i.user,value:i.slug,updatedDate:i.updated_date})):[]}function Ht(e){const{formData:t}=Ce(),r=[];return e.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)||r.push(n)}),!!r.length}function Bs(e){return!!e&&e.constructor===Object}function Us({dataset:{basePath:e,csrfToken:t,events:r,medications:n,dateStart:i,dateEnd:o}}){return{basePath:e,csrfToken:t,codelistGroups:[{name:"SNOMED CT",id:"event",codelists:Ci(r)},{name:"dm+d",id:"medication",codelists:Ci(n)}],dates:{...qs({dateStart:i,dateEnd:o})}}}const Hs=e=>(Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e);function Ro({children:e}){const[t]=De(),r=t==="/",n=t==="/success";return u.jsxs("main",{className:"min-h-[66vh] flex-grow pb-12 bg-gray-100",children:[u.jsxs("div",{className:"mb-6 mt-3 flex flex-col gap-y-2 text-left md:mt-0",children:[u.jsx("h1",{className:"text-3xl tracking-tight break-words md:text-4xl font-bold text-gray-900",children:"Interactive request"}),u.jsx("p",{className:"font-lg text-gray-600",children:"Make a new request for an interactive report."})]}),u.jsx("section",{className:"max-w-3xl relative",children:u.jsxs("div",{className:je("bg-white p-6 shadow rounded",!r&&!n?"pt-12":null),children:[!r&&!n?u.jsx("button",{className:je("absolute top-0 left-0 text-sm font-semibold py-1 pl-2 pr-3 flex text-white bg-oxford-800 rounded-br transition-colors","hover:text-oxford-50 hover:bg-oxford-700","focus-within:text-oxford-50 focus-within:bg-oxford-700"),onClick:()=>window.history.back(),type:"button",children:"← Back"}):null,e]})})]})}Ro.propTypes={children:Ja.node.isRequired};var Gs=function(t){return Ks(t)&&!Zs(t)};function Ks(e){return!!e&&typeof e=="object"}function Zs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qs(e)}var Ws=typeof Symbol=="function"&&Symbol.for,Ys=Ws?Symbol.for("react.element"):60103;function Qs(e){return e.$$typeof===Ys}function Xs(e){return Array.isArray(e)?[]:{}}function fr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Mt(Xs(e),e,t):e}function Js(e,t,r){return e.concat(t).map(function(n){return fr(n,r)})}function el(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(i){n[i]=fr(e[i],r)}),Object.keys(t).forEach(function(i){!r.isMergeableObject(t[i])||!e[i]?n[i]=fr(t[i],r):n[i]=Mt(e[i],t[i],r)}),n}function Mt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Js,r.isMergeableObject=r.isMergeableObject||Gs;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):el(e,t,r):fr(t,r)}Mt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Mt(n,i,r)},{})};var gn=Mt,Fo=typeof global=="object"&&global&&global.Object===Object&&global,tl=typeof self=="object"&&self&&self.Object===Object&&self,Me=Fo||tl||Function("return this")(),Xe=Me.Symbol,Io=Object.prototype,rl=Io.hasOwnProperty,nl=Io.toString,Pt=Xe?Xe.toStringTag:void 0;function il(e){var t=rl.call(e,Pt),r=e[Pt];try{e[Pt]=void 0;var n=!0}catch{}var i=nl.call(e);return n&&(t?e[Pt]=r:delete e[Pt]),i}var ol=Object.prototype,al=ol.toString;function sl(e){return al.call(e)}var ll="[object Null]",ul="[object Undefined]",Ri=Xe?Xe.toStringTag:void 0;function ft(e){return e==null?e===void 0?ul:ll:Ri&&Ri in Object(e)?il(e):sl(e)}function Ao(e,t){return function(r){return e(t(r))}}var zn=Ao(Object.getPrototypeOf,Object);function pt(e){return e!=null&&typeof e=="object"}var cl="[object Object]",dl=Function.prototype,fl=Object.prototype,_o=dl.toString,pl=fl.hasOwnProperty,hl=_o.call(Object);function Fi(e){if(!pt(e)||ft(e)!=cl)return!1;var t=zn(e);if(t===null)return!0;var r=pl.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_o.call(r)==hl}var Ii=Array.isArray,Ai=Object.keys,ml=Object.prototype.hasOwnProperty,bl=typeof Element<"u";function xn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Ii(e),n=Ii(t),i,o,a;if(r&&n){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!xn(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,f=t instanceof RegExp;if(c!=f)return!1;if(c&&f)return e.toString()==t.toString();var h=Ai(e);if(o=h.length,o!==Ai(t).length)return!1;for(i=o;i--!==0;)if(!ml.call(t,h[i]))return!1;if(bl&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=h[i],!(a==="_owner"&&e.$$typeof)&&!xn(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var vl=function(t,r){try{return xn(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const it=vo(vl);function gl(){this.__data__=[],this.size=0}function Po(e,t){return e===t||e!==e&&t!==t}function _r(e,t){for(var r=e.length;r--;)if(Po(e[r][0],t))return r;return-1}var xl=Array.prototype,yl=xl.splice;function Sl(e){var t=this.__data__,r=_r(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():yl.call(t,r,1),--this.size,!0}function wl(e){var t=this.__data__,r=_r(t,e);return r<0?void 0:t[r][1]}function Tl(e){return _r(this.__data__,e)>-1}function El(e,t){var r=this.__data__,n=_r(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Eu}var Ou="[object Arguments]",ju="[object Array]",$u="[object Boolean]",Cu="[object Date]",Ru="[object Error]",Fu="[object Function]",Iu="[object Map]",Au="[object Number]",_u="[object Object]",Pu="[object RegExp]",Nu="[object Set]",ku="[object String]",Du="[object WeakMap]",Mu="[object ArrayBuffer]",Lu="[object DataView]",Vu="[object Float32Array]",zu="[object Float64Array]",qu="[object Int8Array]",Bu="[object Int16Array]",Uu="[object Int32Array]",Hu="[object Uint8Array]",Gu="[object Uint8ClampedArray]",Ku="[object Uint16Array]",Zu="[object Uint32Array]",ee={};ee[Vu]=ee[zu]=ee[qu]=ee[Bu]=ee[Uu]=ee[Hu]=ee[Gu]=ee[Ku]=ee[Zu]=!0;ee[Ou]=ee[ju]=ee[Mu]=ee[$u]=ee[Lu]=ee[Cu]=ee[Ru]=ee[Fu]=ee[Iu]=ee[Au]=ee[_u]=ee[Pu]=ee[Nu]=ee[ku]=ee[Du]=!1;function Wu(e){return pt(e)&&zo(e.length)&&!!ee[ft(e)]}function qn(e){return function(t){return e(t)}}var qo=typeof Se=="object"&&Se&&!Se.nodeType&&Se,Dt=qo&&typeof we=="object"&&we&&!we.nodeType&&we,Yu=Dt&&Dt.exports===qo,rn=Yu&&Fo.process,$t=function(){try{var e=Dt&&Dt.require&&Dt.require("util").types;return e||rn&&rn.binding&&rn.binding("util")}catch{}}(),Mi=$t&&$t.isTypedArray,Qu=Mi?qn(Mi):Wu,Xu=Object.prototype,Ju=Xu.hasOwnProperty;function Bo(e,t){var r=Kt(e),n=!r&&vu(e),i=!r&&!n&&Vo(e),o=!r&&!n&&!i&&Qu(e),a=r||n||i||o,s=a?pu(e.length,String):[],l=s.length;for(var c in e)(t||Ju.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Tu(c,l)))&&s.push(c);return s}var ec=Object.prototype;function Bn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ec;return e===r}var tc=Ao(Object.keys,Object),rc=Object.prototype,nc=rc.hasOwnProperty;function ic(e){if(!Bn(e))return tc(e);var t=[];for(var r in Object(e))nc.call(e,r)&&r!="constructor"&&t.push(r);return t}function Uo(e){return e!=null&&zo(e.length)&&!No(e)}function Un(e){return Uo(e)?Bo(e):ic(e)}function oc(e,t){return e&&Nr(t,Un(t),e)}function ac(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var sc=Object.prototype,lc=sc.hasOwnProperty;function uc(e){if(!Gt(e))return ac(e);var t=Bn(e),r=[];for(var n in e)n=="constructor"&&(t||!lc.call(e,n))||r.push(n);return r}function Hn(e){return Uo(e)?Bo(e,!0):uc(e)}function cc(e,t){return e&&Nr(t,Hn(t),e)}var Ho=typeof Se=="object"&&Se&&!Se.nodeType&&Se,Li=Ho&&typeof we=="object"&&we&&!we.nodeType&&we,dc=Li&&Li.exports===Ho,Vi=dc?Me.Buffer:void 0,zi=Vi?Vi.allocUnsafe:void 0;function fc(e,t){if(t)return e.slice();var r=e.length,n=zi?zi(r):new e.constructor(r);return e.copy(n),n}function Go(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0)&&(r[i]=e[i]);return r}var kr=d.createContext(void 0);kr.displayName="FormikContext";var Zd=kr.Provider;kr.Consumer;function He(){var e=d.useContext(kr);return e}var ye=function(t){return typeof t=="function"},Dr=function(t){return t!==null&&typeof t=="object"},Wd=function(t){return String(Math.floor(Number(t)))===t},nn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Yd=function(t){return d.Children.count(t)===0},on=function(t){return Dr(t)&&ye(t.then)};function xe(e,t,r,n){n===void 0&&(n=0);for(var i=ra(t);e&&n=0?[]:{}}}return(o===0?e:i)[a[o]]===r?e:(r===void 0?delete i[a[o]]:i[a[o]]=r,o===0&&r===void 0&&delete n[a[o]],n)}function na(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var i=0,o=Object.keys(e);i0?j.map(function(N){return R(N,xe(v,N))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(N){return N.reduce(function(L,K,de){return K==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||K&&(L=lt(L,j[de],K)),L},{})})},[R]),H=d.useCallback(function(v){return Promise.all([C(v),m.validationSchema?q(v):{},m.validate?_(v):{}]).then(function(j){var I=j[0],N=j[1],L=j[2],K=gn.all([I,N,L],{arrayMerge:tf});return K})},[m.validate,m.validationSchema,C,_,q]),U=Ee(function(v){return v===void 0&&(v=E.values),F({type:"SET_ISVALIDATING",payload:!0}),H(v).then(function(j){return g.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:j})),j})});d.useEffect(function(){a&&g.current===!0&&it(p.current,m.initialValues)&&U(p.current)},[a,U]);var se=d.useCallback(function(v){var j=v&&v.values?v.values:p.current,I=v&&v.errors?v.errors:b.current?b.current:m.initialErrors||{},N=v&&v.touched?v.touched:y.current?y.current:m.initialTouched||{},L=v&&v.status?v.status:x.current?x.current:m.initialStatus;p.current=j,b.current=I,y.current=N,x.current=L;var K=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!v&&!!v.isSubmitting,errors:I,touched:N,status:L,values:j,isValidating:!!v&&!!v.isValidating,submitCount:v&&v.submitCount&&typeof v.submitCount=="number"?v.submitCount:0}})};if(m.onReset){var de=m.onReset(E.values,_t);on(de)?de.then(K):K()}else K()},[m.initialErrors,m.initialStatus,m.initialTouched,m.onReset]);d.useEffect(function(){g.current===!0&&!it(p.current,m.initialValues)&&c&&(p.current=m.initialValues,se(),a&&U(p.current))},[c,m.initialValues,se,a,U]),d.useEffect(function(){c&&g.current===!0&&!it(b.current,m.initialErrors)&&(b.current=m.initialErrors||nt,F({type:"SET_ERRORS",payload:m.initialErrors||nt}))},[c,m.initialErrors]),d.useEffect(function(){c&&g.current===!0&&!it(y.current,m.initialTouched)&&(y.current=m.initialTouched||tr,F({type:"SET_TOUCHED",payload:m.initialTouched||tr}))},[c,m.initialTouched]),d.useEffect(function(){c&&g.current===!0&&!it(x.current,m.initialStatus)&&(x.current=m.initialStatus,F({type:"SET_STATUS",payload:m.initialStatus}))},[c,m.initialStatus,m.initialTouched]);var S=Ee(function(v){if(w.current[v]&&ye(w.current[v].validate)){var j=xe(E.values,v),I=w.current[v].validate(j);return on(I)?(F({type:"SET_ISVALIDATING",payload:!0}),I.then(function(N){return N}).then(function(N){F({type:"SET_FIELD_ERROR",payload:{field:v,value:N}}),F({type:"SET_ISVALIDATING",payload:!1})})):(F({type:"SET_FIELD_ERROR",payload:{field:v,value:I}}),Promise.resolve(I))}else if(m.validationSchema)return F({type:"SET_ISVALIDATING",payload:!0}),q(E.values,v).then(function(N){return N}).then(function(N){F({type:"SET_FIELD_ERROR",payload:{field:v,value:xe(N,v)}}),F({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ne=d.useCallback(function(v,j){var I=j.validate;w.current[v]={validate:I}},[]),G=d.useCallback(function(v){delete w.current[v]},[]),ue=Ee(function(v,j){F({type:"SET_TOUCHED",payload:v});var I=j===void 0?i:j;return I?U(E.values):Promise.resolve()}),X=d.useCallback(function(v){F({type:"SET_ERRORS",payload:v})},[]),re=Ee(function(v,j){var I=ye(v)?v(E.values):v;F({type:"SET_VALUES",payload:I});var N=j===void 0?r:j;return N?U(I):Promise.resolve()}),ce=d.useCallback(function(v,j){F({type:"SET_FIELD_ERROR",payload:{field:v,value:j}})},[]),ie=Ee(function(v,j,I){F({type:"SET_FIELD_VALUE",payload:{field:v,value:j}});var N=I===void 0?r:I;return N?U(lt(E.values,v,j)):Promise.resolve()}),Pe=d.useCallback(function(v,j){var I=j,N=v,L;if(!nn(v)){v.persist&&v.persist();var K=v.target?v.target:v.currentTarget,de=K.type,Le=K.name,Qr=K.id,Xr=K.value,Ya=K.checked,Dm=K.outerHTML,Si=K.options,Qa=K.multiple;I=j||Le||Qr,N=/number|range/.test(de)?(L=parseFloat(Xr),isNaN(L)?"":L):/checkbox/.test(de)?nf(xe(E.values,I),Ya,Xr):Si&&Qa?rf(Si):Xr}I&&ie(I,N)},[ie,E.values]),k=Ee(function(v){if(nn(v))return function(j){return Pe(j,v)};Pe(v)}),V=Ee(function(v,j,I){j===void 0&&(j=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:v,value:j}});var N=I===void 0?i:I;return N?U(E.values):Promise.resolve()}),oe=d.useCallback(function(v,j){v.persist&&v.persist();var I=v.target,N=I.name,L=I.id,K=I.outerHTML,de=j||N||L;V(de,!0)},[V]),ge=Ee(function(v){if(nn(v))return function(j){return oe(j,v)};oe(v)}),rt=d.useCallback(function(v){ye(v)?F({type:"SET_FORMIK_STATE",payload:v}):F({type:"SET_FORMIK_STATE",payload:function(){return v}})},[]),M=d.useCallback(function(v){F({type:"SET_STATUS",payload:v})},[]),W=d.useCallback(function(v){F({type:"SET_ISSUBMITTING",payload:v})},[]),pe=Ee(function(){return F({type:"SUBMIT_ATTEMPT"}),U().then(function(v){var j=v instanceof Error,I=!j&&Object.keys(v).length===0;if(I){var N;try{if(N=Ba(),N===void 0)return}catch(L){throw L}return Promise.resolve(N).then(function(L){return g.current&&F({type:"SUBMIT_SUCCESS"}),L}).catch(function(L){if(g.current)throw F({type:"SUBMIT_FAILURE"}),L})}else if(g.current&&(F({type:"SUBMIT_FAILURE"}),j))throw v})}),xt=Ee(function(v){v&&v.preventDefault&&ye(v.preventDefault)&&v.preventDefault(),v&&v.stopPropagation&&ye(v.stopPropagation)&&v.stopPropagation(),pe().catch(function(j){console.warn("Warning: An unhandled error was caught from submitForm()",j)})}),_t={resetForm:se,validateForm:U,validateField:S,setErrors:X,setFieldError:ce,setFieldTouched:V,setFieldValue:ie,setStatus:M,setSubmitting:W,setTouched:ue,setValues:re,setFormikState:rt,submitForm:pe},Ba=Ee(function(){return f(E.values,_t)}),Ua=Ee(function(v){v&&v.preventDefault&&ye(v.preventDefault)&&v.preventDefault(),v&&v.stopPropagation&&ye(v.stopPropagation)&&v.stopPropagation(),se()}),Ha=d.useCallback(function(v){return{value:xe(E.values,v),error:xe(E.errors,v),touched:!!xe(E.touched,v),initialValue:xe(p.current,v),initialTouched:!!xe(y.current,v),initialError:xe(b.current,v)}},[E.errors,E.touched,E.values]),Ga=d.useCallback(function(v){return{setValue:function(I,N){return ie(v,I,N)},setTouched:function(I,N){return V(v,I,N)},setError:function(I){return ce(v,I)}}},[ie,V,ce]),Ka=d.useCallback(function(v){var j=Dr(v),I=j?v.name:v,N=xe(E.values,I),L={name:I,value:N,onChange:k,onBlur:ge};if(j){var K=v.type,de=v.value,Le=v.as,Qr=v.multiple;K==="checkbox"?de===void 0?L.checked=!!N:(L.checked=!!(Array.isArray(N)&&~N.indexOf(de)),L.value=de):K==="radio"?(L.checked=N===de,L.value=de):Le==="select"&&Qr&&(L.value=L.value||[],L.multiple=!0)}return L},[ge,k,E.values]),Yr=d.useMemo(function(){return!it(p.current,E.values)},[p.current,E.values]),Za=d.useMemo(function(){return typeof s<"u"?Yr?E.errors&&Object.keys(E.errors).length===0:s!==!1&&ye(s)?s(m):s:E.errors&&Object.keys(E.errors).length===0},[s,Yr,E.errors,m]),Wa=te({},E,{initialValues:p.current,initialErrors:b.current,initialTouched:y.current,initialStatus:x.current,handleBlur:ge,handleChange:k,handleReset:Ua,handleSubmit:xt,resetForm:se,setErrors:X,setFormikState:rt,setFieldTouched:V,setFieldValue:ie,setFieldError:ce,setStatus:M,setSubmitting:W,setTouched:ue,setValues:re,submitForm:pe,validateForm:U,validateField:S,isValid:Za,dirty:Yr,unregisterField:G,registerField:ne,getFieldProps:Ka,getFieldMeta:Ha,getFieldHelpers:Ga,validateOnBlur:i,validateOnChange:r,validateOnMount:a});return Wa}function Mr(e){var t=Xd(e),r=e.component,n=e.children,i=e.render,o=e.innerRef;return d.useImperativeHandle(o,function(){return t}),d.createElement(Zd,{value:t},r?d.createElement(r,t):i?i(t):n?ye(n)?n(t):Yd(n)?null:d.Children.only(n):null)}function Jd(e){var t={};if(e.inner){if(e.inner.length===0)return lt(t,e.path,e.message);for(var i=e.inner,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;xe(t,a.path)||(t=lt(t,a.path,a.message))}}return t}function ef(e,t,r,n){r===void 0&&(r=!1);var i=En(e);return t[r?"validateSync":"validate"](i,{abortEarly:!1,context:n||i})}function En(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(i){return Array.isArray(i)===!0||Fi(i)?En(i):i!==""?i:void 0}):Fi(e[n])?t[n]=En(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function tf(e,t,r){var n=e.slice();return t.forEach(function(o,a){if(typeof n[a]>"u"){var s=r.clone!==!1,l=s&&r.isMergeableObject(o);n[a]=l?gn(Array.isArray(o)?[]:{},o,r):o}else r.isMergeableObject(o)?n[a]=gn(e[a],o,r):e.indexOf(o)===-1&&n.push(o)}),n}function rf(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function nf(e,t,r){if(typeof e=="boolean")return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,o=e.indexOf(r),i=o>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}var of=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function Ee(e){var t=d.useRef(e);return of(function(){t.current=e}),d.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var af=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ia=/^\d+$/,sf=/^\d/,lf=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,uf=/^\s*(['"]?)(.*?)(\1)\s*$/,Qn=512,no=new bt(Qn),io=new bt(Qn),oo=new bt(Qn),ut={Cache:bt,split:On,normalizePath:an,setter:function(e){var t=an(e);return io.get(e)||io.set(e,function(n,i){for(var o=0,a=t.length,s=n;oe.match(hf)||[],Vr=e=>e[0].toUpperCase()+e.slice(1),Jn=(e,t)=>Lr(e).join(t).toLowerCase(),oa=e=>Lr(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),mf=e=>Vr(oa(e)),bf=e=>Jn(e,"_"),vf=e=>Jn(e,"-"),gf=e=>Vr(Jn(e," ")),xf=e=>Lr(e).map(Vr).join(" ");var sn={words:Lr,upperFirst:Vr,camelCase:oa,pascalCase:mf,snakeCase:bf,kebabCase:vf,sentenceCase:gf,titleCase:xf},ei={exports:{}};ei.exports=function(e){return aa(yf(e),e)};ei.exports.array=aa;function aa(e,t){var r=e.length,n=new Array(r),i={},o=r,a=Sf(t),s=wf(e);for(t.forEach(function(c){if(!s.has(c[0])||!s.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return n;function l(c,f,h){if(h.has(c)){var m;try{m=", node was:"+JSON.stringify(c)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!s.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[f]){i[f]=!0;var p=a.get(c)||new Set;if(p=Array.from(p),f=p.length){h.add(c);do{var b=p[--f];l(b,s.get(b),h)}while(f);h.delete(c)}n[--r]=c}}}function yf(e){for(var t=new Set,r=0,n=e.length;r"",Rf=/^Symbol\((.*)\)(.*)$/;function Ff(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function ao(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return Ff(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return Cf.call(e).replace(Rf,"Symbol($1)");const n=Of.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+jf.call(e)+"]":n==="RegExp"?$f.call(e):null}function qe(e,t){let r=ao(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let o=ao(this[n],t);return o!==null?o:i},2)}function sa(e){return e==null?[]:[].concat(e)}let la,If=/\$\{\s*(\w+)\s*\}/g;la=Symbol.toStringTag;class be extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(If,(i,o)=>qe(r[o])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[la]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],sa(t).forEach(a=>{if(be.isError(a)){this.errors.push(...a.errors);const s=a.inner.length?a.inner:[a];this.inner.push(...s)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!o&&Error.captureStackTrace&&Error.captureStackTrace(this,be)}}let Ne={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${qe(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${qe(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${qe(r,!0)}\``+i}},Re={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},We={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},jn={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Af={isValue:"${path} field must be ${value}"},$n={noUnknown:"${path} field has unspecified keys: ${unknown}"},sr={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},_f={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.lengthi)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${qe(r,!0)}\``}return be.formatError(Ne.notType,e)}};Object.assign(Object.create(null),{mixed:Ne,string:Re,number:We,date:jn,object:$n,array:sr,boolean:Af,tuple:_f});const zr=e=>e&&e.__isYupSchema__;class pr{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,a=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new pr(t,(s,l)=>{var c;let f=a(...s)?i:o;return(c=f==null?void 0:f(l))!=null?c:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(o=>o.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!zr(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const rr={context:"$",value:"."};class vt{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===rr.context,this.isValue=this.key[0]===rr.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?rr.context:this.isValue?rr.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&ut.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}vt.prototype.__isYupRef=!0;const ze=e=>e==null;function yt(e){function t({value:r,path:n="",options:i,originalValue:o,schema:a},s,l){const{name:c,test:f,params:h,message:m,skipAbsent:p}=e;let{parent:b,context:y,abortEarly:x=a.spec.abortEarly,disableStackTrace:g=a.spec.disableStackTrace}=i;function w(C){return vt.isRef(C)?C.getValue(r,b,y):C}function $(C={}){var H;const U=Object.assign({value:r,originalValue:o,label:a.spec.label,path:C.path||n,spec:a.spec},h,C.params);for(const S of Object.keys(U))U[S]=w(U[S]);const se=new be(be.formatError(C.message||m,U),r,U.path,C.type||c,(H=C.disableStackTrace)!=null?H:g);return se.params=U,se}const A=x?s:l;let P={path:n,parent:b,type:c,from:i.from,createError:$,resolve:w,options:i,originalValue:o,schema:a};const E=C=>{be.isError(C)?A(C):C?l(null):A($())},F=C=>{be.isError(C)?A(C):s(C)};if(p&&ze(r))return E(!0);let q;try{var R;if(q=f.call(P,r,P),typeof((R=q)==null?void 0:R.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(q).then(E,F)}}catch(C){F(C);return}E(q)}return t.OPTIONS=e,t}function Pf(e,t,r,n=r){let i,o,a;return t?(ut.forEach(t,(s,l,c)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:n,parent:i,value:r});let h=e.type==="tuple",m=c?parseInt(f,10):0;if(e.innerType||h){if(h&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&m>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[m],e=h?e.spec.types[m]:e.innerType}if(!c){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=r,r=r&&r[f],e=e.fields[f]}o=f,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class hr extends Set{describe(){const t=[];for(const r of this.values())t.push(vt.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new hr(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function Ot(e,t=new Map){if(zr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n{this.typeError(Ne.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Ot(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,o)=>o.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,o;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",o=n._cast(t,r);if(r.assert!==!1&&!n.isType(o)){if(i&&ze(o))return o;let a=qe(t),s=qe(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". - -attempted value: ${a} -`+(s!==a?`result of cast: ${s}`:""))}return o}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:o,originalValue:a=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let c=[];for(let f of Object.values(this.internalTests))f&&c.push(f);this.runTests({path:o,value:l,originalValue:a,options:r,tests:c},n,f=>{if(f.length)return i(f,l);this.runTests({path:o,value:l,originalValue:a,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:o,value:a,originalValue:s,path:l,options:c}=t,f=y=>{i||(i=!0,r(y,a))},h=y=>{i||(i=!0,n(y,a))},m=o.length,p=[];if(!m)return h([]);let b={value:a,originalValue:s,path:l,options:c,schema:this};for(let y=0;ythis.resolve(f)._validate(c,f,m,p)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((a,s)=>i._validate(t,r,(l,c)=>{be.isError(l)&&(l.value=c),s(l)},(l,c)=>{l.length?s(new be(l,c,void 0,void 0,o)):a(c)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o,a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw be.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new be(s,t,void 0,void 0,a);o=l}),o}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(be.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(be.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Ot(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=yt({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=yt({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=Ne.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ne.notNull){return this.nullability(!1,t)}required(t=Ne.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Ne.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=yt(r),o=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(a=>!(a.OPTIONS.name===r.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=sa(t).map(o=>new vt(o));return i.forEach(o=>{o.isSibling&&n.deps.push(o.key)}),n.conditions.push(typeof r=="function"?new pr(i,r):pr.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=yt({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Ne.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=yt({message:r,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),n}notOneOf(t,r=Ne.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=yt({message:r,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:o,nullable:a}=r.spec;return{meta:i,label:n,optional:o,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,f)=>f.findIndex(h=>h.name===l.name)===c)}}}$e.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])$e.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:a}=Pf(this,t,r,n.context);return a[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])$e.prototype[e]=$e.prototype.oneOf;for(const e of["not","nope"])$e.prototype[e]=$e.prototype.notOneOf;let Nf=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kf=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Df=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Mf=e=>ze(e)||e===e.trim(),Lf={}.toString();function Ae(){return new ua}class ua extends $e{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===Lf?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Ne.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Re.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Re.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Re.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,o;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:o}=r:i=r),this.test({name:o||"matches",message:i||Re.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&n||a.search(t)!==-1})}email(t=Re.email){return this.matches(Nf,{name:"email",message:t,excludeEmptyString:!0})}url(t=Re.url){return this.matches(kf,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Re.uuid){return this.matches(Df,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Re.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Mf})}lowercase(t=Re.lowercase){return this.transform(r=>ze(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ze(r)||r===r.toLowerCase()})}uppercase(t=Re.uppercase){return this.transform(r=>ze(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ze(r)||r===r.toUpperCase()})}}Ae.prototype=ua.prototype;let Vf=e=>e!=+e;function ca(){return new da}class da extends $e{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Vf(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(t,r=We.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=We.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=We.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return nthis.resolve(t)}})}positive(t=We.positive){return this.moreThan(0,t)}negative(t=We.negative){return this.lessThan(0,t)}integer(t=We.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>ze(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>ze(i)?i:Math[t](i))}}ca.prototype=da.prototype;const zf=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ve(e,t=0){return Number(e)||t}function qf(e){const t=zf.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const r={year:Ve(t[1]),month:Ve(t[2],1)-1,day:Ve(t[3],1),hour:Ve(t[4]),minute:Ve(t[5]),second:Ve(t[6]),millisecond:t[7]?Ve(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Ve(t[10]),minuteOffset:Ve(t[11])};if(r.z===void 0&&r.plusMinus===void 0)return new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond).valueOf();let n=0;return r.z!=="Z"&&r.plusMinus!==void 0&&(n=r.hourOffset*60+r.minuteOffset,r.plusMinus==="+"&&(n=0-n)),Date.UTC(r.year,r.month,r.day,r.hour,r.minute+n,r.second,r.millisecond)}let Bf=new Date(""),Uf=e=>Object.prototype.toString.call(e)==="[object Date]";class qr extends $e{constructor(){super({type:"date",check(t){return Uf(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=qf(t),isNaN(t)?qr.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(vt.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=jn.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=jn.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}qr.INVALID_DATE=Bf;qr.prototype;function Hf(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=ut.split(a)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const a of Object.keys(e)){let s=e[a];n.add(a),vt.isRef(s)&&s.isSibling?o(s.path,a):zr(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return Ef.array(Array.from(n),r).reverse()}function so(e,t){let r=1/0;return e.some((n,i)=>{var o;if((o=t.path)!=null&&o.includes(n))return r=i,!0}),r}function fa(e){return(t,r)=>so(e,t)-so(e,r)}const pa=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function lr(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=lr(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=lr(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(lr)}):"optional"in e?e.optional():e}const Gf=(e,t)=>{const r=[...ut.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=ut.getter(ut.join(r),!0)(e);return!!(i&&n in i)};let lo=e=>Object.prototype.toString.call(e)==="[object Object]";function Kf(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Zf=fa([]);function At(e){return new ha(e)}class ha extends $e{constructor(t){super({type:"object",check(r){return lo(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Zf,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let o=this.fields,a=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(h=>!this._nodes.includes(h))),l={},c=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),f=!1;for(const h of s){let m=o[h],p=h in i;if(m){let b,y=i[h];c.path=(r.path?`${r.path}.`:"")+h,m=m.resolve({value:y,context:r.context,parent:l});let x=m instanceof $e?m.spec:void 0,g=x==null?void 0:x.strict;if(x!=null&&x.strip){f=f||h in i;continue}b=!r.__validating||!g?m.cast(i[h],c):i[h],b!==void 0&&(l[h]=b)}else p&&!a&&(l[h]=i[h]);(p!==h in l||l[h]!==i[h])&&(f=!0)}return f?l:i}_validate(t,r={},n,i){let{from:o=[],originalValue:a=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:a},...o],r.__validating=!0,r.originalValue=a,super._validate(t,r,n,(l,c)=>{if(!s||!lo(c)){i(l,c);return}a=a||c;let f=[];for(let h of this._nodes){let m=this.fields[h];!m||vt.isRef(m)||f.push(m.asNestedTest({options:r,key:h,parent:c,parentPath:r.path,originalParent:a}))}this.runTests({tests:f,value:c,originalValue:a,options:r},n,h=>{i(h.sort(this._sortErrors).concat(l),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,o]of Object.entries(this.fields)){const a=n[i];n[i]=a===void 0?o:a}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const o=this.fields[n];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),r[n]=o&&"getDefault"in o?o.getDefault(a):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=Hf(t,r),n._sortErrors=fa(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return lr(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=ut.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return Gf(o,t)&&(a=Object.assign({},o),n||delete a[t],a[r]=i(o)),a})}json(){return this.transform(pa)}noUnknown(t=!0,r=$n.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const o=Kf(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=$n.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(sn.camelCase)}snakeCase(){return this.transformKeys(sn.snakeCase)}constantCase(){return this.transformKeys(t=>sn.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[o,a]of Object.entries(r.fields)){var i;let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[o]})),n.fields[o]=a.describe(s)}return n}}At.prototype=ha.prototype;function ma(e){return new ba(e)}class ba extends $e{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const o=n.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:n}_validate(t,r={},n,i){var o;let a=this.innerType,s=(o=r.recursive)!=null?o:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,c)=>{var f;if(!s||!a||!this._typeCheck(c)){i(l,c);return}let h=new Array(c.length);for(let p=0;pi(p.concat(l),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(pa)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!zr(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+qe(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=sr.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||sr.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||sr.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,o)=>!t(n,i,o):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var i;let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=r.innerType.describe(o)}return n}}ma.prototype=ba.prototype;const va=e=>(e.preventDefault(),e.returnValue="");function ga(){return window.addEventListener("beforeunload",va,{capture:!0})}function ti(){return window.removeEventListener("beforeunload",va,{capture:!0})}function Wt(){const{formData:e}=Ce(),{dirty:t}=He();return d.useEffect(()=>t||Object.keys(e).length?ga():ti(),[t,e]),null}Wt.defaultProps={hasForm:!1};function xa(){const{formData:e}=Ce();return d.useEffect(()=>e?ga():ti(),[e]),null}function Ge({children:e,className:t,disabled:r,onClick:n,size:i,type:o,variant:a}){return u.jsx("button",{className:je("inline-flex w-fit items-center justify-center rounded border-b-2 shadow transition-buttons duration-200 px-4 py-2 font-semibold","hover:shadow-lg","focus:ring-offset-white focus:outline-none focus:ring-2 focus:ring-offset-2",a==="primary"?"bg-oxford-600 border-b-oxford-700 text-white hover:bg-oxford-700 focus:bg-oxford-700 focus:ring-oxford-500":null,a==="danger"?"bg-bn-ribbon-600 border-b-bn-ribbon-700 text-white hover:bg-bn-ribbon-700 focus:bg-bn-ribbon-700 focus:ring-bn-ribbon-500":null,a==="danger-outline"?"bg-bn-ribbon-50 border border-bn-ribbon-200 border-b-bn-ribbon-200 text-bn-ribbon-700 hover:bg-bn-ribbon-100 focus:bg-bn-ribbon-100 focus:ring-bn-ribbon-400":null,i==="sm"?"text-sm !px-2 !py-1.5 font-normal":null,r?"opacity-75 cursor-not-allowed !bg-gray-700 !border-b-gray-800":null,t),disabled:r,onClick:n,type:o,children:e})}Ge.propTypes={children:T.node.isRequired,className:T.string,disabled:T.bool,onClick:T.func,size:T.oneOf(["sm","md","lg"]),type:T.oneOf(["button","submit","reset"]),variant:T.oneOf(["primary","danger","danger-outline"])};Ge.defaultProps={className:"",disabled:!1,onClick:()=>null,size:"md",type:"button",variant:"primary"};function Je({children:e}){return u.jsx("div",{className:"border-l-2 border-l-bn-ribbon-600 bg-bn-ribbon-100 max-w-prose p-2 pl-4 mt-2 text-sm font-semibold text-bn-ribbon-800",children:e})}Je.propTypes={children:T.node.isRequired};function ri({field:e,min:t,max:r}){const{values:n}=He(),i=n==null?void 0:n[e].length;return i===r?u.jsx("p",{className:"text-sm",children:"No characters remaining"}):ir?u.jsxs("p",{className:"text-sm",children:["Remove ",i-r," characters"]}):u.jsx("p",{className:"text-sm",children:" chars remaining"})}ri.defaultProps={min:null,max:null};ri.propTypes={field:T.string.isRequired,min:T.number,max:T.number};function ni({children:e}){return u.jsx("div",{className:"-mt-2 mb-0.5 text-sm text-gray-700 flex flex-col gap-y-1",children:e})}ni.propTypes={children:T.node.isRequired};function mr({characterCount:e,children:t,className:r,hintText:n,id:i,label:o,maxlength:a,minlength:s,placeholder:l,name:c,resize:f,rows:h,required:m,value:p}){const{setFieldValue:b,values:y}=He();return d.useEffect(()=>{b(i,y[i]||p)},[]),u.jsxs("div",{className:`flex flex-col gap-y-3 text-lg leading-tight ${r}`,children:[u.jsx("label",{className:"font-semibold tracking-tight",htmlFor:i,children:o}),n?u.jsx(ni,{children:n}):null,u.jsx(Ct,{as:"textarea",className:` - mt-1 block w-full max-w-prose rounded-md border-gray-400 text-gray-900 shadow-sm - ${f?"":"resize-none"} - sm:text-sm - focus:outline-none focus:ring-oxford-500 focus:border-oxford-500 - `,maxLength:a,minLength:s,name:c,placeholder:l,required:m,rows:h}),e&&(s||a)?u.jsx(ri,{field:i,max:a,min:s}):null,t]})}mr.defaultProps={className:null,children:null,characterCount:!1,hintText:null,maxlength:null,minlength:null,placeholder:null,required:!1,rows:8,value:""};mr.propTypes={characterCount:T.bool,children:T.node,className:T.string,hintText:T.node,id:T.string.isRequired,label:T.string.isRequired,maxlength:T.number,minlength:T.number,name:T.string.isRequired,placeholder:T.string,required:T.bool,resize:T.bool.isRequired,rows:T.number,value:T.string};function Wf(){const[,e]=De(),{formData:t,setFormData:r}=Ce();if(Ht(["codelistA","codelistB","timeOption","filterPopulation"]))return u.jsx(Ut,{to:""});const n=At().shape({purpose:Ae().required("Write a purpose for this analysis").min(1,"Add a purpose").max(1e3,"Purpose is too long"),title:Ae().required("Write a title for this analysis").min(1,"Add a title").max(140,"Title is too long")}),i={purpose:t.purpose||"",title:t.title||""};return u.jsx(Mr,{initialValues:i,onSubmit:(o,a)=>{a.validateForm().then(()=>{r({...t,...o}),e("review-request")})},validateOnMount:!0,validationSchema:n,children:({errors:o,isValid:a,touched:s})=>u.jsxs(Zt,{className:"flex flex-col gap-y-4",children:[u.jsx(Wt,{}),u.jsx("h1",{className:"text-4xl font-bold",children:"Analysis information"}),u.jsx(mr,{characterCount:!0,className:"mb-6",hintText:u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"The title will be shown at the top of the generated report. It should provide a short summary to anyone reading the report about what the analysis shows."}),u.jsx("p",{children:"You will be able to change this after the report is generated."})]}),id:"title",label:"Provide a title for the analysis",maxlength:140,name:"title",placeholder:"",required:!0,resize:!1,rows:2,value:`${t.codelistA.label} & ${t.codelistB.label} during the COVID-19 pandemic`,children:o.title&&s.title?u.jsx(Je,{children:o.title}):null}),u.jsx(mr,{characterCount:!0,hintText:u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"It must be clear that this analysis request is aligned with your approvals."}),u.jsx("p",{children:"Please refer to the approved version of your project application form, which you were sent by email."})]}),id:"purpose",label:"Explain why this analysis fits with the approved project purpose",maxlength:1e3,name:"purpose",required:!0,resize:!1}),o.purpose&&s.purpose?u.jsx(Je,{children:o.purpose}):null,u.jsx("div",{className:"flex flex-row w-full gap-2 mt-4",children:u.jsx(Ge,{disabled:!a,type:"submit",children:"Next"})})]})})}const Oe=["The number of people who had","added to their health record each month from","to","who have also had","added to their health record in the same month as","or"],ya="before.",Ie="at any time prior.",ur=e=>`up to ${e.timeValue} ${e.timeScale} before.`;function zt({children:e,legend:t,hideLegend:r}){return u.jsxs("fieldset",{children:[u.jsx("legend",{className:r?"sr-only":"text-2xl font-bold mb-4",children:u.jsx("h2",{children:t})}),u.jsx("div",{className:"flex flex-col gap-4",children:e})]})}zt.propTypes={children:T.node.isRequired,hideLegend:T.bool,legend:T.string.isRequired};zt.defaultProps={hideLegend:!1};function qt({children:e,id:t,label:r,labelClassName:n,name:i,onClick:o,value:a}){return u.jsxs("div",{className:"flex flex-row place-items-baseline gap-x-3 text-lg leading-tight",children:[u.jsx(Ct,{className:"peer cursor-pointer scale-150 top-[1px] relative checked:bg-oxford-600 focus:ring-bn-sun",id:t,name:i,onClick:o,type:"radio",value:a}),u.jsx("label",{"aria-label":e?r:null,className:`cursor-pointer touch-manipulation tracking-tight ${n||""}`,htmlFor:t,children:e||r})]})}qt.propTypes={children:T.node,id:T.string.isRequired,label:T.string.isRequired,labelClassName:T.string,name:T.string.isRequired,onClick:T.func,value:T.string.isRequired};qt.defaultProps={children:null,labelClassName:null,onClick:()=>null};/** - * react-virtual - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&delete n[o]}),r.options=vr({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qf,rangeExtractor:Xf,onChange:function(){},measureElement:tp,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},n)},this.notify=function(n){r.options.onChange==null||r.options.onChange(r,n)},this.maybeNotify=St(function(){return r.calculateRange(),[r.isScrolling,r.range?r.range.startIndex:null,r.range?r.range.endIndex:null]},function(n){r.notify(n)},{key:!1,debug:function(){return r.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){r.unsubs.filter(Boolean).forEach(function(n){return n()}),r.unsubs=[],r.scrollElement=null},this._didMount=function(){return r.measureElementCache.forEach(r.observer.observe),function(){r.observer.disconnect(),r.cleanup()}},this._willUpdate=function(){var n=r.options.getScrollElement();r.scrollElement!==n&&(r.cleanup(),r.scrollElement=n,r._scrollToOffset(r.scrollOffset,{adjustments:void 0,behavior:void 0}),r.unsubs.push(r.options.observeElementRect(r,function(i){r.scrollRect=i,r.maybeNotify()})),r.unsubs.push(r.options.observeElementOffset(r,function(i){r.scrollAdjustments=0,r.scrollOffset!==i&&(r.isScrollingTimeoutId!==null&&(clearTimeout(r.isScrollingTimeoutId),r.isScrollingTimeoutId=null),r.isScrolling=!0,r.scrollDirection=r.scrollOffset=0;s--){var l=n[s];if(!o.has(l.lane)){var c=a.get(l.lane);if(c==null||l.end>c.end?a.set(l.lane,l):l.end0?Math.min.apply(Math,r.pendingMeasuredCacheIndexes):0;r.pendingMeasuredCacheIndexes=[];for(var f=r.measurementsCache.slice(0,c),h=c;h0&&i>0?ip({measurements:n,outerSize:i,scrollOffset:o}):null},{key:!1,debug:function(){return r.options.debug}}),this.getIndexes=St(function(){return[r.options.rangeExtractor,r.calculateRange(),r.options.overscan,r.options.count]},function(n,i,o,a){return i===null?[]:n(vr({},i,{overscan:o,count:a}))},{key:!1,debug:function(){return r.options.debug}}),this.indexFromElement=function(n){var i=r.options.indexAttribute,o=n.getAttribute(i);return o?parseInt(o,10):(console.warn("Missing attribute name '"+i+"={index}' on measured element."),-1)},this._measureElement=function(n,i){var o=r.measurementsCache[r.indexFromElement(n)];if(!o||!n.isConnected){r.measureElementCache.forEach(function(l,c){l===n&&(r.observer.unobserve(n),r.measureElementCache.delete(c))});return}var a=r.measureElementCache.get(o.key);a!==n&&(a&&r.observer.unobserve(a),r.observer.observe(n),r.measureElementCache.set(o.key,n));var s=r.options.measureElement(n,i,r);r.resizeItem(o,s)},this.resizeItem=function(n,i){var o,a=(o=r.itemSizeCache.get(n.key))!=null?o:n.size,s=i-a;s!==0&&(n.start=r.scrollOffset+o?i="end":i="start"),i==="start"?n=n:i==="end"?n=n-o:i==="center"&&(n=n-o/2);var a=r.options.horizontal?"scrollWidth":"scrollHeight",s=r.scrollElement?"document"in r.scrollElement?r.scrollElement.document.documentElement[a]:r.scrollElement[a]:0,l=s-r.getSize();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=function(n,i){i===void 0&&(i="auto"),n=Math.max(0,Math.min(n,r.options.count-1));var o=ln(r.getMeasurements()[n]);if(i==="auto")if(o.end>=r.scrollOffset+r.getSize()-r.options.scrollPaddingEnd)i="end";else if(o.start<=r.scrollOffset+r.options.scrollPaddingStart)i="start";else return[r.scrollOffset,i];var a=i==="end"?o.end+r.options.scrollPaddingEnd:o.start-r.options.scrollPaddingStart;return[r.getOffsetForAlignment(a,i),i]},this.isDynamicMode=function(){return r.measureElementCache.size>0},this.cancelScrollToIndex=function(){r.scrollToIndexTimeoutId!==null&&(clearTimeout(r.scrollToIndexTimeoutId),r.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(n,i){var o=i===void 0?{}:i,a=o.align,s=a===void 0?"start":a,l=o.behavior;r.cancelScrollToIndex(),l==="smooth"&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.getOffsetForAlignment(n,s),{adjustments:void 0,behavior:l})},this.scrollToIndex=function(n,i){var o=i===void 0?{}:i,a=o.align,s=a===void 0?"auto":a,l=o.behavior;n=Math.max(0,Math.min(n,r.options.count-1)),r.cancelScrollToIndex(),l==="smooth"&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var c=r.getOffsetForIndex(n,s),f=c[0],h=c[1];r._scrollToOffset(f,{adjustments:void 0,behavior:l}),l!=="smooth"&&r.isDynamicMode()&&(r.scrollToIndexTimeoutId=setTimeout(function(){r.scrollToIndexTimeoutId=null;var m=r.measureElementCache.has(r.options.getItemKey(n));if(m){var p=r.getOffsetForIndex(n,h),b=p[0];Yf(b,r.scrollOffset)||r.scrollToIndex(n,{align:h,behavior:l})}else r.scrollToIndex(n,{align:h,behavior:l})}))},this.scrollBy=function(n,i){var o=i===void 0?{}:i,a=o.behavior;r.cancelScrollToIndex(),a==="smooth"&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.scrollOffset+n,{adjustments:void 0,behavior:a})},this.getTotalSize=function(){var n;return(((n=r.getMeasurements()[r.options.count-1])==null?void 0:n.end)||r.options.paddingStart)-r.options.scrollMargin+r.options.paddingEnd},this._scrollToOffset=function(n,i){var o=i.adjustments,a=i.behavior;r.options.scrollToFn(n,{behavior:a,adjustments:o},r)},this.measure=function(){r.itemSizeCache=new Map,r.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(n){r.itemSizeCache.set(n.key,n.size)}),this.maybeNotify()},Sa=function(t,r,n,i){for(;t<=r;){var o=(t+r)/2|0,a=n(o);if(ai)r=o-1;else return o}return t>0?t-1:0};function ip(e){for(var t=e.measurements,r=e.outerSize,n=e.scrollOffset,i=t.length-1,o=function(c){return t[c].start},a=Sa(0,i,o,n),s=a;st in e?lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t,r)=>(up(e,typeof t!="symbol"?t+"":t,r),r);let cp=class{constructor(){un(this,"current",this.detect()),un(this,"handoffState","pending"),un(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ct=new cp,Q=(e,t)=>{ct.isServer?d.useEffect(e,t):d.useLayoutEffect(e,t)};function ve(e){let t=d.useRef(e);return Q(()=>{t.current=e},[e]),t}function Yt(e,t){let[r,n]=d.useState(e),i=ve(e);return Q(()=>n(i.current),[i,n,...t]),r}let O=function(e){let t=ve(e);return z.useCallback((...r)=>t.current(...r),[t])};function wa(e,t,r){let[n,i]=d.useState(r),o=e!==void 0,a=d.useRef(o),s=d.useRef(!1),l=d.useRef(!1);return o&&!a.current&&!s.current?(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&a.current&&!l.current&&(l.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,O(c=>(o||i(c),t==null?void 0:t(c)))]}function Ta(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ke(){let e=[],t={addEventListener(r,n,i,o){return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Ta(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=ke();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function Be(){let[e]=d.useState(ke);return d.useEffect(()=>()=>e.dispose(),[e]),e}function dp(){let e=typeof document>"u";return"useSyncExternalStore"in mn?(t=>t.useSyncExternalStore)(mn)(()=>()=>{},()=>!1,()=>!e):!1}function ii(){let e=dp(),[t,r]=d.useState(ct.isHandoffComplete);return t&&ct.isHandoffComplete===!1&&r(!1),d.useEffect(()=>{t!==!0&&r(!0)},[t]),d.useEffect(()=>ct.handoff(),[]),e?!1:t}var uo;let _e=(uo=z.useId)!=null?uo:function(){let e=ii(),[t,r]=z.useState(e?()=>ct.nextId():null);return Q(()=>{t===null&&r(ct.nextId())},[t]),t!=null?""+t:void 0};function Y(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Y),n}function Qt(e){return ct.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Cn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Fe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Fe||{}),kt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(kt||{}),fp=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fp||{});function pp(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Cn)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var oi=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(oi||{});function Ea(e,t=0){var r;return e===((r=Qt(e))==null?void 0:r.body)?!1:Y(t,{0(){return e.matches(Cn)},1(){let n=e;for(;n!==null;){if(n.matches(Cn))return!0;n=n.parentElement}return!1}})}var hp=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(hp||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let mp=["textarea","input"].join(",");function bp(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,mp))!=null?r:!1}function Ye(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wt(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?Ye(e):e:pp(e);i.length>0&&a.length>1&&(a=a.filter(p=>!i.includes(p))),n=n??o.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(n))-1;if(t&4)return Math.max(0,a.indexOf(n))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,h=a.length,m;do{if(f>=h||f+h<=0)return 0;let p=l+f;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}m=a[p],m==null||m.focus(c),f+=s}while(m!==o.activeElement);return t&6&&bp(m)&&m.select(),2}function vp(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gp(){return/Android/gi.test(window.navigator.userAgent)}function Oa(){return vp()||gp()}function nr(e,t,r){let n=ve(t);d.useEffect(()=>{function i(o){n.current(o)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}function xp(e,t,r){let n=ve(t);d.useEffect(()=>{function i(o){n.current(o)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function ja(e,t,r=!0){let n=d.useRef(!1);d.useEffect(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(a,s){if(!n.current||a.defaultPrevented)return;let l=s(a);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function f(h){return typeof h=="function"?f(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let f of c){if(f===null)continue;let h=f instanceof HTMLElement?f:f.current;if(h!=null&&h.contains(l)||a.composed&&a.composedPath().includes(h))return}return!Ea(l,oi.Loose)&&l.tabIndex!==-1&&a.preventDefault(),t(a,l)}let o=d.useRef(null);nr("pointerdown",a=>{var s,l;n.current&&(o.current=((l=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:l[0])||a.target)},!0),nr("mousedown",a=>{var s,l;n.current&&(o.current=((l=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:l[0])||a.target)},!0),nr("click",a=>{Oa()||o.current&&(i(a,()=>o.current),o.current=null)},!0),nr("touchend",a=>i(a,()=>a.target instanceof HTMLElement?a.target:null),!0),xp("blur",a=>i(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function yp(...e){return d.useMemo(()=>Qt(...e),[...e])}function co(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function ai(e,t){let[r,n]=d.useState(()=>co(e));return Q(()=>{n(co(e))},[e.type,e.as]),Q(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let Sp=Symbol();function me(...e){let t=d.useRef(e);d.useEffect(()=>{t.current=e},[e]);let r=O(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Sp]))?void 0:r}function fo(e){return[e.screenX,e.screenY]}function $a(){let e=d.useRef([-1,-1]);return{wasMoved(t){let r=fo(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=fo(t)}}}function wp({container:e,accept:t,walk:r,enabled:n=!0}){let i=d.useRef(t),o=d.useRef(r);d.useEffect(()=>{i.current=t,o.current=r},[t,r]),Q(()=>{if(!e||!n)return;let a=Qt(e);if(!a)return;let s=i.current,l=o.current,c=Object.assign(h=>s(h),{acceptNode:s}),f=a.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;f.nextNode();)l(f.currentNode)},[e,n,i,o])}function po(e,t){let r=d.useRef([]),n=O(e);d.useEffect(()=>{let i=[...r.current];for(let[o,a]of t.entries())if(r.current[o]!==a){let s=n(t,i);return r.current=t,s}},[n,...t])}function gr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var et=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(et||{}),Qe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qe||{});function le({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??Tp;let l=Ca(t,e);if(o)return ir(l,r,n,a,s);let c=i??0;if(c&2){let{static:f=!1,...h}=l;if(f)return ir(h,r,n,a,s)}if(c&1){let{unmount:f=!0,...h}=l;return Y(f?0:1,{0(){return null},1(){return ir({...h,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return ir(l,r,n,a,s)}function ir(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...l}=cn(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},f=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let h={};if(t){let m=!1,p=[];for(let[b,y]of Object.entries(t))typeof y=="boolean"&&(m=!0),y===!0&&p.push(b);m&&(h["data-headlessui-state"]=p.join(" "))}if(o===d.Fragment&&Object.keys(xr(l)).length>0){if(!d.isValidElement(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(y=>` - ${y}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(` -`)].join(` -`));let m=f.props,p=typeof(m==null?void 0:m.className)=="function"?(...y)=>gr(m==null?void 0:m.className(...y),l.className):gr(m==null?void 0:m.className,l.className),b=p?{className:p}:{};return d.cloneElement(f,Object.assign({},Ca(f.props,xr(cn(l,["ref"]))),h,c,{ref:i(f.ref,c.ref)},b))}return d.createElement(o,Object.assign({},cn(l,["ref"]),o!==d.Fragment&&c,o!==d.Fragment&&h),f)}function Tp(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ca(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let a=r[n];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function ae(e){var t;return Object.assign(d.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xr(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function cn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Ep="div";var Br=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Br||{});function Op(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return le({ourProps:o,theirProps:i,slot:{},defaultTag:Ep,name:"Hidden"})}let Ur=ae(Op),si=d.createContext(null);si.displayName="OpenClosedContext";var he=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(he||{});function Hr(){return d.useContext(si)}function li({value:e,children:t}){return z.createElement(si.Provider,{value:e},t)}function jp(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let st=[];jp(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&st[0]!==t.target&&(st.unshift(t.target),st=st.filter(r=>r!=null&&r.isConnected),st.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ra(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&$p(r)?!1:n}function $p(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Cp(e){throw new Error("Unexpected object: "+e)}var B=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(B||{});function Rn(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(D||{}),Rp={},Fp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Fp||{}),Ip=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ip||{}),Ap=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ap||{}),_p=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(_p||{});function dn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),i=n.length>0&&n[0].dataRef.current.order!==null?n.sort((a,s)=>a.dataRef.current.order-s.dataRef.current.order):Ye(n,a=>a.dataRef.current.domRef.current),o=r?i.indexOf(r):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let Pp={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,r;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((r=e.dataRef.current)!=null&&r.value){let n=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(n!==-1)return{...e,activeOptionIndex:n,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var r,n,i,o,a;if((r=e.dataRef.current)!=null&&r.disabled||(n=e.dataRef.current)!=null&&n.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let f=t.focus===B.Specific?t.idx:Rn(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var m,p;return(p=(m=e.activeOptionIndex)!=null?m:e.virtual.options.findIndex(b=>!e.virtual.disabled(b)))!=null?p:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),h=(o=t.trigger)!=null?o:2;return e.activeOptionIndex===f&&e.activationTrigger===h?e:{...e,activeOptionIndex:f,activationTrigger:h}}let s=dn(e);if(s.activeOptionIndex===null){let f=s.options.findIndex(h=>!h.dataRef.current.disabled);f!==-1&&(s.activeOptionIndex=f)}let l=t.focus===B.Specific?t.idx:Rn(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled}),c=(a=t.trigger)!=null?a:2;return e.activeOptionIndex===l&&e.activationTrigger===c?e:{...e,...s,activeOptionIndex:l,activationTrigger:c}},3:(e,t)=>{var r,n,i;if((r=e.dataRef.current)!=null&&r.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,a=dn(e,l=>(l.push(o),l));e.activeOptionIndex===null&&(n=e.dataRef.current)!=null&&n.isSelected(t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let s={...e,...a,activationTrigger:2};return(i=e.dataRef.current)!=null&&i.__demoMode&&e.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},4:(e,t)=>{var r;if((r=e.dataRef.current)!=null&&r.virtual)return{...e,options:e.options.filter(i=>i.id!==t.id)};let n=dn(e,i=>{let o=i.findIndex(a=>a.id===t.id);return o!==-1&&i.splice(o,1),i});return{...e,...n,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var r;if(((r=e.virtual)==null?void 0:r.options)===t.options)return e;let n=e.activeOptionIndex;if(e.activeOptionIndex!==null){let i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i!==-1?n=i:n=null}return{...e,activeOptionIndex:n,virtual:Object.assign({},e.virtual,{options:t.options})}}},ci=d.createContext(null);ci.displayName="ComboboxActionsContext";function Xt(e){let t=d.useContext(ci);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Xt),r}return t}let Aa=d.createContext(null);function Np(e){var t;let r=gt("VirtualProvider"),[n,i]=d.useMemo(()=>{let l=r.optionsRef.current;if(!l)return[0,0];let c=window.getComputedStyle(l);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[r.optionsRef.current]),o=sp({scrollPaddingStart:n,scrollPaddingEnd:i,count:r.virtual.options.length,estimateSize(){return 40},getScrollElement(){var l;return(l=r.optionsRef.current)!=null?l:null},overscan:12}),[a,s]=d.useState(0);return Q(()=>{s(l=>l+1)},[(t=r.virtual)==null?void 0:t.options]),z.createElement(Aa.Provider,{value:o},z.createElement("div",{style:{position:"relative",width:"100%",height:`${o.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Rp.JEST_WORKER_ID!==void 0||r.activationTrigger===0)return;r.activeOptionIndex!==null&&r.virtual.options.length>r.activeOptionIndex&&o.scrollToIndex(r.activeOptionIndex)}}},o.getVirtualItems().map(l=>{var c;return z.createElement(d.Fragment,{key:l.key},z.cloneElement((c=e.children)==null?void 0:c.call(e,{option:r.virtual.options[l.index],open:r.comboboxState===0}),{key:`${a}-${l.key}`,"data-index":l.index,"aria-setsize":r.virtual.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}}))})))}let di=d.createContext(null);di.displayName="ComboboxDataContext";function gt(e){let t=d.useContext(di);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,gt),r}return t}function kp(e,t){return Y(t.type,Pp,e,t)}let Dp=d.Fragment;function Mp(e,t){let{value:r,defaultValue:n,onChange:i,form:o,name:a,by:s=null,disabled:l=!1,__demoMode:c=!1,nullable:f=!1,multiple:h=!1,immediate:m=!1,virtual:p=null,...b}=e,y=!1,x=null,[g=h?[]:void 0,w]=wa(r,i,n),[$,A]=d.useReducer(kp,{dataRef:d.createRef(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),P=d.useRef(!1),E=d.useRef({static:!1,hold:!1}),F=d.useRef(null),_=d.useRef(null),q=d.useRef(null),R=d.useRef(null),C=O(typeof s=="string"?(M,W)=>{let pe=s;return(M==null?void 0:M[pe])===(W==null?void 0:W[pe])}:s??((M,W)=>M===W)),H=O(M=>$.options.findIndex(W=>C(W.dataRef.current.value,M))),U=d.useCallback(M=>Y(S.mode,{1:()=>g.some(W=>C(W,M)),0:()=>C(g,M)}),[g]),se=O(M=>$.activeOptionIndex===H(M)),S=d.useMemo(()=>({...$,immediate:y,optionsPropsRef:E,labelRef:F,inputRef:_,buttonRef:q,optionsRef:R,value:g,defaultValue:n,disabled:l,mode:h?1:0,virtual:$.virtual,get activeOptionIndex(){if(P.current&&$.activeOptionIndex===null&&$.options.length>0){let M=$.options.findIndex(W=>!W.dataRef.current.disabled);if(M!==-1)return M}return $.activeOptionIndex},calculateIndex:H,compare:C,isSelected:U,isActive:se,nullable:f,__demoMode:c}),[g,n,l,h,f,c,$,x]);Q(()=>{},[x,void 0]),Q(()=>{$.dataRef.current=S},[S]),ja([S.buttonRef,S.inputRef,S.optionsRef],()=>V.closeCombobox(),S.comboboxState===0);let ne=d.useMemo(()=>{var M,W,pe;return{open:S.comboboxState===0,disabled:l,activeIndex:S.activeOptionIndex,activeOption:S.activeOptionIndex===null?null:S.virtual?S.virtual.options[(M=S.activeOptionIndex)!=null?M:0]:(pe=(W=S.options[S.activeOptionIndex])==null?void 0:W.dataRef.current.value)!=null?pe:null,value:g}},[S,l,g]),G=O(()=>{if(S.activeOptionIndex!==null){if(S.virtual)Pe(S.virtual.options[S.activeOptionIndex]);else{let{dataRef:M}=S.options[S.activeOptionIndex];Pe(M.current.value)}V.goToOption(B.Specific,S.activeOptionIndex)}}),ue=O(()=>{A({type:0}),P.current=!0}),X=O(()=>{A({type:1}),P.current=!1}),re=O((M,W,pe)=>(P.current=!1,M===B.Specific?A({type:2,focus:B.Specific,idx:W,trigger:pe}):A({type:2,focus:M,trigger:pe}))),ce=O((M,W)=>(A({type:3,payload:{id:M,dataRef:W}}),()=>{S.isActive(W.current.value)&&(P.current=!0),A({type:4,id:M})})),ie=O(M=>(A({type:5,id:M}),()=>A({type:5,id:null}))),Pe=O(M=>Y(S.mode,{0(){return w==null?void 0:w(M)},1(){let W=S.value.slice(),pe=W.findIndex(xt=>C(xt,M));return pe===-1?W.push(M):W.splice(pe,1),w==null?void 0:w(W)}})),k=O(M=>{A({type:6,trigger:M})}),V=d.useMemo(()=>({onChange:Pe,registerOption:ce,registerLabel:ie,goToOption:re,closeCombobox:X,openCombobox:ue,setActivationTrigger:k,selectActiveOption:G}),[]),oe=t===null?{}:{ref:t},ge=d.useRef(null),rt=Be();return d.useEffect(()=>{ge.current&&n!==void 0&&rt.addEventListener(ge.current,"reset",()=>{w==null||w(n)})},[ge,w]),z.createElement(ci.Provider,{value:V},z.createElement(di.Provider,{value:S},z.createElement(li,{value:Y(S.comboboxState,{0:he.Open,1:he.Closed})},a!=null&&g!=null&&ui({[a]:g}).map(([M,W],pe)=>z.createElement(Ur,{features:Br.Hidden,ref:pe===0?xt=>{var _t;ge.current=(_t=xt==null?void 0:xt.closest("form"))!=null?_t:null}:void 0,...xr({key:M,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:M,value:W})})),le({ourProps:oe,theirProps:b,slot:ne,defaultTag:Dp,name:"Combobox"}))))}let Lp="input";function Vp(e,t){var r,n,i,o,a;let s=_e(),{id:l=`headlessui-combobox-input-${s}`,onChange:c,displayValue:f,type:h="text",...m}=e,p=gt("Combobox.Input"),b=Xt("Combobox.Input"),y=me(p.inputRef,t),x=yp(p.inputRef),g=d.useRef(!1),w=Be(),$=O(()=>{b.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),b.goToOption(B.Nothing)}),A=function(){var S;return typeof f=="function"&&p.value!==void 0?(S=f(p.value))!=null?S:"":typeof p.value=="string"?p.value:""}();po(([S,ne],[G,ue])=>{if(g.current)return;let X=p.inputRef.current;X&&((ue===0&&ne===1||S!==G)&&(X.value=S),requestAnimationFrame(()=>{if(g.current||!X||(x==null?void 0:x.activeElement)!==X)return;let{selectionStart:re,selectionEnd:ce}=X;Math.abs((ce??0)-(re??0))===0&&re===0&&X.setSelectionRange(X.value.length,X.value.length)}))},[A,p.comboboxState,x]),po(([S],[ne])=>{if(S===0&&ne===1){if(g.current)return;let G=p.inputRef.current;if(!G)return;let ue=G.value,{selectionStart:X,selectionEnd:re,selectionDirection:ce}=G;G.value="",G.value=ue,ce!==null?G.setSelectionRange(X,re,ce):G.setSelectionRange(X,re)}},[p.comboboxState]);let P=d.useRef(!1),E=O(()=>{P.current=!0}),F=O(()=>{w.nextFrame(()=>{P.current=!1})}),_=O(S=>{switch(g.current=!0,S.key){case D.Enter:if(g.current=!1,p.comboboxState!==0||P.current)return;if(S.preventDefault(),S.stopPropagation(),p.activeOptionIndex===null){b.closeCombobox();return}b.selectActiveOption(),p.mode===0&&b.closeCombobox();break;case D.ArrowDown:return g.current=!1,S.preventDefault(),S.stopPropagation(),Y(p.comboboxState,{0:()=>b.goToOption(B.Next),1:()=>b.openCombobox()});case D.ArrowUp:return g.current=!1,S.preventDefault(),S.stopPropagation(),Y(p.comboboxState,{0:()=>b.goToOption(B.Previous),1:()=>{b.openCombobox(),w.nextFrame(()=>{p.value||b.goToOption(B.Last)})}});case D.Home:if(S.shiftKey)break;return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.First);case D.PageUp:return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.First);case D.End:if(S.shiftKey)break;return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.Last);case D.PageDown:return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.Last);case D.Escape:return g.current=!1,p.comboboxState!==0?void 0:(S.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&S.stopPropagation(),p.nullable&&p.mode===0&&p.value===null&&$(),b.closeCombobox());case D.Tab:if(g.current=!1,p.comboboxState!==0)return;p.mode===0&&p.activationTrigger!==1&&b.selectActiveOption(),b.closeCombobox();break}}),q=O(S=>{c==null||c(S),p.nullable&&p.mode===0&&S.target.value===""&&$(),b.openCombobox()}),R=O(S=>{var ne,G,ue;let X=(ne=S.relatedTarget)!=null?ne:st.find(re=>re!==S.currentTarget);if(g.current=!1,!((G=p.optionsRef.current)!=null&&G.contains(X))&&!((ue=p.buttonRef.current)!=null&&ue.contains(X))&&p.comboboxState===0)return S.preventDefault(),p.mode===0&&(p.nullable&&p.value===null?$():p.activationTrigger!==1&&b.selectActiveOption()),b.closeCombobox()}),C=O(S=>{var ne,G,ue;let X=(ne=S.relatedTarget)!=null?ne:st.find(re=>re!==S.currentTarget);(G=p.buttonRef.current)!=null&&G.contains(X)||(ue=p.optionsRef.current)!=null&&ue.contains(X)||p.disabled||p.immediate&&p.comboboxState!==0&&(b.openCombobox(),w.nextFrame(()=>{b.setActivationTrigger(1)}))}),H=Yt(()=>{if(p.labelId)return[p.labelId].join(" ")},[p.labelId]),U=d.useMemo(()=>({open:p.comboboxState===0,disabled:p.disabled}),[p]),se={ref:y,id:l,role:"combobox",type:h,"aria-controls":(r=p.optionsRef.current)==null?void 0:r.id,"aria-expanded":p.comboboxState===0,"aria-activedescendant":p.activeOptionIndex===null?void 0:p.virtual?(n=p.options.find(S=>{var ne;return!((ne=p.virtual)!=null&&ne.disabled(S.dataRef.current.value))&&p.compare(S.dataRef.current.value,p.virtual.options[p.activeOptionIndex])}))==null?void 0:n.id:(i=p.options[p.activeOptionIndex])==null?void 0:i.id,"aria-labelledby":H,"aria-autocomplete":"list",defaultValue:(a=(o=e.defaultValue)!=null?o:p.defaultValue!==void 0?f==null?void 0:f(p.defaultValue):null)!=null?a:p.defaultValue,disabled:p.disabled,onCompositionStart:E,onCompositionEnd:F,onKeyDown:_,onChange:q,onFocus:C,onBlur:R};return le({ourProps:se,theirProps:m,slot:U,defaultTag:Lp,name:"Combobox.Input"})}let zp="button";function qp(e,t){var r;let n=gt("Combobox.Button"),i=Xt("Combobox.Button"),o=me(n.buttonRef,t),a=_e(),{id:s=`headlessui-combobox-button-${a}`,...l}=e,c=Be(),f=O(y=>{switch(y.key){case D.ArrowDown:return y.preventDefault(),y.stopPropagation(),n.comboboxState===1&&i.openCombobox(),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case D.ArrowUp:return y.preventDefault(),y.stopPropagation(),n.comboboxState===1&&(i.openCombobox(),c.nextFrame(()=>{n.value||i.goToOption(B.Last)})),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case D.Escape:return n.comboboxState!==0?void 0:(y.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&y.stopPropagation(),i.closeCombobox(),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})}));default:return}}),h=O(y=>{if(Ra(y.currentTarget))return y.preventDefault();n.comboboxState===0?i.closeCombobox():(y.preventDefault(),i.openCombobox()),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})})}),m=Yt(()=>{if(n.labelId)return[n.labelId,s].join(" ")},[n.labelId,s]),p=d.useMemo(()=>({open:n.comboboxState===0,disabled:n.disabled,value:n.value}),[n]),b={ref:o,id:s,type:ai(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(r=n.optionsRef.current)==null?void 0:r.id,"aria-expanded":n.comboboxState===0,"aria-labelledby":m,disabled:n.disabled,onClick:h,onKeyDown:f};return le({ourProps:b,theirProps:l,slot:p,defaultTag:zp,name:"Combobox.Button"})}let Bp="label";function Up(e,t){let r=_e(),{id:n=`headlessui-combobox-label-${r}`,...i}=e,o=gt("Combobox.Label"),a=Xt("Combobox.Label"),s=me(o.labelRef,t);Q(()=>a.registerLabel(n),[n]);let l=O(()=>{var f;return(f=o.inputRef.current)==null?void 0:f.focus({preventScroll:!0})}),c=d.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return le({ourProps:{ref:s,id:n,onClick:l},theirProps:i,slot:c,defaultTag:Bp,name:"Combobox.Label"})}let Hp="ul",Gp=et.RenderStrategy|et.Static;function Kp(e,t){let r=_e(),{id:n=`headlessui-combobox-options-${r}`,hold:i=!1,...o}=e,a=gt("Combobox.Options"),s=me(a.optionsRef,t),l=Hr(),c=l!==null?(l&he.Open)===he.Open:a.comboboxState===0;Q(()=>{var p;a.optionsPropsRef.current.static=(p=e.static)!=null?p:!1},[a.optionsPropsRef,e.static]),Q(()=>{a.optionsPropsRef.current.hold=i},[a.optionsPropsRef,i]),wp({container:a.optionsRef.current,enabled:a.comboboxState===0,accept(p){return p.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});let f=Yt(()=>{var p,b;return(b=a.labelId)!=null?b:(p=a.buttonRef.current)==null?void 0:p.id},[a.labelId,a.buttonRef.current]),h=d.useMemo(()=>({open:a.comboboxState===0,option:void 0}),[a]),m={"aria-labelledby":f,role:"listbox","aria-multiselectable":a.mode===1?!0:void 0,id:n,ref:s};return a.virtual&&a.comboboxState===0&&Object.assign(o,{children:z.createElement(Np,null,o.children)}),le({ourProps:m,theirProps:o,slot:h,defaultTag:Hp,features:Gp,visible:c,name:"Combobox.Options"})}let Zp="li";function Wp(e,t){var r;let n=_e(),{id:i=`headlessui-combobox-option-${n}`,disabled:o=!1,value:a,order:s=null,...l}=e,c=gt("Combobox.Option"),f=Xt("Combobox.Option"),h=c.virtual?c.activeOptionIndex===c.calculateIndex(a):c.activeOptionIndex===null?!1:((r=c.options[c.activeOptionIndex])==null?void 0:r.id)===i,m=c.isSelected(a),p=d.useRef(null),b=ve({disabled:o,value:a,domRef:p,order:s}),y=d.useContext(Aa),x=me(t,p,y?y.measureElement:null),g=O(()=>f.onChange(a));Q(()=>f.registerOption(i,b),[b,i]);let w=d.useRef(!(c.virtual||c.__demoMode));Q(()=>{if(!c.virtual||!c.__demoMode)return;let R=ke();return R.requestAnimationFrame(()=>{w.current=!0}),R.dispose},[c.virtual,c.__demoMode]),Q(()=>{if(!w.current||c.comboboxState!==0||!h||c.activationTrigger===0)return;let R=ke();return R.requestAnimationFrame(()=>{var C,H;(H=(C=p.current)==null?void 0:C.scrollIntoView)==null||H.call(C,{block:"nearest"})}),R.dispose},[p,h,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let $=O(R=>{var C;if(o||(C=c.virtual)!=null&&C.disabled(a))return R.preventDefault();g(),Oa()||requestAnimationFrame(()=>{var H;return(H=c.inputRef.current)==null?void 0:H.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>f.closeCombobox())}),A=O(()=>{var R;if(o||(R=c.virtual)!=null&&R.disabled(a))return f.goToOption(B.Nothing);let C=c.calculateIndex(a);f.goToOption(B.Specific,C)}),P=$a(),E=O(R=>P.update(R)),F=O(R=>{var C;if(!P.wasMoved(R)||o||(C=c.virtual)!=null&&C.disabled(a)||h)return;let H=c.calculateIndex(a);f.goToOption(B.Specific,H,0)}),_=O(R=>{var C;P.wasMoved(R)&&(o||(C=c.virtual)!=null&&C.disabled(a)||h&&(c.optionsPropsRef.current.hold||f.goToOption(B.Nothing)))}),q=d.useMemo(()=>({active:h,selected:m,disabled:o}),[h,m,o]);return le({ourProps:{id:i,ref:x,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":m,disabled:void 0,onClick:$,onFocus:A,onPointerEnter:E,onMouseEnter:E,onPointerMove:F,onMouseMove:F,onPointerLeave:_,onMouseLeave:_},theirProps:l,slot:q,defaultTag:Zp,name:"Combobox.Option"})}let Yp=ae(Mp),Qp=ae(qp),Xp=ae(Vp),Jp=ae(Up),eh=ae(Kp),th=ae(Wp),cr=Object.assign(Yp,{Input:Xp,Button:Qp,Label:Jp,Options:eh,Option:th});function Gr(){let e=d.useRef(!1);return Q(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ho=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function mo(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?(r=i.innerText)!=null?r:"":n;return ho.test(a)&&(a=a.replace(ho,"")),a}function rh(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():mo(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return mo(e).trim()}function nh(e){let t=d.useRef(""),r=d.useRef("");return O(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=rh(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var ih=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ih||{}),oh=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(oh||{}),ah=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ah||{}),sh=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(sh||{});function fn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=Ye(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let lh={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=fn(e),i=Rn(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(a=>{var s;return!a.dataRef.current.disabled&&((s=a.dataRef.current.textValue)==null?void 0:s.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=fn(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=fn(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},fi=d.createContext(null);fi.displayName="ListboxActionsContext";function Jt(e){let t=d.useContext(fi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Jt),r}return t}let pi=d.createContext(null);pi.displayName="ListboxDataContext";function er(e){let t=d.useContext(pi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,er),r}return t}function uh(e,t){return Y(t.type,lh,e,t)}let ch=d.Fragment;function dh(e,t){let{value:r,defaultValue:n,form:i,name:o,onChange:a,by:s=(k,V)=>k===V,disabled:l=!1,horizontal:c=!1,multiple:f=!1,...h}=e;const m=c?"horizontal":"vertical";let p=me(t),[b=f?[]:void 0,y]=wa(r,a,n),[x,g]=d.useReducer(uh,{dataRef:d.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=d.useRef({static:!1,hold:!1}),$=d.useRef(null),A=d.useRef(null),P=d.useRef(null),E=O(typeof s=="string"?(k,V)=>{let oe=s;return(k==null?void 0:k[oe])===(V==null?void 0:V[oe])}:s),F=d.useCallback(k=>Y(_.mode,{1:()=>b.some(V=>E(V,k)),0:()=>E(b,k)}),[b]),_=d.useMemo(()=>({...x,value:b,disabled:l,mode:f?1:0,orientation:m,compare:E,isSelected:F,optionsPropsRef:w,labelRef:$,buttonRef:A,optionsRef:P}),[b,l,f,x]);Q(()=>{x.dataRef.current=_},[_]),ja([_.buttonRef,_.optionsRef],(k,V)=>{var oe;g({type:1}),Ea(V,oi.Loose)||(k.preventDefault(),(oe=_.buttonRef.current)==null||oe.focus())},_.listboxState===0);let q=d.useMemo(()=>({open:_.listboxState===0,disabled:l,value:b}),[_,l,b]),R=O(k=>{let V=_.options.find(oe=>oe.id===k);V&&G(V.dataRef.current.value)}),C=O(()=>{if(_.activeOptionIndex!==null){let{dataRef:k,id:V}=_.options[_.activeOptionIndex];G(k.current.value),g({type:2,focus:B.Specific,id:V})}}),H=O(()=>g({type:0})),U=O(()=>g({type:1})),se=O((k,V,oe)=>k===B.Specific?g({type:2,focus:B.Specific,id:V,trigger:oe}):g({type:2,focus:k,trigger:oe})),S=O((k,V)=>(g({type:5,id:k,dataRef:V}),()=>g({type:6,id:k}))),ne=O(k=>(g({type:7,id:k}),()=>g({type:7,id:null}))),G=O(k=>Y(_.mode,{0(){return y==null?void 0:y(k)},1(){let V=_.value.slice(),oe=V.findIndex(ge=>E(ge,k));return oe===-1?V.push(k):V.splice(oe,1),y==null?void 0:y(V)}})),ue=O(k=>g({type:3,value:k})),X=O(()=>g({type:4})),re=d.useMemo(()=>({onChange:G,registerOption:S,registerLabel:ne,goToOption:se,closeListbox:U,openListbox:H,selectActiveOption:C,selectOption:R,search:ue,clearSearch:X}),[]),ce={ref:p},ie=d.useRef(null),Pe=Be();return d.useEffect(()=>{ie.current&&n!==void 0&&Pe.addEventListener(ie.current,"reset",()=>{y==null||y(n)})},[ie,y]),z.createElement(fi.Provider,{value:re},z.createElement(pi.Provider,{value:_},z.createElement(li,{value:Y(_.listboxState,{0:he.Open,1:he.Closed})},o!=null&&b!=null&&ui({[o]:b}).map(([k,V],oe)=>z.createElement(Ur,{features:Br.Hidden,ref:oe===0?ge=>{var rt;ie.current=(rt=ge==null?void 0:ge.closest("form"))!=null?rt:null}:void 0,...xr({key:k,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:k,value:V})})),le({ourProps:ce,theirProps:h,slot:q,defaultTag:ch,name:"Listbox"}))))}let fh="button";function ph(e,t){var r;let n=_e(),{id:i=`headlessui-listbox-button-${n}`,...o}=e,a=er("Listbox.Button"),s=Jt("Listbox.Button"),l=me(a.buttonRef,t),c=Be(),f=O(x=>{switch(x.key){case D.Space:case D.Enter:case D.ArrowDown:x.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(B.First)});break;case D.ArrowUp:x.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(B.Last)});break}}),h=O(x=>{switch(x.key){case D.Space:x.preventDefault();break}}),m=O(x=>{if(Ra(x.currentTarget))return x.preventDefault();a.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var g;return(g=a.buttonRef.current)==null?void 0:g.focus({preventScroll:!0})})):(x.preventDefault(),s.openListbox())}),p=Yt(()=>{if(a.labelId)return[a.labelId,i].join(" ")},[a.labelId,i]),b=d.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]),y={ref:l,id:i,type:ai(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=a.optionsRef.current)==null?void 0:r.id,"aria-expanded":a.listboxState===0,"aria-labelledby":p,disabled:a.disabled,onKeyDown:f,onKeyUp:h,onClick:m};return le({ourProps:y,theirProps:o,slot:b,defaultTag:fh,name:"Listbox.Button"})}let hh="label";function mh(e,t){let r=_e(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,o=er("Listbox.Label"),a=Jt("Listbox.Label"),s=me(o.labelRef,t);Q(()=>a.registerLabel(n),[n]);let l=O(()=>{var f;return(f=o.buttonRef.current)==null?void 0:f.focus({preventScroll:!0})}),c=d.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled}),[o]);return le({ourProps:{ref:s,id:n,onClick:l},theirProps:i,slot:c,defaultTag:hh,name:"Listbox.Label"})}let bh="ul",vh=et.RenderStrategy|et.Static;function gh(e,t){var r;let n=_e(),{id:i=`headlessui-listbox-options-${n}`,...o}=e,a=er("Listbox.Options"),s=Jt("Listbox.Options"),l=me(a.optionsRef,t),c=Be(),f=Be(),h=Hr(),m=h!==null?(h&he.Open)===he.Open:a.listboxState===0;d.useEffect(()=>{var g;let w=a.optionsRef.current;w&&a.listboxState===0&&w!==((g=Qt(w))==null?void 0:g.activeElement)&&w.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let p=O(g=>{switch(f.dispose(),g.key){case D.Space:if(a.searchQuery!=="")return g.preventDefault(),g.stopPropagation(),s.search(g.key);case D.Enter:if(g.preventDefault(),g.stopPropagation(),a.activeOptionIndex!==null){let{dataRef:w}=a.options[a.activeOptionIndex];s.onChange(w.current.value)}a.mode===0&&(s.closeListbox(),ke().nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})}));break;case Y(a.orientation,{vertical:D.ArrowDown,horizontal:D.ArrowRight}):return g.preventDefault(),g.stopPropagation(),s.goToOption(B.Next);case Y(a.orientation,{vertical:D.ArrowUp,horizontal:D.ArrowLeft}):return g.preventDefault(),g.stopPropagation(),s.goToOption(B.Previous);case D.Home:case D.PageUp:return g.preventDefault(),g.stopPropagation(),s.goToOption(B.First);case D.End:case D.PageDown:return g.preventDefault(),g.stopPropagation(),s.goToOption(B.Last);case D.Escape:return g.preventDefault(),g.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})});case D.Tab:g.preventDefault(),g.stopPropagation();break;default:g.key.length===1&&(s.search(g.key),f.setTimeout(()=>s.clearSearch(),350));break}}),b=Yt(()=>{var g;return(g=a.buttonRef.current)==null?void 0:g.id},[a.buttonRef.current]),y=d.useMemo(()=>({open:a.listboxState===0}),[a]),x={"aria-activedescendant":a.activeOptionIndex===null||(r=a.options[a.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":a.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":a.orientation,id:i,onKeyDown:p,role:"listbox",tabIndex:0,ref:l};return le({ourProps:x,theirProps:o,slot:y,defaultTag:bh,features:vh,visible:m,name:"Listbox.Options"})}let xh="li";function yh(e,t){let r=_e(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...a}=e,s=er("Listbox.Option"),l=Jt("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===n:!1,f=s.isSelected(o),h=d.useRef(null),m=nh(h),p=ve({disabled:i,value:o,domRef:h,get textValue(){return m()}}),b=me(t,h);Q(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let E=ke();return E.requestAnimationFrame(()=>{var F,_;(_=(F=h.current)==null?void 0:F.scrollIntoView)==null||_.call(F,{block:"nearest"})}),E.dispose},[h,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Q(()=>l.registerOption(n,p),[p,n]);let y=O(E=>{if(i)return E.preventDefault();l.onChange(o),s.mode===0&&(l.closeListbox(),ke().nextFrame(()=>{var F;return(F=s.buttonRef.current)==null?void 0:F.focus({preventScroll:!0})}))}),x=O(()=>{if(i)return l.goToOption(B.Nothing);l.goToOption(B.Specific,n)}),g=$a(),w=O(E=>g.update(E)),$=O(E=>{g.wasMoved(E)&&(i||c||l.goToOption(B.Specific,n,0))}),A=O(E=>{g.wasMoved(E)&&(i||c&&l.goToOption(B.Nothing))}),P=d.useMemo(()=>({active:c,selected:f,disabled:i}),[c,f,i]);return le({ourProps:{id:n,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:y,onFocus:x,onPointerEnter:w,onMouseEnter:w,onPointerMove:$,onMouseMove:$,onPointerLeave:A,onMouseLeave:A},theirProps:a,slot:P,defaultTag:xh,name:"Listbox.Option"})}let Sh=ae(dh),wh=ae(ph),Th=ae(mh),Eh=ae(gh),Oh=ae(yh),dr=Object.assign(Sh,{Button:wh,Label:Th,Options:Eh,Option:Oh});function jh(e=0){let[t,r]=d.useState(e),n=Gr(),i=d.useCallback(l=>{n.current&&r(c=>c|l)},[t,n]),o=d.useCallback(l=>!!(t&l),[t]),a=d.useCallback(l=>{n.current&&r(c=>c&~l)},[r,n]),s=d.useCallback(l=>{n.current&&r(c=>c^l)},[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}function $h({onFocus:e}){let[t,r]=d.useState(!0),n=Gr();return t?z.createElement(Ur,{as:"button",type:"button",features:Br.Focusable,onFocus:i=>{i.preventDefault();let o,a=50;function s(){if(a--<=0){o&&cancelAnimationFrame(o);return}if(e()){if(cancelAnimationFrame(o),!n.current)return;r(!1);return}o=requestAnimationFrame(s)}o=requestAnimationFrame(s)}}):null}const _a=d.createContext(null);function Ch(){return{groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=(r=n.get(t))!=null?r:0;n.set(t,i+1);let o=Array.from(n.keys()).indexOf(t);function a(){let s=n.get(t);s>1?n.set(t,s-1):n.delete(t)}return[o,a]}}}function Rh({children:e}){let t=d.useRef(Ch());return d.createElement(_a.Provider,{value:t},e)}function Pa(e){let t=d.useContext(_a);if(!t)throw new Error("You must wrap your component in a ");let r=Fh(),[n,i]=t.current.get(e,r);return d.useEffect(()=>i,[]),n}function Fh(){var e,t,r;let n=(r=(t=(e=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:e.ReactCurrentOwner)==null?void 0:t.current)!=null?r:null;if(!n)return Symbol();let i=[],o=n;for(;o;)i.push(o.index),o=o.return;return"$."+i.join(".")}var Ih=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ih||{}),Ah=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Ah||{}),_h=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(_h||{});let Ph={0(e,t){var r;let n=Ye(e.tabs,f=>f.current),i=Ye(e.panels,f=>f.current),o=n.filter(f=>{var h;return!((h=f.current)!=null&&h.hasAttribute("disabled"))}),a={...e,tabs:n,panels:i};if(t.index<0||t.index>n.length-1){let f=Y(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Y(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(o.length===0)return a;let h=Y(f,{0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])});return{...a,selectedIndex:h===-1?e.selectedIndex:h}}let s=n.slice(0,t.index),l=[...n.slice(t.index),...s].find(f=>o.includes(f));if(!l)return a;let c=(r=n.indexOf(l))!=null?r:e.selectedIndex;return c===-1&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var r;if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],i=Ye([...e.tabs,t.tab],a=>a.current),o=(r=i.indexOf(n))!=null?r:e.selectedIndex;return o===-1&&(o=e.selectedIndex),{...e,tabs:i,selectedIndex:o}},2(e,t){return{...e,tabs:e.tabs.filter(r=>r!==t.tab)}},3(e,t){return e.panels.includes(t.panel)?e:{...e,panels:Ye([...e.panels,t.panel],r=>r.current)}},4(e,t){return{...e,panels:e.panels.filter(r=>r!==t.panel)}}},hi=d.createContext(null);hi.displayName="TabsDataContext";function Rt(e){let t=d.useContext(hi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Rt),r}return t}let mi=d.createContext(null);mi.displayName="TabsActionsContext";function bi(e){let t=d.useContext(mi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,bi),r}return t}function Nh(e,t){return Y(t.type,Ph,e,t)}let kh=d.Fragment;function Dh(e,t){let{defaultIndex:r=0,vertical:n=!1,manual:i=!1,onChange:o,selectedIndex:a=null,...s}=e;const l=n?"vertical":"horizontal",c=i?"manual":"auto";let f=a!==null,h=me(t),[m,p]=d.useReducer(Nh,{selectedIndex:a??r,tabs:[],panels:[]}),b=d.useMemo(()=>({selectedIndex:m.selectedIndex}),[m.selectedIndex]),y=ve(o||(()=>{})),x=ve(m.tabs),g=d.useMemo(()=>({orientation:l,activation:c,...m}),[l,c,m]),w=O(_=>(p({type:1,tab:_}),()=>p({type:2,tab:_}))),$=O(_=>(p({type:3,panel:_}),()=>p({type:4,panel:_}))),A=O(_=>{P.current!==_&&y.current(_),f||p({type:0,index:_})}),P=ve(f?e.selectedIndex:m.selectedIndex),E=d.useMemo(()=>({registerTab:w,registerPanel:$,change:A}),[]);Q(()=>{p({type:0,index:a??r})},[a]),Q(()=>{if(P.current===void 0||m.tabs.length<=0)return;let _=Ye(m.tabs,q=>q.current);_.some((q,R)=>m.tabs[R]!==q)&&A(_.indexOf(m.tabs[P.current]))});let F={ref:h};return z.createElement(Rh,null,z.createElement(mi.Provider,{value:E},z.createElement(hi.Provider,{value:g},g.tabs.length<=0&&z.createElement($h,{onFocus:()=>{var _,q;for(let R of x.current)if(((_=R.current)==null?void 0:_.tabIndex)===0)return(q=R.current)==null||q.focus(),!0;return!1}}),le({ourProps:F,theirProps:s,slot:b,defaultTag:kh,name:"Tabs"}))))}let Mh="div";function Lh(e,t){let{orientation:r,selectedIndex:n}=Rt("Tab.List"),i=me(t);return le({ourProps:{ref:i,role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:Mh,name:"Tabs.List"})}let Vh="button";function zh(e,t){var r,n;let i=_e(),{id:o=`headlessui-tabs-tab-${i}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:f,panels:h}=Rt("Tab"),m=bi("Tab"),p=Rt("Tab"),b=d.useRef(null),y=me(b,t);Q(()=>m.registerTab(b),[m,b]);let x=Pa("tabs"),g=f.indexOf(b);g===-1&&(g=x);let w=g===c,$=O(R=>{var C;let H=R();if(H===kt.Success&&l==="auto"){let U=(C=Qt(b))==null?void 0:C.activeElement,se=p.tabs.findIndex(S=>S.current===U);se!==-1&&m.change(se)}return H}),A=O(R=>{let C=f.map(H=>H.current).filter(Boolean);if(R.key===D.Space||R.key===D.Enter){R.preventDefault(),R.stopPropagation(),m.change(g);return}switch(R.key){case D.Home:case D.PageUp:return R.preventDefault(),R.stopPropagation(),$(()=>wt(C,Fe.First));case D.End:case D.PageDown:return R.preventDefault(),R.stopPropagation(),$(()=>wt(C,Fe.Last))}if($(()=>Y(s,{vertical(){return R.key===D.ArrowUp?wt(C,Fe.Previous|Fe.WrapAround):R.key===D.ArrowDown?wt(C,Fe.Next|Fe.WrapAround):kt.Error},horizontal(){return R.key===D.ArrowLeft?wt(C,Fe.Previous|Fe.WrapAround):R.key===D.ArrowRight?wt(C,Fe.Next|Fe.WrapAround):kt.Error}}))===kt.Success)return R.preventDefault()}),P=d.useRef(!1),E=O(()=>{var R;P.current||(P.current=!0,(R=b.current)==null||R.focus({preventScroll:!0}),m.change(g),Ta(()=>{P.current=!1}))}),F=O(R=>{R.preventDefault()}),_=d.useMemo(()=>({selected:w}),[w]),q={ref:y,onKeyDown:A,onMouseDown:F,onClick:E,id:o,role:"tab",type:ai(e,b),"aria-controls":(n=(r=h[g])==null?void 0:r.current)==null?void 0:n.id,"aria-selected":w,tabIndex:w?0:-1};return le({ourProps:q,theirProps:a,slot:_,defaultTag:Vh,name:"Tabs.Tab"})}let qh="div";function Bh(e,t){let{selectedIndex:r}=Rt("Tab.Panels"),n=me(t),i=d.useMemo(()=>({selectedIndex:r}),[r]);return le({ourProps:{ref:n},theirProps:e,slot:i,defaultTag:qh,name:"Tabs.Panels"})}let Uh="div",Hh=et.RenderStrategy|et.Static;function Gh(e,t){var r,n,i,o;let a=_e(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:f,tabs:h,panels:m}=Rt("Tab.Panel"),p=bi("Tab.Panel"),b=d.useRef(null),y=me(b,t);Q(()=>p.registerPanel(b),[p,b]);let x=Pa("panels"),g=m.indexOf(b);g===-1&&(g=x);let w=g===f,$=d.useMemo(()=>({selected:w}),[w]),A={ref:y,id:s,role:"tabpanel","aria-labelledby":(n=(r=h[g])==null?void 0:r.current)==null?void 0:n.id,tabIndex:w?l:-1};return!w&&((i=c.unmount)==null||i)&&!((o=c.static)!=null&&o)?z.createElement(Ur,{as:"span","aria-hidden":"true",...A}):le({ourProps:A,theirProps:c,slot:$,defaultTag:Uh,features:Hh,visible:w,name:"Tabs.Panel"})}let Kh=ae(zh),Zh=ae(Dh),Wh=ae(Lh),Yh=ae(Bh),Qh=ae(Gh),Bt=Object.assign(Kh,{Group:Zh,List:Wh,Panels:Yh,Panel:Qh});function Xh(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function pn(e,...t){e&&t.length>0&&e.classList.add(...t)}function hn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Jh(e,t){let r=ke();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,h)=>h-f);return c}),s=o+a;if(s!==0){r.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=r.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return r.add(()=>t()),r.dispose}function em(e,t,r,n){let i=r?"enter":"leave",o=ke(),a=n!==void 0?Xh(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Y(i,{enter:()=>t.enter,leave:()=>t.leave}),l=Y(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Y(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return hn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),pn(e,...t.base,...s,...c),o.nextFrame(()=>{hn(e,...t.base,...s,...c),pn(e,...t.base,...s,...l),Jh(e,()=>(hn(e,...t.base,...s),pn(e,...t.base,...t.entered),a()))}),o.dispose}function tm({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let a=Gr(),s=Be(),l=ve(r);Q(()=>{e&&(l.current="enter")},[e]),Q(()=>{let c=ke();s.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&a.current)return c.dispose(),i.current(l.current),c.add(em(f,n.current,l.current==="enter",()=>{c.dispose(),o.current(l.current)})),c.dispose},[r])}function Ze(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Kr=d.createContext(null);Kr.displayName="TransitionContext";var rm=(e=>(e.Visible="visible",e.Hidden="hidden",e))(rm||{});function nm(){let e=d.useContext(Kr);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function im(){let e=d.useContext(Zr);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Zr=d.createContext(null);Zr.displayName="NestingContext";function Wr(e){return"children"in e?Wr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Na(e,t){let r=ve(e),n=d.useRef([]),i=Gr(),o=Be(),a=O((p,b=Qe.Hidden)=>{let y=n.current.findIndex(({el:x})=>x===p);y!==-1&&(Y(b,{[Qe.Unmount](){n.current.splice(y,1)},[Qe.Hidden](){n.current[y].state="hidden"}}),o.microTask(()=>{var x;!Wr(n)&&i.current&&((x=r.current)==null||x.call(r))}))}),s=O(p=>{let b=n.current.find(({el:y})=>y===p);return b?b.state!=="visible"&&(b.state="visible"):n.current.push({el:p,state:"visible"}),()=>a(p,Qe.Unmount)}),l=d.useRef([]),c=d.useRef(Promise.resolve()),f=d.useRef({enter:[],leave:[],idle:[]}),h=O((p,b,y)=>{l.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([x])=>x!==p)),t==null||t.chains.current[b].push([p,new Promise(x=>{l.current.push(x)})]),t==null||t.chains.current[b].push([p,new Promise(x=>{Promise.all(f.current[b].map(([g,w])=>w)).then(()=>x())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=O((p,b,y)=>{Promise.all(f.current[b].splice(0).map(([x,g])=>g)).then(()=>{var x;(x=l.current.shift())==null||x()}).then(()=>y(b))});return d.useMemo(()=>({children:n,register:s,unregister:a,onStart:h,onStop:m,wait:c,chains:f}),[s,a,n,h,m,f,c])}function om(){}let am=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function bo(e){var t;let r={};for(let n of am)r[n]=(t=e[n])!=null?t:om;return r}function sm(e){let t=d.useRef(bo(e));return d.useEffect(()=>{t.current=bo(e)},[e]),t}let lm="div",ka=et.RenderStrategy;function um(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:f,entered:h,leave:m,leaveFrom:p,leaveTo:b,...y}=e,x=d.useRef(null),g=me(x,t),w=(r=y.unmount)==null||r?Qe.Unmount:Qe.Hidden,{show:$,appear:A,initial:P}=nm(),[E,F]=d.useState($?"visible":"hidden"),_=im(),{register:q,unregister:R}=_;d.useEffect(()=>q(x),[q,x]),d.useEffect(()=>{if(w===Qe.Hidden&&x.current){if($&&E!=="visible"){F("visible");return}return Y(E,{hidden:()=>R(x),visible:()=>q(x)})}},[E,x,q,R,$,w]);let C=ve({base:Ze(y.className),enter:Ze(l),enterFrom:Ze(c),enterTo:Ze(f),entered:Ze(h),leave:Ze(m),leaveFrom:Ze(p),leaveTo:Ze(b)}),H=sm({beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s}),U=ii();d.useEffect(()=>{if(U&&E==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,E,U]);let se=P&&!A,S=A&&$&&P,ne=!U||se?"idle":$?"enter":"leave",G=jh(0),ue=O(k=>Y(k,{enter:()=>{G.addFlag(he.Opening),H.current.beforeEnter()},leave:()=>{G.addFlag(he.Closing),H.current.beforeLeave()},idle:()=>{}})),X=O(k=>Y(k,{enter:()=>{G.removeFlag(he.Opening),H.current.afterEnter()},leave:()=>{G.removeFlag(he.Closing),H.current.afterLeave()},idle:()=>{}})),re=Na(()=>{F("hidden"),R(x)},_),ce=d.useRef(!1);tm({immediate:S,container:x,classes:C,direction:ne,onStart:ve(k=>{ce.current=!0,re.onStart(x,k,ue)}),onStop:ve(k=>{ce.current=!1,re.onStop(x,k,X),k==="leave"&&!Wr(re)&&(F("hidden"),R(x))})});let ie=y,Pe={ref:g};return S?ie={...ie,className:gr(y.className,...C.current.enter,...C.current.enterFrom)}:ce.current&&(ie.className=gr(y.className,(n=x.current)==null?void 0:n.className),ie.className===""&&delete ie.className),z.createElement(Zr.Provider,{value:re},z.createElement(li,{value:Y(E,{visible:he.Open,hidden:he.Closed})|G.flags},le({ourProps:Pe,theirProps:ie,defaultTag:lm,features:ka,visible:E==="visible",name:"Transition.Child"})))}function cm(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,a=d.useRef(null),s=me(a,t);ii();let l=Hr();if(r===void 0&&l!==null&&(r=(l&he.Open)===he.Open),![!0,!1].includes(r))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,f]=d.useState(r?"visible":"hidden"),h=Na(()=>{f("hidden")}),[m,p]=d.useState(!0),b=d.useRef([r]);Q(()=>{m!==!1&&b.current[b.current.length-1]!==r&&(b.current.push(r),p(!1))},[b,r]);let y=d.useMemo(()=>({show:r,appear:n,initial:m}),[r,n,m]);d.useEffect(()=>{if(r)f("visible");else if(!Wr(h))f("hidden");else{let $=a.current;if(!$)return;let A=$.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&f("hidden")}},[r,h]);let x={unmount:i},g=O(()=>{var $;m&&p(!1),($=e.beforeEnter)==null||$.call(e)}),w=O(()=>{var $;m&&p(!1),($=e.beforeLeave)==null||$.call(e)});return z.createElement(Zr.Provider,{value:h},z.createElement(Kr.Provider,{value:y},le({ourProps:{...x,as:d.Fragment,children:z.createElement(Da,{ref:s,...x,...o,beforeEnter:g,beforeLeave:w})},theirProps:{},defaultTag:d.Fragment,features:ka,visible:c==="visible",name:"Transition"})))}function dm(e,t){let r=d.useContext(Kr)!==null,n=Hr()!==null;return z.createElement(z.Fragment,null,!r&&n?z.createElement(Fn,{ref:t,...e}):z.createElement(Da,{ref:t,...e}))}let Fn=ae(cm),Da=ae(um),fm=ae(dm),pm=Object.assign(Fn,{Child:fm,Root:Fn});function hm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M5.22 14.78a.75.75 0 0 0 1.06 0l7.22-7.22v5.69a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-.75-.75h-7.5a.75.75 0 0 0 0 1.5h5.69l-7.22 7.22a.75.75 0 0 0 0 1.06Z",clipRule:"evenodd"}))}const mm=d.forwardRef(hm),bm=mm;function vm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const gm=d.forwardRef(vm),Ma=gm;function xm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",clipRule:"evenodd"}))}const ym=d.forwardRef(xm),Sm=ym,vi={label:T.string,organisation:T.string,type:T.string,user:T.string,value:T.string},La={name:T.string.isRequired,id:T.string.isRequired,codelists:T.arrayOf(T.shape(vi)).isRequired};function In({label:e,value:t}){return u.jsx(dr.Option,{className:({active:r})=>je("relative cursor-pointer select-none py-2 pl-10 pr-4",r?"bg-oxford-600 text-white":"text-gray-900"),value:t,children:({selected:r,active:n})=>u.jsxs(u.Fragment,{children:[u.jsx("span",{className:je("block truncate",r?"font-medium":"font-normal"),children:u.jsx("span",{children:e})}),r?u.jsx("span",{className:je("absolute inset-y-0 left-0 flex items-center px-3 z-10",n?"text-white":"text-oxford-600"),children:u.jsx(Ma,{"aria-hidden":"true",className:"h-5 w-5"})}):null]})})}In.propTypes={label:T.string.isRequired,value:T.shape(vi).isRequired};function Va({defaultValue:e,handleChange:t,name:r}){const{formData:n}=Ce();return u.jsx(dr,{name:r,onChange:i=>t(i),value:e,children:u.jsxs("div",{className:"relative mt-1",children:[u.jsx(dr.Button,{className:je("relative w-fit max-w-prose rounded-md border-gray-400 border-2 bg-white py-2 pl-3 pr-10 text-left shadow-sm","focus:outline-none","focus-visible:border-oxford-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300"),children:({value:i})=>u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"block truncate",children:i.label}),u.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2 ",children:u.jsx(Sm,{"aria-hidden":"true",className:"h-5 w-5 text-gray-400"})})]})}),u.jsx(pm,{as:d.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:u.jsxs(dr.Options,{className:"absolute z-10 mt-1 max-h-60 w-fit max-w-prose overflow-auto rounded-md bg-white py-1 text-base divide-y divide-gray-200 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[n.codelist0?u.jsx(In,{label:n.codelist0.label,value:n.codelist0}):null,n.codelist1?u.jsx(In,{label:n.codelist1.label,value:n.codelist1}):null]})})]})})}Va.propTypes={defaultValue:T.shape(vi).isRequired,handleChange:T.func.isRequired,name:T.string.isRequired};function wm(){var h,m;const{dates:{startStr:e,endStr:t}}=Ft(),{formData:r}=Ce(),{errors:n,setFieldTouched:i,setFieldValue:o,touched:a,validateField:s,values:l}=He();function c(p){p===l.codelistA&&(o("codelistA",l.codelistB),o("codelistB",p)),p===l.codelistB&&(o("codelistB",l.codelistA),o("codelistA",p))}function f(p,b,y){s(b),i(b),o(b,p.target.value),i("timeOption"),o("timeOption",ur({[b]:p.target.value,[y]:l==null?void 0:l[y]}))}return u.jsxs("div",{className:"flex flex-col gap-y-1",children:[u.jsx("p",{className:"max-w-prose text-lg",children:Oe[0]}),u.jsx(Va,{defaultValue:(l==null?void 0:l.codelistA)||l.codelist0,handleChange:p=>c(p),name:"codelistA"}),u.jsxs("p",{className:"max-w-prose text-lg grid gap-y-1",children:[Oe[1],u.jsxs("span",{children:[u.jsx("strong",{children:e})," ",Oe[2]," ",u.jsx("strong",{children:t})]}),Oe[3]]}),u.jsxs("p",{className:"max-w-prose text-lg",children:[u.jsx("strong",{className:"block mb-1",children:l.codelistB.label||((h=r.codelist1)==null?void 0:h.label)}),Oe[4]," ",u.jsxs("span",{className:"block mt-1",children:[u.jsx("strong",{children:l.codelistA.label||((m=r.codelist0)==null?void 0:m.label)})," ",Oe[5]]})]}),u.jsxs(zt,{hideLegend:!0,legend:"Select a time scale",children:[u.jsxs(qt,{id:"timeHasValue",label:ur(l),labelClassName:"flex flex-row gap-1 items-center mt-2",name:"timeOption",type:"radio",value:ur(l),children:["up to",u.jsx(Ct,{className:"inline-flex w-[6ch] relative rounded-md border-gray-400 border-2 bg-white p-1 shadow-sm",inputMode:"numeric",max:"52",min:"0",name:"timeValue",onChange:p=>f(p,"timeValue","timeScale"),type:"text"}),u.jsx(Ct,{as:"select",className:"inline-flex w-[12ch] relative rounded-md border-gray-400 border-2 bg-white p-1 shadow-sm",name:"timeScale",onChange:p=>f(p,"timeScale","timeValue"),children:Co.map(({label:p,value:b})=>u.jsx("option",{value:b,children:p},b))}),ya]}),u.jsx(qt,{id:"anyTime",label:Ie,name:"timeOption",type:"radio",value:Ie})]}),n.timeValue&&a.timeValue?u.jsx(Je,{children:n.timeValue}):null]})}const yr=e=>At().shape({label:Ae().required("Select a codelist"),organisation:Ae(),value:Ae().required("Select a codelist"),type:Ae().oneOf(e.map(t=>t.id)).required()}).required("Select a codelist");function Tm(e){return{codelistA:e.codelistA||e.codelist0,codelistB:e.codelistB||e.codelist1,timeOption:e.timeOption===Ie?Ie:ur({timeValue:e.timeValue||5,timeScale:e.timeScale||"years"}),timeValue:e.timeValue||5,timeScale:e.timeScale||"years"}}function Em(){const[,e]=De(),{codelistGroups:t}=Ft(),{formData:r,setFormData:n}=Ce();if(Ht(["codelist0","codelist1"]))return u.jsx(Ut,{to:""});const i=At().shape({codelistA:yr(t),codelistB:yr(t),timeOption:Ae().required(),timeValue:ca().typeError("Amount must be a number").positive("Time value must be a positive number").min(0,"Time scale cannot be less than 0").required("Amount of time is required").test("tenYears","Time scale cannot be longer than 10 years",(o,a)=>{const{timeScale:s,timeOption:l}=a.parent;return l===Ie?!0:!(o===void 0||Number.isNaN(o)||s==="weeks"&&o>522||s==="months"&&o>120||s==="years"&&o>10)}),timeScale:Ae().oneOf(Co.map(o=>o.value)).required()});return u.jsx(Mr,{initialValues:Tm(r),onSubmit:(o,a)=>a.validateForm().then(()=>{const{timeOption:s,timeScale:l,timeValue:c,...f}=o;return s===Ie?(n({...r,timeOption:s,timeEver:"true",timeScale:null,timeValue:null,...f}),e("preview-request")):(n({...r,timeEver:null,...o}),e("preview-request"))}),validateOnBlur:!0,validateOnChange:!0,validateOnMount:!0,validationSchema:i,children:({isValid:o})=>u.jsxs(Zt,{children:[u.jsx(Wt,{}),u.jsx("h2",{className:"text-3xl font-bold mb-3",children:"Report request"}),u.jsx(wm,{}),u.jsx(Ge,{className:"mt-6",disabled:!o,type:"submit",children:"Next"})]})})}function gi({id:e,label:t,name:r,value:n,onClick:i}){return u.jsxs("div",{className:"flex flex-row place-items-baseline gap-x-3 text-lg leading-tight",children:[u.jsx(Ct,{className:"peer cursor-pointer scale-150 top-[1px] relative checked:bg-oxford-600 focus:ring-bn-sun",id:e,name:r,onClick:i,type:"checkbox",value:n}),u.jsx("label",{className:"cursor-pointer touch-manipulation tracking-tight",htmlFor:e,children:t})]})}gi.propTypes={id:T.string.isRequired,label:T.string.isRequired,name:T.string.isRequired,onClick:T.func,value:T.string.isRequired};gi.defaultProps={onClick:()=>null};function Om(){const[,e]=De(),{formData:t,setFormData:r}=Ce();if(Ht(["codelistA","codelistB","timeOption"]))return u.jsx(Ut,{to:""});const n=At().shape({filterPopulation:Ae().oneOf(or.items.map(o=>o.value)).required("Select a filter for the population"),demographics:ma().of(Ae().oneOf(Nt.items.map(o=>o.value))).min(0).max(Nt.items.length)}),i={filterPopulation:t.filterPopulation||"",demographics:t.demographics||[]};return u.jsx(Mr,{initialValues:i,onSubmit:(o,a)=>{a.validateForm().then(()=>{r({...t,...o}),e("analysis-information")})},validateOnMount:!0,validationSchema:n,children:({errors:o,isValid:a,touched:s})=>u.jsxs(Zt,{className:"flex flex-col gap-y-8",children:[u.jsx(Wt,{}),u.jsx("h1",{className:"text-4xl font-bold",children:"Set report filters"}),u.jsxs(zt,{legend:or.label,children:[or.items.map(l=>u.jsx(qt,{id:l.value,label:l.label,name:"filterPopulation",value:l.value},l.value)),o.filterPopulation&&s.filterPopulation?u.jsx(Je,{children:o.filterPopulation}):null]}),u.jsxs(zt,{legend:Nt.label,children:[u.jsx(ni,{children:u.jsx("p",{children:"These should only be selected if they align with your approved project purpose. Selecting more options will increase report processing time."})}),Nt.items.map(l=>u.jsx(gi,{id:l.value,label:l.label,name:"demographics",value:l.value},l.value)),o.demographics&&s.demographics?u.jsx(Je,{children:"Select one or more demographics"}):null]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(Ge,{disabled:!a,type:"submit",children:"Next"})})]})})}function jm(){const{codelistGroups:e}=Ft();return u.jsx(Bt.List,{className:"flex space-x-1 rounded bg-gray-100 p-1 max-w-prose",children:e.map(t=>u.jsx(Bt,{className:({selected:r})=>je("w-full rounded-lg p-1 font-semibold text-oxford-700 leading-5 md:py-2.5","ring-white ring-opacity-60 ring-offset-2 ring-offset-oxford-400 focus:outline-none focus:ring-2",r?"bg-white shadow":"hover:bg-white/[0.12] hover:text-oxford-900"),children:t.name},t.id))})}function $m(e){const t={year:"numeric",month:"short",day:"2-digit"},r=new Date(e);return new Intl.DateTimeFormat("en-GB",t).format(r)}function za({codelistGroup:e,codelistID:t,query:r}){const{values:n}=He(),i=o=>r.length<2?o:o.filter(a=>a.label.toLowerCase().includes(r.toLowerCase()));return r.length<3?u.jsxs("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:["Type ",3-r.length," more characters to search"]}):i(e.codelists).length===0?u.jsx("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:"Nothing found"}):u.jsx(u.Fragment,{children:i(e.codelists.sort((o,a)=>o.label.localeCompare(a.label))).map(o=>u.jsx(cr.Option,{className:({active:a})=>je("relative cursor-pointer select-none py-2 pl-10 pr-4",a?"bg-oxford-600 text-white":"text-gray-900"),value:o,children:({selected:a,active:s})=>{var l;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:je("block truncate",a?"font-medium":"font-normal"),children:[u.jsx("span",{children:o.label}),u.jsxs("dl",{className:`flex flex-row flex-wrap text-sm mt-0.5 ${s?"text-white":"text-gray-600"}`,children:[u.jsxs("div",{className:"flex flex-row gap-1",children:[u.jsx("dt",{children:"From:"})," ",u.jsx("dd",{children:o.organisation?o.organisation:o.user})]}),u.jsxs("div",{className:"flex flex-row gap-1 ml-2 border-l border-l-gray-300 pl-2",children:[u.jsx("dt",{children:"Last updated:"})," ",u.jsx("dd",{children:$m(o.updatedDate)})]})]})]}),a||((l=n[t])==null?void 0:l.value)===o.value?u.jsx("span",{className:je("absolute inset-y-0 left-0 flex items-center pl-3 z-10",s?"text-white":"text-oxford-600"),children:u.jsx(Ma,{"aria-hidden":"true",className:"h-5 w-5"})}):null]})}},o.value))})}za.propTypes={codelistGroup:T.shape(La).isRequired,codelistID:T.string.isRequired,query:T.string.isRequired};function qa({codelistGroup:e,codelistID:t,query:r,setQuery:n}){const{errors:i,setFieldValue:o,setTouched:a,touched:s}=He(),[l,c]=d.useState("");return d.useEffect(()=>i[t]&&s[t]?Bs(i[t])?c(i[t].label):c(i[t]):c(""),[i,s,t]),u.jsx(Bt.Panel,{children:u.jsx(Ct,{name:t,children:({field:f})=>{var h;return u.jsxs("div",{className:"mt-2",children:[u.jsx(cr,{defaultValue:f.value,name:f.name,onChange:m=>{a({...s,[t]:!0}),o(f.name,m)},children:u.jsxs("div",{className:"relative w-full max-w-prose",children:[u.jsx(cr.Input,{autoComplete:"off",autoCorrect:"false",className:je("block w-full px-3 py-2 border-2 border-gray-400 rounded-md shadow-sm placeholder-gray-400","focus:cursor-text focus:outline-none focus:ring-oxford-500 focus:border-oxford-500"),displayValue:m=>m.label,onChange:m=>n(m.target.value),placeholder:"Type 3 or more characters to find a codelist"}),u.jsx(cr.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base divide-y divide-gray-200 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:u.jsx(za,{codelistGroup:e,codelistID:t,query:r})})]})}),l?u.jsx(Je,{children:l}):null,(h=f==null?void 0:f.value)!=null&&h.value?u.jsx("ul",{className:"text-sm mt-2",children:u.jsx("li",{children:u.jsxs("a",{className:"text-oxford-600 font-semibold underline underline-offset-1 transition-colors hover:text-oxford-700 hover:no-underline focus:text-oxford-900 focus:no-underline",href:`https://www.opencodelists.org/codelist/${f.value.value}`,rel:"noopener noreferrer",target:"_blank",children:["View “",f.value.label,"” codelist",u.jsx(bm,{className:"inline h-4 -mt-0.5",height:20,width:20})]})})}):null]})}})},e.id)}qa.propTypes={codelistGroup:T.shape(La).isRequired,codelistID:T.string.isRequired,query:T.string.isRequired,setQuery:T.func.isRequired};function An({id:e,label:t}){const{setFieldValue:r}=He(),{formData:n}=Ce(),{codelistGroups:i}=Ft(),[o,a]=d.useState(""),s=`codelist${e}`,l=i.findIndex(c=>{var f;return c.id===((f=n==null?void 0:n[s])==null?void 0:f.type)});return u.jsxs(Bt.Group,{as:"div",defaultIndex:l!==-1?l:0,onChange:()=>{a(""),r(s,{})},children:[u.jsx("h2",{className:"text-2xl font-bold tracking-tight mb-2 md:mb-1",children:t}),u.jsx(jm,{}),u.jsx(Bt.Panels,{children:i.map(c=>u.jsx(qa,{codelistGroup:c,codelistID:s,query:o,setQuery:a},c.id))})]})}An.propTypes={id:T.number.isRequired,label:T.string.isRequired};function Cm(){const{formData:e,setFormData:t}=Ce(),{codelistGroups:r}=Ft(),[,n]=De(),i=At({codelist0:yr(r),codelist1:yr(r).test("compare_codelists","Codelists cannot be the same, please change one codelist",(a,s)=>Object.entries(s.parent.codelist0).toString()!==Object.entries(a).toString())}),o={codelist0:e.codelist0||"",codelist1:e.codelist1||""};return u.jsx(Mr,{initialValues:o,onSubmit:(a,s)=>{s.validateForm().then(()=>(t({...e,...a,codelistA:null,codelistB:null}),n("build-query")))},validateOnMount:!0,validationSchema:i,children:({isValid:a})=>u.jsxs(Zt,{className:"flex flex-col gap-y-12",children:[u.jsx(Wt,{}),u.jsx(An,{id:0,label:"Select a codelist"}),u.jsx(An,{id:1,label:"Select a second codelist"}),u.jsx(Ge,{disabled:!a,type:"submit",children:"Next"})]})})}function Rm(){const[,e]=De();return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"prose prose-blue",children:[u.jsx("p",{className:"text-lg",children:"Requesting an analysis requires you to select two SNOMED CT or dm+d codelists to see how they are used in combination over time."}),u.jsx("p",{className:"text-lg",children:"To make sure this is the right tool for you, check that you understand the following terms before continuing."}),u.jsx("h3",{children:"Codelist"}),u.jsx("p",{children:"A codelist is a set of codes that can be recorded in clinical systems. Codelists are used to select patients with activities and conditions of interest."}),u.jsx("p",{children:"Any codelist you require in your Analysis Request must:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"use either the SNOMED CT or dm+d coding system"}),u.jsxs("li",{children:["be published on"," ",u.jsx("a",{href:"https://www.opencodelists.org/",rel:"noopener noreferrer",target:"_blank",children:"OpenCodelists"})]})]}),u.jsx("p",{children:"You should review the codelists you wish to use on OpenCodelists and confirm it is suitable for your request before you start."}),u.jsx("p",{children:"Speak to your co-pilot if you can’t find a codelist you want to use, or you wish to add a new codelist to OpenCodelists."}),u.jsx("h3",{children:"SNOMED CT"}),u.jsxs("p",{children:[u.jsx("a",{href:"https://digital.nhs.uk/services/terminology-and-classifications/snomed-ct",rel:"noopener noreferrer",target:"_blank",children:"SNOMED CT"})," ","is a systematically organised computer-processable collection of medical terms used in clinical documentation and reporting. It provides a consistent vocabulary for recording patient clinical information across the NHS and helps ensure data is recorded consistently and accurately."]}),u.jsx("p",{children:"SNOMED CT codelists can query data related to recording of events such as:"}),u.jsxs("ul",{children:[u.jsxs("li",{children:[u.jsx("strong",{children:"Condition Diagnoses "}),"— for example: Crohn’s Disease, Bipolar disorder"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Symptoms "}),"— for example: Headache, Blood in urine"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Test Results "}),"— for example: Potassium level, Abnormal ECG"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Procedures "}),"— for example: Coronary artery bypass graft, Hysterectomy"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Activities "}),"— for example: Medication review"]})]}),u.jsx("h3",{children:"dm+d"}),u.jsxs("p",{children:[u.jsx("a",{href:"https://www.nhsbsa.nhs.uk/pharmacies-gp-practices-and-appliance-contractors/dictionary-medicines-and-devices-dmd",rel:"noopener noreferrer",target:"_blank",children:"dm+d"})," ","is a dictionary of descriptions and codes which represent medicines and devices in use across the NHS."]}),u.jsx("p",{children:"dm+d codelists can query data related to prescriptions that have been issued for medicines or devices, for example: a prescription for Paracetamol 500mg tablets or for a Salbutamol 100micrograms/dose inhaler."})]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(Ge,{onClick:()=>e("find-codelists"),children:"Next"})})]})}function xi({timeOption:e,timeScale:t,timeValue:r}){const n=e==="at any time prior."?"Any time":`${r} ${t}`;return u.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 415 233",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",children:[u.jsx("path",{className:"fill-gray-300",d:"M194 52.03h6V157h-6zM394 52h6v105h-6z"}),u.jsx("path",{className:"fill-gray-500",d:"M3.9 99.9c-.6.5-.6 1.5 0 2l9.35 9.6c.26.2.57.3.89.3a1.5 1.5 0 0 0 1.18-2.4l-8.37-8.5 8.37-8.5a1.5 1.5 0 0 0-1.18-2.4c-.32 0-.63.1-.89.3l-9.46 9.5.1.1Zm189.1 2c.6-.5.6-1.5 0-2l-9.35-9.6c-.26-.2-.57-.3-.89-.3a1.5 1.5 0 0 0-1.18 2.4l8.37 8.5-8.37 8.5a1.5 1.5 0 0 0 1.18 2.4c.32 0 .63-.1.89-.3l9.46-9.5-.1-.1Zm-188.12.5h187.14v-3H4.88v3Z",fillRule:"nonzero"}),u.jsx("path",{className:"fill-green-600 stroke-green-600",d:"M1 128c-.6.5-.6 1.5 0 2l9.5 9.6a1.5 1.5 0 0 0 2.1-2.1L4.1 129l8.5-8.5a1.5 1.5 0 0 0-2.1-2.1l-9.6 9.5.1.1Zm392 2c.6-.5.6-1.5 0-2l-9.5-9.6a1.5 1.5 0 0 0-2.1 2.1l8.5 8.5-8.5 8.5a1.5 1.5 0 0 0 2.1 2.1l9.6-9.5-.1-.1Zm-391 .5h390v-3H2v3Z",fillRule:"nonzero",strokeWidth:"2",transform:"matrix(.99262 0 0 1 2.9 1.9)"}),u.jsx("path",{className:"fill-bn-ribbon-300 stroke-bn-ribbon-700",d:"M297 97.4 284.4 85l-3.5 3.5 12.5 12.5-12.4 12.3 3.5 3.5 12.4-12.4 12.4 12.4 3.5-3.5-12.4-12.4 12.4-12.4-3.5-3.5-12.4 12.4h.1Z"}),u.jsx("path",{className:"fill-oxford-300",d:"M296 74.55c.5.6 1.5.6 2 0l9.6-9.5a1.5 1.5 0 0 0-2.1-2.1l-8.5 8.5-8.5-8.5a1.5 1.5 0 0 0-2.1 2.1l9.5 9.6.1-.1Zm-.5-71v70h3v-70h-3ZM50 150.6c-.2-.8-1-1.3-1.8-1l-13 3.4a1.54 1.54 0 0 0 .7 3l11.6-3.2 3.1 11.6a1.5 1.5 0 0 0 2.9-.7l-3.5-13v-.1ZM3.3 232.4l46.6-80.6-2.6-1.6L.7 231l2.6 1.5v-.1Z",fillRule:"nonzero"}),u.jsx("text",{fontSize:"12",x:"177",y:"170",children:"Start of"}),u.jsx("text",{fontSize:"12",x:"180",y:"183",children:"month"}),u.jsx("text",{fontSize:"12",x:"379",y:"170",children:"End of"}),u.jsx("text",{fontSize:"12",x:"380",y:"183",children:"month"}),u.jsx("text",{fontSize:"12",x:"67",y:"88.63",children:n})]})}xi.propTypes={timeOption:T.string.isRequired,timeScale:T.string,timeValue:T.number};xi.defaultProps={timeScale:null,timeValue:null};function Fm(){const[,e]=De(),{formData:t}=Ce();return Ht(["codelistA","codelistB","timeOption"])?u.jsx(Ut,{to:""}):u.jsxs(u.Fragment,{children:[u.jsx(xa,{}),u.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Preview your request"}),u.jsx("div",{className:"px-4 py-24",children:u.jsxs("div",{className:"relative",children:[u.jsxs("p",{className:"absolute max-w-[28ch] text-center -translate-y-[80%] top-0 right-0 border-2 border-oxford-300 bg-slate-50 p-2",children:["Individual has qualifying event from:",u.jsx("br",{}),u.jsx("strong",{children:t.codelistA.label})]}),u.jsx(xi,{timeOption:t.timeOption,timeScale:t.timeScale,timeValue:t.timeValue}),u.jsxs("p",{className:"absolute max-w-[28ch] text-center bottom-0 translate-y-[80%] left-0 border-2 border-oxford-300 bg-slate-50 p-2",children:["Individual ALSO has an event from:",u.jsx("br",{}),u.jsx("strong",{children:t.codelistB.label})]})]})}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-16",children:u.jsx(Ge,{onClick:()=>e("filter-request"),children:"Next"})})]})}function Tt({title:e,children:t,page:r}){const[,n]=De();return u.jsxs("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[u.jsx("dt",{className:"text-lg font-bold text-gray-700 md:text-base",children:e}),u.jsxs("dd",{className:"mt-1 flex text-gray-900 sm:col-span-2 sm:mt-0",children:[u.jsx("span",{className:"flex-grow break-words",children:t}),u.jsx("span",{className:"ml-4 flex-shrink-0",children:u.jsx("button",{className:"rounded-md bg-white font-medium text-oxford-600 hover:text-oxford-500 focus:outline-none focus:ring-2 focus:ring-oxford-500 focus:ring-offset-2",onClick:()=>n(r),type:"button",children:"Edit"})})]})]})}Tt.propTypes={title:T.string.isRequired,children:T.node.isRequired,page:T.string.isRequired};function Im(){var b,y,x,g,w;const{basePath:e,csrfToken:t,dates:{startISO:r,endISO:n,startStr:i,endStr:o}}=Ft(),{formData:a}=Ce(),[s,l]=d.useState(!1),[c,f]=d.useState("");if(Ht(["codelistA","codelistB","timeOption","filterPopulation","title","purpose"]))return u.jsx(Ut,{to:""});const h=()=>{const{codelistA:$,codelistB:A,timeOption:P,timeScale:E,timeValue:F,filterPopulation:_,demographics:q,title:R,purpose:C}=a;return Hs({codelistA:{label:$.label,type:$.type,value:$.value},codelistB:{label:A.label,type:A.type,value:A.value},startDate:r.slice(0,10),endDate:n.slice(0,10),timeEver:P===Ie?"true":null,timeScale:P===Ie?void 0:E,timeValue:P===Ie?void 0:F,filterPopulation:_,demographics:q,title:R,purpose:C})},m=async()=>{l(!0),f("");const $=JSON.stringify(h());wi(P=>{P.setLevel("debug"),Jr("formData",$),Ti("Submitting analysis request")});const A=await fetch(`${e}publish`,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":t},body:$});if(!A.ok){l(!1);const P=`An error has occurred: ${A.status} - ${A.statusText}`;throw f(P),new Error(P)}ti(),wi(P=>{P.setLevel("debug"),Jr("formData",$),Jr("response",A.url),Ti("Analysis ok, redirecting")}),window.location.href=A.url},p=a.timeOption===Ie?Ie:`up to ${a.timeValue} ${a.timeScale} ${ya}`;return u.jsxs(u.Fragment,{children:[u.jsx(xa,{}),u.jsx("h2",{className:"text-4xl font-bold mb-6",children:"Review your request"}),u.jsx("div",{className:"mt-5 border-t border-gray-200",children:u.jsxs("dl",{className:"divide-y divide-gray-200",children:[u.jsxs(Tt,{page:"find-codelists",title:"Codelists",children:[(b=a.codelist0)==null?void 0:b.label,",",u.jsx("br",{}),(y=a.codelist1)==null?void 0:y.label]}),(x=a.codelistA)!=null&&x.label&&((g=a.codelistB)!=null&&g.label)?u.jsxs(Tt,{page:"build-query",title:"Report request",children:[` ${Oe[0]} `,u.jsx("strong",{children:a.codelistA.label}),` ${Oe[1]} `,u.jsx("strong",{children:i})," ",Oe[2]," ",u.jsx("strong",{children:o}),` ${Oe[3]} `,u.jsx("strong",{children:a.codelistB.label}),` ${Oe[4]} `,u.jsx("strong",{children:` ${a.codelistA.label}`}),` ${Oe[5]} ${p}`]}):null,u.jsx(Tt,{page:"filter-request",title:"Filter population",children:or.items.filter($=>$.value===a.filterPopulation)[0].label}),u.jsx(Tt,{page:"filter-request",title:"Break down the report by demographics",children:a.demographics.length?u.jsx("ul",{children:(w=a.demographics)==null?void 0:w.map($=>{var A;return u.jsx("li",{children:(A=Nt.items.find(P=>(P==null?void 0:P.value)===$))==null?void 0:A.label},$)})}):u.jsx("p",{children:"No demographics selected"})}),u.jsxs(Tt,{page:"analysis-information",title:"Analysis information",children:[u.jsxs("p",{className:"mb-4",children:[u.jsx("strong",{children:"Title: "}),u.jsx("br",{}),a.title]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Description: "}),u.jsx("br",{}),a.purpose]})]})]})}),u.jsxs("section",{className:"prose prose-blue mt-8 pt-6 border-t max-w-full",children:[u.jsx("h2",{className:"sr-only",children:"Read and agree"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Your analyses will be run on primary care patient records for approximately 44% of the English population"}),u.jsx("li",{children:"The analysis you are requesting may take up to 5 days to return results"}),u.jsx("li",{children:"The time for the analysis to generate may vary significantly dependent on current loads on our servers and current demand for our disclosure checking service"}),u.jsx("p",{children:"By making this request you are agreeing:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"That your request falls within your approved project purpose"}),u.jsx("li",{children:"To abide by the Terms and Conditions you signed previously"}),u.jsx("li",{children:"That the contents of this request, along with your name and email address, will be publicly available"})]})]})]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(Ge,{disabled:s,onClick:m,type:"submit",children:s?u.jsxs(u.Fragment,{children:[u.jsxs("svg",{className:"h-5 w-5 flex-1 animate-spin stroke-current stroke-[3] mr-2",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{className:"stroke-current opacity-25",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"}),u.jsx("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 14.7255 3.09032 17.1962 4.85857 19"})]}),"Submitting"]}):"Submit request"})}),c?u.jsx(Je,{children:c}):null]})}function Am(){const[e]=De();return d.useEffect(()=>{window.scrollTo(0,0)},[e]),null}var _m={BASE_URL:"/static/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const yi=document.getElementById("osi");if(!yi)throw new Error("Failed to find the root element");const Pm=ts(yi),{dataset:at}=yi,Nm={basePath:"Basename",csrfToken:"CSRF Token",dateEnd:"End date",dateStart:"Start date",events:"Events codelist data",medications:"Medications codelist data"};Object.entries(Nm).map(([e,t])=>{if(!at[e])throw new Error(`${t} not provided`);return null});rs({dsn:_m.VITE_SENTRY_DSN,tracesSampleRate:1});Pm.render(u.jsx(z.StrictMode,{children:u.jsx(Ln.Provider,{value:Us({dataset:at}),children:u.jsx($o,{children:u.jsxs(Vs,{base:at.basePath,children:[u.jsx(Am,{}),u.jsx(Ro,{basePath:at.basePath,csrfToken:at.csrfToken,events:at.events,medications:at.medications,children:u.jsxs(zs,{children:[u.jsx(Ke,{path:"/",children:u.jsx(Rm,{})}),u.jsx(Ke,{path:"find-codelists",children:u.jsx(Cm,{})}),u.jsx(Ke,{path:"build-query",children:u.jsx(Em,{})}),u.jsx(Ke,{path:"preview-request",children:u.jsx(Fm,{})}),u.jsx(Ke,{path:"filter-request",children:u.jsx(Om,{})}),u.jsx(Ke,{path:"analysis-information",children:u.jsx(Wf,{})}),u.jsx(Ke,{path:"review-request",children:u.jsx(Im,{})}),u.jsx(Ke,{children:u.jsxs("div",{className:"prose",children:[u.jsx("h2",{children:"An error occurred"}),u.jsx("p",{className:"lead",children:"You request was not submitted."}),u.jsxs("p",{children:["Please try again, or"," ",u.jsx("a",{href:"mailto:team@opensafely.org",children:"email team@opensafely.org"}),"."]})]})})]})})]})})})}))});export default km(); diff --git a/assets/dist/assets/interactive-kf6mRxZ3.js b/assets/dist/assets/interactive-kf6mRxZ3.js deleted file mode 100644 index a23266d4..00000000 --- a/assets/dist/assets/interactive-kf6mRxZ3.js +++ /dev/null @@ -1,75 +0,0 @@ -var Xa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);import{r as d,e as mn,p as T,j as u,P as Ja,a as es,R as z,w as wi,s as Jr,b as Ti,c as ts,i as rs}from"./index-xG0evL3U.js";import{g as vo}from"./_commonjsHelpers-4gQjN7DL.js";var Nm=Xa((Se,we)=>{var go={exports:{}},Z={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var fe=typeof Symbol=="function"&&Symbol.for,_n=fe?Symbol.for("react.element"):60103,Pn=fe?Symbol.for("react.portal"):60106,Sr=fe?Symbol.for("react.fragment"):60107,wr=fe?Symbol.for("react.strict_mode"):60108,Tr=fe?Symbol.for("react.profiler"):60114,Er=fe?Symbol.for("react.provider"):60109,Or=fe?Symbol.for("react.context"):60110,Nn=fe?Symbol.for("react.async_mode"):60111,jr=fe?Symbol.for("react.concurrent_mode"):60111,$r=fe?Symbol.for("react.forward_ref"):60112,Cr=fe?Symbol.for("react.suspense"):60113,ns=fe?Symbol.for("react.suspense_list"):60120,Rr=fe?Symbol.for("react.memo"):60115,Fr=fe?Symbol.for("react.lazy"):60116,is=fe?Symbol.for("react.block"):60121,os=fe?Symbol.for("react.fundamental"):60117,as=fe?Symbol.for("react.responder"):60118,ss=fe?Symbol.for("react.scope"):60119;function Te(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _n:switch(e=e.type,e){case Nn:case jr:case Sr:case Tr:case wr:case Cr:return e;default:switch(e=e&&e.$$typeof,e){case Or:case $r:case Fr:case Rr:case Er:return e;default:return t}}case Pn:return t}}}function xo(e){return Te(e)===jr}Z.AsyncMode=Nn;Z.ConcurrentMode=jr;Z.ContextConsumer=Or;Z.ContextProvider=Er;Z.Element=_n;Z.ForwardRef=$r;Z.Fragment=Sr;Z.Lazy=Fr;Z.Memo=Rr;Z.Portal=Pn;Z.Profiler=Tr;Z.StrictMode=wr;Z.Suspense=Cr;Z.isAsyncMode=function(e){return xo(e)||Te(e)===Nn};Z.isConcurrentMode=xo;Z.isContextConsumer=function(e){return Te(e)===Or};Z.isContextProvider=function(e){return Te(e)===Er};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_n};Z.isForwardRef=function(e){return Te(e)===$r};Z.isFragment=function(e){return Te(e)===Sr};Z.isLazy=function(e){return Te(e)===Fr};Z.isMemo=function(e){return Te(e)===Rr};Z.isPortal=function(e){return Te(e)===Pn};Z.isProfiler=function(e){return Te(e)===Tr};Z.isStrictMode=function(e){return Te(e)===wr};Z.isSuspense=function(e){return Te(e)===Cr};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sr||e===jr||e===Tr||e===wr||e===Cr||e===ns||typeof e=="object"&&e!==null&&(e.$$typeof===Fr||e.$$typeof===Rr||e.$$typeof===Er||e.$$typeof===Or||e.$$typeof===$r||e.$$typeof===os||e.$$typeof===as||e.$$typeof===ss||e.$$typeof===is)};Z.typeOf=Te;go.exports=Z;var ls=go.exports,yo=ls,us={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},So={};So[yo.ForwardRef]=us;So[yo.Memo]=cs;var wo={exports:{}},To={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var jt=d;function ds(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fs=typeof Object.is=="function"?Object.is:ds,ps=jt.useState,hs=jt.useEffect,ms=jt.useLayoutEffect,bs=jt.useDebugValue;function vs(e,t){var r=t(),n=ps({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return ms(function(){i.value=r,i.getSnapshot=t,en(i)&&o({inst:i})},[e,r,t]),hs(function(){return en(i)&&o({inst:i}),e(function(){en(i)&&o({inst:i})})},[e]),bs(r),r}function en(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!fs(e,r)}catch{return!0}}function gs(e,t){return t()}var xs=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gs:vs;To.useSyncExternalStore=jt.useSyncExternalStore!==void 0?jt.useSyncExternalStore:xs;wo.exports=To;var ys=wo.exports;const{useEffect:Ss,useLayoutEffect:ws,useRef:Ts,useInsertionEffect:Es}=mn,Os=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eo=Os?ws:Ss,Oo=Es||Eo,kn=e=>{const t=Ts([e,(...r)=>t[0](...r)]).current;return Oo(()=>{t[0]=e}),t[1]},js=(e="",t=location.pathname)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",$s=(e,t="")=>e[0]==="~"?e.slice(1):t+e,Cs="popstate",Dn="pushState",Mn="replaceState",Rs="hashchange",Ei=[Cs,Dn,Mn,Rs],Fs=e=>{for(const t of Ei)addEventListener(t,e);return()=>{for(const t of Ei)removeEventListener(t,e)}},Is=(e,t)=>ys.useSyncExternalStore(Fs,e,t),Oi=()=>location.pathname,As=({ssrPath:e}={})=>Is(Oi,e?()=>e:Oi),_s=(e,{replace:t=!1}={})=>history[t?Mn:Dn](null,"",e),Ps=(e={})=>[js(e.base,As(e)),kn((t,r)=>_s($s(t,e.base),r))];if(typeof history<"u")for(const e of[Dn,Mn]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}function Ns(e=Ds){let t={};const r=n=>t[n]||(t[n]=e(n));return(n,i)=>{const{regexp:o,keys:a}=r(n||""),s=o.exec(i);return s?[!0,a.reduce((c,f,h)=>(c[f.name]=s[h+1],c),{})]:[!1,null]}}const ji=e=>e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),ks=(e,t,r)=>{let n=e?"((?:[^\\/]+?)(?:\\/(?:[^\\/]+?))*)":"([^\\/]+?)";return t&&r&&(n="(?:\\/"+n+")"),n+(t?"?":"")},Ds=e=>{const t=/:([A-Za-z0-9_]+)([?+*]?)/g;let r=null,n=0,i=[],o="";for(;(r=t.exec(e))!==null;){const[a,s,l]=r,c=l==="+"||l==="*",f=l==="?"||l==="*",h=f&&e[r.index-1]==="/"?1:0,m=e.substring(n,r.index-h);i.push({name:s}),n=t.lastIndex,o+=ji(m)+ks(c,f,h)}return o+=ji(e.substring(n)),{keys:i,regexp:new RegExp("^"+o+"(?:\\/)?$","i")}},bn={hook:Ps,matcher:Ns(),base:""},jo=d.createContext(bn),Ir=()=>d.useContext(jo),Ar=e=>e.hook(e),De=()=>Ar(Ir()),Ms=e=>{const t=Ir(),[r]=Ar(t);return t.matcher(e,r)},Ls=d.createContext({params:{}}),Vs=({hook:e,matcher:t,ssrPath:r,base:n="",parent:i,children:o})=>{const a=(l,c=i||bn)=>(l.hook=e||c.hook,l.matcher=t||c.matcher,l.ssrPath=r||c.ssrPath,l.ownBase=n,l.parent=i,l),[s]=d.useState(()=>a({get base(){return(s.parent||bn).base+s.ownBase}}));return Oo(()=>{a(s)}),d.createElement(jo.Provider,{value:s,children:o})},$i=(e,t)=>d.createElement(Ls.Provider,{value:{params:e},children:t}),Ke=({path:e,match:t,component:r,children:n})=>{const i=Ms(e),[o,a]=t||i;return o?r?$i(a,d.createElement(r,{params:a})):$i(a,typeof n=="function"?n(a):n):null};d.forwardRef((e,t)=>{const r=Ir(),[,n]=Ar(r),{to:i,href:o=i,children:a,onClick:s}=e,l=kn(h=>{h.ctrlKey||h.metaKey||h.altKey||h.shiftKey||h.button!==0||(s&&s(h),h.defaultPrevented||(h.preventDefault(),n(i||o,e)))}),c={href:o[0]==="~"?o.slice(1):r.base+o,onClick:l,to:null,ref:t},f=d.isValidElement(a)?a:d.createElement("a",e);return d.cloneElement(f,c)});const vn=e=>Array.isArray(e)?[].concat(...e.map(t=>t&&t.type===d.Fragment?vn(t.props.children):vn(t))):[e],zs=({children:e,location:t})=>{const r=Ir(),n=r.matcher,[i]=Ar(r);for(const o of vn(e)){let a=0;if(d.isValidElement(o)&&(a=o.props.path?n(o.props.path,t||i):[!0,{}])[0])return d.cloneElement(o,{match:a})}return null},Ut=e=>{const{to:t,href:r=t}=e,[,n]=De(),i=kn(()=>n(t||r,e));return Eo(()=>{i()},[]),null},Ln=d.createContext({basePath:"",csrfToken:"",codelistGroups:[]});Ln.displayName="AppData";function Ft(){const e=d.useContext(Ln);if(e===void 0)throw new Error("useAppData must be used within a AppData.Provider component");return e}const Vn=d.createContext();Vn.displayName="FormData";function $o({children:e}){const[t,r]=d.useState({}),n=d.useMemo(()=>({formData:t,setFormData:r}),[t]);return u.jsx(Vn.Provider,{value:n,children:e})}function Ce(){const e=d.useContext(Vn);if(e===void 0)throw new Error("useFormData must be used within a FormData.Provider component");return e}$o.propTypes={children:T.element.isRequired};const qs=({dateStart:e,dateEnd:t})=>{const r=new Date(e),n=new Date(t),i={year:"numeric",month:"long",day:"numeric"};return{endISO:n.toISOString(),endStr:n.toLocaleDateString("en-GB",i),startISO:r.toISOString(),startStr:r.toLocaleDateString("en-GB",i)}},Co=[{label:"Weeks",value:"weeks"},{label:"Months",value:"months"},{label:"Years",value:"years"}],or={label:"Filter the population",items:[{label:"All people",value:"all"},{label:"Adults only",value:"adults"},{label:"Children only",value:"children"}]},Nt={label:"Break down the report by demographics",items:[{label:"Sex",value:"sex"},{label:"Age",value:"age"},{label:"Ethnicity",value:"ethnicity"},{label:"Index of Multiple Deprivation (IMD)",value:"imd"},{label:"Region",value:"region"}]};function je(...e){return e.filter(Boolean).join(" ")}function Ci(e){const t=document.getElementById(e);return t!=null&&t.textContent?JSON.parse(t==null?void 0:t.textContent).map(i=>({label:i.name,organisation:i.organisation,type:e.slice(9,e.length-1),user:i.user,value:i.slug,updatedDate:i.updated_date})):[]}function Ht(e){const{formData:t}=Ce(),r=[];return e.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)||r.push(n)}),!!r.length}function Bs(e){return!!e&&e.constructor===Object}function Us({dataset:{basePath:e,csrfToken:t,events:r,medications:n,dateStart:i,dateEnd:o}}){return{basePath:e,csrfToken:t,codelistGroups:[{name:"SNOMED CT",id:"event",codelists:Ci(r)},{name:"dm+d",id:"medication",codelists:Ci(n)}],dates:{...qs({dateStart:i,dateEnd:o})}}}const Hs=e=>(Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e);function Ro({children:e}){const[t]=De(),r=t==="/",n=t==="/success";return u.jsxs("main",{className:"min-h-[66vh] flex-grow pb-12 bg-gray-100",children:[u.jsxs("div",{className:"mb-6 mt-3 flex flex-col gap-y-2 text-left md:mt-0",children:[u.jsx("h1",{className:"text-3xl tracking-tight break-words md:text-4xl font-bold text-gray-900",children:"Interactive request"}),u.jsx("p",{className:"font-lg text-gray-600",children:"Make a new request for an interactive report."})]}),u.jsx("section",{className:"max-w-3xl relative",children:u.jsxs("div",{className:je("bg-white p-6 shadow rounded",!r&&!n?"pt-12":null),children:[!r&&!n?u.jsx("button",{className:je("absolute top-0 left-0 text-sm font-semibold py-1 pl-2 pr-3 flex text-white bg-oxford-800 rounded-br transition-colors","hover:text-oxford-50 hover:bg-oxford-700","focus-within:text-oxford-50 focus-within:bg-oxford-700"),onClick:()=>window.history.back(),type:"button",children:"← Back"}):null,e]})})]})}Ro.propTypes={children:Ja.node.isRequired};var Gs=function(t){return Ks(t)&&!Zs(t)};function Ks(e){return!!e&&typeof e=="object"}function Zs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qs(e)}var Ws=typeof Symbol=="function"&&Symbol.for,Ys=Ws?Symbol.for("react.element"):60103;function Qs(e){return e.$$typeof===Ys}function Xs(e){return Array.isArray(e)?[]:{}}function fr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Mt(Xs(e),e,t):e}function Js(e,t,r){return e.concat(t).map(function(n){return fr(n,r)})}function el(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(i){n[i]=fr(e[i],r)}),Object.keys(t).forEach(function(i){!r.isMergeableObject(t[i])||!e[i]?n[i]=fr(t[i],r):n[i]=Mt(e[i],t[i],r)}),n}function Mt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Js,r.isMergeableObject=r.isMergeableObject||Gs;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):el(e,t,r):fr(t,r)}Mt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Mt(n,i,r)},{})};var gn=Mt,Fo=typeof global=="object"&&global&&global.Object===Object&&global,tl=typeof self=="object"&&self&&self.Object===Object&&self,Me=Fo||tl||Function("return this")(),Xe=Me.Symbol,Io=Object.prototype,rl=Io.hasOwnProperty,nl=Io.toString,Pt=Xe?Xe.toStringTag:void 0;function il(e){var t=rl.call(e,Pt),r=e[Pt];try{e[Pt]=void 0;var n=!0}catch{}var i=nl.call(e);return n&&(t?e[Pt]=r:delete e[Pt]),i}var ol=Object.prototype,al=ol.toString;function sl(e){return al.call(e)}var ll="[object Null]",ul="[object Undefined]",Ri=Xe?Xe.toStringTag:void 0;function ft(e){return e==null?e===void 0?ul:ll:Ri&&Ri in Object(e)?il(e):sl(e)}function Ao(e,t){return function(r){return e(t(r))}}var zn=Ao(Object.getPrototypeOf,Object);function pt(e){return e!=null&&typeof e=="object"}var cl="[object Object]",dl=Function.prototype,fl=Object.prototype,_o=dl.toString,pl=fl.hasOwnProperty,hl=_o.call(Object);function Fi(e){if(!pt(e)||ft(e)!=cl)return!1;var t=zn(e);if(t===null)return!0;var r=pl.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_o.call(r)==hl}var Ii=Array.isArray,Ai=Object.keys,ml=Object.prototype.hasOwnProperty,bl=typeof Element<"u";function xn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Ii(e),n=Ii(t),i,o,a;if(r&&n){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!xn(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,f=t instanceof RegExp;if(c!=f)return!1;if(c&&f)return e.toString()==t.toString();var h=Ai(e);if(o=h.length,o!==Ai(t).length)return!1;for(i=o;i--!==0;)if(!ml.call(t,h[i]))return!1;if(bl&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=h[i],!(a==="_owner"&&e.$$typeof)&&!xn(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var vl=function(t,r){try{return xn(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const it=vo(vl);function gl(){this.__data__=[],this.size=0}function Po(e,t){return e===t||e!==e&&t!==t}function _r(e,t){for(var r=e.length;r--;)if(Po(e[r][0],t))return r;return-1}var xl=Array.prototype,yl=xl.splice;function Sl(e){var t=this.__data__,r=_r(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():yl.call(t,r,1),--this.size,!0}function wl(e){var t=this.__data__,r=_r(t,e);return r<0?void 0:t[r][1]}function Tl(e){return _r(this.__data__,e)>-1}function El(e,t){var r=this.__data__,n=_r(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Eu}var Ou="[object Arguments]",ju="[object Array]",$u="[object Boolean]",Cu="[object Date]",Ru="[object Error]",Fu="[object Function]",Iu="[object Map]",Au="[object Number]",_u="[object Object]",Pu="[object RegExp]",Nu="[object Set]",ku="[object String]",Du="[object WeakMap]",Mu="[object ArrayBuffer]",Lu="[object DataView]",Vu="[object Float32Array]",zu="[object Float64Array]",qu="[object Int8Array]",Bu="[object Int16Array]",Uu="[object Int32Array]",Hu="[object Uint8Array]",Gu="[object Uint8ClampedArray]",Ku="[object Uint16Array]",Zu="[object Uint32Array]",ee={};ee[Vu]=ee[zu]=ee[qu]=ee[Bu]=ee[Uu]=ee[Hu]=ee[Gu]=ee[Ku]=ee[Zu]=!0;ee[Ou]=ee[ju]=ee[Mu]=ee[$u]=ee[Lu]=ee[Cu]=ee[Ru]=ee[Fu]=ee[Iu]=ee[Au]=ee[_u]=ee[Pu]=ee[Nu]=ee[ku]=ee[Du]=!1;function Wu(e){return pt(e)&&zo(e.length)&&!!ee[ft(e)]}function qn(e){return function(t){return e(t)}}var qo=typeof Se=="object"&&Se&&!Se.nodeType&&Se,Dt=qo&&typeof we=="object"&&we&&!we.nodeType&&we,Yu=Dt&&Dt.exports===qo,rn=Yu&&Fo.process,$t=function(){try{var e=Dt&&Dt.require&&Dt.require("util").types;return e||rn&&rn.binding&&rn.binding("util")}catch{}}(),Mi=$t&&$t.isTypedArray,Qu=Mi?qn(Mi):Wu,Xu=Object.prototype,Ju=Xu.hasOwnProperty;function Bo(e,t){var r=Kt(e),n=!r&&vu(e),i=!r&&!n&&Vo(e),o=!r&&!n&&!i&&Qu(e),a=r||n||i||o,s=a?pu(e.length,String):[],l=s.length;for(var c in e)(t||Ju.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Tu(c,l)))&&s.push(c);return s}var ec=Object.prototype;function Bn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ec;return e===r}var tc=Ao(Object.keys,Object),rc=Object.prototype,nc=rc.hasOwnProperty;function ic(e){if(!Bn(e))return tc(e);var t=[];for(var r in Object(e))nc.call(e,r)&&r!="constructor"&&t.push(r);return t}function Uo(e){return e!=null&&zo(e.length)&&!No(e)}function Un(e){return Uo(e)?Bo(e):ic(e)}function oc(e,t){return e&&Nr(t,Un(t),e)}function ac(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var sc=Object.prototype,lc=sc.hasOwnProperty;function uc(e){if(!Gt(e))return ac(e);var t=Bn(e),r=[];for(var n in e)n=="constructor"&&(t||!lc.call(e,n))||r.push(n);return r}function Hn(e){return Uo(e)?Bo(e,!0):uc(e)}function cc(e,t){return e&&Nr(t,Hn(t),e)}var Ho=typeof Se=="object"&&Se&&!Se.nodeType&&Se,Li=Ho&&typeof we=="object"&&we&&!we.nodeType&&we,dc=Li&&Li.exports===Ho,Vi=dc?Me.Buffer:void 0,zi=Vi?Vi.allocUnsafe:void 0;function fc(e,t){if(t)return e.slice();var r=e.length,n=zi?zi(r):new e.constructor(r);return e.copy(n),n}function Go(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0)&&(r[i]=e[i]);return r}var kr=d.createContext(void 0);kr.displayName="FormikContext";var Zd=kr.Provider;kr.Consumer;function He(){var e=d.useContext(kr);return e}var ye=function(t){return typeof t=="function"},Dr=function(t){return t!==null&&typeof t=="object"},Wd=function(t){return String(Math.floor(Number(t)))===t},nn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Yd=function(t){return d.Children.count(t)===0},on=function(t){return Dr(t)&&ye(t.then)};function xe(e,t,r,n){n===void 0&&(n=0);for(var i=ra(t);e&&n=0?[]:{}}}return(o===0?e:i)[a[o]]===r?e:(r===void 0?delete i[a[o]]:i[a[o]]=r,o===0&&r===void 0&&delete n[a[o]],n)}function na(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var i=0,o=Object.keys(e);i0?j.map(function(N){return R(N,xe(v,N))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(N){return N.reduce(function(L,K,de){return K==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||K&&(L=lt(L,j[de],K)),L},{})})},[R]),H=d.useCallback(function(v){return Promise.all([C(v),m.validationSchema?q(v):{},m.validate?_(v):{}]).then(function(j){var I=j[0],N=j[1],L=j[2],K=gn.all([I,N,L],{arrayMerge:tf});return K})},[m.validate,m.validationSchema,C,_,q]),U=Ee(function(v){return v===void 0&&(v=E.values),F({type:"SET_ISVALIDATING",payload:!0}),H(v).then(function(j){return g.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:j})),j})});d.useEffect(function(){a&&g.current===!0&&it(p.current,m.initialValues)&&U(p.current)},[a,U]);var se=d.useCallback(function(v){var j=v&&v.values?v.values:p.current,I=v&&v.errors?v.errors:b.current?b.current:m.initialErrors||{},N=v&&v.touched?v.touched:y.current?y.current:m.initialTouched||{},L=v&&v.status?v.status:x.current?x.current:m.initialStatus;p.current=j,b.current=I,y.current=N,x.current=L;var K=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!v&&!!v.isSubmitting,errors:I,touched:N,status:L,values:j,isValidating:!!v&&!!v.isValidating,submitCount:v&&v.submitCount&&typeof v.submitCount=="number"?v.submitCount:0}})};if(m.onReset){var de=m.onReset(E.values,_t);on(de)?de.then(K):K()}else K()},[m.initialErrors,m.initialStatus,m.initialTouched,m.onReset]);d.useEffect(function(){g.current===!0&&!it(p.current,m.initialValues)&&c&&(p.current=m.initialValues,se(),a&&U(p.current))},[c,m.initialValues,se,a,U]),d.useEffect(function(){c&&g.current===!0&&!it(b.current,m.initialErrors)&&(b.current=m.initialErrors||nt,F({type:"SET_ERRORS",payload:m.initialErrors||nt}))},[c,m.initialErrors]),d.useEffect(function(){c&&g.current===!0&&!it(y.current,m.initialTouched)&&(y.current=m.initialTouched||tr,F({type:"SET_TOUCHED",payload:m.initialTouched||tr}))},[c,m.initialTouched]),d.useEffect(function(){c&&g.current===!0&&!it(x.current,m.initialStatus)&&(x.current=m.initialStatus,F({type:"SET_STATUS",payload:m.initialStatus}))},[c,m.initialStatus,m.initialTouched]);var S=Ee(function(v){if(w.current[v]&&ye(w.current[v].validate)){var j=xe(E.values,v),I=w.current[v].validate(j);return on(I)?(F({type:"SET_ISVALIDATING",payload:!0}),I.then(function(N){return N}).then(function(N){F({type:"SET_FIELD_ERROR",payload:{field:v,value:N}}),F({type:"SET_ISVALIDATING",payload:!1})})):(F({type:"SET_FIELD_ERROR",payload:{field:v,value:I}}),Promise.resolve(I))}else if(m.validationSchema)return F({type:"SET_ISVALIDATING",payload:!0}),q(E.values,v).then(function(N){return N}).then(function(N){F({type:"SET_FIELD_ERROR",payload:{field:v,value:xe(N,v)}}),F({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ne=d.useCallback(function(v,j){var I=j.validate;w.current[v]={validate:I}},[]),G=d.useCallback(function(v){delete w.current[v]},[]),ue=Ee(function(v,j){F({type:"SET_TOUCHED",payload:v});var I=j===void 0?i:j;return I?U(E.values):Promise.resolve()}),X=d.useCallback(function(v){F({type:"SET_ERRORS",payload:v})},[]),re=Ee(function(v,j){var I=ye(v)?v(E.values):v;F({type:"SET_VALUES",payload:I});var N=j===void 0?r:j;return N?U(I):Promise.resolve()}),ce=d.useCallback(function(v,j){F({type:"SET_FIELD_ERROR",payload:{field:v,value:j}})},[]),ie=Ee(function(v,j,I){F({type:"SET_FIELD_VALUE",payload:{field:v,value:j}});var N=I===void 0?r:I;return N?U(lt(E.values,v,j)):Promise.resolve()}),Pe=d.useCallback(function(v,j){var I=j,N=v,L;if(!nn(v)){v.persist&&v.persist();var K=v.target?v.target:v.currentTarget,de=K.type,Le=K.name,Qr=K.id,Xr=K.value,Ya=K.checked,km=K.outerHTML,Si=K.options,Qa=K.multiple;I=j||Le||Qr,N=/number|range/.test(de)?(L=parseFloat(Xr),isNaN(L)?"":L):/checkbox/.test(de)?nf(xe(E.values,I),Ya,Xr):Si&&Qa?rf(Si):Xr}I&&ie(I,N)},[ie,E.values]),k=Ee(function(v){if(nn(v))return function(j){return Pe(j,v)};Pe(v)}),V=Ee(function(v,j,I){j===void 0&&(j=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:v,value:j}});var N=I===void 0?i:I;return N?U(E.values):Promise.resolve()}),oe=d.useCallback(function(v,j){v.persist&&v.persist();var I=v.target,N=I.name,L=I.id,K=I.outerHTML,de=j||N||L;V(de,!0)},[V]),ge=Ee(function(v){if(nn(v))return function(j){return oe(j,v)};oe(v)}),rt=d.useCallback(function(v){ye(v)?F({type:"SET_FORMIK_STATE",payload:v}):F({type:"SET_FORMIK_STATE",payload:function(){return v}})},[]),M=d.useCallback(function(v){F({type:"SET_STATUS",payload:v})},[]),W=d.useCallback(function(v){F({type:"SET_ISSUBMITTING",payload:v})},[]),pe=Ee(function(){return F({type:"SUBMIT_ATTEMPT"}),U().then(function(v){var j=v instanceof Error,I=!j&&Object.keys(v).length===0;if(I){var N;try{if(N=Ba(),N===void 0)return}catch(L){throw L}return Promise.resolve(N).then(function(L){return g.current&&F({type:"SUBMIT_SUCCESS"}),L}).catch(function(L){if(g.current)throw F({type:"SUBMIT_FAILURE"}),L})}else if(g.current&&(F({type:"SUBMIT_FAILURE"}),j))throw v})}),xt=Ee(function(v){v&&v.preventDefault&&ye(v.preventDefault)&&v.preventDefault(),v&&v.stopPropagation&&ye(v.stopPropagation)&&v.stopPropagation(),pe().catch(function(j){console.warn("Warning: An unhandled error was caught from submitForm()",j)})}),_t={resetForm:se,validateForm:U,validateField:S,setErrors:X,setFieldError:ce,setFieldTouched:V,setFieldValue:ie,setStatus:M,setSubmitting:W,setTouched:ue,setValues:re,setFormikState:rt,submitForm:pe},Ba=Ee(function(){return f(E.values,_t)}),Ua=Ee(function(v){v&&v.preventDefault&&ye(v.preventDefault)&&v.preventDefault(),v&&v.stopPropagation&&ye(v.stopPropagation)&&v.stopPropagation(),se()}),Ha=d.useCallback(function(v){return{value:xe(E.values,v),error:xe(E.errors,v),touched:!!xe(E.touched,v),initialValue:xe(p.current,v),initialTouched:!!xe(y.current,v),initialError:xe(b.current,v)}},[E.errors,E.touched,E.values]),Ga=d.useCallback(function(v){return{setValue:function(I,N){return ie(v,I,N)},setTouched:function(I,N){return V(v,I,N)},setError:function(I){return ce(v,I)}}},[ie,V,ce]),Ka=d.useCallback(function(v){var j=Dr(v),I=j?v.name:v,N=xe(E.values,I),L={name:I,value:N,onChange:k,onBlur:ge};if(j){var K=v.type,de=v.value,Le=v.as,Qr=v.multiple;K==="checkbox"?de===void 0?L.checked=!!N:(L.checked=!!(Array.isArray(N)&&~N.indexOf(de)),L.value=de):K==="radio"?(L.checked=N===de,L.value=de):Le==="select"&&Qr&&(L.value=L.value||[],L.multiple=!0)}return L},[ge,k,E.values]),Yr=d.useMemo(function(){return!it(p.current,E.values)},[p.current,E.values]),Za=d.useMemo(function(){return typeof s<"u"?Yr?E.errors&&Object.keys(E.errors).length===0:s!==!1&&ye(s)?s(m):s:E.errors&&Object.keys(E.errors).length===0},[s,Yr,E.errors,m]),Wa=te({},E,{initialValues:p.current,initialErrors:b.current,initialTouched:y.current,initialStatus:x.current,handleBlur:ge,handleChange:k,handleReset:Ua,handleSubmit:xt,resetForm:se,setErrors:X,setFormikState:rt,setFieldTouched:V,setFieldValue:ie,setFieldError:ce,setStatus:M,setSubmitting:W,setTouched:ue,setValues:re,submitForm:pe,validateForm:U,validateField:S,isValid:Za,dirty:Yr,unregisterField:G,registerField:ne,getFieldProps:Ka,getFieldMeta:Ha,getFieldHelpers:Ga,validateOnBlur:i,validateOnChange:r,validateOnMount:a});return Wa}function Mr(e){var t=Xd(e),r=e.component,n=e.children,i=e.render,o=e.innerRef;return d.useImperativeHandle(o,function(){return t}),d.createElement(Zd,{value:t},r?d.createElement(r,t):i?i(t):n?ye(n)?n(t):Yd(n)?null:d.Children.only(n):null)}function Jd(e){var t={};if(e.inner){if(e.inner.length===0)return lt(t,e.path,e.message);for(var i=e.inner,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;xe(t,a.path)||(t=lt(t,a.path,a.message))}}return t}function ef(e,t,r,n){r===void 0&&(r=!1);var i=En(e);return t[r?"validateSync":"validate"](i,{abortEarly:!1,context:n||i})}function En(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(i){return Array.isArray(i)===!0||Fi(i)?En(i):i!==""?i:void 0}):Fi(e[n])?t[n]=En(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function tf(e,t,r){var n=e.slice();return t.forEach(function(o,a){if(typeof n[a]>"u"){var s=r.clone!==!1,l=s&&r.isMergeableObject(o);n[a]=l?gn(Array.isArray(o)?[]:{},o,r):o}else r.isMergeableObject(o)?n[a]=gn(e[a],o,r):e.indexOf(o)===-1&&n.push(o)}),n}function rf(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function nf(e,t,r){if(typeof e=="boolean")return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,o=e.indexOf(r),i=o>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}var of=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function Ee(e){var t=d.useRef(e);return of(function(){t.current=e}),d.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var af=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ia=/^\d+$/,sf=/^\d/,lf=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,uf=/^\s*(['"]?)(.*?)(\1)\s*$/,Qn=512,no=new bt(Qn),io=new bt(Qn),oo=new bt(Qn),ut={Cache:bt,split:On,normalizePath:an,setter:function(e){var t=an(e);return io.get(e)||io.set(e,function(n,i){for(var o=0,a=t.length,s=n;oe.match(hf)||[],Vr=e=>e[0].toUpperCase()+e.slice(1),Jn=(e,t)=>Lr(e).join(t).toLowerCase(),oa=e=>Lr(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),mf=e=>Vr(oa(e)),bf=e=>Jn(e,"_"),vf=e=>Jn(e,"-"),gf=e=>Vr(Jn(e," ")),xf=e=>Lr(e).map(Vr).join(" ");var sn={words:Lr,upperFirst:Vr,camelCase:oa,pascalCase:mf,snakeCase:bf,kebabCase:vf,sentenceCase:gf,titleCase:xf},ei={exports:{}};ei.exports=function(e){return aa(yf(e),e)};ei.exports.array=aa;function aa(e,t){var r=e.length,n=new Array(r),i={},o=r,a=Sf(t),s=wf(e);for(t.forEach(function(c){if(!s.has(c[0])||!s.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return n;function l(c,f,h){if(h.has(c)){var m;try{m=", node was:"+JSON.stringify(c)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!s.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[f]){i[f]=!0;var p=a.get(c)||new Set;if(p=Array.from(p),f=p.length){h.add(c);do{var b=p[--f];l(b,s.get(b),h)}while(f);h.delete(c)}n[--r]=c}}}function yf(e){for(var t=new Set,r=0,n=e.length;r"",Rf=/^Symbol\((.*)\)(.*)$/;function Ff(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function ao(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return Ff(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return Cf.call(e).replace(Rf,"Symbol($1)");const n=Of.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+jf.call(e)+"]":n==="RegExp"?$f.call(e):null}function qe(e,t){let r=ao(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let o=ao(this[n],t);return o!==null?o:i},2)}function sa(e){return e==null?[]:[].concat(e)}let la,If=/\$\{\s*(\w+)\s*\}/g;la=Symbol.toStringTag;class be extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(If,(i,o)=>qe(r[o])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[la]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],sa(t).forEach(a=>{if(be.isError(a)){this.errors.push(...a.errors);const s=a.inner.length?a.inner:[a];this.inner.push(...s)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!o&&Error.captureStackTrace&&Error.captureStackTrace(this,be)}}let Ne={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${qe(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${qe(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${qe(r,!0)}\``+i}},Re={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},We={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},jn={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Af={isValue:"${path} field must be ${value}"},$n={noUnknown:"${path} field has unspecified keys: ${unknown}"},sr={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},_f={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.lengthi)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${qe(r,!0)}\``}return be.formatError(Ne.notType,e)}};Object.assign(Object.create(null),{mixed:Ne,string:Re,number:We,date:jn,object:$n,array:sr,boolean:Af,tuple:_f});const zr=e=>e&&e.__isYupSchema__;class pr{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,a=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new pr(t,(s,l)=>{var c;let f=a(...s)?i:o;return(c=f==null?void 0:f(l))!=null?c:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(o=>o.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!zr(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const rr={context:"$",value:"."};class vt{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===rr.context,this.isValue=this.key[0]===rr.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?rr.context:this.isValue?rr.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&ut.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}vt.prototype.__isYupRef=!0;const ze=e=>e==null;function yt(e){function t({value:r,path:n="",options:i,originalValue:o,schema:a},s,l){const{name:c,test:f,params:h,message:m,skipAbsent:p}=e;let{parent:b,context:y,abortEarly:x=a.spec.abortEarly,disableStackTrace:g=a.spec.disableStackTrace}=i;function w(C){return vt.isRef(C)?C.getValue(r,b,y):C}function $(C={}){var H;const U=Object.assign({value:r,originalValue:o,label:a.spec.label,path:C.path||n,spec:a.spec},h,C.params);for(const S of Object.keys(U))U[S]=w(U[S]);const se=new be(be.formatError(C.message||m,U),r,U.path,C.type||c,(H=C.disableStackTrace)!=null?H:g);return se.params=U,se}const A=x?s:l;let P={path:n,parent:b,type:c,from:i.from,createError:$,resolve:w,options:i,originalValue:o,schema:a};const E=C=>{be.isError(C)?A(C):C?l(null):A($())},F=C=>{be.isError(C)?A(C):s(C)};if(p&&ze(r))return E(!0);let q;try{var R;if(q=f.call(P,r,P),typeof((R=q)==null?void 0:R.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(q).then(E,F)}}catch(C){F(C);return}E(q)}return t.OPTIONS=e,t}function Pf(e,t,r,n=r){let i,o,a;return t?(ut.forEach(t,(s,l,c)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:n,parent:i,value:r});let h=e.type==="tuple",m=c?parseInt(f,10):0;if(e.innerType||h){if(h&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&m>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[m],e=h?e.spec.types[m]:e.innerType}if(!c){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=r,r=r&&r[f],e=e.fields[f]}o=f,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class hr extends Set{describe(){const t=[];for(const r of this.values())t.push(vt.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new hr(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function Ot(e,t=new Map){if(zr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n{this.typeError(Ne.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Ot(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,o)=>o.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,o;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",o=n._cast(t,r);if(r.assert!==!1&&!n.isType(o)){if(i&&ze(o))return o;let a=qe(t),s=qe(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". - -attempted value: ${a} -`+(s!==a?`result of cast: ${s}`:""))}return o}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:o,originalValue:a=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let c=[];for(let f of Object.values(this.internalTests))f&&c.push(f);this.runTests({path:o,value:l,originalValue:a,options:r,tests:c},n,f=>{if(f.length)return i(f,l);this.runTests({path:o,value:l,originalValue:a,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:o,value:a,originalValue:s,path:l,options:c}=t,f=y=>{i||(i=!0,r(y,a))},h=y=>{i||(i=!0,n(y,a))},m=o.length,p=[];if(!m)return h([]);let b={value:a,originalValue:s,path:l,options:c,schema:this};for(let y=0;ythis.resolve(f)._validate(c,f,m,p)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((a,s)=>i._validate(t,r,(l,c)=>{be.isError(l)&&(l.value=c),s(l)},(l,c)=>{l.length?s(new be(l,c,void 0,void 0,o)):a(c)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),o,a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw be.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new be(s,t,void 0,void 0,a);o=l}),o}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(be.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(be.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Ot(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=yt({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=yt({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=Ne.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ne.notNull){return this.nullability(!1,t)}required(t=Ne.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Ne.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=yt(r),o=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(a=>!(a.OPTIONS.name===r.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=sa(t).map(o=>new vt(o));return i.forEach(o=>{o.isSibling&&n.deps.push(o.key)}),n.conditions.push(typeof r=="function"?new pr(i,r):pr.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=yt({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Ne.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=yt({message:r,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),n}notOneOf(t,r=Ne.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=yt({message:r,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:o,nullable:a}=r.spec;return{meta:i,label:n,optional:o,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,f)=>f.findIndex(h=>h.name===l.name)===c)}}}$e.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])$e.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:o,schema:a}=Pf(this,t,r,n.context);return a[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])$e.prototype[e]=$e.prototype.oneOf;for(const e of["not","nope"])$e.prototype[e]=$e.prototype.notOneOf;let Nf=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kf=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Df=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Mf=e=>ze(e)||e===e.trim(),Lf={}.toString();function Ae(){return new ua}class ua extends $e{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===Lf?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Ne.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Re.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Re.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Re.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,o;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:o}=r:i=r),this.test({name:o||"matches",message:i||Re.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&n||a.search(t)!==-1})}email(t=Re.email){return this.matches(Nf,{name:"email",message:t,excludeEmptyString:!0})}url(t=Re.url){return this.matches(kf,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Re.uuid){return this.matches(Df,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Re.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Mf})}lowercase(t=Re.lowercase){return this.transform(r=>ze(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ze(r)||r===r.toLowerCase()})}uppercase(t=Re.uppercase){return this.transform(r=>ze(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ze(r)||r===r.toUpperCase()})}}Ae.prototype=ua.prototype;let Vf=e=>e!=+e;function ca(){return new da}class da extends $e{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Vf(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(t,r=We.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=We.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=We.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return nthis.resolve(t)}})}positive(t=We.positive){return this.moreThan(0,t)}negative(t=We.negative){return this.lessThan(0,t)}integer(t=We.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>ze(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>ze(i)?i:Math[t](i))}}ca.prototype=da.prototype;const zf=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ve(e,t=0){return Number(e)||t}function qf(e){const t=zf.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const r={year:Ve(t[1]),month:Ve(t[2],1)-1,day:Ve(t[3],1),hour:Ve(t[4]),minute:Ve(t[5]),second:Ve(t[6]),millisecond:t[7]?Ve(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Ve(t[10]),minuteOffset:Ve(t[11])};if(r.z===void 0&&r.plusMinus===void 0)return new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond).valueOf();let n=0;return r.z!=="Z"&&r.plusMinus!==void 0&&(n=r.hourOffset*60+r.minuteOffset,r.plusMinus==="+"&&(n=0-n)),Date.UTC(r.year,r.month,r.day,r.hour,r.minute+n,r.second,r.millisecond)}let Bf=new Date(""),Uf=e=>Object.prototype.toString.call(e)==="[object Date]";class qr extends $e{constructor(){super({type:"date",check(t){return Uf(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=qf(t),isNaN(t)?qr.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(vt.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=jn.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=jn.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}qr.INVALID_DATE=Bf;qr.prototype;function Hf(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=ut.split(a)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const a of Object.keys(e)){let s=e[a];n.add(a),vt.isRef(s)&&s.isSibling?o(s.path,a):zr(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return Ef.array(Array.from(n),r).reverse()}function so(e,t){let r=1/0;return e.some((n,i)=>{var o;if((o=t.path)!=null&&o.includes(n))return r=i,!0}),r}function fa(e){return(t,r)=>so(e,t)-so(e,r)}const pa=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function lr(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=lr(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=lr(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(lr)}):"optional"in e?e.optional():e}const Gf=(e,t)=>{const r=[...ut.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=ut.getter(ut.join(r),!0)(e);return!!(i&&n in i)};let lo=e=>Object.prototype.toString.call(e)==="[object Object]";function Kf(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Zf=fa([]);function At(e){return new ha(e)}class ha extends $e{constructor(t){super({type:"object",check(r){return lo(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Zf,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let o=this.fields,a=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(h=>!this._nodes.includes(h))),l={},c=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),f=!1;for(const h of s){let m=o[h],p=h in i;if(m){let b,y=i[h];c.path=(r.path?`${r.path}.`:"")+h,m=m.resolve({value:y,context:r.context,parent:l});let x=m instanceof $e?m.spec:void 0,g=x==null?void 0:x.strict;if(x!=null&&x.strip){f=f||h in i;continue}b=!r.__validating||!g?m.cast(i[h],c):i[h],b!==void 0&&(l[h]=b)}else p&&!a&&(l[h]=i[h]);(p!==h in l||l[h]!==i[h])&&(f=!0)}return f?l:i}_validate(t,r={},n,i){let{from:o=[],originalValue:a=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:a},...o],r.__validating=!0,r.originalValue=a,super._validate(t,r,n,(l,c)=>{if(!s||!lo(c)){i(l,c);return}a=a||c;let f=[];for(let h of this._nodes){let m=this.fields[h];!m||vt.isRef(m)||f.push(m.asNestedTest({options:r,key:h,parent:c,parentPath:r.path,originalParent:a}))}this.runTests({tests:f,value:c,originalValue:a,options:r},n,h=>{i(h.sort(this._sortErrors).concat(l),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,o]of Object.entries(this.fields)){const a=n[i];n[i]=a===void 0?o:a}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const o=this.fields[n];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),r[n]=o&&"getDefault"in o?o.getDefault(a):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=Hf(t,r),n._sortErrors=fa(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return lr(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=ut.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return Gf(o,t)&&(a=Object.assign({},o),n||delete a[t],a[r]=i(o)),a})}json(){return this.transform(pa)}noUnknown(t=!0,r=$n.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const o=Kf(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=$n.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(sn.camelCase)}snakeCase(){return this.transformKeys(sn.snakeCase)}constantCase(){return this.transformKeys(t=>sn.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[o,a]of Object.entries(r.fields)){var i;let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[o]})),n.fields[o]=a.describe(s)}return n}}At.prototype=ha.prototype;function ma(e){return new ba(e)}class ba extends $e{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const o=n.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:n}_validate(t,r={},n,i){var o;let a=this.innerType,s=(o=r.recursive)!=null?o:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,c)=>{var f;if(!s||!a||!this._typeCheck(c)){i(l,c);return}let h=new Array(c.length);for(let p=0;pi(p.concat(l),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(pa)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!zr(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+qe(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=sr.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||sr.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||sr.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,o)=>!t(n,i,o):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var i;let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=r.innerType.describe(o)}return n}}ma.prototype=ba.prototype;const va=e=>(e.preventDefault(),e.returnValue="");function ga(){return window.addEventListener("beforeunload",va,{capture:!0})}function ti(){return window.removeEventListener("beforeunload",va,{capture:!0})}function Wt(){const{formData:e}=Ce(),{dirty:t}=He();return d.useEffect(()=>t||Object.keys(e).length?ga():ti(),[t,e]),null}Wt.defaultProps={hasForm:!1};function xa(){const{formData:e}=Ce();return d.useEffect(()=>e?ga():ti(),[e]),null}function Ge({children:e,className:t,disabled:r,onClick:n,size:i,type:o,variant:a}){return u.jsx("button",{className:je("inline-flex w-fit items-center justify-center rounded border-b-2 shadow transition-buttons duration-200 px-4 py-2 font-semibold","hover:shadow-lg","focus:ring-offset-white focus:outline-none focus:ring-2 focus:ring-offset-2",a==="primary"?"bg-oxford-600 border-b-oxford-700 text-white hover:bg-oxford-700 focus:bg-oxford-700 focus:ring-oxford-500":null,a==="danger"?"bg-bn-ribbon-600 border-b-bn-ribbon-700 text-white hover:bg-bn-ribbon-700 focus:bg-bn-ribbon-700 focus:ring-bn-ribbon-500":null,a==="danger-outline"?"bg-bn-ribbon-50 border border-bn-ribbon-200 border-b-bn-ribbon-200 text-bn-ribbon-700 hover:bg-bn-ribbon-100 focus:bg-bn-ribbon-100 focus:ring-bn-ribbon-400":null,i==="sm"?"text-sm !px-2 !py-1.5 font-normal":null,r?"opacity-75 cursor-not-allowed !bg-gray-700 !border-b-gray-800":null,t),disabled:r,onClick:n,type:o,children:e})}Ge.propTypes={children:T.node.isRequired,className:T.string,disabled:T.bool,onClick:T.func,size:T.oneOf(["sm","md","lg"]),type:T.oneOf(["button","submit","reset"]),variant:T.oneOf(["primary","danger","danger-outline"])};Ge.defaultProps={className:"",disabled:!1,onClick:()=>null,size:"md",type:"button",variant:"primary"};function Je({children:e}){return u.jsx("div",{className:"border-l-2 border-l-bn-ribbon-600 bg-bn-ribbon-100 max-w-prose p-2 pl-4 mt-2 text-sm font-semibold text-bn-ribbon-800",children:e})}Je.propTypes={children:T.node.isRequired};function ri({field:e,min:t,max:r}){const{values:n}=He(),i=n==null?void 0:n[e].length;return i===r?u.jsx("p",{className:"text-sm",children:"No characters remaining"}):ir?u.jsxs("p",{className:"text-sm",children:["Remove ",i-r," characters"]}):u.jsx("p",{className:"text-sm",children:" chars remaining"})}ri.defaultProps={min:null,max:null};ri.propTypes={field:T.string.isRequired,min:T.number,max:T.number};function ni({children:e}){return u.jsx("div",{className:"-mt-2 mb-0.5 text-sm text-gray-700 flex flex-col gap-y-1",children:e})}ni.propTypes={children:T.node.isRequired};function mr({characterCount:e,children:t,className:r,hintText:n,id:i,label:o,maxlength:a,minlength:s,placeholder:l,name:c,resize:f,rows:h,required:m,value:p}){const{setFieldValue:b,values:y}=He();return d.useEffect(()=>{b(i,y[i]||p)},[]),u.jsxs("div",{className:`flex flex-col gap-y-3 text-lg leading-tight ${r}`,children:[u.jsx("label",{className:"font-semibold tracking-tight",htmlFor:i,children:o}),n?u.jsx(ni,{children:n}):null,u.jsx(Ct,{as:"textarea",className:` - mt-1 block w-full max-w-prose rounded-md border-gray-400 text-gray-900 shadow-sm - ${f?"":"resize-none"} - sm:text-sm - focus:outline-none focus:ring-oxford-500 focus:border-oxford-500 - `,maxLength:a,minLength:s,name:c,placeholder:l,required:m,rows:h}),e&&(s||a)?u.jsx(ri,{field:i,max:a,min:s}):null,t]})}mr.defaultProps={className:null,children:null,characterCount:!1,hintText:null,maxlength:null,minlength:null,placeholder:null,required:!1,rows:8,value:""};mr.propTypes={characterCount:T.bool,children:T.node,className:T.string,hintText:T.node,id:T.string.isRequired,label:T.string.isRequired,maxlength:T.number,minlength:T.number,name:T.string.isRequired,placeholder:T.string,required:T.bool,resize:T.bool.isRequired,rows:T.number,value:T.string};function Wf(){const[,e]=De(),{formData:t,setFormData:r}=Ce();if(Ht(["codelistA","codelistB","timeOption","filterPopulation"]))return u.jsx(Ut,{to:""});const n=At().shape({purpose:Ae().required("Write a purpose for this analysis").min(1,"Add a purpose").max(1e3,"Purpose is too long"),title:Ae().required("Write a title for this analysis").min(1,"Add a title").max(140,"Title is too long")}),i={purpose:t.purpose||"",title:t.title||""};return u.jsx(Mr,{initialValues:i,onSubmit:(o,a)=>{a.validateForm().then(()=>{r({...t,...o}),e("review-request")})},validateOnMount:!0,validationSchema:n,children:({errors:o,isValid:a,touched:s})=>u.jsxs(Zt,{className:"flex flex-col gap-y-4",children:[u.jsx(Wt,{}),u.jsx("h1",{className:"text-4xl font-bold",children:"Analysis information"}),u.jsx(mr,{characterCount:!0,className:"mb-6",hintText:u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"The title will be shown at the top of the generated report. It should provide a short summary to anyone reading the report about what the analysis shows."}),u.jsx("p",{children:"You will be able to change this after the report is generated."})]}),id:"title",label:"Provide a title for the analysis",maxlength:140,name:"title",placeholder:"",required:!0,resize:!1,rows:2,value:`${t.codelistA.label} & ${t.codelistB.label} during the COVID-19 pandemic`,children:o.title&&s.title?u.jsx(Je,{children:o.title}):null}),u.jsx(mr,{characterCount:!0,hintText:u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"It must be clear that this analysis request is aligned with your approvals."}),u.jsx("p",{children:"Please refer to the approved version of your project application form, which you were sent by email."})]}),id:"purpose",label:"Explain why this analysis fits with the approved project purpose",maxlength:1e3,name:"purpose",required:!0,resize:!1}),o.purpose&&s.purpose?u.jsx(Je,{children:o.purpose}):null,u.jsx("div",{className:"flex flex-row w-full gap-2 mt-4",children:u.jsx(Ge,{disabled:!a,type:"submit",children:"Next"})})]})})}const Oe=["The number of people who had","added to their health record each month from","to","who have also had","added to their health record in the same month as","or"],ya="before.",Ie="at any time prior.",ur=e=>`up to ${e.timeValue} ${e.timeScale} before.`;function zt({children:e,legend:t,hideLegend:r}){return u.jsxs("fieldset",{children:[u.jsx("legend",{className:r?"sr-only":"text-2xl font-bold mb-4",children:u.jsx("h2",{children:t})}),u.jsx("div",{className:"flex flex-col gap-4",children:e})]})}zt.propTypes={children:T.node.isRequired,hideLegend:T.bool,legend:T.string.isRequired};zt.defaultProps={hideLegend:!1};function qt({children:e,id:t,label:r,labelClassName:n,name:i,onClick:o,value:a}){return u.jsxs("div",{className:"flex flex-row place-items-baseline gap-x-3 text-lg leading-tight",children:[u.jsx(Ct,{className:"peer cursor-pointer scale-150 top-[1px] relative checked:bg-oxford-600 focus:ring-bn-sun",id:t,name:i,onClick:o,type:"radio",value:a}),u.jsx("label",{"aria-label":e?r:null,className:`cursor-pointer touch-manipulation tracking-tight ${n||""}`,htmlFor:t,children:e||r})]})}qt.propTypes={children:T.node,id:T.string.isRequired,label:T.string.isRequired,labelClassName:T.string,name:T.string.isRequired,onClick:T.func,value:T.string.isRequired};qt.defaultProps={children:null,labelClassName:null,onClick:()=>null};/** - * react-virtual - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&delete n[o]}),r.options=vr({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qf,rangeExtractor:Xf,onChange:function(){},measureElement:tp,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},n)},this.notify=function(n){r.options.onChange==null||r.options.onChange(r,n)},this.maybeNotify=St(function(){return r.calculateRange(),[r.isScrolling,r.range?r.range.startIndex:null,r.range?r.range.endIndex:null]},function(n){r.notify(n)},{key:!1,debug:function(){return r.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){r.unsubs.filter(Boolean).forEach(function(n){return n()}),r.unsubs=[],r.scrollElement=null},this._didMount=function(){return r.measureElementCache.forEach(r.observer.observe),function(){r.observer.disconnect(),r.cleanup()}},this._willUpdate=function(){var n=r.options.getScrollElement();r.scrollElement!==n&&(r.cleanup(),r.scrollElement=n,r._scrollToOffset(r.scrollOffset,{adjustments:void 0,behavior:void 0}),r.unsubs.push(r.options.observeElementRect(r,function(i){r.scrollRect=i,r.maybeNotify()})),r.unsubs.push(r.options.observeElementOffset(r,function(i){r.scrollAdjustments=0,r.scrollOffset!==i&&(r.isScrollingTimeoutId!==null&&(clearTimeout(r.isScrollingTimeoutId),r.isScrollingTimeoutId=null),r.isScrolling=!0,r.scrollDirection=r.scrollOffset=0;s--){var l=n[s];if(!o.has(l.lane)){var c=a.get(l.lane);if(c==null||l.end>c.end?a.set(l.lane,l):l.end0?Math.min.apply(Math,r.pendingMeasuredCacheIndexes):0;r.pendingMeasuredCacheIndexes=[];for(var f=r.measurementsCache.slice(0,c),h=c;h0&&i>0?ip({measurements:n,outerSize:i,scrollOffset:o}):null},{key:!1,debug:function(){return r.options.debug}}),this.getIndexes=St(function(){return[r.options.rangeExtractor,r.calculateRange(),r.options.overscan,r.options.count]},function(n,i,o,a){return i===null?[]:n(vr({},i,{overscan:o,count:a}))},{key:!1,debug:function(){return r.options.debug}}),this.indexFromElement=function(n){var i=r.options.indexAttribute,o=n.getAttribute(i);return o?parseInt(o,10):(console.warn("Missing attribute name '"+i+"={index}' on measured element."),-1)},this._measureElement=function(n,i){var o=r.measurementsCache[r.indexFromElement(n)];if(!o||!n.isConnected){r.measureElementCache.forEach(function(l,c){l===n&&(r.observer.unobserve(n),r.measureElementCache.delete(c))});return}var a=r.measureElementCache.get(o.key);a!==n&&(a&&r.observer.unobserve(a),r.observer.observe(n),r.measureElementCache.set(o.key,n));var s=r.options.measureElement(n,i,r);r.resizeItem(o,s)},this.resizeItem=function(n,i){var o,a=(o=r.itemSizeCache.get(n.key))!=null?o:n.size,s=i-a;s!==0&&(n.start=r.scrollOffset+o?i="end":i="start"),i==="start"?n=n:i==="end"?n=n-o:i==="center"&&(n=n-o/2);var a=r.options.horizontal?"scrollWidth":"scrollHeight",s=r.scrollElement?"document"in r.scrollElement?r.scrollElement.document.documentElement[a]:r.scrollElement[a]:0,l=s-r.getSize();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=function(n,i){i===void 0&&(i="auto"),n=Math.max(0,Math.min(n,r.options.count-1));var o=ln(r.getMeasurements()[n]);if(i==="auto")if(o.end>=r.scrollOffset+r.getSize()-r.options.scrollPaddingEnd)i="end";else if(o.start<=r.scrollOffset+r.options.scrollPaddingStart)i="start";else return[r.scrollOffset,i];var a=i==="end"?o.end+r.options.scrollPaddingEnd:o.start-r.options.scrollPaddingStart;return[r.getOffsetForAlignment(a,i),i]},this.isDynamicMode=function(){return r.measureElementCache.size>0},this.cancelScrollToIndex=function(){r.scrollToIndexTimeoutId!==null&&(clearTimeout(r.scrollToIndexTimeoutId),r.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(n,i){var o=i===void 0?{}:i,a=o.align,s=a===void 0?"start":a,l=o.behavior;r.cancelScrollToIndex(),l==="smooth"&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.getOffsetForAlignment(n,s),{adjustments:void 0,behavior:l})},this.scrollToIndex=function(n,i){var o=i===void 0?{}:i,a=o.align,s=a===void 0?"auto":a,l=o.behavior;n=Math.max(0,Math.min(n,r.options.count-1)),r.cancelScrollToIndex(),l==="smooth"&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var c=r.getOffsetForIndex(n,s),f=c[0],h=c[1];r._scrollToOffset(f,{adjustments:void 0,behavior:l}),l!=="smooth"&&r.isDynamicMode()&&(r.scrollToIndexTimeoutId=setTimeout(function(){r.scrollToIndexTimeoutId=null;var m=r.measureElementCache.has(r.options.getItemKey(n));if(m){var p=r.getOffsetForIndex(n,h),b=p[0];Yf(b,r.scrollOffset)||r.scrollToIndex(n,{align:h,behavior:l})}else r.scrollToIndex(n,{align:h,behavior:l})}))},this.scrollBy=function(n,i){var o=i===void 0?{}:i,a=o.behavior;r.cancelScrollToIndex(),a==="smooth"&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.scrollOffset+n,{adjustments:void 0,behavior:a})},this.getTotalSize=function(){var n;return(((n=r.getMeasurements()[r.options.count-1])==null?void 0:n.end)||r.options.paddingStart)-r.options.scrollMargin+r.options.paddingEnd},this._scrollToOffset=function(n,i){var o=i.adjustments,a=i.behavior;r.options.scrollToFn(n,{behavior:a,adjustments:o},r)},this.measure=function(){r.itemSizeCache=new Map,r.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(n){r.itemSizeCache.set(n.key,n.size)}),this.maybeNotify()},Sa=function(t,r,n,i){for(;t<=r;){var o=(t+r)/2|0,a=n(o);if(ai)r=o-1;else return o}return t>0?t-1:0};function ip(e){for(var t=e.measurements,r=e.outerSize,n=e.scrollOffset,i=t.length-1,o=function(c){return t[c].start},a=Sa(0,i,o,n),s=a;st in e?lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t,r)=>(up(e,typeof t!="symbol"?t+"":t,r),r);let cp=class{constructor(){un(this,"current",this.detect()),un(this,"handoffState","pending"),un(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ct=new cp,Q=(e,t)=>{ct.isServer?d.useEffect(e,t):d.useLayoutEffect(e,t)};function ve(e){let t=d.useRef(e);return Q(()=>{t.current=e},[e]),t}function Yt(e,t){let[r,n]=d.useState(e),i=ve(e);return Q(()=>n(i.current),[i,n,...t]),r}let O=function(e){let t=ve(e);return z.useCallback((...r)=>t.current(...r),[t])};function wa(e,t,r){let[n,i]=d.useState(r),o=e!==void 0,a=d.useRef(o),s=d.useRef(!1),l=d.useRef(!1);return o&&!a.current&&!s.current?(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&a.current&&!l.current&&(l.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,O(c=>(o||i(c),t==null?void 0:t(c)))]}function Ta(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ke(){let e=[],t={addEventListener(r,n,i,o){return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Ta(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=ke();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function Be(){let[e]=d.useState(ke);return d.useEffect(()=>()=>e.dispose(),[e]),e}function dp(){let e=typeof document>"u";return"useSyncExternalStore"in mn?(t=>t.useSyncExternalStore)(mn)(()=>()=>{},()=>!1,()=>!e):!1}function ii(){let e=dp(),[t,r]=d.useState(ct.isHandoffComplete);return t&&ct.isHandoffComplete===!1&&r(!1),d.useEffect(()=>{t!==!0&&r(!0)},[t]),d.useEffect(()=>ct.handoff(),[]),e?!1:t}var uo;let _e=(uo=z.useId)!=null?uo:function(){let e=ii(),[t,r]=z.useState(e?()=>ct.nextId():null);return Q(()=>{t===null&&r(ct.nextId())},[t]),t!=null?""+t:void 0};function Y(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Y),n}function Qt(e){return ct.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Cn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Fe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Fe||{}),kt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(kt||{}),fp=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fp||{});function pp(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Cn)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var oi=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(oi||{});function Ea(e,t=0){var r;return e===((r=Qt(e))==null?void 0:r.body)?!1:Y(t,{0(){return e.matches(Cn)},1(){let n=e;for(;n!==null;){if(n.matches(Cn))return!0;n=n.parentElement}return!1}})}var hp=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(hp||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let mp=["textarea","input"].join(",");function bp(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,mp))!=null?r:!1}function Ye(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wt(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?Ye(e):e:pp(e);i.length>0&&a.length>1&&(a=a.filter(p=>!i.includes(p))),n=n??o.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(n))-1;if(t&4)return Math.max(0,a.indexOf(n))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,h=a.length,m;do{if(f>=h||f+h<=0)return 0;let p=l+f;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}m=a[p],m==null||m.focus(c),f+=s}while(m!==o.activeElement);return t&6&&bp(m)&&m.select(),2}function vp(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gp(){return/Android/gi.test(window.navigator.userAgent)}function Oa(){return vp()||gp()}function nr(e,t,r){let n=ve(t);d.useEffect(()=>{function i(o){n.current(o)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}function xp(e,t,r){let n=ve(t);d.useEffect(()=>{function i(o){n.current(o)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function ja(e,t,r=!0){let n=d.useRef(!1);d.useEffect(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(a,s){if(!n.current||a.defaultPrevented)return;let l=s(a);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function f(h){return typeof h=="function"?f(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let f of c){if(f===null)continue;let h=f instanceof HTMLElement?f:f.current;if(h!=null&&h.contains(l)||a.composed&&a.composedPath().includes(h))return}return!Ea(l,oi.Loose)&&l.tabIndex!==-1&&a.preventDefault(),t(a,l)}let o=d.useRef(null);nr("pointerdown",a=>{var s,l;n.current&&(o.current=((l=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:l[0])||a.target)},!0),nr("mousedown",a=>{var s,l;n.current&&(o.current=((l=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:l[0])||a.target)},!0),nr("click",a=>{Oa()||o.current&&(i(a,()=>o.current),o.current=null)},!0),nr("touchend",a=>i(a,()=>a.target instanceof HTMLElement?a.target:null),!0),xp("blur",a=>i(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function yp(...e){return d.useMemo(()=>Qt(...e),[...e])}function co(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function ai(e,t){let[r,n]=d.useState(()=>co(e));return Q(()=>{n(co(e))},[e.type,e.as]),Q(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let Sp=Symbol();function me(...e){let t=d.useRef(e);d.useEffect(()=>{t.current=e},[e]);let r=O(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Sp]))?void 0:r}function fo(e){return[e.screenX,e.screenY]}function $a(){let e=d.useRef([-1,-1]);return{wasMoved(t){let r=fo(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=fo(t)}}}function wp({container:e,accept:t,walk:r,enabled:n=!0}){let i=d.useRef(t),o=d.useRef(r);d.useEffect(()=>{i.current=t,o.current=r},[t,r]),Q(()=>{if(!e||!n)return;let a=Qt(e);if(!a)return;let s=i.current,l=o.current,c=Object.assign(h=>s(h),{acceptNode:s}),f=a.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;f.nextNode();)l(f.currentNode)},[e,n,i,o])}function po(e,t){let r=d.useRef([]),n=O(e);d.useEffect(()=>{let i=[...r.current];for(let[o,a]of t.entries())if(r.current[o]!==a){let s=n(t,i);return r.current=t,s}},[n,...t])}function gr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var et=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(et||{}),Qe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qe||{});function le({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??Tp;let l=Ca(t,e);if(o)return ir(l,r,n,a,s);let c=i??0;if(c&2){let{static:f=!1,...h}=l;if(f)return ir(h,r,n,a,s)}if(c&1){let{unmount:f=!0,...h}=l;return Y(f?0:1,{0(){return null},1(){return ir({...h,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return ir(l,r,n,a,s)}function ir(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...l}=cn(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},f=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let h={};if(t){let m=!1,p=[];for(let[b,y]of Object.entries(t))typeof y=="boolean"&&(m=!0),y===!0&&p.push(b);m&&(h["data-headlessui-state"]=p.join(" "))}if(o===d.Fragment&&Object.keys(xr(l)).length>0){if(!d.isValidElement(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(y=>` - ${y}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(` -`)].join(` -`));let m=f.props,p=typeof(m==null?void 0:m.className)=="function"?(...y)=>gr(m==null?void 0:m.className(...y),l.className):gr(m==null?void 0:m.className,l.className),b=p?{className:p}:{};return d.cloneElement(f,Object.assign({},Ca(f.props,xr(cn(l,["ref"]))),h,c,{ref:i(f.ref,c.ref)},b))}return d.createElement(o,Object.assign({},cn(l,["ref"]),o!==d.Fragment&&c,o!==d.Fragment&&h),f)}function Tp(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ca(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let a=r[n];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function ae(e){var t;return Object.assign(d.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xr(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function cn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Ep="div";var Br=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Br||{});function Op(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return le({ourProps:o,theirProps:i,slot:{},defaultTag:Ep,name:"Hidden"})}let Ur=ae(Op),si=d.createContext(null);si.displayName="OpenClosedContext";var he=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(he||{});function Hr(){return d.useContext(si)}function li({value:e,children:t}){return z.createElement(si.Provider,{value:e},t)}function jp(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let st=[];jp(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&st[0]!==t.target&&(st.unshift(t.target),st=st.filter(r=>r!=null&&r.isConnected),st.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ra(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&$p(r)?!1:n}function $p(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Cp(e){throw new Error("Unexpected object: "+e)}var B=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(B||{});function Rn(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(D||{}),Rp={},Fp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Fp||{}),Ip=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ip||{}),Ap=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ap||{}),_p=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(_p||{});function dn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),i=n.length>0&&n[0].dataRef.current.order!==null?n.sort((a,s)=>a.dataRef.current.order-s.dataRef.current.order):Ye(n,a=>a.dataRef.current.domRef.current),o=r?i.indexOf(r):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let Pp={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,r;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((r=e.dataRef.current)!=null&&r.value){let n=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(n!==-1)return{...e,activeOptionIndex:n,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var r,n,i,o,a;if((r=e.dataRef.current)!=null&&r.disabled||(n=e.dataRef.current)!=null&&n.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let f=t.focus===B.Specific?t.idx:Rn(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var m,p;return(p=(m=e.activeOptionIndex)!=null?m:e.virtual.options.findIndex(b=>!e.virtual.disabled(b)))!=null?p:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),h=(o=t.trigger)!=null?o:2;return e.activeOptionIndex===f&&e.activationTrigger===h?e:{...e,activeOptionIndex:f,activationTrigger:h}}let s=dn(e);if(s.activeOptionIndex===null){let f=s.options.findIndex(h=>!h.dataRef.current.disabled);f!==-1&&(s.activeOptionIndex=f)}let l=t.focus===B.Specific?t.idx:Rn(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled}),c=(a=t.trigger)!=null?a:2;return e.activeOptionIndex===l&&e.activationTrigger===c?e:{...e,...s,activeOptionIndex:l,activationTrigger:c}},3:(e,t)=>{var r,n,i;if((r=e.dataRef.current)!=null&&r.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,a=dn(e,l=>(l.push(o),l));e.activeOptionIndex===null&&(n=e.dataRef.current)!=null&&n.isSelected(t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let s={...e,...a,activationTrigger:2};return(i=e.dataRef.current)!=null&&i.__demoMode&&e.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},4:(e,t)=>{var r;if((r=e.dataRef.current)!=null&&r.virtual)return{...e,options:e.options.filter(i=>i.id!==t.id)};let n=dn(e,i=>{let o=i.findIndex(a=>a.id===t.id);return o!==-1&&i.splice(o,1),i});return{...e,...n,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var r;if(((r=e.virtual)==null?void 0:r.options)===t.options)return e;let n=e.activeOptionIndex;if(e.activeOptionIndex!==null){let i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i!==-1?n=i:n=null}return{...e,activeOptionIndex:n,virtual:Object.assign({},e.virtual,{options:t.options})}}},ci=d.createContext(null);ci.displayName="ComboboxActionsContext";function Xt(e){let t=d.useContext(ci);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Xt),r}return t}let Aa=d.createContext(null);function Np(e){var t;let r=gt("VirtualProvider"),[n,i]=d.useMemo(()=>{let l=r.optionsRef.current;if(!l)return[0,0];let c=window.getComputedStyle(l);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[r.optionsRef.current]),o=sp({scrollPaddingStart:n,scrollPaddingEnd:i,count:r.virtual.options.length,estimateSize(){return 40},getScrollElement(){var l;return(l=r.optionsRef.current)!=null?l:null},overscan:12}),[a,s]=d.useState(0);return Q(()=>{s(l=>l+1)},[(t=r.virtual)==null?void 0:t.options]),z.createElement(Aa.Provider,{value:o},z.createElement("div",{style:{position:"relative",width:"100%",height:`${o.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Rp.JEST_WORKER_ID!==void 0||r.activationTrigger===0)return;r.activeOptionIndex!==null&&r.virtual.options.length>r.activeOptionIndex&&o.scrollToIndex(r.activeOptionIndex)}}},o.getVirtualItems().map(l=>{var c;return z.createElement(d.Fragment,{key:l.key},z.cloneElement((c=e.children)==null?void 0:c.call(e,{option:r.virtual.options[l.index],open:r.comboboxState===0}),{key:`${a}-${l.key}`,"data-index":l.index,"aria-setsize":r.virtual.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}}))})))}let di=d.createContext(null);di.displayName="ComboboxDataContext";function gt(e){let t=d.useContext(di);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,gt),r}return t}function kp(e,t){return Y(t.type,Pp,e,t)}let Dp=d.Fragment;function Mp(e,t){let{value:r,defaultValue:n,onChange:i,form:o,name:a,by:s=null,disabled:l=!1,__demoMode:c=!1,nullable:f=!1,multiple:h=!1,immediate:m=!1,virtual:p=null,...b}=e,y=!1,x=null,[g=h?[]:void 0,w]=wa(r,i,n),[$,A]=d.useReducer(kp,{dataRef:d.createRef(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),P=d.useRef(!1),E=d.useRef({static:!1,hold:!1}),F=d.useRef(null),_=d.useRef(null),q=d.useRef(null),R=d.useRef(null),C=O(typeof s=="string"?(M,W)=>{let pe=s;return(M==null?void 0:M[pe])===(W==null?void 0:W[pe])}:s??((M,W)=>M===W)),H=O(M=>$.options.findIndex(W=>C(W.dataRef.current.value,M))),U=d.useCallback(M=>Y(S.mode,{1:()=>g.some(W=>C(W,M)),0:()=>C(g,M)}),[g]),se=O(M=>$.activeOptionIndex===H(M)),S=d.useMemo(()=>({...$,immediate:y,optionsPropsRef:E,labelRef:F,inputRef:_,buttonRef:q,optionsRef:R,value:g,defaultValue:n,disabled:l,mode:h?1:0,virtual:$.virtual,get activeOptionIndex(){if(P.current&&$.activeOptionIndex===null&&$.options.length>0){let M=$.options.findIndex(W=>!W.dataRef.current.disabled);if(M!==-1)return M}return $.activeOptionIndex},calculateIndex:H,compare:C,isSelected:U,isActive:se,nullable:f,__demoMode:c}),[g,n,l,h,f,c,$,x]);Q(()=>{},[x,void 0]),Q(()=>{$.dataRef.current=S},[S]),ja([S.buttonRef,S.inputRef,S.optionsRef],()=>V.closeCombobox(),S.comboboxState===0);let ne=d.useMemo(()=>{var M,W,pe;return{open:S.comboboxState===0,disabled:l,activeIndex:S.activeOptionIndex,activeOption:S.activeOptionIndex===null?null:S.virtual?S.virtual.options[(M=S.activeOptionIndex)!=null?M:0]:(pe=(W=S.options[S.activeOptionIndex])==null?void 0:W.dataRef.current.value)!=null?pe:null,value:g}},[S,l,g]),G=O(()=>{if(S.activeOptionIndex!==null){if(S.virtual)Pe(S.virtual.options[S.activeOptionIndex]);else{let{dataRef:M}=S.options[S.activeOptionIndex];Pe(M.current.value)}V.goToOption(B.Specific,S.activeOptionIndex)}}),ue=O(()=>{A({type:0}),P.current=!0}),X=O(()=>{A({type:1}),P.current=!1}),re=O((M,W,pe)=>(P.current=!1,M===B.Specific?A({type:2,focus:B.Specific,idx:W,trigger:pe}):A({type:2,focus:M,trigger:pe}))),ce=O((M,W)=>(A({type:3,payload:{id:M,dataRef:W}}),()=>{S.isActive(W.current.value)&&(P.current=!0),A({type:4,id:M})})),ie=O(M=>(A({type:5,id:M}),()=>A({type:5,id:null}))),Pe=O(M=>Y(S.mode,{0(){return w==null?void 0:w(M)},1(){let W=S.value.slice(),pe=W.findIndex(xt=>C(xt,M));return pe===-1?W.push(M):W.splice(pe,1),w==null?void 0:w(W)}})),k=O(M=>{A({type:6,trigger:M})}),V=d.useMemo(()=>({onChange:Pe,registerOption:ce,registerLabel:ie,goToOption:re,closeCombobox:X,openCombobox:ue,setActivationTrigger:k,selectActiveOption:G}),[]),oe=t===null?{}:{ref:t},ge=d.useRef(null),rt=Be();return d.useEffect(()=>{ge.current&&n!==void 0&&rt.addEventListener(ge.current,"reset",()=>{w==null||w(n)})},[ge,w]),z.createElement(ci.Provider,{value:V},z.createElement(di.Provider,{value:S},z.createElement(li,{value:Y(S.comboboxState,{0:he.Open,1:he.Closed})},a!=null&&g!=null&&ui({[a]:g}).map(([M,W],pe)=>z.createElement(Ur,{features:Br.Hidden,ref:pe===0?xt=>{var _t;ge.current=(_t=xt==null?void 0:xt.closest("form"))!=null?_t:null}:void 0,...xr({key:M,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:M,value:W})})),le({ourProps:oe,theirProps:b,slot:ne,defaultTag:Dp,name:"Combobox"}))))}let Lp="input";function Vp(e,t){var r,n,i,o,a;let s=_e(),{id:l=`headlessui-combobox-input-${s}`,onChange:c,displayValue:f,type:h="text",...m}=e,p=gt("Combobox.Input"),b=Xt("Combobox.Input"),y=me(p.inputRef,t),x=yp(p.inputRef),g=d.useRef(!1),w=Be(),$=O(()=>{b.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),b.goToOption(B.Nothing)}),A=function(){var S;return typeof f=="function"&&p.value!==void 0?(S=f(p.value))!=null?S:"":typeof p.value=="string"?p.value:""}();po(([S,ne],[G,ue])=>{if(g.current)return;let X=p.inputRef.current;X&&((ue===0&&ne===1||S!==G)&&(X.value=S),requestAnimationFrame(()=>{if(g.current||!X||(x==null?void 0:x.activeElement)!==X)return;let{selectionStart:re,selectionEnd:ce}=X;Math.abs((ce??0)-(re??0))===0&&re===0&&X.setSelectionRange(X.value.length,X.value.length)}))},[A,p.comboboxState,x]),po(([S],[ne])=>{if(S===0&&ne===1){if(g.current)return;let G=p.inputRef.current;if(!G)return;let ue=G.value,{selectionStart:X,selectionEnd:re,selectionDirection:ce}=G;G.value="",G.value=ue,ce!==null?G.setSelectionRange(X,re,ce):G.setSelectionRange(X,re)}},[p.comboboxState]);let P=d.useRef(!1),E=O(()=>{P.current=!0}),F=O(()=>{w.nextFrame(()=>{P.current=!1})}),_=O(S=>{switch(g.current=!0,S.key){case D.Enter:if(g.current=!1,p.comboboxState!==0||P.current)return;if(S.preventDefault(),S.stopPropagation(),p.activeOptionIndex===null){b.closeCombobox();return}b.selectActiveOption(),p.mode===0&&b.closeCombobox();break;case D.ArrowDown:return g.current=!1,S.preventDefault(),S.stopPropagation(),Y(p.comboboxState,{0:()=>b.goToOption(B.Next),1:()=>b.openCombobox()});case D.ArrowUp:return g.current=!1,S.preventDefault(),S.stopPropagation(),Y(p.comboboxState,{0:()=>b.goToOption(B.Previous),1:()=>{b.openCombobox(),w.nextFrame(()=>{p.value||b.goToOption(B.Last)})}});case D.Home:if(S.shiftKey)break;return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.First);case D.PageUp:return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.First);case D.End:if(S.shiftKey)break;return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.Last);case D.PageDown:return g.current=!1,S.preventDefault(),S.stopPropagation(),b.goToOption(B.Last);case D.Escape:return g.current=!1,p.comboboxState!==0?void 0:(S.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&S.stopPropagation(),p.nullable&&p.mode===0&&p.value===null&&$(),b.closeCombobox());case D.Tab:if(g.current=!1,p.comboboxState!==0)return;p.mode===0&&p.activationTrigger!==1&&b.selectActiveOption(),b.closeCombobox();break}}),q=O(S=>{c==null||c(S),p.nullable&&p.mode===0&&S.target.value===""&&$(),b.openCombobox()}),R=O(S=>{var ne,G,ue;let X=(ne=S.relatedTarget)!=null?ne:st.find(re=>re!==S.currentTarget);if(g.current=!1,!((G=p.optionsRef.current)!=null&&G.contains(X))&&!((ue=p.buttonRef.current)!=null&&ue.contains(X))&&p.comboboxState===0)return S.preventDefault(),p.mode===0&&(p.nullable&&p.value===null?$():p.activationTrigger!==1&&b.selectActiveOption()),b.closeCombobox()}),C=O(S=>{var ne,G,ue;let X=(ne=S.relatedTarget)!=null?ne:st.find(re=>re!==S.currentTarget);(G=p.buttonRef.current)!=null&&G.contains(X)||(ue=p.optionsRef.current)!=null&&ue.contains(X)||p.disabled||p.immediate&&p.comboboxState!==0&&(b.openCombobox(),w.nextFrame(()=>{b.setActivationTrigger(1)}))}),H=Yt(()=>{if(p.labelId)return[p.labelId].join(" ")},[p.labelId]),U=d.useMemo(()=>({open:p.comboboxState===0,disabled:p.disabled}),[p]),se={ref:y,id:l,role:"combobox",type:h,"aria-controls":(r=p.optionsRef.current)==null?void 0:r.id,"aria-expanded":p.comboboxState===0,"aria-activedescendant":p.activeOptionIndex===null?void 0:p.virtual?(n=p.options.find(S=>{var ne;return!((ne=p.virtual)!=null&&ne.disabled(S.dataRef.current.value))&&p.compare(S.dataRef.current.value,p.virtual.options[p.activeOptionIndex])}))==null?void 0:n.id:(i=p.options[p.activeOptionIndex])==null?void 0:i.id,"aria-labelledby":H,"aria-autocomplete":"list",defaultValue:(a=(o=e.defaultValue)!=null?o:p.defaultValue!==void 0?f==null?void 0:f(p.defaultValue):null)!=null?a:p.defaultValue,disabled:p.disabled,onCompositionStart:E,onCompositionEnd:F,onKeyDown:_,onChange:q,onFocus:C,onBlur:R};return le({ourProps:se,theirProps:m,slot:U,defaultTag:Lp,name:"Combobox.Input"})}let zp="button";function qp(e,t){var r;let n=gt("Combobox.Button"),i=Xt("Combobox.Button"),o=me(n.buttonRef,t),a=_e(),{id:s=`headlessui-combobox-button-${a}`,...l}=e,c=Be(),f=O(y=>{switch(y.key){case D.ArrowDown:return y.preventDefault(),y.stopPropagation(),n.comboboxState===1&&i.openCombobox(),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case D.ArrowUp:return y.preventDefault(),y.stopPropagation(),n.comboboxState===1&&(i.openCombobox(),c.nextFrame(()=>{n.value||i.goToOption(B.Last)})),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case D.Escape:return n.comboboxState!==0?void 0:(y.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&y.stopPropagation(),i.closeCombobox(),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})}));default:return}}),h=O(y=>{if(Ra(y.currentTarget))return y.preventDefault();n.comboboxState===0?i.closeCombobox():(y.preventDefault(),i.openCombobox()),c.nextFrame(()=>{var x;return(x=n.inputRef.current)==null?void 0:x.focus({preventScroll:!0})})}),m=Yt(()=>{if(n.labelId)return[n.labelId,s].join(" ")},[n.labelId,s]),p=d.useMemo(()=>({open:n.comboboxState===0,disabled:n.disabled,value:n.value}),[n]),b={ref:o,id:s,type:ai(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(r=n.optionsRef.current)==null?void 0:r.id,"aria-expanded":n.comboboxState===0,"aria-labelledby":m,disabled:n.disabled,onClick:h,onKeyDown:f};return le({ourProps:b,theirProps:l,slot:p,defaultTag:zp,name:"Combobox.Button"})}let Bp="label";function Up(e,t){let r=_e(),{id:n=`headlessui-combobox-label-${r}`,...i}=e,o=gt("Combobox.Label"),a=Xt("Combobox.Label"),s=me(o.labelRef,t);Q(()=>a.registerLabel(n),[n]);let l=O(()=>{var f;return(f=o.inputRef.current)==null?void 0:f.focus({preventScroll:!0})}),c=d.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return le({ourProps:{ref:s,id:n,onClick:l},theirProps:i,slot:c,defaultTag:Bp,name:"Combobox.Label"})}let Hp="ul",Gp=et.RenderStrategy|et.Static;function Kp(e,t){let r=_e(),{id:n=`headlessui-combobox-options-${r}`,hold:i=!1,...o}=e,a=gt("Combobox.Options"),s=me(a.optionsRef,t),l=Hr(),c=l!==null?(l&he.Open)===he.Open:a.comboboxState===0;Q(()=>{var p;a.optionsPropsRef.current.static=(p=e.static)!=null?p:!1},[a.optionsPropsRef,e.static]),Q(()=>{a.optionsPropsRef.current.hold=i},[a.optionsPropsRef,i]),wp({container:a.optionsRef.current,enabled:a.comboboxState===0,accept(p){return p.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});let f=Yt(()=>{var p,b;return(b=a.labelId)!=null?b:(p=a.buttonRef.current)==null?void 0:p.id},[a.labelId,a.buttonRef.current]),h=d.useMemo(()=>({open:a.comboboxState===0,option:void 0}),[a]),m={"aria-labelledby":f,role:"listbox","aria-multiselectable":a.mode===1?!0:void 0,id:n,ref:s};return a.virtual&&a.comboboxState===0&&Object.assign(o,{children:z.createElement(Np,null,o.children)}),le({ourProps:m,theirProps:o,slot:h,defaultTag:Hp,features:Gp,visible:c,name:"Combobox.Options"})}let Zp="li";function Wp(e,t){var r;let n=_e(),{id:i=`headlessui-combobox-option-${n}`,disabled:o=!1,value:a,order:s=null,...l}=e,c=gt("Combobox.Option"),f=Xt("Combobox.Option"),h=c.virtual?c.activeOptionIndex===c.calculateIndex(a):c.activeOptionIndex===null?!1:((r=c.options[c.activeOptionIndex])==null?void 0:r.id)===i,m=c.isSelected(a),p=d.useRef(null),b=ve({disabled:o,value:a,domRef:p,order:s}),y=d.useContext(Aa),x=me(t,p,y?y.measureElement:null),g=O(()=>f.onChange(a));Q(()=>f.registerOption(i,b),[b,i]);let w=d.useRef(!(c.virtual||c.__demoMode));Q(()=>{if(!c.virtual||!c.__demoMode)return;let R=ke();return R.requestAnimationFrame(()=>{w.current=!0}),R.dispose},[c.virtual,c.__demoMode]),Q(()=>{if(!w.current||c.comboboxState!==0||!h||c.activationTrigger===0)return;let R=ke();return R.requestAnimationFrame(()=>{var C,H;(H=(C=p.current)==null?void 0:C.scrollIntoView)==null||H.call(C,{block:"nearest"})}),R.dispose},[p,h,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let $=O(R=>{var C;if(o||(C=c.virtual)!=null&&C.disabled(a))return R.preventDefault();g(),Oa()||requestAnimationFrame(()=>{var H;return(H=c.inputRef.current)==null?void 0:H.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>f.closeCombobox())}),A=O(()=>{var R;if(o||(R=c.virtual)!=null&&R.disabled(a))return f.goToOption(B.Nothing);let C=c.calculateIndex(a);f.goToOption(B.Specific,C)}),P=$a(),E=O(R=>P.update(R)),F=O(R=>{var C;if(!P.wasMoved(R)||o||(C=c.virtual)!=null&&C.disabled(a)||h)return;let H=c.calculateIndex(a);f.goToOption(B.Specific,H,0)}),_=O(R=>{var C;P.wasMoved(R)&&(o||(C=c.virtual)!=null&&C.disabled(a)||h&&(c.optionsPropsRef.current.hold||f.goToOption(B.Nothing)))}),q=d.useMemo(()=>({active:h,selected:m,disabled:o}),[h,m,o]);return le({ourProps:{id:i,ref:x,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":m,disabled:void 0,onClick:$,onFocus:A,onPointerEnter:E,onMouseEnter:E,onPointerMove:F,onMouseMove:F,onPointerLeave:_,onMouseLeave:_},theirProps:l,slot:q,defaultTag:Zp,name:"Combobox.Option"})}let Yp=ae(Mp),Qp=ae(qp),Xp=ae(Vp),Jp=ae(Up),eh=ae(Kp),th=ae(Wp),cr=Object.assign(Yp,{Input:Xp,Button:Qp,Label:Jp,Options:eh,Option:th});function Gr(){let e=d.useRef(!1);return Q(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ho=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function mo(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?(r=i.innerText)!=null?r:"":n;return ho.test(a)&&(a=a.replace(ho,"")),a}function rh(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():mo(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return mo(e).trim()}function nh(e){let t=d.useRef(""),r=d.useRef("");return O(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=rh(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var ih=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ih||{}),oh=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(oh||{}),ah=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ah||{}),sh=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(sh||{});function fn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=Ye(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let lh={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=fn(e),i=Rn(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(a=>{var s;return!a.dataRef.current.disabled&&((s=a.dataRef.current.textValue)==null?void 0:s.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=fn(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=fn(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},fi=d.createContext(null);fi.displayName="ListboxActionsContext";function Jt(e){let t=d.useContext(fi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Jt),r}return t}let pi=d.createContext(null);pi.displayName="ListboxDataContext";function er(e){let t=d.useContext(pi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,er),r}return t}function uh(e,t){return Y(t.type,lh,e,t)}let ch=d.Fragment;function dh(e,t){let{value:r,defaultValue:n,form:i,name:o,onChange:a,by:s=(k,V)=>k===V,disabled:l=!1,horizontal:c=!1,multiple:f=!1,...h}=e;const m=c?"horizontal":"vertical";let p=me(t),[b=f?[]:void 0,y]=wa(r,a,n),[x,g]=d.useReducer(uh,{dataRef:d.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=d.useRef({static:!1,hold:!1}),$=d.useRef(null),A=d.useRef(null),P=d.useRef(null),E=O(typeof s=="string"?(k,V)=>{let oe=s;return(k==null?void 0:k[oe])===(V==null?void 0:V[oe])}:s),F=d.useCallback(k=>Y(_.mode,{1:()=>b.some(V=>E(V,k)),0:()=>E(b,k)}),[b]),_=d.useMemo(()=>({...x,value:b,disabled:l,mode:f?1:0,orientation:m,compare:E,isSelected:F,optionsPropsRef:w,labelRef:$,buttonRef:A,optionsRef:P}),[b,l,f,x]);Q(()=>{x.dataRef.current=_},[_]),ja([_.buttonRef,_.optionsRef],(k,V)=>{var oe;g({type:1}),Ea(V,oi.Loose)||(k.preventDefault(),(oe=_.buttonRef.current)==null||oe.focus())},_.listboxState===0);let q=d.useMemo(()=>({open:_.listboxState===0,disabled:l,value:b}),[_,l,b]),R=O(k=>{let V=_.options.find(oe=>oe.id===k);V&&G(V.dataRef.current.value)}),C=O(()=>{if(_.activeOptionIndex!==null){let{dataRef:k,id:V}=_.options[_.activeOptionIndex];G(k.current.value),g({type:2,focus:B.Specific,id:V})}}),H=O(()=>g({type:0})),U=O(()=>g({type:1})),se=O((k,V,oe)=>k===B.Specific?g({type:2,focus:B.Specific,id:V,trigger:oe}):g({type:2,focus:k,trigger:oe})),S=O((k,V)=>(g({type:5,id:k,dataRef:V}),()=>g({type:6,id:k}))),ne=O(k=>(g({type:7,id:k}),()=>g({type:7,id:null}))),G=O(k=>Y(_.mode,{0(){return y==null?void 0:y(k)},1(){let V=_.value.slice(),oe=V.findIndex(ge=>E(ge,k));return oe===-1?V.push(k):V.splice(oe,1),y==null?void 0:y(V)}})),ue=O(k=>g({type:3,value:k})),X=O(()=>g({type:4})),re=d.useMemo(()=>({onChange:G,registerOption:S,registerLabel:ne,goToOption:se,closeListbox:U,openListbox:H,selectActiveOption:C,selectOption:R,search:ue,clearSearch:X}),[]),ce={ref:p},ie=d.useRef(null),Pe=Be();return d.useEffect(()=>{ie.current&&n!==void 0&&Pe.addEventListener(ie.current,"reset",()=>{y==null||y(n)})},[ie,y]),z.createElement(fi.Provider,{value:re},z.createElement(pi.Provider,{value:_},z.createElement(li,{value:Y(_.listboxState,{0:he.Open,1:he.Closed})},o!=null&&b!=null&&ui({[o]:b}).map(([k,V],oe)=>z.createElement(Ur,{features:Br.Hidden,ref:oe===0?ge=>{var rt;ie.current=(rt=ge==null?void 0:ge.closest("form"))!=null?rt:null}:void 0,...xr({key:k,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:k,value:V})})),le({ourProps:ce,theirProps:h,slot:q,defaultTag:ch,name:"Listbox"}))))}let fh="button";function ph(e,t){var r;let n=_e(),{id:i=`headlessui-listbox-button-${n}`,...o}=e,a=er("Listbox.Button"),s=Jt("Listbox.Button"),l=me(a.buttonRef,t),c=Be(),f=O(x=>{switch(x.key){case D.Space:case D.Enter:case D.ArrowDown:x.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(B.First)});break;case D.ArrowUp:x.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(B.Last)});break}}),h=O(x=>{switch(x.key){case D.Space:x.preventDefault();break}}),m=O(x=>{if(Ra(x.currentTarget))return x.preventDefault();a.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var g;return(g=a.buttonRef.current)==null?void 0:g.focus({preventScroll:!0})})):(x.preventDefault(),s.openListbox())}),p=Yt(()=>{if(a.labelId)return[a.labelId,i].join(" ")},[a.labelId,i]),b=d.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]),y={ref:l,id:i,type:ai(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=a.optionsRef.current)==null?void 0:r.id,"aria-expanded":a.listboxState===0,"aria-labelledby":p,disabled:a.disabled,onKeyDown:f,onKeyUp:h,onClick:m};return le({ourProps:y,theirProps:o,slot:b,defaultTag:fh,name:"Listbox.Button"})}let hh="label";function mh(e,t){let r=_e(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,o=er("Listbox.Label"),a=Jt("Listbox.Label"),s=me(o.labelRef,t);Q(()=>a.registerLabel(n),[n]);let l=O(()=>{var f;return(f=o.buttonRef.current)==null?void 0:f.focus({preventScroll:!0})}),c=d.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled}),[o]);return le({ourProps:{ref:s,id:n,onClick:l},theirProps:i,slot:c,defaultTag:hh,name:"Listbox.Label"})}let bh="ul",vh=et.RenderStrategy|et.Static;function gh(e,t){var r;let n=_e(),{id:i=`headlessui-listbox-options-${n}`,...o}=e,a=er("Listbox.Options"),s=Jt("Listbox.Options"),l=me(a.optionsRef,t),c=Be(),f=Be(),h=Hr(),m=h!==null?(h&he.Open)===he.Open:a.listboxState===0;d.useEffect(()=>{var g;let w=a.optionsRef.current;w&&a.listboxState===0&&w!==((g=Qt(w))==null?void 0:g.activeElement)&&w.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let p=O(g=>{switch(f.dispose(),g.key){case D.Space:if(a.searchQuery!=="")return g.preventDefault(),g.stopPropagation(),s.search(g.key);case D.Enter:if(g.preventDefault(),g.stopPropagation(),a.activeOptionIndex!==null){let{dataRef:w}=a.options[a.activeOptionIndex];s.onChange(w.current.value)}a.mode===0&&(s.closeListbox(),ke().nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})}));break;case Y(a.orientation,{vertical:D.ArrowDown,horizontal:D.ArrowRight}):return g.preventDefault(),g.stopPropagation(),s.goToOption(B.Next);case Y(a.orientation,{vertical:D.ArrowUp,horizontal:D.ArrowLeft}):return g.preventDefault(),g.stopPropagation(),s.goToOption(B.Previous);case D.Home:case D.PageUp:return g.preventDefault(),g.stopPropagation(),s.goToOption(B.First);case D.End:case D.PageDown:return g.preventDefault(),g.stopPropagation(),s.goToOption(B.Last);case D.Escape:return g.preventDefault(),g.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})});case D.Tab:g.preventDefault(),g.stopPropagation();break;default:g.key.length===1&&(s.search(g.key),f.setTimeout(()=>s.clearSearch(),350));break}}),b=Yt(()=>{var g;return(g=a.buttonRef.current)==null?void 0:g.id},[a.buttonRef.current]),y=d.useMemo(()=>({open:a.listboxState===0}),[a]),x={"aria-activedescendant":a.activeOptionIndex===null||(r=a.options[a.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":a.mode===1?!0:void 0,"aria-labelledby":b,"aria-orientation":a.orientation,id:i,onKeyDown:p,role:"listbox",tabIndex:0,ref:l};return le({ourProps:x,theirProps:o,slot:y,defaultTag:bh,features:vh,visible:m,name:"Listbox.Options"})}let xh="li";function yh(e,t){let r=_e(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...a}=e,s=er("Listbox.Option"),l=Jt("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===n:!1,f=s.isSelected(o),h=d.useRef(null),m=nh(h),p=ve({disabled:i,value:o,domRef:h,get textValue(){return m()}}),b=me(t,h);Q(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let E=ke();return E.requestAnimationFrame(()=>{var F,_;(_=(F=h.current)==null?void 0:F.scrollIntoView)==null||_.call(F,{block:"nearest"})}),E.dispose},[h,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Q(()=>l.registerOption(n,p),[p,n]);let y=O(E=>{if(i)return E.preventDefault();l.onChange(o),s.mode===0&&(l.closeListbox(),ke().nextFrame(()=>{var F;return(F=s.buttonRef.current)==null?void 0:F.focus({preventScroll:!0})}))}),x=O(()=>{if(i)return l.goToOption(B.Nothing);l.goToOption(B.Specific,n)}),g=$a(),w=O(E=>g.update(E)),$=O(E=>{g.wasMoved(E)&&(i||c||l.goToOption(B.Specific,n,0))}),A=O(E=>{g.wasMoved(E)&&(i||c&&l.goToOption(B.Nothing))}),P=d.useMemo(()=>({active:c,selected:f,disabled:i}),[c,f,i]);return le({ourProps:{id:n,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:y,onFocus:x,onPointerEnter:w,onMouseEnter:w,onPointerMove:$,onMouseMove:$,onPointerLeave:A,onMouseLeave:A},theirProps:a,slot:P,defaultTag:xh,name:"Listbox.Option"})}let Sh=ae(dh),wh=ae(ph),Th=ae(mh),Eh=ae(gh),Oh=ae(yh),dr=Object.assign(Sh,{Button:wh,Label:Th,Options:Eh,Option:Oh});function jh(e=0){let[t,r]=d.useState(e),n=Gr(),i=d.useCallback(l=>{n.current&&r(c=>c|l)},[t,n]),o=d.useCallback(l=>!!(t&l),[t]),a=d.useCallback(l=>{n.current&&r(c=>c&~l)},[r,n]),s=d.useCallback(l=>{n.current&&r(c=>c^l)},[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}function $h({onFocus:e}){let[t,r]=d.useState(!0),n=Gr();return t?z.createElement(Ur,{as:"button",type:"button",features:Br.Focusable,onFocus:i=>{i.preventDefault();let o,a=50;function s(){if(a--<=0){o&&cancelAnimationFrame(o);return}if(e()){if(cancelAnimationFrame(o),!n.current)return;r(!1);return}o=requestAnimationFrame(s)}o=requestAnimationFrame(s)}}):null}const _a=d.createContext(null);function Ch(){return{groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=(r=n.get(t))!=null?r:0;n.set(t,i+1);let o=Array.from(n.keys()).indexOf(t);function a(){let s=n.get(t);s>1?n.set(t,s-1):n.delete(t)}return[o,a]}}}function Rh({children:e}){let t=d.useRef(Ch());return d.createElement(_a.Provider,{value:t},e)}function Pa(e){let t=d.useContext(_a);if(!t)throw new Error("You must wrap your component in a ");let r=Fh(),[n,i]=t.current.get(e,r);return d.useEffect(()=>i,[]),n}function Fh(){var e,t,r;let n=(r=(t=(e=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:e.ReactCurrentOwner)==null?void 0:t.current)!=null?r:null;if(!n)return Symbol();let i=[],o=n;for(;o;)i.push(o.index),o=o.return;return"$."+i.join(".")}var Ih=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ih||{}),Ah=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Ah||{}),_h=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(_h||{});let Ph={0(e,t){var r;let n=Ye(e.tabs,f=>f.current),i=Ye(e.panels,f=>f.current),o=n.filter(f=>{var h;return!((h=f.current)!=null&&h.hasAttribute("disabled"))}),a={...e,tabs:n,panels:i};if(t.index<0||t.index>n.length-1){let f=Y(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Y(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(o.length===0)return a;let h=Y(f,{0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])});return{...a,selectedIndex:h===-1?e.selectedIndex:h}}let s=n.slice(0,t.index),l=[...n.slice(t.index),...s].find(f=>o.includes(f));if(!l)return a;let c=(r=n.indexOf(l))!=null?r:e.selectedIndex;return c===-1&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var r;if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],i=Ye([...e.tabs,t.tab],a=>a.current),o=(r=i.indexOf(n))!=null?r:e.selectedIndex;return o===-1&&(o=e.selectedIndex),{...e,tabs:i,selectedIndex:o}},2(e,t){return{...e,tabs:e.tabs.filter(r=>r!==t.tab)}},3(e,t){return e.panels.includes(t.panel)?e:{...e,panels:Ye([...e.panels,t.panel],r=>r.current)}},4(e,t){return{...e,panels:e.panels.filter(r=>r!==t.panel)}}},hi=d.createContext(null);hi.displayName="TabsDataContext";function Rt(e){let t=d.useContext(hi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Rt),r}return t}let mi=d.createContext(null);mi.displayName="TabsActionsContext";function bi(e){let t=d.useContext(mi);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,bi),r}return t}function Nh(e,t){return Y(t.type,Ph,e,t)}let kh=d.Fragment;function Dh(e,t){let{defaultIndex:r=0,vertical:n=!1,manual:i=!1,onChange:o,selectedIndex:a=null,...s}=e;const l=n?"vertical":"horizontal",c=i?"manual":"auto";let f=a!==null,h=me(t),[m,p]=d.useReducer(Nh,{selectedIndex:a??r,tabs:[],panels:[]}),b=d.useMemo(()=>({selectedIndex:m.selectedIndex}),[m.selectedIndex]),y=ve(o||(()=>{})),x=ve(m.tabs),g=d.useMemo(()=>({orientation:l,activation:c,...m}),[l,c,m]),w=O(_=>(p({type:1,tab:_}),()=>p({type:2,tab:_}))),$=O(_=>(p({type:3,panel:_}),()=>p({type:4,panel:_}))),A=O(_=>{P.current!==_&&y.current(_),f||p({type:0,index:_})}),P=ve(f?e.selectedIndex:m.selectedIndex),E=d.useMemo(()=>({registerTab:w,registerPanel:$,change:A}),[]);Q(()=>{p({type:0,index:a??r})},[a]),Q(()=>{if(P.current===void 0||m.tabs.length<=0)return;let _=Ye(m.tabs,q=>q.current);_.some((q,R)=>m.tabs[R]!==q)&&A(_.indexOf(m.tabs[P.current]))});let F={ref:h};return z.createElement(Rh,null,z.createElement(mi.Provider,{value:E},z.createElement(hi.Provider,{value:g},g.tabs.length<=0&&z.createElement($h,{onFocus:()=>{var _,q;for(let R of x.current)if(((_=R.current)==null?void 0:_.tabIndex)===0)return(q=R.current)==null||q.focus(),!0;return!1}}),le({ourProps:F,theirProps:s,slot:b,defaultTag:kh,name:"Tabs"}))))}let Mh="div";function Lh(e,t){let{orientation:r,selectedIndex:n}=Rt("Tab.List"),i=me(t);return le({ourProps:{ref:i,role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:Mh,name:"Tabs.List"})}let Vh="button";function zh(e,t){var r,n;let i=_e(),{id:o=`headlessui-tabs-tab-${i}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:f,panels:h}=Rt("Tab"),m=bi("Tab"),p=Rt("Tab"),b=d.useRef(null),y=me(b,t);Q(()=>m.registerTab(b),[m,b]);let x=Pa("tabs"),g=f.indexOf(b);g===-1&&(g=x);let w=g===c,$=O(R=>{var C;let H=R();if(H===kt.Success&&l==="auto"){let U=(C=Qt(b))==null?void 0:C.activeElement,se=p.tabs.findIndex(S=>S.current===U);se!==-1&&m.change(se)}return H}),A=O(R=>{let C=f.map(H=>H.current).filter(Boolean);if(R.key===D.Space||R.key===D.Enter){R.preventDefault(),R.stopPropagation(),m.change(g);return}switch(R.key){case D.Home:case D.PageUp:return R.preventDefault(),R.stopPropagation(),$(()=>wt(C,Fe.First));case D.End:case D.PageDown:return R.preventDefault(),R.stopPropagation(),$(()=>wt(C,Fe.Last))}if($(()=>Y(s,{vertical(){return R.key===D.ArrowUp?wt(C,Fe.Previous|Fe.WrapAround):R.key===D.ArrowDown?wt(C,Fe.Next|Fe.WrapAround):kt.Error},horizontal(){return R.key===D.ArrowLeft?wt(C,Fe.Previous|Fe.WrapAround):R.key===D.ArrowRight?wt(C,Fe.Next|Fe.WrapAround):kt.Error}}))===kt.Success)return R.preventDefault()}),P=d.useRef(!1),E=O(()=>{var R;P.current||(P.current=!0,(R=b.current)==null||R.focus({preventScroll:!0}),m.change(g),Ta(()=>{P.current=!1}))}),F=O(R=>{R.preventDefault()}),_=d.useMemo(()=>({selected:w}),[w]),q={ref:y,onKeyDown:A,onMouseDown:F,onClick:E,id:o,role:"tab",type:ai(e,b),"aria-controls":(n=(r=h[g])==null?void 0:r.current)==null?void 0:n.id,"aria-selected":w,tabIndex:w?0:-1};return le({ourProps:q,theirProps:a,slot:_,defaultTag:Vh,name:"Tabs.Tab"})}let qh="div";function Bh(e,t){let{selectedIndex:r}=Rt("Tab.Panels"),n=me(t),i=d.useMemo(()=>({selectedIndex:r}),[r]);return le({ourProps:{ref:n},theirProps:e,slot:i,defaultTag:qh,name:"Tabs.Panels"})}let Uh="div",Hh=et.RenderStrategy|et.Static;function Gh(e,t){var r,n,i,o;let a=_e(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:f,tabs:h,panels:m}=Rt("Tab.Panel"),p=bi("Tab.Panel"),b=d.useRef(null),y=me(b,t);Q(()=>p.registerPanel(b),[p,b]);let x=Pa("panels"),g=m.indexOf(b);g===-1&&(g=x);let w=g===f,$=d.useMemo(()=>({selected:w}),[w]),A={ref:y,id:s,role:"tabpanel","aria-labelledby":(n=(r=h[g])==null?void 0:r.current)==null?void 0:n.id,tabIndex:w?l:-1};return!w&&((i=c.unmount)==null||i)&&!((o=c.static)!=null&&o)?z.createElement(Ur,{as:"span","aria-hidden":"true",...A}):le({ourProps:A,theirProps:c,slot:$,defaultTag:Uh,features:Hh,visible:w,name:"Tabs.Panel"})}let Kh=ae(zh),Zh=ae(Dh),Wh=ae(Lh),Yh=ae(Bh),Qh=ae(Gh),Bt=Object.assign(Kh,{Group:Zh,List:Wh,Panels:Yh,Panel:Qh});function Xh(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function pn(e,...t){e&&t.length>0&&e.classList.add(...t)}function hn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Jh(e,t){let r=ke();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,h)=>h-f);return c}),s=o+a;if(s!==0){r.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=r.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return r.add(()=>t()),r.dispose}function em(e,t,r,n){let i=r?"enter":"leave",o=ke(),a=n!==void 0?Xh(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Y(i,{enter:()=>t.enter,leave:()=>t.leave}),l=Y(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Y(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return hn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),pn(e,...t.base,...s,...c),o.nextFrame(()=>{hn(e,...t.base,...s,...c),pn(e,...t.base,...s,...l),Jh(e,()=>(hn(e,...t.base,...s),pn(e,...t.base,...t.entered),a()))}),o.dispose}function tm({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let a=Gr(),s=Be(),l=ve(r);Q(()=>{e&&(l.current="enter")},[e]),Q(()=>{let c=ke();s.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&a.current)return c.dispose(),i.current(l.current),c.add(em(f,n.current,l.current==="enter",()=>{c.dispose(),o.current(l.current)})),c.dispose},[r])}function Ze(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Kr=d.createContext(null);Kr.displayName="TransitionContext";var rm=(e=>(e.Visible="visible",e.Hidden="hidden",e))(rm||{});function nm(){let e=d.useContext(Kr);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function im(){let e=d.useContext(Zr);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Zr=d.createContext(null);Zr.displayName="NestingContext";function Wr(e){return"children"in e?Wr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Na(e,t){let r=ve(e),n=d.useRef([]),i=Gr(),o=Be(),a=O((p,b=Qe.Hidden)=>{let y=n.current.findIndex(({el:x})=>x===p);y!==-1&&(Y(b,{[Qe.Unmount](){n.current.splice(y,1)},[Qe.Hidden](){n.current[y].state="hidden"}}),o.microTask(()=>{var x;!Wr(n)&&i.current&&((x=r.current)==null||x.call(r))}))}),s=O(p=>{let b=n.current.find(({el:y})=>y===p);return b?b.state!=="visible"&&(b.state="visible"):n.current.push({el:p,state:"visible"}),()=>a(p,Qe.Unmount)}),l=d.useRef([]),c=d.useRef(Promise.resolve()),f=d.useRef({enter:[],leave:[],idle:[]}),h=O((p,b,y)=>{l.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([x])=>x!==p)),t==null||t.chains.current[b].push([p,new Promise(x=>{l.current.push(x)})]),t==null||t.chains.current[b].push([p,new Promise(x=>{Promise.all(f.current[b].map(([g,w])=>w)).then(()=>x())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(b)):y(b)}),m=O((p,b,y)=>{Promise.all(f.current[b].splice(0).map(([x,g])=>g)).then(()=>{var x;(x=l.current.shift())==null||x()}).then(()=>y(b))});return d.useMemo(()=>({children:n,register:s,unregister:a,onStart:h,onStop:m,wait:c,chains:f}),[s,a,n,h,m,f,c])}function om(){}let am=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function bo(e){var t;let r={};for(let n of am)r[n]=(t=e[n])!=null?t:om;return r}function sm(e){let t=d.useRef(bo(e));return d.useEffect(()=>{t.current=bo(e)},[e]),t}let lm="div",ka=et.RenderStrategy;function um(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:f,entered:h,leave:m,leaveFrom:p,leaveTo:b,...y}=e,x=d.useRef(null),g=me(x,t),w=(r=y.unmount)==null||r?Qe.Unmount:Qe.Hidden,{show:$,appear:A,initial:P}=nm(),[E,F]=d.useState($?"visible":"hidden"),_=im(),{register:q,unregister:R}=_;d.useEffect(()=>q(x),[q,x]),d.useEffect(()=>{if(w===Qe.Hidden&&x.current){if($&&E!=="visible"){F("visible");return}return Y(E,{hidden:()=>R(x),visible:()=>q(x)})}},[E,x,q,R,$,w]);let C=ve({base:Ze(y.className),enter:Ze(l),enterFrom:Ze(c),enterTo:Ze(f),entered:Ze(h),leave:Ze(m),leaveFrom:Ze(p),leaveTo:Ze(b)}),H=sm({beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s}),U=ii();d.useEffect(()=>{if(U&&E==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,E,U]);let se=P&&!A,S=A&&$&&P,ne=!U||se?"idle":$?"enter":"leave",G=jh(0),ue=O(k=>Y(k,{enter:()=>{G.addFlag(he.Opening),H.current.beforeEnter()},leave:()=>{G.addFlag(he.Closing),H.current.beforeLeave()},idle:()=>{}})),X=O(k=>Y(k,{enter:()=>{G.removeFlag(he.Opening),H.current.afterEnter()},leave:()=>{G.removeFlag(he.Closing),H.current.afterLeave()},idle:()=>{}})),re=Na(()=>{F("hidden"),R(x)},_),ce=d.useRef(!1);tm({immediate:S,container:x,classes:C,direction:ne,onStart:ve(k=>{ce.current=!0,re.onStart(x,k,ue)}),onStop:ve(k=>{ce.current=!1,re.onStop(x,k,X),k==="leave"&&!Wr(re)&&(F("hidden"),R(x))})});let ie=y,Pe={ref:g};return S?ie={...ie,className:gr(y.className,...C.current.enter,...C.current.enterFrom)}:ce.current&&(ie.className=gr(y.className,(n=x.current)==null?void 0:n.className),ie.className===""&&delete ie.className),z.createElement(Zr.Provider,{value:re},z.createElement(li,{value:Y(E,{visible:he.Open,hidden:he.Closed})|G.flags},le({ourProps:Pe,theirProps:ie,defaultTag:lm,features:ka,visible:E==="visible",name:"Transition.Child"})))}function cm(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,a=d.useRef(null),s=me(a,t);ii();let l=Hr();if(r===void 0&&l!==null&&(r=(l&he.Open)===he.Open),![!0,!1].includes(r))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,f]=d.useState(r?"visible":"hidden"),h=Na(()=>{f("hidden")}),[m,p]=d.useState(!0),b=d.useRef([r]);Q(()=>{m!==!1&&b.current[b.current.length-1]!==r&&(b.current.push(r),p(!1))},[b,r]);let y=d.useMemo(()=>({show:r,appear:n,initial:m}),[r,n,m]);d.useEffect(()=>{if(r)f("visible");else if(!Wr(h))f("hidden");else{let $=a.current;if(!$)return;let A=$.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&f("hidden")}},[r,h]);let x={unmount:i},g=O(()=>{var $;m&&p(!1),($=e.beforeEnter)==null||$.call(e)}),w=O(()=>{var $;m&&p(!1),($=e.beforeLeave)==null||$.call(e)});return z.createElement(Zr.Provider,{value:h},z.createElement(Kr.Provider,{value:y},le({ourProps:{...x,as:d.Fragment,children:z.createElement(Da,{ref:s,...x,...o,beforeEnter:g,beforeLeave:w})},theirProps:{},defaultTag:d.Fragment,features:ka,visible:c==="visible",name:"Transition"})))}function dm(e,t){let r=d.useContext(Kr)!==null,n=Hr()!==null;return z.createElement(z.Fragment,null,!r&&n?z.createElement(Fn,{ref:t,...e}):z.createElement(Da,{ref:t,...e}))}let Fn=ae(cm),Da=ae(um),fm=ae(dm),pm=Object.assign(Fn,{Child:fm,Root:Fn});function hm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M5.22 14.78a.75.75 0 0 0 1.06 0l7.22-7.22v5.69a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-.75-.75h-7.5a.75.75 0 0 0 0 1.5h5.69l-7.22 7.22a.75.75 0 0 0 0 1.06Z",clipRule:"evenodd"}))}const mm=d.forwardRef(hm),bm=mm;function vm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const gm=d.forwardRef(vm),Ma=gm;function xm({title:e,titleId:t,...r},n){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",clipRule:"evenodd"}))}const ym=d.forwardRef(xm),Sm=ym,vi={label:T.string,organisation:T.string,type:T.string,user:T.string,value:T.string},La={name:T.string.isRequired,id:T.string.isRequired,codelists:T.arrayOf(T.shape(vi)).isRequired};function In({label:e,value:t}){return u.jsx(dr.Option,{className:({active:r})=>je("relative cursor-pointer select-none py-2 pl-10 pr-4",r?"bg-oxford-600 text-white":"text-gray-900"),value:t,children:({selected:r,active:n})=>u.jsxs(u.Fragment,{children:[u.jsx("span",{className:je("block truncate",r?"font-medium":"font-normal"),children:u.jsx("span",{children:e})}),r?u.jsx("span",{className:je("absolute inset-y-0 left-0 flex items-center px-3 z-10",n?"text-white":"text-oxford-600"),children:u.jsx(Ma,{"aria-hidden":"true",className:"h-5 w-5"})}):null]})})}In.propTypes={label:T.string.isRequired,value:T.shape(vi).isRequired};function Va({defaultValue:e,handleChange:t,name:r}){const{formData:n}=Ce();return u.jsx(dr,{name:r,onChange:i=>t(i),value:e,children:u.jsxs("div",{className:"relative mt-1",children:[u.jsx(dr.Button,{className:je("relative w-fit max-w-prose rounded-md border-gray-400 border-2 bg-white py-2 pl-3 pr-10 text-left shadow-sm","focus:outline-none","focus-visible:border-oxford-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300"),children:({value:i})=>u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"block truncate",children:i.label}),u.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2 ",children:u.jsx(Sm,{"aria-hidden":"true",className:"h-5 w-5 text-gray-400"})})]})}),u.jsx(pm,{as:d.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:u.jsxs(dr.Options,{className:"absolute z-10 mt-1 max-h-60 w-fit max-w-prose overflow-auto rounded-md bg-white py-1 text-base divide-y divide-gray-200 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[n.codelist0?u.jsx(In,{label:n.codelist0.label,value:n.codelist0}):null,n.codelist1?u.jsx(In,{label:n.codelist1.label,value:n.codelist1}):null]})})]})})}Va.propTypes={defaultValue:T.shape(vi).isRequired,handleChange:T.func.isRequired,name:T.string.isRequired};function wm(){var h,m;const{dates:{startStr:e,endStr:t}}=Ft(),{formData:r}=Ce(),{errors:n,setFieldTouched:i,setFieldValue:o,touched:a,validateField:s,values:l}=He();function c(p){p===l.codelistA&&(o("codelistA",l.codelistB),o("codelistB",p)),p===l.codelistB&&(o("codelistB",l.codelistA),o("codelistA",p))}function f(p,b,y){s(b),i(b),o(b,p.target.value),i("timeOption"),o("timeOption",ur({[b]:p.target.value,[y]:l==null?void 0:l[y]}))}return u.jsxs("div",{className:"flex flex-col gap-y-1",children:[u.jsx("p",{className:"max-w-prose text-lg",children:Oe[0]}),u.jsx(Va,{defaultValue:(l==null?void 0:l.codelistA)||l.codelist0,handleChange:p=>c(p),name:"codelistA"}),u.jsxs("p",{className:"max-w-prose text-lg grid gap-y-1",children:[Oe[1],u.jsxs("span",{children:[u.jsx("strong",{children:e})," ",Oe[2]," ",u.jsx("strong",{children:t})]}),Oe[3]]}),u.jsxs("p",{className:"max-w-prose text-lg",children:[u.jsx("strong",{className:"block mb-1",children:l.codelistB.label||((h=r.codelist1)==null?void 0:h.label)}),Oe[4]," ",u.jsxs("span",{className:"block mt-1",children:[u.jsx("strong",{children:l.codelistA.label||((m=r.codelist0)==null?void 0:m.label)})," ",Oe[5]]})]}),u.jsxs(zt,{hideLegend:!0,legend:"Select a time scale",children:[u.jsxs(qt,{id:"timeHasValue",label:ur(l),labelClassName:"flex flex-row gap-1 items-center mt-2",name:"timeOption",type:"radio",value:ur(l),children:["up to",u.jsx(Ct,{className:"inline-flex w-[6ch] relative rounded-md border-gray-400 border-2 bg-white p-1 shadow-sm",inputMode:"numeric",max:"52",min:"0",name:"timeValue",onChange:p=>f(p,"timeValue","timeScale"),type:"text"}),u.jsx(Ct,{as:"select",className:"inline-flex w-[12ch] relative rounded-md border-gray-400 border-2 bg-white p-1 shadow-sm",name:"timeScale",onChange:p=>f(p,"timeScale","timeValue"),children:Co.map(({label:p,value:b})=>u.jsx("option",{value:b,children:p},b))}),ya]}),u.jsx(qt,{id:"anyTime",label:Ie,name:"timeOption",type:"radio",value:Ie})]}),n.timeValue&&a.timeValue?u.jsx(Je,{children:n.timeValue}):null]})}const yr=e=>At().shape({label:Ae().required("Select a codelist"),organisation:Ae(),value:Ae().required("Select a codelist"),type:Ae().oneOf(e.map(t=>t.id)).required()}).required("Select a codelist");function Tm(e){return{codelistA:e.codelistA||e.codelist0,codelistB:e.codelistB||e.codelist1,timeOption:e.timeOption===Ie?Ie:ur({timeValue:e.timeValue||5,timeScale:e.timeScale||"years"}),timeValue:e.timeValue||5,timeScale:e.timeScale||"years"}}function Em(){const[,e]=De(),{codelistGroups:t}=Ft(),{formData:r,setFormData:n}=Ce();if(Ht(["codelist0","codelist1"]))return u.jsx(Ut,{to:""});const i=At().shape({codelistA:yr(t),codelistB:yr(t),timeOption:Ae().required(),timeValue:ca().typeError("Amount must be a number").positive("Time value must be a positive number").min(0,"Time scale cannot be less than 0").required("Amount of time is required").test("tenYears","Time scale cannot be longer than 10 years",(o,a)=>{const{timeScale:s,timeOption:l}=a.parent;return l===Ie?!0:!(o===void 0||Number.isNaN(o)||s==="weeks"&&o>522||s==="months"&&o>120||s==="years"&&o>10)}),timeScale:Ae().oneOf(Co.map(o=>o.value)).required()});return u.jsx(Mr,{initialValues:Tm(r),onSubmit:(o,a)=>a.validateForm().then(()=>{const{timeOption:s,timeScale:l,timeValue:c,...f}=o;return s===Ie?(n({...r,timeOption:s,timeEver:"true",timeScale:null,timeValue:null,...f}),e("preview-request")):(n({...r,timeEver:null,...o}),e("preview-request"))}),validateOnBlur:!0,validateOnChange:!0,validateOnMount:!0,validationSchema:i,children:({isValid:o})=>u.jsxs(Zt,{children:[u.jsx(Wt,{}),u.jsx("h2",{className:"text-3xl font-bold mb-3",children:"Report request"}),u.jsx(wm,{}),u.jsx(Ge,{className:"mt-6",disabled:!o,type:"submit",children:"Next"})]})})}function gi({id:e,label:t,name:r,value:n,onClick:i}){return u.jsxs("div",{className:"flex flex-row place-items-baseline gap-x-3 text-lg leading-tight",children:[u.jsx(Ct,{className:"peer cursor-pointer scale-150 top-[1px] relative checked:bg-oxford-600 focus:ring-bn-sun",id:e,name:r,onClick:i,type:"checkbox",value:n}),u.jsx("label",{className:"cursor-pointer touch-manipulation tracking-tight",htmlFor:e,children:t})]})}gi.propTypes={id:T.string.isRequired,label:T.string.isRequired,name:T.string.isRequired,onClick:T.func,value:T.string.isRequired};gi.defaultProps={onClick:()=>null};function Om(){const[,e]=De(),{formData:t,setFormData:r}=Ce();if(Ht(["codelistA","codelistB","timeOption"]))return u.jsx(Ut,{to:""});const n=At().shape({filterPopulation:Ae().oneOf(or.items.map(o=>o.value)).required("Select a filter for the population"),demographics:ma().of(Ae().oneOf(Nt.items.map(o=>o.value))).min(0).max(Nt.items.length)}),i={filterPopulation:t.filterPopulation||"",demographics:t.demographics||[]};return u.jsx(Mr,{initialValues:i,onSubmit:(o,a)=>{a.validateForm().then(()=>{r({...t,...o}),e("analysis-information")})},validateOnMount:!0,validationSchema:n,children:({errors:o,isValid:a,touched:s})=>u.jsxs(Zt,{className:"flex flex-col gap-y-8",children:[u.jsx(Wt,{}),u.jsx("h1",{className:"text-4xl font-bold",children:"Set report filters"}),u.jsxs(zt,{legend:or.label,children:[or.items.map(l=>u.jsx(qt,{id:l.value,label:l.label,name:"filterPopulation",value:l.value},l.value)),o.filterPopulation&&s.filterPopulation?u.jsx(Je,{children:o.filterPopulation}):null]}),u.jsxs(zt,{legend:Nt.label,children:[u.jsx(ni,{children:u.jsx("p",{children:"These should only be selected if they align with your approved project purpose. Selecting more options will increase report processing time."})}),Nt.items.map(l=>u.jsx(gi,{id:l.value,label:l.label,name:"demographics",value:l.value},l.value)),o.demographics&&s.demographics?u.jsx(Je,{children:"Select one or more demographics"}):null]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(Ge,{disabled:!a,type:"submit",children:"Next"})})]})})}function jm(){const{codelistGroups:e}=Ft();return u.jsx(Bt.List,{className:"flex space-x-1 rounded bg-gray-100 p-1 max-w-prose",children:e.map(t=>u.jsx(Bt,{className:({selected:r})=>je("w-full rounded-lg p-1 font-semibold text-oxford-700 leading-5 md:py-2.5","ring-white ring-opacity-60 ring-offset-2 ring-offset-oxford-400 focus:outline-none focus:ring-2",r?"bg-white shadow":"hover:bg-white/[0.12] hover:text-oxford-900"),children:t.name},t.id))})}function $m(e){const t={year:"numeric",month:"short",day:"2-digit"},r=new Date(e);return new Intl.DateTimeFormat("en-GB",t).format(r)}function za({codelistGroup:e,codelistID:t,query:r}){const{values:n}=He(),i=o=>r.length<2?o:o.filter(a=>a.label.toLowerCase().includes(r.toLowerCase()));return r.length<3?u.jsxs("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:["Type ",3-r.length," more characters to search"]}):i(e.codelists).length===0?u.jsx("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:"Nothing found"}):u.jsx(u.Fragment,{children:i(e.codelists.sort((o,a)=>o.label.localeCompare(a.label))).map(o=>u.jsx(cr.Option,{className:({active:a})=>je("relative cursor-pointer select-none py-2 pl-10 pr-4",a?"bg-oxford-600 text-white":"text-gray-900"),value:o,children:({selected:a,active:s})=>{var l;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:je("block truncate",a?"font-medium":"font-normal"),children:[u.jsx("span",{children:o.label}),u.jsxs("dl",{className:`flex flex-row flex-wrap text-sm mt-0.5 ${s?"text-white":"text-gray-600"}`,children:[u.jsxs("div",{className:"flex flex-row gap-1",children:[u.jsx("dt",{children:"From:"})," ",u.jsx("dd",{children:o.organisation?o.organisation:o.user})]}),u.jsxs("div",{className:"flex flex-row gap-1 ml-2 border-l border-l-gray-300 pl-2",children:[u.jsx("dt",{children:"Last updated:"})," ",u.jsx("dd",{children:$m(o.updatedDate)})]})]})]}),a||((l=n[t])==null?void 0:l.value)===o.value?u.jsx("span",{className:je("absolute inset-y-0 left-0 flex items-center pl-3 z-10",s?"text-white":"text-oxford-600"),children:u.jsx(Ma,{"aria-hidden":"true",className:"h-5 w-5"})}):null]})}},o.value))})}za.propTypes={codelistGroup:T.shape(La).isRequired,codelistID:T.string.isRequired,query:T.string.isRequired};function qa({codelistGroup:e,codelistID:t,query:r,setQuery:n}){const{errors:i,setFieldValue:o,setTouched:a,touched:s}=He(),[l,c]=d.useState("");return d.useEffect(()=>i[t]&&s[t]?Bs(i[t])?c(i[t].label):c(i[t]):c(""),[i,s,t]),u.jsx(Bt.Panel,{children:u.jsx(Ct,{name:t,children:({field:f})=>{var h;return u.jsxs("div",{className:"mt-2",children:[u.jsx(cr,{defaultValue:f.value,name:f.name,onChange:m=>{a({...s,[t]:!0}),o(f.name,m)},children:u.jsxs("div",{className:"relative w-full max-w-prose",children:[u.jsx(cr.Input,{autoComplete:"off",autoCorrect:"false",className:je("block w-full px-3 py-2 border-2 border-gray-400 rounded-md shadow-sm placeholder-gray-400","focus:cursor-text focus:outline-none focus:ring-oxford-500 focus:border-oxford-500"),displayValue:m=>m.label,onChange:m=>n(m.target.value),placeholder:"Type 3 or more characters to find a codelist"}),u.jsx(cr.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base divide-y divide-gray-200 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:u.jsx(za,{codelistGroup:e,codelistID:t,query:r})})]})}),l?u.jsx(Je,{children:l}):null,(h=f==null?void 0:f.value)!=null&&h.value?u.jsx("ul",{className:"text-sm mt-2",children:u.jsx("li",{children:u.jsxs("a",{className:"text-oxford-600 font-semibold underline underline-offset-1 transition-colors hover:text-oxford-700 hover:no-underline focus:text-oxford-900 focus:no-underline",href:`https://www.opencodelists.org/codelist/${f.value.value}`,rel:"noopener noreferrer",target:"_blank",children:["View “",f.value.label,"” codelist",u.jsx(bm,{className:"inline h-4 -mt-0.5",height:20,width:20})]})})}):null]})}})},e.id)}qa.propTypes={codelistGroup:T.shape(La).isRequired,codelistID:T.string.isRequired,query:T.string.isRequired,setQuery:T.func.isRequired};function An({id:e,label:t}){const{setFieldValue:r}=He(),{formData:n}=Ce(),{codelistGroups:i}=Ft(),[o,a]=d.useState(""),s=`codelist${e}`,l=i.findIndex(c=>{var f;return c.id===((f=n==null?void 0:n[s])==null?void 0:f.type)});return u.jsxs(Bt.Group,{as:"div",defaultIndex:l!==-1?l:0,onChange:()=>{a(""),r(s,{})},children:[u.jsx("h2",{className:"text-2xl font-bold tracking-tight mb-2 md:mb-1",children:t}),u.jsx(jm,{}),u.jsx(Bt.Panels,{children:i.map(c=>u.jsx(qa,{codelistGroup:c,codelistID:s,query:o,setQuery:a},c.id))})]})}An.propTypes={id:T.number.isRequired,label:T.string.isRequired};function Cm(){const{formData:e,setFormData:t}=Ce(),{codelistGroups:r}=Ft(),[,n]=De(),i=At({codelist0:yr(r),codelist1:yr(r).test("compare_codelists","Codelists cannot be the same, please change one codelist",(a,s)=>Object.entries(s.parent.codelist0).toString()!==Object.entries(a).toString())}),o={codelist0:e.codelist0||"",codelist1:e.codelist1||""};return u.jsx(Mr,{initialValues:o,onSubmit:(a,s)=>{s.validateForm().then(()=>(t({...e,...a,codelistA:null,codelistB:null}),n("build-query")))},validateOnMount:!0,validationSchema:i,children:({isValid:a})=>u.jsxs(Zt,{className:"flex flex-col gap-y-12",children:[u.jsx(Wt,{}),u.jsx(An,{id:0,label:"Select a codelist"}),u.jsx(An,{id:1,label:"Select a second codelist"}),u.jsx(Ge,{disabled:!a,type:"submit",children:"Next"})]})})}function Rm(){const[,e]=De();return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"prose prose-blue",children:[u.jsx("p",{className:"text-lg",children:"Requesting an analysis requires you to select two SNOMED CT or dm+d codelists to see how they are used in combination over time."}),u.jsx("p",{className:"text-lg",children:"To make sure this is the right tool for you, check that you understand the following terms before continuing."}),u.jsx("h3",{children:"Codelist"}),u.jsx("p",{children:"A codelist is a set of codes that can be recorded in clinical systems. Codelists are used to select patients with activities and conditions of interest."}),u.jsx("p",{children:"Any codelist you require in your Analysis Request must:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"use either the SNOMED CT or dm+d coding system"}),u.jsxs("li",{children:["be published on"," ",u.jsx("a",{href:"https://www.opencodelists.org/",rel:"noopener noreferrer",target:"_blank",children:"OpenCodelists"})]})]}),u.jsx("p",{children:"You should review the codelists you wish to use on OpenCodelists and confirm it is suitable for your request before you start."}),u.jsx("p",{children:"Speak to your co-pilot if you can’t find a codelist you want to use, or you wish to add a new codelist to OpenCodelists."}),u.jsx("h3",{children:"SNOMED CT"}),u.jsxs("p",{children:[u.jsx("a",{href:"https://digital.nhs.uk/services/terminology-and-classifications/snomed-ct",rel:"noopener noreferrer",target:"_blank",children:"SNOMED CT"})," ","is a systematically organised computer-processable collection of medical terms used in clinical documentation and reporting. It provides a consistent vocabulary for recording patient clinical information across the NHS and helps ensure data is recorded consistently and accurately."]}),u.jsx("p",{children:"SNOMED CT codelists can query data related to recording of events such as:"}),u.jsxs("ul",{children:[u.jsxs("li",{children:[u.jsx("strong",{children:"Condition Diagnoses "}),"— for example: Crohn’s Disease, Bipolar disorder"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Symptoms "}),"— for example: Headache, Blood in urine"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Test Results "}),"— for example: Potassium level, Abnormal ECG"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Procedures "}),"— for example: Coronary artery bypass graft, Hysterectomy"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Activities "}),"— for example: Medication review"]})]}),u.jsx("h3",{children:"dm+d"}),u.jsxs("p",{children:[u.jsx("a",{href:"https://www.nhsbsa.nhs.uk/pharmacies-gp-practices-and-appliance-contractors/dictionary-medicines-and-devices-dmd",rel:"noopener noreferrer",target:"_blank",children:"dm+d"})," ","is a dictionary of descriptions and codes which represent medicines and devices in use across the NHS."]}),u.jsx("p",{children:"dm+d codelists can query data related to prescriptions that have been issued for medicines or devices, for example: a prescription for Paracetamol 500mg tablets or for a Salbutamol 100micrograms/dose inhaler."})]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(Ge,{onClick:()=>e("find-codelists"),children:"Next"})})]})}function xi({timeOption:e,timeScale:t,timeValue:r}){const n=e==="at any time prior."?"Any time":`${r} ${t}`;return u.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 415 233",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",children:[u.jsx("path",{className:"fill-gray-300",d:"M194 52.03h6V157h-6zM394 52h6v105h-6z"}),u.jsx("path",{className:"fill-gray-500",d:"M3.9 99.9c-.6.5-.6 1.5 0 2l9.35 9.6c.26.2.57.3.89.3a1.5 1.5 0 0 0 1.18-2.4l-8.37-8.5 8.37-8.5a1.5 1.5 0 0 0-1.18-2.4c-.32 0-.63.1-.89.3l-9.46 9.5.1.1Zm189.1 2c.6-.5.6-1.5 0-2l-9.35-9.6c-.26-.2-.57-.3-.89-.3a1.5 1.5 0 0 0-1.18 2.4l8.37 8.5-8.37 8.5a1.5 1.5 0 0 0 1.18 2.4c.32 0 .63-.1.89-.3l9.46-9.5-.1-.1Zm-188.12.5h187.14v-3H4.88v3Z",fillRule:"nonzero"}),u.jsx("path",{className:"fill-green-600 stroke-green-600",d:"M1 128c-.6.5-.6 1.5 0 2l9.5 9.6a1.5 1.5 0 0 0 2.1-2.1L4.1 129l8.5-8.5a1.5 1.5 0 0 0-2.1-2.1l-9.6 9.5.1.1Zm392 2c.6-.5.6-1.5 0-2l-9.5-9.6a1.5 1.5 0 0 0-2.1 2.1l8.5 8.5-8.5 8.5a1.5 1.5 0 0 0 2.1 2.1l9.6-9.5-.1-.1Zm-391 .5h390v-3H2v3Z",fillRule:"nonzero",strokeWidth:"2",transform:"matrix(.99262 0 0 1 2.9 1.9)"}),u.jsx("path",{className:"fill-bn-ribbon-300 stroke-bn-ribbon-700",d:"M297 97.4 284.4 85l-3.5 3.5 12.5 12.5-12.4 12.3 3.5 3.5 12.4-12.4 12.4 12.4 3.5-3.5-12.4-12.4 12.4-12.4-3.5-3.5-12.4 12.4h.1Z"}),u.jsx("path",{className:"fill-oxford-300",d:"M296 74.55c.5.6 1.5.6 2 0l9.6-9.5a1.5 1.5 0 0 0-2.1-2.1l-8.5 8.5-8.5-8.5a1.5 1.5 0 0 0-2.1 2.1l9.5 9.6.1-.1Zm-.5-71v70h3v-70h-3ZM50 150.6c-.2-.8-1-1.3-1.8-1l-13 3.4a1.54 1.54 0 0 0 .7 3l11.6-3.2 3.1 11.6a1.5 1.5 0 0 0 2.9-.7l-3.5-13v-.1ZM3.3 232.4l46.6-80.6-2.6-1.6L.7 231l2.6 1.5v-.1Z",fillRule:"nonzero"}),u.jsx("text",{fontSize:"12",x:"177",y:"170",children:"Start of"}),u.jsx("text",{fontSize:"12",x:"180",y:"183",children:"month"}),u.jsx("text",{fontSize:"12",x:"379",y:"170",children:"End of"}),u.jsx("text",{fontSize:"12",x:"380",y:"183",children:"month"}),u.jsx("text",{fontSize:"12",x:"67",y:"88.63",children:n})]})}xi.propTypes={timeOption:T.string.isRequired,timeScale:T.string,timeValue:T.number};xi.defaultProps={timeScale:null,timeValue:null};function Fm(){const[,e]=De(),{formData:t}=Ce();return Ht(["codelistA","codelistB","timeOption"])?u.jsx(Ut,{to:""}):u.jsxs(u.Fragment,{children:[u.jsx(xa,{}),u.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Preview your request"}),u.jsx("div",{className:"px-4 py-24",children:u.jsxs("div",{className:"relative",children:[u.jsxs("p",{className:"absolute max-w-[28ch] text-center -translate-y-[80%] top-0 right-0 border-2 border-oxford-300 bg-slate-50 p-2",children:["Individual has qualifying event from:",u.jsx("br",{}),u.jsx("strong",{children:t.codelistA.label})]}),u.jsx(xi,{timeOption:t.timeOption,timeScale:t.timeScale,timeValue:t.timeValue}),u.jsxs("p",{className:"absolute max-w-[28ch] text-center bottom-0 translate-y-[80%] left-0 border-2 border-oxford-300 bg-slate-50 p-2",children:["Individual ALSO has an event from:",u.jsx("br",{}),u.jsx("strong",{children:t.codelistB.label})]})]})}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-16",children:u.jsx(Ge,{onClick:()=>e("filter-request"),children:"Next"})})]})}function Tt({title:e,children:t,page:r}){const[,n]=De();return u.jsxs("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[u.jsx("dt",{className:"text-lg font-bold text-gray-700 md:text-base",children:e}),u.jsxs("dd",{className:"mt-1 flex text-gray-900 sm:col-span-2 sm:mt-0",children:[u.jsx("span",{className:"flex-grow break-words",children:t}),u.jsx("span",{className:"ml-4 flex-shrink-0",children:u.jsx("button",{className:"rounded-md bg-white font-medium text-oxford-600 hover:text-oxford-500 focus:outline-none focus:ring-2 focus:ring-oxford-500 focus:ring-offset-2",onClick:()=>n(r),type:"button",children:"Edit"})})]})]})}Tt.propTypes={title:T.string.isRequired,children:T.node.isRequired,page:T.string.isRequired};function Im(){var b,y,x,g,w;const{basePath:e,csrfToken:t,dates:{startISO:r,endISO:n,startStr:i,endStr:o}}=Ft(),{formData:a}=Ce(),[s,l]=d.useState(!1),[c,f]=d.useState("");if(Ht(["codelistA","codelistB","timeOption","filterPopulation","title","purpose"]))return u.jsx(Ut,{to:""});const h=()=>{const{codelistA:$,codelistB:A,timeOption:P,timeScale:E,timeValue:F,filterPopulation:_,demographics:q,title:R,purpose:C}=a;return Hs({codelistA:{label:$.label,type:$.type,value:$.value},codelistB:{label:A.label,type:A.type,value:A.value},startDate:r.slice(0,10),endDate:n.slice(0,10),timeEver:P===Ie?"true":null,timeScale:P===Ie?void 0:E,timeValue:P===Ie?void 0:F,filterPopulation:_,demographics:q,title:R,purpose:C})},m=async()=>{l(!0),f("");const $=JSON.stringify(h());wi(P=>{P.setLevel("debug"),Jr("formData",$),Ti("Submitting analysis request")});const A=await fetch(`${e}publish`,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":t},body:$});if(!A.ok){l(!1);const P=`An error has occurred: ${A.status} - ${A.statusText}`;throw f(P),new Error(P)}ti(),wi(P=>{P.setLevel("debug"),Jr("formData",$),Jr("response",A.url),Ti("Analysis ok, redirecting")}),window.location.href=A.url},p=a.timeOption===Ie?Ie:`up to ${a.timeValue} ${a.timeScale} ${ya}`;return u.jsxs(u.Fragment,{children:[u.jsx(xa,{}),u.jsx("h2",{className:"text-4xl font-bold mb-6",children:"Review your request"}),u.jsx("div",{className:"mt-5 border-t border-gray-200",children:u.jsxs("dl",{className:"divide-y divide-gray-200",children:[u.jsxs(Tt,{page:"find-codelists",title:"Codelists",children:[(b=a.codelist0)==null?void 0:b.label,",",u.jsx("br",{}),(y=a.codelist1)==null?void 0:y.label]}),(x=a.codelistA)!=null&&x.label&&((g=a.codelistB)!=null&&g.label)?u.jsxs(Tt,{page:"build-query",title:"Report request",children:[` ${Oe[0]} `,u.jsx("strong",{children:a.codelistA.label}),` ${Oe[1]} `,u.jsx("strong",{children:i})," ",Oe[2]," ",u.jsx("strong",{children:o}),` ${Oe[3]} `,u.jsx("strong",{children:a.codelistB.label}),` ${Oe[4]} `,u.jsx("strong",{children:` ${a.codelistA.label}`}),` ${Oe[5]} ${p}`]}):null,u.jsx(Tt,{page:"filter-request",title:"Filter population",children:or.items.filter($=>$.value===a.filterPopulation)[0].label}),u.jsx(Tt,{page:"filter-request",title:"Break down the report by demographics",children:a.demographics.length?u.jsx("ul",{children:(w=a.demographics)==null?void 0:w.map($=>{var A;return u.jsx("li",{children:(A=Nt.items.find(P=>(P==null?void 0:P.value)===$))==null?void 0:A.label},$)})}):u.jsx("p",{children:"No demographics selected"})}),u.jsxs(Tt,{page:"analysis-information",title:"Analysis information",children:[u.jsxs("p",{className:"mb-4",children:[u.jsx("strong",{children:"Title: "}),u.jsx("br",{}),a.title]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Description: "}),u.jsx("br",{}),a.purpose]})]})]})}),u.jsxs("section",{className:"prose prose-blue mt-8 pt-6 border-t max-w-full",children:[u.jsx("h2",{className:"sr-only",children:"Read and agree"}),u.jsxs("ul",{children:[u.jsx("li",{children:"Your analyses will be run on primary care patient records for approximately 44% of the English population"}),u.jsx("li",{children:"The analysis you are requesting may take up to 5 days to return results"}),u.jsx("li",{children:"The time for the analysis to generate may vary significantly dependent on current loads on our servers and current demand for our disclosure checking service"}),u.jsx("p",{children:"By making this request you are agreeing:"}),u.jsxs("ul",{children:[u.jsx("li",{children:"That your request falls within your approved project purpose"}),u.jsx("li",{children:"To abide by the Terms and Conditions you signed previously"}),u.jsx("li",{children:"That the contents of this request, along with your name and email address, will be publicly available"})]})]})]}),u.jsx("div",{className:"flex flex-row w-full gap-2 mt-10",children:u.jsx(Ge,{disabled:s,onClick:m,type:"submit",children:s?u.jsxs(u.Fragment,{children:[u.jsxs("svg",{className:"h-5 w-5 flex-1 animate-spin stroke-current stroke-[3] mr-2",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{className:"stroke-current opacity-25",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"}),u.jsx("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 14.7255 3.09032 17.1962 4.85857 19"})]}),"Submitting"]}):"Submit request"})}),c?u.jsx(Je,{children:c}):null]})}function Am(){const[e]=De();return d.useEffect(()=>{window.scrollTo(0,0)},[e]),null}const yi=document.getElementById("osi");if(!yi)throw new Error("Failed to find the root element");const _m=ts(yi),{dataset:at}=yi,Pm={basePath:"Basename",csrfToken:"CSRF Token",dateEnd:"End date",dateStart:"Start date",events:"Events codelist data",medications:"Medications codelist data"};Object.entries(Pm).map(([e,t])=>{if(!at[e])throw new Error(`${t} not provided`);return null});rs({dsn:"",tracesSampleRate:1});_m.render(u.jsx(z.StrictMode,{children:u.jsx(Ln.Provider,{value:Us({dataset:at}),children:u.jsx($o,{children:u.jsxs(Vs,{base:at.basePath,children:[u.jsx(Am,{}),u.jsx(Ro,{basePath:at.basePath,csrfToken:at.csrfToken,events:at.events,medications:at.medications,children:u.jsxs(zs,{children:[u.jsx(Ke,{path:"/",children:u.jsx(Rm,{})}),u.jsx(Ke,{path:"find-codelists",children:u.jsx(Cm,{})}),u.jsx(Ke,{path:"build-query",children:u.jsx(Em,{})}),u.jsx(Ke,{path:"preview-request",children:u.jsx(Fm,{})}),u.jsx(Ke,{path:"filter-request",children:u.jsx(Om,{})}),u.jsx(Ke,{path:"analysis-information",children:u.jsx(Wf,{})}),u.jsx(Ke,{path:"review-request",children:u.jsx(Im,{})}),u.jsx(Ke,{children:u.jsxs("div",{className:"prose",children:[u.jsx("h2",{children:"An error occurred"}),u.jsx("p",{className:"lead",children:"You request was not submitted."}),u.jsxs("p",{children:["Please try again, or"," ",u.jsx("a",{href:"mailto:team@opensafely.org",children:"email team@opensafely.org"}),"."]})]})})]})})]})})})}))});export default Nm(); diff --git a/assets/dist/assets/job_request_create-r50Iv3NS.js b/assets/dist/assets/job_request_create-CtTKtINd.js similarity index 100% rename from assets/dist/assets/job_request_create-r50Iv3NS.js rename to assets/dist/assets/job_request_create-CtTKtINd.js diff --git a/assets/dist/assets/json-PR43yn9U.js b/assets/dist/assets/json-CFG4bYpx.js similarity index 100% rename from assets/dist/assets/json-PR43yn9U.js rename to assets/dist/assets/json-CFG4bYpx.js diff --git a/assets/dist/assets/modal-Y47J8xgi.js b/assets/dist/assets/modal-CDv7gp0g.js similarity index 100% rename from assets/dist/assets/modal-Y47J8xgi.js rename to assets/dist/assets/modal-CDv7gp0g.js diff --git a/assets/dist/assets/module-K4QQYKOX.js b/assets/dist/assets/module-Ddk_Oc2r.js similarity index 100% rename from assets/dist/assets/module-K4QQYKOX.js rename to assets/dist/assets/module-Ddk_Oc2r.js diff --git a/assets/dist/assets/multiselect-_L73NZTL.js b/assets/dist/assets/multiselect-DBqAoQKK.js similarity index 100% rename from assets/dist/assets/multiselect-_L73NZTL.js rename to assets/dist/assets/multiselect-DBqAoQKK.js diff --git a/assets/dist/assets/multiselect-ExWJzHqD.css b/assets/dist/assets/multiselect-TFYnMeoO.css similarity index 100% rename from assets/dist/assets/multiselect-ExWJzHqD.css rename to assets/dist/assets/multiselect-TFYnMeoO.css diff --git a/assets/dist/assets/outputs-viewer-01mbb_XM.js b/assets/dist/assets/outputs-viewer-01mbb_XM.js deleted file mode 100644 index c6dde08b..00000000 --- a/assets/dist/assets/outputs-viewer-01mbb_XM.js +++ /dev/null @@ -1,258 +0,0 @@ -var xr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var n=(t,e,r)=>(xr(t,e,"read from private field"),r?r.call(t):e.get(t)),E=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},b=(t,e,r,s)=>(xr(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r);var sr=(t,e,r,s)=>({set _(i){b(t,e,i,r)},get _(){return n(t,e,s)}}),U=(t,e,r)=>(xr(t,e,"access private method"),r);import{r as y,e as vi,P as x,j as p,i as bi,c as wi,R as xi}from"./index-xG0evL3U.js";import{c as Ci,g as Ei}from"./_commonjsHelpers-4gQjN7DL.js";/** - * @remix-run/router v1.14.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function At(){return At=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function _i(){return Math.random().toString(36).substr(2,8)}function is(t,e){return{usr:t.state,key:t.key,idx:e}}function _r(t,e,r,s){return r===void 0&&(r=null),At({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?yr(e):e,{state:r,key:e&&e.key||s||_i()})}function Ps(t){let{pathname:e="/",search:r="",hash:s=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function yr(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let s=t.indexOf("?");s>=0&&(e.search=t.substr(s),t=t.substr(0,s)),t&&(e.pathname=t)}return e}function Si(t,e,r,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:a=!1}=s,o=i.history,h=at.Pop,c=null,f=d();f==null&&(f=0,o.replaceState(At({},o.state,{idx:f}),""));function d(){return(o.state||{idx:null}).idx}function C(){h=at.Pop;let g=d(),_=g==null?null:g-f;f=g,c&&c({action:h,location:P.location,delta:_})}function v(g,_){h=at.Push;let N=_r(P.location,g,_);r&&r(N,g),f=d()+1;let A=is(N,f),z=P.createHref(N);try{o.pushState(A,"",z)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;i.location.assign(z)}a&&c&&c({action:h,location:P.location,delta:1})}function w(g,_){h=at.Replace;let N=_r(P.location,g,_);r&&r(N,g),f=d();let A=is(N,f),z=P.createHref(N);o.replaceState(A,"",z),a&&c&&c({action:h,location:P.location,delta:0})}function j(g){let _=i.location.origin!=="null"?i.location.origin:i.location.href,N=typeof g=="string"?g:Ps(g);return Ue(_,"No window.location.(origin|href) available to create URL for href: "+N),new URL(N,_)}let P={get action(){return h},get location(){return t(i,o)},listen(g){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(ss,C),c=g,()=>{i.removeEventListener(ss,C),c=null}},createHref(g){return e(i,g)},createURL:j,encodeLocation(g){let _=j(g);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:w,go(g){return o.go(g)}};return P}var ns;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ns||(ns={}));function Oi(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,s=t.charAt(r);return s&&s!=="/"?null:t.slice(r)||"/"}function ki(t,e){e===void 0&&(e="/");let{pathname:r,search:s="",hash:i=""}=typeof t=="string"?yr(t):t;return{pathname:r?r.startsWith("/")?r:Ti(r,e):e,search:Di(s),hash:Ui(i)}}function Ti(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Cr(t,e,r,s){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Pi(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Fi(t,e){let r=Pi(t);return e?r.map((s,i)=>i===t.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function ji(t,e,r,s){s===void 0&&(s=!1);let i;typeof t=="string"?i=yr(t):(i=At({},t),Ue(!i.pathname||!i.pathname.includes("?"),Cr("?","pathname","search",i)),Ue(!i.pathname||!i.pathname.includes("#"),Cr("#","pathname","hash",i)),Ue(!i.search||!i.search.includes("#"),Cr("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,h;if(o==null)h=r;else{let C=e.length-1;if(!s&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),C-=1;i.pathname=v.join("/")}h=C>=0?e[C]:"/"}let c=ki(i,h),f=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(f||d)&&(c.pathname+="/"),c}const Ii=t=>t.join("/").replace(/\/\/+/g,"/"),Di=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ui=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Fs=["post","put","patch","delete"];new Set(Fs);const Mi=["get",...Fs];new Set(Mi);/** - * React Router v6.21.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function hr(){return hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{h.current=!0}),y.useCallback(function(f,d){if(d===void 0&&(d={}),!h.current)return;if(typeof f=="number"){s.go(f);return}let C=ji(f,JSON.parse(o),a,d.relative==="path");t==null&&e!=="/"&&(C.pathname=C.pathname==="/"?e:Ii([e,C.pathname])),(d.replace?s.replace:s.push)(C,d.state,d)},[e,s,o,a,t])}var Us=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Us||{}),Ms=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ms||{});function Li(t){let e=y.useContext(js);return e||Ue(!1),e}function qi(t){let e=y.useContext(Hr);return e||Ue(!1),e}function Bi(t){let e=qi(),r=e.matches[e.matches.length-1];return r.route.id||Ue(!1),r.route.id}function Qi(){let{router:t}=Li(Us.UseNavigateStable),e=Bi(Ms.UseNavigateStable),r=y.useRef(!1);return Ds(()=>{r.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,hr({fromRouteId:e},a)))},[t,e])}function $i(t){let{basename:e="/",children:r=null,location:s,navigationType:i=at.Pop,navigator:a,static:o=!1,future:h}=t;Gr()&&Ue(!1);let c=e.replace(/^\/*/,"/"),f=y.useMemo(()=>({basename:c,navigator:a,static:o,future:hr({v7_relativeSplatPath:!1},h)}),[c,h,a,o]);typeof s=="string"&&(s=yr(s));let{pathname:d="/",search:C="",hash:v="",state:w=null,key:j="default"}=s,P=y.useMemo(()=>{let g=Oi(d,c);return g==null?null:{location:{pathname:g,search:C,hash:v,state:w,key:j},navigationType:i}},[c,d,C,v,w,j,i]);return P==null?null:y.createElement(Kr.Provider,{value:f},y.createElement(Wr.Provider,{children:r,value:P}))}new Promise(()=>{});/** - * React Router DOM v6.21.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const zi="startTransition",as=vi[zi];function Ki(t){let{basename:e,children:r,future:s,window:i}=t,a=y.useRef();a.current==null&&(a.current=Ri({window:i,v5Compat:!0}));let o=a.current,[h,c]=y.useState({action:o.action,location:o.location}),{v7_startTransition:f}=s||{},d=y.useCallback(C=>{f&&as?as(()=>c(C)):c(C)},[c,f]);return y.useLayoutEffect(()=>o.listen(d),[o,d]),y.createElement($i,{basename:e,children:r,location:h.location,navigationType:h.action,navigator:o,future:s})}var os;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(os||(os={}));var us;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(us||(us={}));var Mt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ut=typeof window>"u"||"Deno"in window;function _e(){}function Wi(t,e){return typeof t=="function"?t(e):t}function Sr(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ns(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ls(t,e){const{type:r="all",exact:s,fetchStatus:i,predicate:a,queryKey:o,stale:h}=t;if(o){if(s){if(e.queryHash!==Vr(o,e.options))return!1}else if(!Lt(e.queryKey,o))return!1}if(r!=="all"){const c=e.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof h=="boolean"&&e.isStale()!==h||typeof i<"u"&&i!==e.state.fetchStatus||a&&!a(e))}function cs(t,e){const{exact:r,status:s,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(r){if(mt(e.options.mutationKey)!==mt(a))return!1}else if(!Lt(e.options.mutationKey,a))return!1}return!(s&&e.state.status!==s||i&&!i(e))}function Vr(t,e){return((e==null?void 0:e.queryKeyHashFn)||mt)(t)}function mt(t){return JSON.stringify(t,(e,r)=>Or(r)?Object.keys(r).sort().reduce((s,i)=>(s[i]=r[i],s),{}):r)}function Lt(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!Lt(t[r],e[r])):!1}function As(t,e){if(t===e)return t;const r=hs(t)&&hs(e);if(r||Or(t)&&Or(e)){const s=r?t.length:Object.keys(t).length,i=r?e:Object.keys(e),a=i.length,o=r?[]:{};let h=0;for(let c=0;c"u")return!0;const r=e.prototype;return!(!ds(r)||!r.hasOwnProperty("isPrototypeOf"))}function ds(t){return Object.prototype.toString.call(t)==="[object Object]"}function Hi(t){return new Promise(e=>{setTimeout(e,t)})}function kr(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?As(t,e):e}function Gi(t,e,r=0){const s=[...t,e];return r&&s.length>r?s.slice(1):s}function Vi(t,e,r=0){const s=[e,...t];return r&&s.length>r?s.slice(0,-1):s}var ot,Ve,bt,ws,Ji=(ws=class extends Mt{constructor(){super();E(this,ot,void 0);E(this,Ve,void 0);E(this,bt,void 0);b(this,bt,e=>{if(!Ut&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){n(this,Ve)||this.setEventListener(n(this,bt))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,Ve))==null||e.call(this),b(this,Ve,void 0))}setEventListener(e){var r;b(this,bt,e),(r=n(this,Ve))==null||r.call(this),b(this,Ve,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){n(this,ot)!==e&&(b(this,ot,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof n(this,ot)=="boolean"?n(this,ot):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ot=new WeakMap,Ve=new WeakMap,bt=new WeakMap,ws),fr=new Ji,wt,Je,xt,xs,Yi=(xs=class extends Mt{constructor(){super();E(this,wt,!0);E(this,Je,void 0);E(this,xt,void 0);b(this,xt,e=>{if(!Ut&&window.addEventListener){const r=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){n(this,Je)||this.setEventListener(n(this,xt))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,Je))==null||e.call(this),b(this,Je,void 0))}setEventListener(e){var r;b(this,xt,e),(r=n(this,Je))==null||r.call(this),b(this,Je,e(this.setOnline.bind(this)))}setOnline(e){n(this,wt)!==e&&(b(this,wt,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return n(this,wt)}},wt=new WeakMap,Je=new WeakMap,xt=new WeakMap,xs),pr=new Yi;function Zi(t){return Math.min(1e3*2**t,3e4)}function vr(t){return(t??"online")==="online"?pr.isOnline():!0}var Ls=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Er(t){return t instanceof Ls}function qs(t){let e=!1,r=0,s=!1,i,a,o;const h=new Promise((g,_)=>{a=g,o=_}),c=g=>{var _;s||(w(new Ls(g)),(_=t.abort)==null||_.call(t))},f=()=>{e=!0},d=()=>{e=!1},C=()=>!fr.isFocused()||t.networkMode!=="always"&&!pr.isOnline(),v=g=>{var _;s||(s=!0,(_=t.onSuccess)==null||_.call(t,g),i==null||i(),a(g))},w=g=>{var _;s||(s=!0,(_=t.onError)==null||_.call(t,g),i==null||i(),o(g))},j=()=>new Promise(g=>{var _;i=N=>{const A=s||!C();return A&&g(N),A},(_=t.onPause)==null||_.call(t)}).then(()=>{var g;i=void 0,s||(g=t.onContinue)==null||g.call(t)}),P=()=>{if(s)return;let g;try{g=t.fn()}catch(_){g=Promise.reject(_)}Promise.resolve(g).then(v).catch(_=>{var G;if(s)return;const N=t.retry??(Ut?0:3),A=t.retryDelay??Zi,z=typeof A=="function"?A(r,_):A,Y=N===!0||typeof N=="number"&&r{if(C())return j()}).then(()=>{e?w(_):P()})})};return vr(t.networkMode)?P():j().then(P),{promise:h,cancel:c,continue:()=>(i==null?void 0:i())?h:Promise.resolve(),cancelRetry:f,continueRetry:d}}function Xi(){let t=[],e=0,r=v=>{v()},s=v=>{v()},i=v=>setTimeout(v,0);const a=v=>{i=v},o=v=>{let w;e++;try{w=v()}finally{e--,e||f()}return w},h=v=>{e?t.push(v):i(()=>{r(v)})},c=v=>(...w)=>{h(()=>{v(...w)})},f=()=>{const v=t;t=[],v.length&&i(()=>{s(()=>{v.forEach(w=>{r(w)})})})};return{batch:o,batchCalls:c,schedule:h,setNotifyFunction:v=>{r=v},setBatchNotifyFunction:v=>{s=v},setScheduler:a}}var se=Xi(),ut,Cs,Bs=(Cs=class{constructor(){E(this,ut,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sr(this.gcTime)&&b(this,ut,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ut?1/0:5*60*1e3))}clearGcTimeout(){n(this,ut)&&(clearTimeout(n(this,ut)),b(this,ut,void 0))}},ut=new WeakMap,Cs),Ct,Et,Ce,Ye,Ee,ae,qt,lt,Rt,nr,ke,Le,Es,en=(Es=class extends Bs{constructor(e){super();E(this,Rt);E(this,ke);E(this,Ct,void 0);E(this,Et,void 0);E(this,Ce,void 0);E(this,Ye,void 0);E(this,Ee,void 0);E(this,ae,void 0);E(this,qt,void 0);E(this,lt,void 0);b(this,lt,!1),b(this,qt,e.defaultOptions),U(this,Rt,nr).call(this,e.options),b(this,ae,[]),b(this,Ce,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,b(this,Ct,e.state||tn(this.options)),this.state=n(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!n(this,ae).length&&this.state.fetchStatus==="idle"&&n(this,Ce).remove(this)}setData(e,r){const s=kr(this.state.data,e,this.options);return U(this,ke,Le).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(e,r){U(this,ke,Le).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var s;const r=n(this,Ye);return(s=n(this,Ee))==null||s.cancel(e),r?r.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(n(this,Ct))}isActive(){return n(this,ae).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||n(this,ae).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Ns(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=n(this,ae).find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=n(this,Ee))==null||r.continue()}onOnline(){var r;const e=n(this,ae).find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=n(this,Ee))==null||r.continue()}addObserver(e){n(this,ae).includes(e)||(n(this,ae).push(e),this.clearGcTimeout(),n(this,Ce).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){n(this,ae).includes(e)&&(b(this,ae,n(this,ae).filter(r=>r!==e)),n(this,ae).length||(n(this,Ee)&&(n(this,lt)?n(this,Ee).cancel({revert:!0}):n(this,Ee).cancelRetry()),this.scheduleGc()),n(this,Ce).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return n(this,ae).length}invalidate(){this.state.isInvalidated||U(this,ke,Le).call(this,{type:"invalidate"})}fetch(e,r){var f,d,C,v;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(n(this,Ye))return(f=n(this,Ee))==null||f.continueRetry(),n(this,Ye)}if(e&&U(this,Rt,nr).call(this,e),!this.options.queryFn){const w=n(this,ae).find(j=>j.options.queryFn);w&&U(this,Rt,nr).call(this,w.options)}const s=new AbortController,i={queryKey:this.queryKey,meta:this.meta},a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(b(this,lt,!0),s.signal)})};a(i);const o=()=>this.options.queryFn?(b(this,lt,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(h),(d=this.options.behavior)==null||d.onFetch(h,this),b(this,Et,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=h.fetchOptions)==null?void 0:C.meta))&&U(this,ke,Le).call(this,{type:"fetch",meta:(v=h.fetchOptions)==null?void 0:v.meta});const c=w=>{var j,P,g,_;Er(w)&&w.silent||U(this,ke,Le).call(this,{type:"error",error:w}),Er(w)||((P=(j=n(this,Ce).config).onError)==null||P.call(j,w,this),(_=(g=n(this,Ce).config).onSettled)==null||_.call(g,this.state.data,w,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return b(this,Ee,qs({fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:w=>{var j,P,g,_;if(typeof w>"u"){c(new Error(`${this.queryHash} data is undefined`));return}this.setData(w),(P=(j=n(this,Ce).config).onSuccess)==null||P.call(j,w,this),(_=(g=n(this,Ce).config).onSettled)==null||_.call(g,w,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(w,j)=>{U(this,ke,Le).call(this,{type:"failed",failureCount:w,error:j})},onPause:()=>{U(this,ke,Le).call(this,{type:"pause"})},onContinue:()=>{U(this,ke,Le).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode})),b(this,Ye,n(this,Ee).promise),n(this,Ye)}},Ct=new WeakMap,Et=new WeakMap,Ce=new WeakMap,Ye=new WeakMap,Ee=new WeakMap,ae=new WeakMap,qt=new WeakMap,lt=new WeakMap,Rt=new WeakSet,nr=function(e){this.options={...n(this,qt),...e},this.updateGcTime(this.options.gcTime)},ke=new WeakSet,Le=function(e){const r=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:vr(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Er(i)&&i.revert&&n(this,Et)?{...n(this,Et),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=r(this.state),se.batch(()=>{n(this,ae).forEach(s=>{s.onQueryUpdate()}),n(this,Ce).notify({query:this,type:"updated",action:e})})},Es);function tn(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=typeof e<"u",s=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Pe,Rs,Qs=(Rs=class extends Mt{constructor(e={}){super();E(this,Pe,void 0);this.config=e,b(this,Pe,new Map)}build(e,r,s){const i=r.queryKey,a=r.queryHash??Vr(i,r);let o=this.get(a);return o||(o=new en({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(r),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){n(this,Pe).has(e.queryHash)||(n(this,Pe).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=n(this,Pe).get(e.queryHash);r&&(e.destroy(),r===e&&n(this,Pe).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){se.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return n(this,Pe).get(e)}getAll(){return[...n(this,Pe).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(s=>ls(r,s))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(s=>ls(e,s)):r}notify(e){se.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){se.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){se.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Pe=new WeakMap,Rs),Fe,Bt,me,_t,je,He,_s,rn=(_s=class extends Bs{constructor(e){super();E(this,je);E(this,Fe,void 0);E(this,Bt,void 0);E(this,me,void 0);E(this,_t,void 0);this.mutationId=e.mutationId,b(this,Bt,e.defaultOptions),b(this,me,e.mutationCache),b(this,Fe,[]),this.state=e.state||$s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...n(this,Bt),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){n(this,Fe).includes(e)||(n(this,Fe).push(e),this.clearGcTimeout(),n(this,me).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){b(this,Fe,n(this,Fe).filter(r=>r!==e)),this.scheduleGc(),n(this,me).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){n(this,Fe).length||(this.state.status==="pending"?this.scheduleGc():n(this,me).remove(this))}continue(){var e;return((e=n(this,_t))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,a,o,h,c,f,d,C,v,w,j,P,g,_,N,A,z,Y,G,I;const r=()=>(b(this,_t,qs({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(u,l)=>{U(this,je,He).call(this,{type:"failed",failureCount:u,error:l})},onPause:()=>{U(this,je,He).call(this,{type:"pause"})},onContinue:()=>{U(this,je,He).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),n(this,_t).promise),s=this.state.status==="pending";try{if(!s){U(this,je,He).call(this,{type:"pending",variables:e}),await((a=(i=n(this,me).config).onMutate)==null?void 0:a.call(i,e,this));const l=await((h=(o=this.options).onMutate)==null?void 0:h.call(o,e));l!==this.state.context&&U(this,je,He).call(this,{type:"pending",context:l,variables:e})}const u=await r();return await((f=(c=n(this,me).config).onSuccess)==null?void 0:f.call(c,u,e,this.state.context,this)),await((C=(d=this.options).onSuccess)==null?void 0:C.call(d,u,e,this.state.context)),await((w=(v=n(this,me).config).onSettled)==null?void 0:w.call(v,u,null,this.state.variables,this.state.context,this)),await((P=(j=this.options).onSettled)==null?void 0:P.call(j,u,null,e,this.state.context)),U(this,je,He).call(this,{type:"success",data:u}),u}catch(u){try{throw await((_=(g=n(this,me).config).onError)==null?void 0:_.call(g,u,e,this.state.context,this)),await((A=(N=this.options).onError)==null?void 0:A.call(N,u,e,this.state.context)),await((Y=(z=n(this,me).config).onSettled)==null?void 0:Y.call(z,void 0,u,this.state.variables,this.state.context,this)),await((I=(G=this.options).onSettled)==null?void 0:I.call(G,void 0,u,e,this.state.context)),u}finally{U(this,je,He).call(this,{type:"error",error:u})}}}},Fe=new WeakMap,Bt=new WeakMap,me=new WeakMap,_t=new WeakMap,je=new WeakSet,He=function(e){const r=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!vr(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),se.batch(()=>{n(this,Fe).forEach(s=>{s.onMutationUpdate(e)}),n(this,me).notify({mutation:this,type:"updated",action:e})})},_s);function $s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Re,Qt,ct,Ss,sn=(Ss=class extends Mt{constructor(e={}){super();E(this,Re,void 0);E(this,Qt,void 0);E(this,ct,void 0);this.config=e,b(this,Re,[]),b(this,Qt,0)}build(e,r,s){const i=new rn({mutationCache:this,mutationId:++sr(this,Qt)._,options:e.defaultMutationOptions(r),state:s});return this.add(i),i}add(e){n(this,Re).push(e),this.notify({type:"added",mutation:e})}remove(e){b(this,Re,n(this,Re).filter(r=>r!==e)),this.notify({type:"removed",mutation:e})}clear(){se.batch(()=>{n(this,Re).forEach(e=>{this.remove(e)})})}getAll(){return n(this,Re)}find(e){const r={exact:!0,...e};return n(this,Re).find(s=>cs(r,s))}findAll(e={}){return n(this,Re).filter(r=>cs(e,r))}notify(e){se.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){return b(this,ct,(n(this,ct)??Promise.resolve()).then(()=>{const e=n(this,Re).filter(r=>r.state.isPaused);return se.batch(()=>e.reduce((r,s)=>r.then(()=>s.continue().catch(_e)),Promise.resolve()))}).then(()=>{b(this,ct,void 0)})),n(this,ct)}},Re=new WeakMap,Qt=new WeakMap,ct=new WeakMap,Ss);function nn(t){return{onFetch:(e,r)=>{const s=async()=>{var j,P,g,_,N;const i=e.options,a=(g=(P=(j=e.fetchOptions)==null?void 0:j.meta)==null?void 0:P.fetchMore)==null?void 0:g.direction,o=((_=e.state.data)==null?void 0:_.pages)||[],h=((N=e.state.data)==null?void 0:N.pageParams)||[],c={pages:[],pageParams:[]};let f=!1;const d=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(e.signal.aborted?f=!0:e.signal.addEventListener("abort",()=>{f=!0}),e.signal)})},C=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),v=async(A,z,Y)=>{if(f)return Promise.reject();if(z==null&&A.pages.length)return Promise.resolve(A);const G={queryKey:e.queryKey,pageParam:z,direction:Y?"backward":"forward",meta:e.options.meta};d(G);const I=await C(G),{maxPages:u}=e.options,l=Y?Vi:Gi;return{pages:l(A.pages,I,u),pageParams:l(A.pageParams,z,u)}};let w;if(a&&o.length){const A=a==="backward",z=A?an:fs,Y={pages:o,pageParams:h},G=z(i,Y);w=await v(Y,G,A)}else{w=await v(c,h[0]??i.initialPageParam);const A=t??o.length;for(let z=1;z{var i,a;return(a=(i=e.options).persister)==null?void 0:a.call(i,s,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=s}}}function fs(t,{pages:e,pageParams:r}){const s=e.length-1;return t.getNextPageParam(e[s],e,r[s],r)}function an(t,{pages:e,pageParams:r}){var s;return(s=t.getPreviousPageParam)==null?void 0:s.call(t,e[0],e,r[0],r)}var re,Ze,Xe,St,Ot,et,kt,Tt,Os,on=(Os=class{constructor(t={}){E(this,re,void 0);E(this,Ze,void 0);E(this,Xe,void 0);E(this,St,void 0);E(this,Ot,void 0);E(this,et,void 0);E(this,kt,void 0);E(this,Tt,void 0);b(this,re,t.queryCache||new Qs),b(this,Ze,t.mutationCache||new sn),b(this,Xe,t.defaultOptions||{}),b(this,St,new Map),b(this,Ot,new Map),b(this,et,0)}mount(){sr(this,et)._++,n(this,et)===1&&(b(this,kt,fr.subscribe(()=>{fr.isFocused()&&(this.resumePausedMutations(),n(this,re).onFocus())})),b(this,Tt,pr.subscribe(()=>{pr.isOnline()&&(this.resumePausedMutations(),n(this,re).onOnline())})))}unmount(){var t,e;sr(this,et)._--,n(this,et)===0&&((t=n(this,kt))==null||t.call(this),b(this,kt,void 0),(e=n(this,Tt))==null||e.call(this),b(this,Tt,void 0))}isFetching(t){return n(this,re).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return n(this,Ze).findAll({...t,status:"pending"}).length}getQueryData(t){var e;return(e=n(this,re).find({queryKey:t}))==null?void 0:e.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return e!==void 0?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:e,state:r})=>{const s=r.data;return[e,s]})}setQueryData(t,e,r){const s=n(this,re).find({queryKey:t}),i=s==null?void 0:s.state.data,a=Wi(e,i);if(typeof a>"u")return;const o=this.defaultQueryOptions({queryKey:t});return n(this,re).build(this,o).setData(a,{...r,manual:!0})}setQueriesData(t,e,r){return se.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,r)]))}getQueryState(t){var e;return(e=n(this,re).find({queryKey:t}))==null?void 0:e.state}removeQueries(t){const e=n(this,re);se.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=n(this,re),s={type:"active",...t};return se.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries(s,e)))}cancelQueries(t={},e={}){const r={revert:!0,...e},s=se.batch(()=>n(this,re).findAll(t).map(i=>i.cancel(r)));return Promise.all(s).then(_e).catch(_e)}invalidateQueries(t={},e={}){return se.batch(()=>{if(n(this,re).findAll(t).forEach(s=>{s.invalidate()}),t.refetchType==="none")return Promise.resolve();const r={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(r,e)})}refetchQueries(t={},e){const r={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},s=se.batch(()=>n(this,re).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(_e)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(_e)}fetchQuery(t){const e=this.defaultQueryOptions(t);typeof e.retry>"u"&&(e.retry=!1);const r=n(this,re).build(this,e);return r.isStaleByTime(e.staleTime)?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(_e).catch(_e)}fetchInfiniteQuery(t){return t.behavior=nn(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(_e).catch(_e)}resumePausedMutations(){return n(this,Ze).resumePausedMutations()}getQueryCache(){return n(this,re)}getMutationCache(){return n(this,Ze)}getDefaultOptions(){return n(this,Xe)}setDefaultOptions(t){b(this,Xe,t)}setQueryDefaults(t,e){n(this,St).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...n(this,St).values()];let r={};return e.forEach(s=>{Lt(t,s.queryKey)&&(r={...r,...s.defaultOptions})}),r}setMutationDefaults(t,e){n(this,Ot).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...n(this,Ot).values()];let r={};return e.forEach(s=>{Lt(t,s.mutationKey)&&(r={...r,...s.defaultOptions})}),r}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const e={...n(this,Xe).queries,...(t==null?void 0:t.queryKey)&&this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Vr(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...n(this,Xe).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){n(this,re).clear(),n(this,Ze).clear()}},re=new WeakMap,Ze=new WeakMap,Xe=new WeakMap,St=new WeakMap,Ot=new WeakMap,et=new WeakMap,kt=new WeakMap,Tt=new WeakMap,Os),fe,$,$t,de,ht,Pt,Ie,zt,Ft,jt,dt,ft,tt,It,pt,Nt,Kt,Tr,Wt,Pr,Ht,Fr,Gt,jr,Vt,Ir,Jt,Dr,Yt,Ur,gr,zs,ks,un=(ks=class extends Mt{constructor(e,r){super();E(this,pt);E(this,Kt);E(this,Wt);E(this,Ht);E(this,Gt);E(this,Vt);E(this,Jt);E(this,Yt);E(this,gr);E(this,fe,void 0);E(this,$,void 0);E(this,$t,void 0);E(this,de,void 0);E(this,ht,void 0);E(this,Pt,void 0);E(this,Ie,void 0);E(this,zt,void 0);E(this,Ft,void 0);E(this,jt,void 0);E(this,dt,void 0);E(this,ft,void 0);E(this,tt,void 0);E(this,It,new Set);this.options=r,b(this,fe,e),b(this,Ie,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(n(this,$).addObserver(this),ps(n(this,$),this.options)?U(this,pt,Nt).call(this):this.updateResult(),U(this,Gt,jr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mr(n(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mr(n(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,U(this,Vt,Ir).call(this),U(this,Jt,Dr).call(this),n(this,$).removeObserver(this)}setOptions(e,r){const s=this.options,i=n(this,$);if(this.options=n(this,fe).defaultQueryOptions(e),dr(s,this.options)||n(this,fe).getQueryCache().notify({type:"observerOptionsUpdated",query:n(this,$),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),U(this,Yt,Ur).call(this);const a=this.hasListeners();a&&ms(n(this,$),i,this.options,s)&&U(this,pt,Nt).call(this),this.updateResult(r),a&&(n(this,$)!==i||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&U(this,Kt,Tr).call(this);const o=U(this,Wt,Pr).call(this);a&&(n(this,$)!==i||this.options.enabled!==s.enabled||o!==n(this,tt))&&U(this,Ht,Fr).call(this,o)}getOptimisticResult(e){const r=n(this,fe).getQueryCache().build(n(this,fe),e),s=this.createResult(r,e);return cn(this,s)&&(b(this,de,s),b(this,Pt,this.options),b(this,ht,n(this,$).state)),s}getCurrentResult(){return n(this,de)}trackResult(e){const r={};return Object.keys(e).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(n(this,It).add(s),e[s])})}),r}getCurrentQuery(){return n(this,$)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=n(this,fe).defaultQueryOptions(e),s=n(this,fe).getQueryCache().build(n(this,fe),r);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,r))}fetch(e){return U(this,pt,Nt).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),n(this,de)))}createResult(e,r){var G;const s=n(this,$),i=this.options,a=n(this,de),o=n(this,ht),h=n(this,Pt),f=e!==s?e.state:n(this,$t),{state:d}=e;let{error:C,errorUpdatedAt:v,fetchStatus:w,status:j}=d,P=!1,g;if(r._optimisticResults){const I=this.hasListeners(),u=!I&&ps(e,r),l=I&&ms(e,s,r,i);(u||l)&&(w=vr(e.options.networkMode)?"fetching":"paused",d.dataUpdatedAt||(j="pending")),r._optimisticResults==="isRestoring"&&(w="idle")}if(r.select&&typeof d.data<"u")if(a&&d.data===(o==null?void 0:o.data)&&r.select===n(this,zt))g=n(this,Ft);else try{b(this,zt,r.select),g=r.select(d.data),g=kr(a==null?void 0:a.data,g,r),b(this,Ft,g),b(this,Ie,null)}catch(I){b(this,Ie,I)}else g=d.data;if(typeof r.placeholderData<"u"&&typeof g>"u"&&j==="pending"){let I;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(h==null?void 0:h.placeholderData))I=a.data;else if(I=typeof r.placeholderData=="function"?r.placeholderData((G=n(this,jt))==null?void 0:G.state.data,n(this,jt)):r.placeholderData,r.select&&typeof I<"u")try{I=r.select(I),b(this,Ie,null)}catch(u){b(this,Ie,u)}typeof I<"u"&&(j="success",g=kr(a==null?void 0:a.data,I,r),P=!0)}n(this,Ie)&&(C=n(this,Ie),g=n(this,Ft),v=Date.now(),j="error");const _=w==="fetching",N=j==="pending",A=j==="error",z=N&&_;return{status:j,fetchStatus:w,isPending:N,isSuccess:j==="success",isError:A,isInitialLoading:z,isLoading:z,data:g,dataUpdatedAt:d.dataUpdatedAt,error:C,errorUpdatedAt:v,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>f.dataUpdateCount||d.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&!N,isLoadingError:A&&d.dataUpdatedAt===0,isPaused:w==="paused",isPlaceholderData:P,isRefetchError:A&&d.dataUpdatedAt!==0,isStale:Jr(e,r),refetch:this.refetch}}updateResult(e){const r=n(this,de),s=this.createResult(n(this,$),this.options);if(b(this,ht,n(this,$).state),b(this,Pt,this.options),n(this,ht).data!==void 0&&b(this,jt,n(this,$)),dr(s,r))return;b(this,de,s);const i={},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!n(this,It).size)return!0;const c=new Set(h??n(this,It));return this.options.throwOnError&&c.add("error"),Object.keys(n(this,de)).some(f=>{const d=f;return n(this,de)[d]!==r[d]&&c.has(d)})};(e==null?void 0:e.listeners)!==!1&&a()&&(i.listeners=!0),U(this,gr,zs).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&U(this,Gt,jr).call(this)}},fe=new WeakMap,$=new WeakMap,$t=new WeakMap,de=new WeakMap,ht=new WeakMap,Pt=new WeakMap,Ie=new WeakMap,zt=new WeakMap,Ft=new WeakMap,jt=new WeakMap,dt=new WeakMap,ft=new WeakMap,tt=new WeakMap,It=new WeakMap,pt=new WeakSet,Nt=function(e){U(this,Yt,Ur).call(this);let r=n(this,$).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(_e)),r},Kt=new WeakSet,Tr=function(){if(U(this,Vt,Ir).call(this),Ut||n(this,de).isStale||!Sr(this.options.staleTime))return;const r=Ns(n(this,de).dataUpdatedAt,this.options.staleTime)+1;b(this,dt,setTimeout(()=>{n(this,de).isStale||this.updateResult()},r))},Wt=new WeakSet,Pr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(n(this,$)):this.options.refetchInterval)??!1},Ht=new WeakSet,Fr=function(e){U(this,Jt,Dr).call(this),b(this,tt,e),!(Ut||this.options.enabled===!1||!Sr(n(this,tt))||n(this,tt)===0)&&b(this,ft,setInterval(()=>{(this.options.refetchIntervalInBackground||fr.isFocused())&&U(this,pt,Nt).call(this)},n(this,tt)))},Gt=new WeakSet,jr=function(){U(this,Kt,Tr).call(this),U(this,Ht,Fr).call(this,U(this,Wt,Pr).call(this))},Vt=new WeakSet,Ir=function(){n(this,dt)&&(clearTimeout(n(this,dt)),b(this,dt,void 0))},Jt=new WeakSet,Dr=function(){n(this,ft)&&(clearInterval(n(this,ft)),b(this,ft,void 0))},Yt=new WeakSet,Ur=function(){const e=n(this,fe).getQueryCache().build(n(this,fe),this.options);if(e===n(this,$))return;const r=n(this,$);b(this,$,e),b(this,$t,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},gr=new WeakSet,zs=function(e){se.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(n(this,de))}),n(this,fe).getQueryCache().notify({query:n(this,$),type:"observerResultsUpdated"})})},ks);function ln(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function ps(t,e){return ln(t,e)||t.state.dataUpdatedAt>0&&Mr(t,e,e.refetchOnMount)}function Mr(t,e,r){if(e.enabled!==!1){const s=typeof r=="function"?r(t):r;return s==="always"||s!==!1&&Jr(t,e)}return!1}function ms(t,e,r,s){return r.enabled!==!1&&(t!==e||s.enabled===!1)&&(!r.suspense||t.state.status!=="error")&&Jr(t,r)}function Jr(t,e){return t.isStaleByTime(e.staleTime)}function cn(t,e){return!dr(t.getCurrentResult(),e)}var rt,qe,ge,Be,Dt,ar,Zt,Nr,Ts,hn=(Ts=class extends Mt{constructor(r,s){super();E(this,Dt);E(this,Zt);E(this,rt,void 0);E(this,qe,void 0);E(this,ge,void 0);E(this,Be,void 0);b(this,qe,void 0),b(this,rt,r),this.setOptions(s),this.bindMethods(),U(this,Dt,ar).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const s=this.options;this.options=n(this,rt).defaultMutationOptions(r),dr(s,this.options)||n(this,rt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:n(this,ge),observer:this}),(i=n(this,ge))==null||i.setOptions(this.options),s!=null&&s.mutationKey&&this.options.mutationKey&&mt(s.mutationKey)!==mt(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var r;this.hasListeners()||(r=n(this,ge))==null||r.removeObserver(this)}onMutationUpdate(r){U(this,Dt,ar).call(this),U(this,Zt,Nr).call(this,r)}getCurrentResult(){return n(this,qe)}reset(){var r;(r=n(this,ge))==null||r.removeObserver(this),b(this,ge,void 0),U(this,Dt,ar).call(this),U(this,Zt,Nr).call(this)}mutate(r,s){var i;return b(this,Be,s),(i=n(this,ge))==null||i.removeObserver(this),b(this,ge,n(this,rt).getMutationCache().build(n(this,rt),this.options)),n(this,ge).addObserver(this),n(this,ge).execute(r)}},rt=new WeakMap,qe=new WeakMap,ge=new WeakMap,Be=new WeakMap,Dt=new WeakSet,ar=function(){var s;const r=((s=n(this,ge))==null?void 0:s.state)??$s();b(this,qe,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Zt=new WeakSet,Nr=function(r){se.batch(()=>{var s,i,a,o,h,c,f,d;if(n(this,Be)&&this.hasListeners()){const C=n(this,qe).variables,v=n(this,qe).context;(r==null?void 0:r.type)==="success"?((i=(s=n(this,Be)).onSuccess)==null||i.call(s,r.data,C,v),(o=(a=n(this,Be)).onSettled)==null||o.call(a,r.data,null,C,v)):(r==null?void 0:r.type)==="error"&&((c=(h=n(this,Be)).onError)==null||c.call(h,r.error,C,v),(d=(f=n(this,Be)).onSettled)==null||d.call(f,void 0,r.error,C,v))}this.listeners.forEach(C=>{C(n(this,qe))})})},Ts),Ks=y.createContext(void 0),Ws=t=>{const e=y.useContext(Ks);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},dn=({client:t,children:e})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),y.createElement(Ks.Provider,{value:t},e)),Hs=y.createContext(!1),fn=()=>y.useContext(Hs);Hs.Provider;function pn(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var mn=y.createContext(pn()),gn=()=>y.useContext(mn);function Gs(t,e){return typeof t=="function"?t(...e):!!t}var yn=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},vn=t=>{y.useEffect(()=>{t.clearReset()},[t])},bn=({result:t,errorResetBoundary:e,throwOnError:r,query:s})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&Gs(r,[t.error,s]),wn=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},xn=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Cn=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function En(t,e,r){const s=Ws(r),i=fn(),a=gn(),o=s.defaultQueryOptions(t);o._optimisticResults=i?"isRestoring":"optimistic",wn(o),yn(o,a),vn(a);const[h]=y.useState(()=>new e(s,o)),c=h.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(f=>{const d=i?()=>{}:h.subscribe(se.batchCalls(f));return h.updateResult(),d},[h,i]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),y.useEffect(()=>{h.setOptions(o,{listeners:!1})},[o,h]),xn(o,c))throw Cn(o,h,a);if(bn({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash)}))throw c.error;return o.notifyOnChangeProps?c:h.trackResult(c)}function Vs(t,e){return En(t,un,e)}function Js(t,e){const r=Ws(e),[s]=y.useState(()=>new hn(r,t));y.useEffect(()=>{s.setOptions(t)},[s,t]);const i=y.useSyncExternalStore(y.useCallback(o=>s.subscribe(se.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=y.useCallback((o,h)=>{s.mutate(o,h).catch(Rn)},[s]);if(i.error&&Gs(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Rn(){}var _n=function(){return null};function Xt({children:t,disabled:e,type:r,className:s,onClick:i,variant:a}){return p.jsx("button",{className:` - inline-flex w-fit items-center justify-center rounded-md shadow-sm transition-buttons duration-200 px-4 py-2 text-sm font-medium - - ${e?"":` - hover:shadow-lg - focus:outline-none focus:ring-2 focus:ring-offset-2`} - - ${a==="primary"?` - bg-oxford-600 text-white - hover:bg-oxford-700 - focus:bg-oxford-700 focus:ring-oxford-500 focus:ring-offset-white - `:""} - ${a==="secondary"?` - bg-slate-500 text-white - hover:bg-slate-600 - focus:bg-slate-600 focus:ring-slate-500 focus:ring-offset-white - `:""} - - ${s} - `,disabled:e,onClick:i,type:r,children:t})}Xt.propTypes={children:x.node.isRequired,className:x.string,disabled:x.bool,onClick:x.func,type:x.string,variant:x.string};Xt.defaultProps={className:null,disabled:!1,onClick:()=>null,type:"button",variant:"primary"};function Sn(t){let e=[],r=[];return t.map((s,i)=>{const a=s.name.split("/");return i===0?(e=[],e=a):(r=[],a.map((o,h)=>o===e[h]?r.push(o):null))}),r.join("/")}function On(t){const e=new Intl.Collator("en"),r=[...t].sort((i,a)=>e.compare(i.name.toUpperCase(),a.name.toUpperCase()));if(r.length<2)return r.map(i=>({...i,shortName:i.name}));const s=Sn(r);return r.map(i=>({...i,shortName:i.name.replace(`${s}/`,"")}))}function Ys({authToken:t,filesUrl:e}){return Vs({queryKey:["FILE_LIST"],queryFn:async()=>{const r=await fetch(e,{headers:{Authorization:t}});if(!r.ok)throw new Error;return r.json()},select:r=>On(r.files),meta:{errorMessage:"Unable to load files",id:e}})}const pe={authToken:x.string,basePath:x.string,csrfToken:x.string,filesUrl:x.string,prepareUrl:x.string,publishUrl:x.string},De={date:x.string,id:x.string,is_deleted:x.bool,name:x.string,sha256:x.string,size:x.number,url:x.string,user:x.string};let kn={data:""},Tn=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||kn,Pn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Fn=/\/\*[^]*?\*\/| +/g,gs=/\n+/g,Ge=(t,e)=>{let r="",s="",i="";for(let a in t){let o=t[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":s+=a[1]=="f"?Ge(o,a):a+"{"+Ge(o,a[1]=="k"?"":e)+"}":typeof o=="object"?s+=Ge(o,e?e.replace(/([^,])+/g,h=>a.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,h):h?h+" "+c:c)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ge.p?Ge.p(a,o):a+":"+o+";")}return r+(e&&i?e+"{"+i+"}":i)+s},Ae={},Zs=t=>{if(typeof t=="object"){let e="";for(let r in t)e+=r+Zs(t[r]);return e}return t},jn=(t,e,r,s,i)=>{let a=Zs(t),o=Ae[a]||(Ae[a]=(c=>{let f=0,d=11;for(;f>>0;return"go"+d})(a));if(!Ae[o]){let c=a!==t?t:(f=>{let d,C,v=[{}];for(;d=Pn.exec(f.replace(Fn,""));)d[4]?v.shift():d[3]?(C=d[3].replace(gs," ").trim(),v.unshift(v[0][C]=v[0][C]||{})):v[0][d[1]]=d[2].replace(gs," ").trim();return v[0]})(t);Ae[o]=Ge(i?{["@keyframes "+o]:c}:c,r?"":"."+o)}let h=r&&Ae.g?Ae.g:null;return r&&(Ae.g=Ae[o]),((c,f,d,C)=>{C?f.data=f.data.replace(C,c):f.data.indexOf(c)===-1&&(f.data=d?c+f.data:f.data+c)})(Ae[o],e,s,h),o},In=(t,e,r)=>t.reduce((s,i,a)=>{let o=e[a];if(o&&o.call){let h=o(r),c=h&&h.props&&h.props.className||/^go/.test(h)&&h;o=c?"."+c:h&&typeof h=="object"?h.props?"":Ge(h,""):h===!1?"":h}return s+i+(o??"")},"");function br(t){let e=this||{},r=t.call?t(e.p):t;return jn(r.unshift?r.raw?In(r,[].slice.call(arguments,1),e.p):r.reduce((s,i)=>Object.assign(s,i&&i.call?i(e.p):i),{}):r,Tn(e.target),e.g,e.o,e.k)}let Xs,Ar,Lr;br.bind({g:1});let Qe=br.bind({k:1});function Dn(t,e,r,s){Ge.p=e,Xs=t,Ar=r,Lr=s}function st(t,e){let r=this||{};return function(){let s=arguments;function i(a,o){let h=Object.assign({},a),c=h.className||i.className;r.p=Object.assign({theme:Ar&&Ar()},h),r.o=/ *go\d+/.test(c),h.className=br.apply(r,s)+(c?" "+c:""),e&&(h.ref=o);let f=t;return t[0]&&(f=h.as||t,delete h.as),Lr&&f[0]&&Lr(h),Xs(f,h)}return e?e(i):i}}var Un=t=>typeof t=="function",mr=(t,e)=>Un(t)?t(e):t,Mn=(()=>{let t=0;return()=>(++t).toString()})(),ei=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),Nn=20,or=new Map,An=1e3,ys=t=>{if(or.has(t))return;let e=setTimeout(()=>{or.delete(t),gt({type:4,toastId:t})},An);or.set(t,e)},Ln=t=>{let e=or.get(t);e&&clearTimeout(e)},qr=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,Nn)};case 1:return e.toast.id&&Ln(e.toast.id),{...t,toasts:t.toasts.map(a=>a.id===e.toast.id?{...a,...e.toast}:a)};case 2:let{toast:r}=e;return t.toasts.find(a=>a.id===r.id)?qr(t,{type:1,toast:r}):qr(t,{type:0,toast:r});case 3:let{toastId:s}=e;return s?ys(s):t.toasts.forEach(a=>{ys(a.id)}),{...t,toasts:t.toasts.map(a=>a.id===s||s===void 0?{...a,visible:!1}:a)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(a=>a.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},ur=[],lr={toasts:[],pausedAt:void 0},gt=t=>{lr=qr(lr,t),ur.forEach(e=>{e(lr)})},qn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Bn=(t={})=>{let[e,r]=y.useState(lr);y.useEffect(()=>(ur.push(r),()=>{let i=ur.indexOf(r);i>-1&&ur.splice(i,1)}),[e]);let s=e.toasts.map(i=>{var a,o;return{...t,...t[i.type],...i,duration:i.duration||((a=t[i.type])==null?void 0:a.duration)||(t==null?void 0:t.duration)||qn[i.type],style:{...t.style,...(o=t[i.type])==null?void 0:o.style,...i.style}}});return{...e,toasts:s}},Qn=(t,e="blank",r)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Mn()}),er=t=>(e,r)=>{let s=Qn(e,t,r);return gt({type:2,toast:s}),s.id},ye=(t,e)=>er("blank")(t,e);ye.error=er("error");ye.success=er("success");ye.loading=er("loading");ye.custom=er("custom");ye.dismiss=t=>{gt({type:3,toastId:t})};ye.remove=t=>gt({type:4,toastId:t});ye.promise=(t,e,r)=>{let s=ye.loading(e.loading,{...r,...r==null?void 0:r.loading});return t.then(i=>(ye.success(mr(e.success,i),{id:s,...r,...r==null?void 0:r.success}),i)).catch(i=>{ye.error(mr(e.error,i),{id:s,...r,...r==null?void 0:r.error})}),t};var $n=(t,e)=>{gt({type:1,toast:{id:t,height:e}})},zn=()=>{gt({type:5,time:Date.now()})},Kn=t=>{let{toasts:e,pausedAt:r}=Bn(t);y.useEffect(()=>{if(r)return;let a=Date.now(),o=e.map(h=>{if(h.duration===1/0)return;let c=(h.duration||0)+h.pauseDuration-(a-h.createdAt);if(c<0){h.visible&&ye.dismiss(h.id);return}return setTimeout(()=>ye.dismiss(h.id),c)});return()=>{o.forEach(h=>h&&clearTimeout(h))}},[e,r]);let s=y.useCallback(()=>{r&>({type:6,time:Date.now()})},[r]),i=y.useCallback((a,o)=>{let{reverseOrder:h=!1,gutter:c=8,defaultPosition:f}=o||{},d=e.filter(w=>(w.position||f)===(a.position||f)&&w.height),C=d.findIndex(w=>w.id===a.id),v=d.filter((w,j)=>jw.visible).slice(...h?[v+1]:[0,v]).reduce((w,j)=>w+(j.height||0)+c,0)},[e]);return{toasts:e,handlers:{updateHeight:$n,startPause:zn,endPause:s,calculateOffset:i}}},Wn=Qe` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,Hn=Qe` -from { - transform: scale(0); - opacity: 0; -} -to { - transform: scale(1); - opacity: 1; -}`,Gn=Qe` -from { - transform: scale(0) rotate(90deg); - opacity: 0; -} -to { - transform: scale(1) rotate(90deg); - opacity: 1; -}`,Vn=st("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${t=>t.primary||"#ff4b4b"}; - position: relative; - transform: rotate(45deg); - - animation: ${Wn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - - &:after, - &:before { - content: ''; - animation: ${Hn} 0.15s ease-out forwards; - animation-delay: 150ms; - position: absolute; - border-radius: 3px; - opacity: 0; - background: ${t=>t.secondary||"#fff"}; - bottom: 9px; - left: 4px; - height: 2px; - width: 12px; - } - - &:before { - animation: ${Gn} 0.15s ease-out forwards; - animation-delay: 180ms; - transform: rotate(90deg); - } -`,Jn=Qe` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,Yn=st("div")` - width: 12px; - height: 12px; - box-sizing: border-box; - border: 2px solid; - border-radius: 100%; - border-color: ${t=>t.secondary||"#e0e0e0"}; - border-right-color: ${t=>t.primary||"#616161"}; - animation: ${Jn} 1s linear infinite; -`,Zn=Qe` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,Xn=Qe` -0% { - height: 0; - width: 0; - opacity: 0; -} -40% { - height: 0; - width: 6px; - opacity: 1; -} -100% { - opacity: 1; - height: 10px; -}`,ea=st("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${t=>t.primary||"#61d345"}; - position: relative; - transform: rotate(45deg); - - animation: ${Zn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - &:after { - content: ''; - box-sizing: border-box; - animation: ${Xn} 0.2s ease-out forwards; - opacity: 0; - animation-delay: 200ms; - position: absolute; - border-right: 2px solid; - border-bottom: 2px solid; - border-color: ${t=>t.secondary||"#fff"}; - bottom: 6px; - left: 6px; - height: 10px; - width: 6px; - } -`,ta=st("div")` - position: absolute; -`,ra=st("div")` - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-width: 20px; - min-height: 20px; -`,sa=Qe` -from { - transform: scale(0.6); - opacity: 0.4; -} -to { - transform: scale(1); - opacity: 1; -}`,ia=st("div")` - position: relative; - transform: scale(0.6); - opacity: 0.4; - min-width: 20px; - animation: ${sa} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; -`,na=({toast:t})=>{let{icon:e,type:r,iconTheme:s}=t;return e!==void 0?typeof e=="string"?y.createElement(ia,null,e):e:r==="blank"?null:y.createElement(ra,null,y.createElement(Yn,{...s}),r!=="loading"&&y.createElement(ta,null,r==="error"?y.createElement(Vn,{...s}):y.createElement(ea,{...s})))},aa=t=>` -0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;} -100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,oa=t=>` -0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} -100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;} -`,ua="0%{opacity:0;} 100%{opacity:1;}",la="0%{opacity:1;} 100%{opacity:0;}",ca=st("div")` - display: flex; - align-items: center; - background: #fff; - color: #363636; - line-height: 1.3; - will-change: transform; - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); - max-width: 350px; - pointer-events: auto; - padding: 8px 10px; - border-radius: 8px; -`,ha=st("div")` - display: flex; - justify-content: center; - margin: 4px 10px; - color: inherit; - flex: 1 1 auto; - white-space: pre-line; -`,da=(t,e)=>{let r=t.includes("top")?1:-1,[s,i]=ei()?[ua,la]:[aa(r),oa(r)];return{animation:e?`${Qe(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Qe(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ti=y.memo(({toast:t,position:e,style:r,children:s})=>{let i=t.height?da(t.position||e||"top-center",t.visible):{opacity:0},a=y.createElement(na,{toast:t}),o=y.createElement(ha,{...t.ariaProps},mr(t.message,t));return y.createElement(ca,{className:t.className,style:{...i,...r,...t.style}},typeof s=="function"?s({icon:a,message:o}):y.createElement(y.Fragment,null,a,o))});Dn(y.createElement);var fa=({id:t,className:e,style:r,onHeightUpdate:s,children:i})=>{let a=y.useCallback(o=>{if(o){let h=()=>{let c=o.getBoundingClientRect().height;s(t,c)};h(),new MutationObserver(h).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[t,s]);return y.createElement("div",{ref:a,className:e,style:r},i)},pa=(t,e)=>{let r=t.includes("top"),s=r?{top:0}:{bottom:0},i=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:ei()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(r?1:-1)}px)`,...s,...i}},ma=br` - z-index: 9999; - > * { - pointer-events: auto; - } -`,ir=16,ga=({reverseOrder:t,position:e="top-center",toastOptions:r,gutter:s,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:h,handlers:c}=Kn(r);return y.createElement("div",{style:{position:"fixed",zIndex:9999,top:ir,left:ir,right:ir,bottom:ir,pointerEvents:"none",...a},className:o,onMouseEnter:c.startPause,onMouseLeave:c.endPause},h.map(f=>{let d=f.position||e,C=c.calculateOffset(f,{reverseOrder:t,gutter:s,defaultPosition:e}),v=pa(d,C);return y.createElement(fa,{id:f.id,key:f.id,onHeightUpdate:c.updateHeight,className:f.visible?ma:"",style:v},f.type==="custom"?mr(f.message,f):i?i(f):y.createElement(ti,{toast:f,position:d}))}))},Yr=ye;function ri({toastId:t}){Yr.dismiss(t)}function Zr({toastId:t,message:e,...r}){console.error(e,{...r}),Yr.error(e,{id:t})}function si({authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s}){const{data:i}=Ys({authToken:t,filesUrl:r}),a="PrepareButton",o=Js({mutationFn:async c=>{const f=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":e},body:JSON.stringify({file_ids:c})});if(!f.ok){const d=await f.json();throw new Error(d.detail)}return f.json()},onMutate:()=>{ri({toastId:a})},onSuccess:c=>{window.location.href=c.url},onError:c=>{Zr({message:`${c}`,toastId:a,prepareUrl:s,url:document.location.href})}});if(!(i!=null&&i.length))return null;const h=i.map(c=>c.id);return p.jsx(Xt,{disabled:o.isPending,onClick:c=>(c.preventDefault(),o.mutate(h)),type:"button",variant:o.isPending?"secondary":"primary",children:o.isPending?"Creating…":"Create a draft publication"})}si.propTypes={authToken:pe.authToken.isRequired,csrfToken:pe.csrfToken.isRequired,filesUrl:pe.filesUrl.isRequired,prepareUrl:pe.prepareUrl.isRequired};function ii({csrfToken:t,publishUrl:e}){const r="PublishButton",s=Js({mutationFn:async()=>{const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":t},body:""});if(!i.ok){const a=await i.json();throw new Error(a.detail)}return i.text()},onMutate:()=>{ri({toastId:r})},onSuccess:()=>{window.location.reload()},onError:i=>{Zr({message:`${i}`,toastId:r,publishUrl:e,url:document.location.href})}});return p.jsx(Xt,{disabled:s.isPending,onClick:i=>(i.preventDefault(),s.mutate()),type:"button",variant:s.isPending?"secondary":"primary",children:s.isPending?"Creating…":"Create a public published output"})}ii.propTypes={csrfToken:pe.csrfToken.isRequired,publishUrl:pe.publishUrl.isRequired};function vt({className:t,container:e,header:r,innerClassName:s,children:i}){return p.jsxs("div",{className:`bg-white shadow ${t}`,children:[r?p.jsx("div",{className:"flex flex-wrap gap-2 items-center justify-between px-4 py-2 sm:px-6 sm:py-4 sm:flex-nowrap bg-slate-50",children:r}):null,p.jsx("div",{className:` - ${s} - ${e?"px-4 py-3 md:px-6 md:py-5":""} - ${r&&e?"border-t border-slate-200":""} - `,children:i})]})}vt.propTypes={children:x.element.isRequired,className:x.string,container:x.bool,header:x.element,innerClassName:x.string};vt.defaultProps={className:"",container:!1,header:null,innerClassName:""};const ya=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],va=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ba=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],wa=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vs=(t,e,r)=>{let s=t;return typeof e=="string"||Array.isArray(e)?s=t.toLocaleString(e,r):(e===!0||r!==void 0)&&(s=t.toLocaleString(void 0,r)),s};function xa(t,e){if(!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);e={bits:!1,binary:!1,space:!0,...e};const r=e.bits?e.binary?wa:ba:e.binary?va:ya,s=e.space?" ":"";if(e.signed&&t===0)return` 0${s}${r[0]}`;const i=t<0,a=i?"-":e.signed?"+":"";i&&(t=-t);let o;if(e.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:e.maximumFractionDigits,...o}),t<1){const d=vs(t,e.locale,o);return a+d+s+r[0]}const h=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),r.length-1);t/=(e.binary?1024:1e3)**h,o||(t=t.toPrecision(3));const c=vs(Number(t),e.locale,o),f=r[h];return a+c+s+f}function ni(t){return t?xa(t,{locale:"en-gb"}):"unknown"}function Xr({autocapitalize:t,autocomplete:e,autocorrect:r,className:s,hideLabel:i,hintText:a,id:o,inputClassName:h,inputmode:c,label:f,labelClass:d,onChange:C,placeholder:v,required:w,type:j,value:P}){return p.jsxs("div",{className:s,children:[p.jsxs("label",{className:`inline-block font-semibold text-lg text-slate-900 cursor-pointer ${d} ${i?"sr-only":"null"}`,htmlFor:o,children:[f,w?p.jsx("span",{"aria-hidden":"true",className:"text-bn-ribbon-700 font-bold",children:"*"}):null]}),a?p.jsx("p",{className:"mb-2 text-sm text-gray-700",children:{hintText:a}}):null,p.jsx("div",{className:"relative",children:p.jsx("input",{autoCapitalize:t,autoComplete:e,autoCorrect:r,className:` - block w-full border-slate-300 text-slate-900 shadow-sm - focus:border-oxford-500 focus:ring-oxford-500 - sm:text-sm - [&:not(:placeholder-shown):not(:focus)]:invalid:border-bn-ribbon-600 [&:not(:placeholder-shown):not(:focus)]:invalid:ring-bn-ribbon-600 [&:not(:placeholder-shown):not(:focus)]:invalid:ring-1 - ${h} - ${i?"":"mt-1"} - `,id:o,inputMode:c,onChange:C,placeholder:v,required:w,type:j,value:P})})]})}Xr.propTypes={autocapitalize:x.string,autocomplete:x.oneOf(["none","off","characters","words","sentences"]),autocorrect:x.oneOf(["on","off"]),className:x.string,hideLabel:x.bool,hintText:x.string,id:x.string,inputClassName:x.string,inputmode:x.string,label:x.string,labelClass:x.string,onChange:x.func,placeholder:x.string,required:x.bool,type:x.string,value:x.string};Xr.defaultProps={autocapitalize:null,autocomplete:null,autocorrect:null,className:null,hideLabel:!1,hintText:null,id:"inputID",inputClassName:null,inputmode:null,label:null,labelClass:null,onChange:()=>null,placeholder:null,required:null,type:"text",value:null};function ai({files:t,listRef:e,setFiles:r}){const[s,i]=y.useState("");y.useEffect(()=>{if(s){const o=setTimeout(()=>r(t.filter(h=>h.name.toLowerCase().includes(s.toLowerCase()))),350);return()=>clearTimeout(o)}return r(t)},[t,s,r]);function a(o){var h;(h=e==null?void 0:e.current)==null||h.scrollToItem(0),i(o.target.value)}return p.jsx(Xr,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",className:"mb-1",hideLabel:!0,id:"filterFiles",label:"Find a file…",onChange:o=>a(o),placeholder:"Find a file…",type:"search",value:s})}ai.propTypes={files:x.arrayOf(x.shape()).isRequired,listRef:x.oneOfType([x.func,x.shape({current:x.instanceOf(Element)})]).isRequired,setFiles:x.func.isRequired};function oi({authToken:t,filesUrl:e,listVisible:r,setSelectedFile:s}){const[i,a]=y.useState([]),[o,h]=y.useState(null),{data:c,isError:f,isLoading:d}=Ys({authToken:t,filesUrl:e}),C=Ni(),v=Is(),w=y.createRef();if(y.useEffect(()=>{const P=i.findIndex(g=>`/${g.name}`===v.pathname);i[P]&&(h(P),s(i[P]))},[c,i,v,s]),d)return p.jsx(vt,{container:!0,children:p.jsx("p",{children:"Loading…"})});if(f)return p.jsx(vt,{container:!0,header:p.jsx("h2",{className:"font-semibold text-lg",children:"Error"}),children:p.jsx("p",{children:"Unable to load files"})});const j=({e:P,item:g})=>{var N;P.preventDefault();const _=`/${g.name}`;return _===v.pathname||_===((N=v==null?void 0:v.location)==null?void 0:N.pathname)?null:(C(_),s(g))};return p.jsxs("div",{className:r?"block md:sticky md:top-2":"hidden",children:[p.jsx(ai,{files:c,listRef:w,setFiles:a}),p.jsx(vt,{className:"py-2 md:max-h-screen md:h-full overflow-x-auto md:overflow-y-auto",container:!1,children:p.jsx("ul",{className:"text-sm text-oxford-600 flex flex-col gap-y-1 items-start",children:i.map((P,g)=>p.jsx("li",{className:`leading-tight px-4 ${o===g?"font-bold text-oxford-800":""}`,children:o===g?p.jsx("span",{children:P.shortName}):p.jsx("a",{disabled:`/${P.name}`===v.pathname,href:P.url,onClick:_=>j({e:_,item:P}),title:`File size: ${ni(P.size)}`,children:P.shortName})},P.name))})})]})}oi.propTypes={authToken:pe.authToken.isRequired,filesUrl:pe.filesUrl.isRequired,listVisible:x.bool.isRequired,setSelectedFile:x.func.isRequired};function tr({className:t,children:e,href:r,newTab:s}){return p.jsx("a",{className:` - font-semibold text-oxford-600 underline underline-offset-2 decoration-oxford-300 transition-colors duration-200 - hover:decoration-transparent hover:text-oxford - focus:decoration-transparent focus:text-oxford focus:bg-bn-sun-300 - ${t} - `,href:r,rel:s?"noreferrer noopener":void 0,target:s?"filePreview":void 0,children:e})}tr.propTypes={children:x.oneOfType([x.element,x.string]),className:x.string,href:x.string.isRequired,newTab:x.bool};tr.defaultProps={children:null,className:null,newTab:!1};function ui({fileDate:t,fileName:e,fileSize:r,fileUrl:s}){const i=()=>{if(Date.parse(t)){const a=new Date(t);return{absolute:a.toISOString(),formatted:new Intl.DateTimeFormat("en-GB",{timeZone:"UTC",dateStyle:"short",timeStyle:"short"}).format(a)}}return!1};return p.jsxs("ul",{className:"flex flex-row gap-2 items-center w-full flex-wrap",children:[p.jsx("li",{className:"mr-auto pr-4",children:p.jsx(tr,{className:` - font-semibold text-oxford-600 underline underline-offset-2 decoration-oxford-300 transition-colors duration-200 - hover:decoration-transparent hover:text-oxford - focus:decoration-transparent focus:text-oxford focus:bg-bn-sun-300 - after:content-['↗'] after:text-sm after:ml-1 after:absolute after:mt-0.5 - `,href:s,newTab:!0,children:e})}),i()&&p.jsxs("li",{className:"font-mono text-sm text-right whitespace-nowrap",children:[p.jsx("div",{className:"sr-only",children:"Last modified at: "}),p.jsx("time",{className:"",dateTime:i().absolute,title:i().absolute,children:i().formatted})]}),p.jsx("li",{className:"font-mono text-sm text-right whitespace-nowrap ml-4",children:ni(r)})]})}ui.propTypes={fileDate:De.date.isRequired,fileName:De.name.isRequired,fileSize:De.size.isRequired,fileUrl:De.url.isRequired};function Ca(){return p.jsx(ga,{position:"top-right",toastOptions:{duration:1/0,style:{whiteSpace:"pre-line",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},error:{style:{color:"#721c24",backgroundColor:"#f8d7da"}}},children:t=>p.jsx(ti,{id:"ToastBar",toast:t,children:({icon:e,message:r})=>p.jsxs(p.Fragment,{children:[e,r,t.type!=="loading"&&p.jsxs("button",{className:"border border-current rounded p-1 hover:bg-current hover:fill-white",onClick:()=>Yr.dismiss(t.id),type:"button",children:[p.jsx("span",{className:"sr-only",children:"Dismiss"}),p.jsx("svg",{className:"h-4 w-4",fill:"currentFill",viewBox:"0 0 20 20",width:"12",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{clipRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",fillRule:"evenodd"})})]})]})})})}const Br=t=>t.toLowerCase().match(/.*\.(?:csv)$/i),li=t=>t.toLowerCase().match(/.*\.(?:html)$/i),Qr=t=>t.toLowerCase().match(/.*\.(?:gif|jpg|jpeg|png|svg)$/i),ci=t=>t.toLowerCase().match(/.*\.(?:txt)$/i),hi=t=>t.toLowerCase().match(/.*\.(?:json)$/i),bs=t=>Br(t)||li(t)||Qr(t)||ci(t)||hi(t),Rr='"File not yet uploaded"';var Ea=Ra;function Ra(t,e,r){var s=null,i=null,a=function(){s&&(clearTimeout(s),i=null,s=null)},o=function(){var c=i;a(),c&&c()},h=function(){if(!e)return t.apply(this,arguments);var c=this,f=arguments,d=r&&!s;if(a(),i=function(){t.apply(c,f)},s=setTimeout(function(){if(s=null,!d){var C=i;return i=null,C()}},e),d)return i()};return h.cancel=a,h.flush=o,h}function _a(t=100){const[e,r]=y.useState({width:void 0,height:void 0});return y.useEffect(()=>{function s(){r({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",Ea(s,t)),s(),()=>window.removeEventListener("resize",s)},[t]),e}function di({data:t,fileName:e,fileUrl:r}){const s=_a(),[i,a]=y.useState(0),o=encodeURIComponent(r).replace(/\W/g,"");return y.useLayoutEffect(()=>{document.getElementById(o)&&(window.innerWidth>991?a(Math.round(window.innerHeight-document.getElementById(o).getBoundingClientRect().top-17-40)):a(1e3))},[s,o]),p.jsx("iframe",{className:"-mx-4 -my-3 w-[calc(100%+2rem)] md:-mx-6 md:-my-5 md:w-[calc(100%+3rem)]",frameBorder:"0",height:i,id:o,src:r,srcDoc:t,title:e,width:"100%"})}di.propTypes={data:x.string.isRequired,fileName:De.name.isRequired,fileUrl:De.url.isRequired};function fi({data:t}){return p.jsx("img",{alt:"",className:"h-auto max-w-full",src:t})}fi.propTypes={data:x.string.isRequired};function es({error:t,fileUrl:e}){return p.jsxs(p.Fragment,{children:[t?p.jsx("p",{children:"Error: Unable to load file"}):p.jsx("p",{children:"We cannot show a preview of this file."}),p.jsx("p",{className:"mt-3",children:p.jsx(tr,{href:e,newTab:!0,children:"Open file in a new tab ↗"})})]})}es.propTypes={error:x.shape({message:x.string}),fileUrl:De.url.isRequired};es.defaultProps={error:null};var pi={exports:{}};/* @license -Papa Parse -v5.4.1 -https://github.com/mholt/PapaParse -License: MIT -*/(function(t,e){(function(r,s){t.exports=s()})(Ci,function r(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},i=!s.document&&!!s.postMessage,a=s.IS_PAPA_WORKER||!1,o={},h=0,c={parse:function(u,l){var m=(l=l||{}).dynamicTyping||!1;if(I(m)&&(l.dynamicTypingFunction=m,m={}),l.dynamicTyping=m,l.transform=!!I(l.transform)&&l.transform,l.worker&&c.WORKERS_SUPPORTED){var R=function(){if(!c.WORKERS_SUPPORTED)return!1;var D=(oe=s.URL||s.webkitURL||null,V=r.toString(),c.BLOB_URL||(c.BLOB_URL=oe.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",V,")();"],{type:"text/javascript"})))),M=new s.Worker(D),oe,V;return M.onmessage=N,M.id=h++,o[M.id]=M}();return R.userStep=l.step,R.userChunk=l.chunk,R.userComplete=l.complete,R.userError=l.error,l.step=I(l.step),l.chunk=I(l.chunk),l.complete=I(l.complete),l.error=I(l.error),delete l.worker,void R.postMessage({input:u,config:l,workerId:R.id})}var O=null;return c.NODE_STREAM_INPUT,typeof u=="string"?(u=function(D){return D.charCodeAt(0)===65279?D.slice(1):D}(u),O=l.download?new C(l):new w(l)):u.readable===!0&&I(u.read)&&I(u.on)?O=new j(l):(s.File&&u instanceof File||u instanceof Object)&&(O=new v(l)),O.stream(u)},unparse:function(u,l){var m=!1,R=!0,O=",",D=`\r -`,M='"',oe=M+M,V=!1,k=null,Z=!1;(function(){if(typeof l=="object"){if(typeof l.delimiter!="string"||c.BAD_DELIMITERS.filter(function(S){return l.delimiter.indexOf(S)!==-1}).length||(O=l.delimiter),(typeof l.quotes=="boolean"||typeof l.quotes=="function"||Array.isArray(l.quotes))&&(m=l.quotes),typeof l.skipEmptyLines!="boolean"&&typeof l.skipEmptyLines!="string"||(V=l.skipEmptyLines),typeof l.newline=="string"&&(D=l.newline),typeof l.quoteChar=="string"&&(M=l.quoteChar),typeof l.header=="boolean"&&(R=l.header),Array.isArray(l.columns)){if(l.columns.length===0)throw new Error("Option columns is empty");k=l.columns}l.escapeChar!==void 0&&(oe=l.escapeChar+M),(typeof l.escapeFormulae=="boolean"||l.escapeFormulae instanceof RegExp)&&(Z=l.escapeFormulae instanceof RegExp?l.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var F=new RegExp(g(M),"g");if(typeof u=="string"&&(u=JSON.parse(u)),Array.isArray(u)){if(!u.length||Array.isArray(u[0]))return Se(null,u,V);if(typeof u[0]=="object")return Se(k||Object.keys(u[0]),u,V)}else if(typeof u=="object")return typeof u.data=="string"&&(u.data=JSON.parse(u.data)),Array.isArray(u.data)&&(u.fields||(u.fields=u.meta&&u.meta.fields||k),u.fields||(u.fields=Array.isArray(u.data[0])?u.fields:typeof u.data[0]=="object"?Object.keys(u.data[0]):[]),Array.isArray(u.data[0])||typeof u.data[0]=="object"||(u.data=[u.data])),Se(u.fields||[],u.data||[],V);throw new Error("Unable to serialize unrecognized input");function Se(S,K,ce){var J="";typeof S=="string"&&(S=JSON.parse(S)),typeof K=="string"&&(K=JSON.parse(K));var ue=Array.isArray(S)&&0=this._config.preview;if(a)s.postMessage({results:D,workerId:c.WORKER_ID,finished:oe});else if(I(this._config.chunk)&&!m){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!oe||!I(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),oe||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(l){I(this._config.error)?this._config.error(l):a&&this._config.error&&s.postMessage({workerId:c.WORKER_ID,error:l,finished:!1})}}function C(u){var l;(u=u||{}).chunkSize||(u.chunkSize=c.RemoteChunkSize),d.call(this,u),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(m){this._input=m,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(l=new XMLHttpRequest,this._config.withCredentials&&(l.withCredentials=this._config.withCredentials),i||(l.onload=G(this._chunkLoaded,this),l.onerror=G(this._chunkError,this)),l.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var m=this._config.downloadRequestHeaders;for(var R in m)l.setRequestHeader(R,m[R])}if(this._config.chunkSize){var O=this._start+this._config.chunkSize-1;l.setRequestHeader("Range","bytes="+this._start+"-"+O)}try{l.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}i&&l.status===0&&this._chunkError()}},this._chunkLoaded=function(){l.readyState===4&&(l.status<200||400<=l.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:l.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(m){var R=m.getResponseHeader("Content-Range");return R===null?-1:parseInt(R.substring(R.lastIndexOf("/")+1))}(l),this.parseChunk(l.responseText)))},this._chunkError=function(m){var R=l.statusText||m;this._sendError(new Error(R))}}function v(u){var l,m;(u=u||{}).chunkSize||(u.chunkSize=c.LocalChunkSize),d.call(this,u);var R=typeof FileReader<"u";this.stream=function(O){this._input=O,m=O.slice||O.webkitSlice||O.mozSlice,R?((l=new FileReader).onload=G(this._chunkLoaded,this),l.onerror=G(this._chunkError,this)):l=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(O.target.result)},this._chunkError=function(){this._sendError(l.error)}}function w(u){var l;d.call(this,u=u||{}),this.stream=function(m){return l=m,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var m,R=this._config.chunkSize;return R?(m=l.substring(0,R),l=l.substring(R)):(m=l,l=""),this._finished=!l,this.parseChunk(m)}}}function j(u){d.call(this,u=u||{});var l=[],m=!0,R=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(O){this._input=O,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){R&&l.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),l.length?this.parseChunk(l.shift()):m=!0},this._streamData=G(function(O){try{l.push(typeof O=="string"?O:O.toString(this._config.encoding)),m&&(m=!1,this._checkIsFinished(),this.parseChunk(l.shift()))}catch(D){this._streamError(D)}},this),this._streamError=G(function(O){this._streamCleanUp(),this._sendError(O)},this),this._streamEnd=G(function(){this._streamCleanUp(),R=!0,this._streamData("")},this),this._streamCleanUp=G(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function P(u){var l,m,R,O=Math.pow(2,53),D=-O,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,oe=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,V=this,k=0,Z=0,F=!1,Se=!1,le=[],S={data:[],errors:[],meta:{}};if(I(u.step)){var K=u.step;u.step=function(T){if(S=T,ue())J();else{if(J(),S.data.length===0)return;k+=T.data.length,u.preview&&k>u.preview?m.abort():(S.data=S.data[0],K(S,V))}}}function ce(T){return u.skipEmptyLines==="greedy"?T.join("").trim()==="":T.length===1&&T[0].length===0}function J(){return S&&R&&(ne("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),R=!1),u.skipEmptyLines&&(S.data=S.data.filter(function(T){return!ce(T)})),ue()&&function(){if(!S)return;function T(W,te){I(u.transformHeader)&&(W=u.transformHeader(W,te)),le.push(W)}if(Array.isArray(S.data[0])){for(var L=0;ue()&&L=le.length?"__parsed_extra":le[B]),u.transform&&(Q=u.transform(Q,X)),Q=ie(X,Q),X==="__parsed_extra"?(he[X]=he[X]||[],he[X].push(Q)):he[X]=Q}return u.header&&(B>le.length?ne("FieldMismatch","TooManyFields","Too many fields: expected "+le.length+" fields but parsed "+B,Z+te):B=ve.length/2?`\r -`:"\r"}(T,te)),R=!1,u.delimiter)I(u.delimiter)&&(u.delimiter=u.delimiter(T),S.meta.delimiter=u.delimiter);else{var B=function(X,Q,Oe,ve,Te){var Me,be,H,ee;Te=Te||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var it=0;it=M)return we(!0)}else for(q=k,k++;;){if((q=F.indexOf(l,q+1))===-1)return le||ne.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:k}),Ke();if(q===S-1)return Ke(F.substring(k,q).replace(it,l));if(l!==V||F[q+1]!==V){if(l===V||q===0||F[q-1]!==V){H!==-1&&H=M)return we(!0);break}ne.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:k}),q++}}else q++}return Ke();function nt(xe){ie.push(xe),L=k}function ze(xe){var rs=0;if(xe!==-1){var wr=F.substring(q+1,xe);wr&&wr.trim()===""&&(rs=wr.length)}return rs}function Ke(xe){return le||(xe===void 0&&(xe=F.substring(k)),T.push(xe),k=S,nt(T),ue&&rr()),we()}function We(xe){k=xe,nt(T),T=[],ee=F.indexOf(R,k)}function we(xe){return{data:ie,errors:ne,meta:{delimiter:m,linebreak:R,aborted:Z,truncated:!!xe,cursor:L+(Se||0)}}}function rr(){D(we()),ie=[],ne=[]}},this.abort=function(){Z=!0},this.getCharIndex=function(){return k}}function N(u){var l=u.data,m=o[l.workerId],R=!1;if(l.error)m.userError(l.error,l.file);else if(l.results&&l.results.data){var O={abort:function(){R=!0,A(l.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:z,resume:z};if(I(m.userStep)){for(var D=0;Dp.jsx(mi,{cell:e},r))})}function gi({data:t}){const{readString:e}=Pa(),r=e(t,{chunk:!0,complete:s=>s}).data;return r.length>=1e3?p.jsxs(p.Fragment,{children:[p.jsx("p",{className:"font-bold mb-2",role:"alert",children:"This is a preview of the first 1000 rows"}),p.jsx("div",{className:"flow-root",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsx("div",{className:"inline-block min-w-full align-middle",children:p.jsx("table",{className:"min-w-full divide-y divide-gray-300",children:p.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:r.slice(0,1e3).map((s,i)=>p.jsx($r,{row:s},i))})})})})})]}):p.jsx("div",{className:"flow-root",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsx("div",{className:"inline-block min-w-full align-middle",children:p.jsx("table",{className:"min-w-full divide-y divide-gray-300",children:p.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:r.map((s,i)=>p.jsx($r,{row:s},i))})})})})})}mi.propTypes={cell:x.string.isRequired};$r.propTypes={row:x.arrayOf(x.string).isRequired};gi.propTypes={data:x.string.isRequired};function zr({data:t}){return p.jsx("pre",{className:"whitespace-break-spaces break-words",children:t})}zr.propTypes={data:x.string.isRequired};function yi({authToken:t,fileName:e,fileSize:r,fileUrl:s,uuid:i}){const{data:a,error:o,isLoading:h,isError:c}=Vs({queryKey:["FILE",s],queryFn:async()=>{if(!bs(e)||r>2e7||Br(e)&&r>5e6)return!1;const f=`${s}?${i}`;let d=await fetch(f,{headers:{Authorization:t}});if(!d.ok)throw new Error;if(d.headers.has("Location")&&d.headers.has("Authorization")&&(d=await fetch(d.headers.get("Location"),{headers:{Authorization:d.headers.get("Authorization")}}),!d.ok))throw new Error;const C=await d.clone().text();if(C===Rr)return Rr;if(Qr(e)){const v=await d.blob();return URL.createObjectURL(v)}return C},meta:{errorMessage:`${e} - Unable to load file`,id:s}});return h?p.jsx("span",{children:"Loading..."}):a===Rr?p.jsxs(p.Fragment,{children:[p.jsx("p",{children:"This file has not been uploaded yet. This is likely due to do an error that occurred during release."}),p.jsx("p",{className:"mt-3",children:p.jsx(tr,{href:"https://docs.opensafely.org/how-to-get-help/#slack",newTab:!0,children:"Contact tech support in Slack for more information."})})]}):c||!a||!bs(e)?p.jsx(es,{error:o,fileUrl:s}):p.jsxs(p.Fragment,{children:[Br(e)?p.jsx(gi,{data:a}):null,li(e)&&p.jsx(di,{data:a,fileName:e,fileUrl:s}),Qr(e)?p.jsx(fi,{data:a}):null,ci(e)?p.jsx(zr,{data:a}):null,hi(e)?p.jsx(zr,{data:a}):null]})}yi.propTypes={authToken:pe.authToken.isRequired,fileName:De.name.isRequired,fileSize:De.size.isRequired,fileUrl:De.url.isRequired,uuid:x.number.isRequired};const Fa=new on({defaultOptions:{queries:{refetchOnWindowFocus:!1}},queryCache:new Qs({onError:(t,e)=>{e.meta.errorMessage&&Zr({message:e.meta.errorMessage,toastId:e.meta.id,filesUrl:e.meta.id,url:document.location.href})}})});function ts({authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s,publishUrl:i}){const a=Date.now(),[o,h]=y.useState(!0),[c,f]=y.useState();return p.jsxs(dn,{client:Fa,children:[p.jsxs("div",{className:"py-6",children:[(s||i)&&p.jsxs("div",{className:"mb-3 -mt-3 px-1 md:px-6",children:[s&&p.jsx(si,{authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s}),i&&p.jsx(ii,{csrfToken:e,publishUrl:i})]}),p.jsxs("div",{className:"grid gap-6 grid-cols-1 px-1 md:grid-cols-3 md:px-6 lg:grid-cols-4",children:[p.jsxs("div",{className:"flex flex-col gap-y-1 md:col-span-1",children:[p.jsxs(Xt,{className:"block md:hidden mb-3",onClick:()=>h(!o),type:"button",variant:"secondary",children:[o?"Hide":"Show"," file list"]}),p.jsx(oi,{authToken:t,filesUrl:r,listVisible:o,setListVisible:h,setSelectedFile:f})]}),p.jsx("div",{className:"md:col-span-2 lg:col-span-3",children:c&&p.jsx(vt,{container:!0,header:p.jsx(ui,{fileDate:c.date,fileName:c.shortName,fileSize:c.size,fileUrl:c.url}),children:p.jsx(yi,{authToken:t,fileName:c.shortName,fileSize:c.size,fileUrl:c.url,uuid:a})})})]})]}),p.jsx(Ca,{}),p.jsx(_n,{initialIsOpen:!1})]})}ts.propTypes={authToken:pe.authToken.isRequired,csrfToken:pe.csrfToken.isRequired,filesUrl:pe.filesUrl.isRequired,prepareUrl:pe.prepareUrl,publishUrl:pe.publishUrl};ts.defaultProps={prepareUrl:null,publishUrl:null};var ja={BASE_URL:"/static/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};bi({dsn:ja.VITE_SENTRY_DSN,tracesSampleRate:1});const cr=document.getElementById("outputsSPA"),Ia=wi(cr);document.getElementById("content")&&document.getElementById("content").remove();Ia.render(p.jsx(xi.StrictMode,{children:p.jsx(Ki,{basename:cr.dataset.basePath,children:p.jsx(ts,{...cr.dataset,element:cr})})})); diff --git a/assets/dist/assets/outputs-viewer-C8kQNS9Y.js b/assets/dist/assets/outputs-viewer-C8kQNS9Y.js new file mode 100644 index 00000000..9106809d --- /dev/null +++ b/assets/dist/assets/outputs-viewer-C8kQNS9Y.js @@ -0,0 +1,262 @@ +var wr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var n=(t,e,r)=>(wr(t,e,"read from private field"),r?r.call(t):e.get(t)),E=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},b=(t,e,r,s)=>(wr(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r);var sr=(t,e,r,s)=>({set _(i){b(t,e,i,r)},get _(){return n(t,e,s)}}),D=(t,e,r)=>(wr(t,e,"access private method"),r);import{r as y,e as bi,j as f,P as w,R as Fs,i as xi,c as wi}from"./index-F5ndk3lt.js";import{c as Ci,g as Ei}from"./_commonjsHelpers-BosuxZz1.js";/** + * @remix-run/router v1.15.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function At(){return At=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Oi(){return Math.random().toString(36).substr(2,8)}function is(t,e){return{usr:t.state,key:t.key,idx:e}}function Or(t,e,r,s){return r===void 0&&(r=null),At({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?yr(e):e,{state:r,key:e&&e.key||s||Oi()})}function Ps(t){let{pathname:e="/",search:r="",hash:s=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function yr(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let s=t.indexOf("?");s>=0&&(e.search=t.substr(s),t=t.substr(0,s)),t&&(e.pathname=t)}return e}function Si(t,e,r,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:a=!1}=s,o=i.history,h=at.Pop,l=null,p=d();p==null&&(p=0,o.replaceState(At({},o.state,{idx:p}),""));function d(){return(o.state||{idx:null}).idx}function C(){h=at.Pop;let m=d(),R=m==null?null:m-p;p=m,l&&l({action:h,location:N.location,delta:R})}function x(m,R){h=at.Push;let U=Or(N.location,m,R);r&&r(U,m),p=d()+1;let A=is(U,p),z=N.createHref(U);try{o.pushState(A,"",z)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;i.location.assign(z)}a&&l&&l({action:h,location:N.location,delta:1})}function v(m,R){h=at.Replace;let U=Or(N.location,m,R);r&&r(U,m),p=d();let A=is(U,p),z=N.createHref(U);o.replaceState(A,"",z),a&&l&&l({action:h,location:N.location,delta:0})}function P(m){let R=i.location.origin!=="null"?i.location.origin:i.location.href,U=typeof m=="string"?m:Ps(m);return U=U.replace(/ $/,"%20"),Ne(R,"No window.location.(origin|href) available to create URL for href: "+U),new URL(U,R)}let N={get action(){return h},get location(){return t(i,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ss,C),l=m,()=>{i.removeEventListener(ss,C),l=null}},createHref(m){return e(i,m)},createURL:P,encodeLocation(m){let R=P(m);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:x,replace:v,go(m){return o.go(m)}};return N}var ns;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ns||(ns={}));function _i(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,s=t.charAt(r);return s&&s!=="/"?null:t.slice(r)||"/"}function ki(t,e){e===void 0&&(e="/");let{pathname:r,search:s="",hash:i=""}=typeof t=="string"?yr(t):t;return{pathname:r?r.startsWith("/")?r:Ti(r,e):e,search:Di(s),hash:Ni(i)}}function Ti(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Cr(t,e,r,s){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fi(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Pi(t,e){let r=Fi(t);return e?r.map((s,i)=>i===t.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function ji(t,e,r,s){s===void 0&&(s=!1);let i;typeof t=="string"?i=yr(t):(i=At({},t),Ne(!i.pathname||!i.pathname.includes("?"),Cr("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),Cr("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),Cr("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,h;if(o==null)h=r;else{let C=e.length-1;if(!s&&o.startsWith("..")){let x=o.split("/");for(;x[0]==="..";)x.shift(),C-=1;i.pathname=x.join("/")}h=C>=0?e[C]:"/"}let l=ki(i,h),p=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(p||d)&&(l.pathname+="/"),l}const Ii=t=>t.join("/").replace(/\/\/+/g,"/"),Di=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ni=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,js=["post","put","patch","delete"];new Set(js);const Ui=["get",...js];new Set(Ui);/** + * React Router v6.22.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function hr(){return hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{h.current=!0}),y.useCallback(function(p,d){if(d===void 0&&(d={}),!h.current)return;if(typeof p=="number"){s.go(p);return}let C=ji(p,JSON.parse(o),a,d.relative==="path");t==null&&e!=="/"&&(C.pathname=C.pathname==="/"?e:Ii([e,C.pathname])),(d.replace?s.replace:s.push)(C,d.state,d)},[e,s,o,a,t])}var Us=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Us||{}),Ms=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ms||{});function Li(t){let e=y.useContext(Is);return e||Ne(!1),e}function qi(t){let e=y.useContext(Wr);return e||Ne(!1),e}function Bi(t){let e=qi(),r=e.matches[e.matches.length-1];return r.route.id||Ne(!1),r.route.id}function Qi(){let{router:t}=Li(Us.UseNavigateStable),e=Bi(Ms.UseNavigateStable),r=y.useRef(!1);return Ns(()=>{r.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,hr({fromRouteId:e},a)))},[t,e])}function $i(t){let{basename:e="/",children:r=null,location:s,navigationType:i=at.Pop,navigator:a,static:o=!1,future:h}=t;Gr()&&Ne(!1);let l=e.replace(/^\/*/,"/"),p=y.useMemo(()=>({basename:l,navigator:a,static:o,future:hr({v7_relativeSplatPath:!1},h)}),[l,h,a,o]);typeof s=="string"&&(s=yr(s));let{pathname:d="/",search:C="",hash:x="",state:v=null,key:P="default"}=s,N=y.useMemo(()=>{let m=_i(d,l);return m==null?null:{location:{pathname:m,search:C,hash:x,state:v,key:P},navigationType:i}},[l,d,C,x,v,P,i]);return N==null?null:y.createElement(Kr.Provider,{value:p},y.createElement(Hr.Provider,{children:r,value:N}))}new Promise(()=>{});/** + * React Router DOM v6.22.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const zi="6";try{window.__reactRouterVersion=zi}catch{}const Ki="startTransition",as=bi[Ki];function Hi(t){let{basename:e,children:r,future:s,window:i}=t,a=y.useRef();a.current==null&&(a.current=Ri({window:i,v5Compat:!0}));let o=a.current,[h,l]=y.useState({action:o.action,location:o.location}),{v7_startTransition:p}=s||{},d=y.useCallback(C=>{p&&as?as(()=>l(C)):l(C)},[l,p]);return y.useLayoutEffect(()=>o.listen(d),[o,d]),y.createElement($i,{basename:e,children:r,location:h.location,navigationType:h.action,navigator:o,future:s})}var os;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(os||(os={}));var us;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(us||(us={}));var Ut=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nt=typeof window>"u"||"Deno"in window;function Oe(){}function Wi(t,e){return typeof t=="function"?t(e):t}function Sr(t){return typeof t=="number"&&t>=0&&t!==1/0}function As(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ls(t,e){const{type:r="all",exact:s,fetchStatus:i,predicate:a,queryKey:o,stale:h}=t;if(o){if(s){if(e.queryHash!==Vr(o,e.options))return!1}else if(!Lt(e.queryKey,o))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof h=="boolean"&&e.isStale()!==h||typeof i<"u"&&i!==e.state.fetchStatus||a&&!a(e))}function cs(t,e){const{exact:r,status:s,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(r){if(mt(e.options.mutationKey)!==mt(a))return!1}else if(!Lt(e.options.mutationKey,a))return!1}return!(s&&e.state.status!==s||i&&!i(e))}function Vr(t,e){return((e==null?void 0:e.queryKeyHashFn)||mt)(t)}function mt(t){return JSON.stringify(t,(e,r)=>_r(r)?Object.keys(r).sort().reduce((s,i)=>(s[i]=r[i],s),{}):r)}function Lt(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!Lt(t[r],e[r])):!1}function Ls(t,e){if(t===e)return t;const r=hs(t)&&hs(e);if(r||_r(t)&&_r(e)){const s=r?t:Object.keys(t),i=s.length,a=r?e:Object.keys(e),o=a.length,h=r?[]:{};let l=0;for(let p=0;p"u")return!0;const r=e.prototype;return!(!ds(r)||!r.hasOwnProperty("isPrototypeOf"))}function ds(t){return Object.prototype.toString.call(t)==="[object Object]"}function Gi(t){return new Promise(e=>{setTimeout(e,t)})}function kr(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?Ls(t,e):e}function Vi(t,e,r=0){const s=[...t,e];return r&&s.length>r?s.slice(1):s}function Ji(t,e,r=0){const s=[e,...t];return r&&s.length>r?s.slice(0,-1):s}var ot,Ge,bt,xs,Yi=(xs=class extends Ut{constructor(){super();E(this,ot,void 0);E(this,Ge,void 0);E(this,bt,void 0);b(this,bt,e=>{if(!Nt&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){n(this,Ge)||this.setEventListener(n(this,bt))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,Ge))==null||e.call(this),b(this,Ge,void 0))}setEventListener(e){var r;b(this,bt,e),(r=n(this,Ge))==null||r.call(this),b(this,Ge,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){n(this,ot)!==e&&(b(this,ot,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof n(this,ot)=="boolean"?n(this,ot):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ot=new WeakMap,Ge=new WeakMap,bt=new WeakMap,xs),fr=new Yi,xt,Ve,wt,ws,Zi=(ws=class extends Ut{constructor(){super();E(this,xt,!0);E(this,Ve,void 0);E(this,wt,void 0);b(this,wt,e=>{if(!Nt&&window.addEventListener){const r=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){n(this,Ve)||this.setEventListener(n(this,wt))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,Ve))==null||e.call(this),b(this,Ve,void 0))}setEventListener(e){var r;b(this,wt,e),(r=n(this,Ve))==null||r.call(this),b(this,Ve,e(this.setOnline.bind(this)))}setOnline(e){n(this,xt)!==e&&(b(this,xt,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return n(this,xt)}},xt=new WeakMap,Ve=new WeakMap,wt=new WeakMap,ws),pr=new Zi;function Xi(t){return Math.min(1e3*2**t,3e4)}function vr(t){return(t??"online")==="online"?pr.isOnline():!0}var qs=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Er(t){return t instanceof qs}function Bs(t){let e=!1,r=0,s=!1,i,a,o;const h=new Promise((m,R)=>{a=m,o=R}),l=m=>{var R;s||(v(new qs(m)),(R=t.abort)==null||R.call(t))},p=()=>{e=!0},d=()=>{e=!1},C=()=>!fr.isFocused()||t.networkMode!=="always"&&!pr.isOnline(),x=m=>{var R;s||(s=!0,(R=t.onSuccess)==null||R.call(t,m),i==null||i(),a(m))},v=m=>{var R;s||(s=!0,(R=t.onError)==null||R.call(t,m),i==null||i(),o(m))},P=()=>new Promise(m=>{var R;i=U=>{const A=s||!C();return A&&m(U),A},(R=t.onPause)==null||R.call(t)}).then(()=>{var m;i=void 0,s||(m=t.onContinue)==null||m.call(t)}),N=()=>{if(s)return;let m;try{m=t.fn()}catch(R){m=Promise.reject(R)}Promise.resolve(m).then(x).catch(R=>{var G;if(s)return;const U=t.retry??(Nt?0:3),A=t.retryDelay??Xi,z=typeof A=="function"?A(r,R):A,Y=U===!0||typeof U=="number"&&r{if(C())return P()}).then(()=>{e?v(R):N()})})};return vr(t.networkMode)?N():P().then(N),{promise:h,cancel:l,continue:()=>(i==null?void 0:i())?h:Promise.resolve(),cancelRetry:p,continueRetry:d}}function en(){let t=[],e=0,r=x=>{x()},s=x=>{x()},i=x=>setTimeout(x,0);const a=x=>{i=x},o=x=>{let v;e++;try{v=x()}finally{e--,e||p()}return v},h=x=>{e?t.push(x):i(()=>{r(x)})},l=x=>(...v)=>{h(()=>{x(...v)})},p=()=>{const x=t;t=[],x.length&&i(()=>{s(()=>{x.forEach(v=>{r(v)})})})};return{batch:o,batchCalls:l,schedule:h,setNotifyFunction:x=>{r=x},setBatchNotifyFunction:x=>{s=x},setScheduler:a}}var se=en(),ut,Cs,Qs=(Cs=class{constructor(){E(this,ut,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sr(this.gcTime)&&b(this,ut,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Nt?1/0:5*60*1e3))}clearGcTimeout(){n(this,ut)&&(clearTimeout(n(this,ut)),b(this,ut,void 0))}},ut=new WeakMap,Cs),Ct,Et,Ce,Je,Ee,ae,qt,lt,Rt,nr,ke,Le,Es,tn=(Es=class extends Qs{constructor(e){super();E(this,Rt);E(this,ke);E(this,Ct,void 0);E(this,Et,void 0);E(this,Ce,void 0);E(this,Je,void 0);E(this,Ee,void 0);E(this,ae,void 0);E(this,qt,void 0);E(this,lt,void 0);b(this,lt,!1),b(this,qt,e.defaultOptions),D(this,Rt,nr).call(this,e.options),b(this,ae,[]),b(this,Ce,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,b(this,Ct,e.state||rn(this.options)),this.state=n(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!n(this,ae).length&&this.state.fetchStatus==="idle"&&n(this,Ce).remove(this)}setData(e,r){const s=kr(this.state.data,e,this.options);return D(this,ke,Le).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(e,r){D(this,ke,Le).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var s;const r=n(this,Je);return(s=n(this,Ee))==null||s.cancel(e),r?r.then(Oe).catch(Oe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(n(this,Ct))}isActive(){return n(this,ae).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||n(this,ae).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!As(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=n(this,ae).find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=n(this,Ee))==null||r.continue()}onOnline(){var r;const e=n(this,ae).find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=n(this,Ee))==null||r.continue()}addObserver(e){n(this,ae).includes(e)||(n(this,ae).push(e),this.clearGcTimeout(),n(this,Ce).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){n(this,ae).includes(e)&&(b(this,ae,n(this,ae).filter(r=>r!==e)),n(this,ae).length||(n(this,Ee)&&(n(this,lt)?n(this,Ee).cancel({revert:!0}):n(this,Ee).cancelRetry()),this.scheduleGc()),n(this,Ce).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return n(this,ae).length}invalidate(){this.state.isInvalidated||D(this,ke,Le).call(this,{type:"invalidate"})}fetch(e,r){var p,d,C,x;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(n(this,Je))return(p=n(this,Ee))==null||p.continueRetry(),n(this,Je)}if(e&&D(this,Rt,nr).call(this,e),!this.options.queryFn){const v=n(this,ae).find(P=>P.options.queryFn);v&&D(this,Rt,nr).call(this,v.options)}const s=new AbortController,i={queryKey:this.queryKey,meta:this.meta},a=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(b(this,lt,!0),s.signal)})};a(i);const o=()=>this.options.queryFn?(b(this,lt,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(h),(d=this.options.behavior)==null||d.onFetch(h,this),b(this,Et,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=h.fetchOptions)==null?void 0:C.meta))&&D(this,ke,Le).call(this,{type:"fetch",meta:(x=h.fetchOptions)==null?void 0:x.meta});const l=v=>{var P,N,m,R;Er(v)&&v.silent||D(this,ke,Le).call(this,{type:"error",error:v}),Er(v)||((N=(P=n(this,Ce).config).onError)==null||N.call(P,v,this),(R=(m=n(this,Ce).config).onSettled)==null||R.call(m,this.state.data,v,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return b(this,Ee,Bs({fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:v=>{var P,N,m,R;if(typeof v>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(v),(N=(P=n(this,Ce).config).onSuccess)==null||N.call(P,v,this),(R=(m=n(this,Ce).config).onSettled)==null||R.call(m,v,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(v,P)=>{D(this,ke,Le).call(this,{type:"failed",failureCount:v,error:P})},onPause:()=>{D(this,ke,Le).call(this,{type:"pause"})},onContinue:()=>{D(this,ke,Le).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode})),b(this,Je,n(this,Ee).promise),n(this,Je)}},Ct=new WeakMap,Et=new WeakMap,Ce=new WeakMap,Je=new WeakMap,Ee=new WeakMap,ae=new WeakMap,qt=new WeakMap,lt=new WeakMap,Rt=new WeakSet,nr=function(e){this.options={...n(this,qt),...e},this.updateGcTime(this.options.gcTime)},ke=new WeakSet,Le=function(e){const r=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:vr(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Er(i)&&i.revert&&n(this,Et)?{...n(this,Et),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=r(this.state),se.batch(()=>{n(this,ae).forEach(s=>{s.onQueryUpdate()}),n(this,Ce).notify({query:this,type:"updated",action:e})})},Es);function rn(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=typeof e<"u",s=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Fe,Rs,$s=(Rs=class extends Ut{constructor(e={}){super();E(this,Fe,void 0);this.config=e,b(this,Fe,new Map)}build(e,r,s){const i=r.queryKey,a=r.queryHash??Vr(i,r);let o=this.get(a);return o||(o=new tn({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(r),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){n(this,Fe).has(e.queryHash)||(n(this,Fe).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=n(this,Fe).get(e.queryHash);r&&(e.destroy(),r===e&&n(this,Fe).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){se.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return n(this,Fe).get(e)}getAll(){return[...n(this,Fe).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(s=>ls(r,s))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(s=>ls(e,s)):r}notify(e){se.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){se.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){se.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Fe=new WeakMap,Rs),Pe,Bt,me,Ot,je,He,Os,sn=(Os=class extends Qs{constructor(e){super();E(this,je);E(this,Pe,void 0);E(this,Bt,void 0);E(this,me,void 0);E(this,Ot,void 0);this.mutationId=e.mutationId,b(this,Bt,e.defaultOptions),b(this,me,e.mutationCache),b(this,Pe,[]),this.state=e.state||zs(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...n(this,Bt),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){n(this,Pe).includes(e)||(n(this,Pe).push(e),this.clearGcTimeout(),n(this,me).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){b(this,Pe,n(this,Pe).filter(r=>r!==e)),this.scheduleGc(),n(this,me).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){n(this,Pe).length||(this.state.status==="pending"?this.scheduleGc():n(this,me).remove(this))}continue(){var e;return((e=n(this,Ot))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,a,o,h,l,p,d,C,x,v,P,N,m,R,U,A,z,Y,G,j;const r=()=>(b(this,Ot,Bs({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(u,c)=>{D(this,je,He).call(this,{type:"failed",failureCount:u,error:c})},onPause:()=>{D(this,je,He).call(this,{type:"pause"})},onContinue:()=>{D(this,je,He).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),n(this,Ot).promise),s=this.state.status==="pending";try{if(!s){D(this,je,He).call(this,{type:"pending",variables:e}),await((a=(i=n(this,me).config).onMutate)==null?void 0:a.call(i,e,this));const c=await((h=(o=this.options).onMutate)==null?void 0:h.call(o,e));c!==this.state.context&&D(this,je,He).call(this,{type:"pending",context:c,variables:e})}const u=await r();return await((p=(l=n(this,me).config).onSuccess)==null?void 0:p.call(l,u,e,this.state.context,this)),await((C=(d=this.options).onSuccess)==null?void 0:C.call(d,u,e,this.state.context)),await((v=(x=n(this,me).config).onSettled)==null?void 0:v.call(x,u,null,this.state.variables,this.state.context,this)),await((N=(P=this.options).onSettled)==null?void 0:N.call(P,u,null,e,this.state.context)),D(this,je,He).call(this,{type:"success",data:u}),u}catch(u){try{throw await((R=(m=n(this,me).config).onError)==null?void 0:R.call(m,u,e,this.state.context,this)),await((A=(U=this.options).onError)==null?void 0:A.call(U,u,e,this.state.context)),await((Y=(z=n(this,me).config).onSettled)==null?void 0:Y.call(z,void 0,u,this.state.variables,this.state.context,this)),await((j=(G=this.options).onSettled)==null?void 0:j.call(G,void 0,u,e,this.state.context)),u}finally{D(this,je,He).call(this,{type:"error",error:u})}}}},Pe=new WeakMap,Bt=new WeakMap,me=new WeakMap,Ot=new WeakMap,je=new WeakSet,He=function(e){const r=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!vr(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),se.batch(()=>{n(this,Pe).forEach(s=>{s.onMutationUpdate(e)}),n(this,me).notify({mutation:this,type:"updated",action:e})})},Os);function zs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Re,Qt,ct,Ss,nn=(Ss=class extends Ut{constructor(e={}){super();E(this,Re,void 0);E(this,Qt,void 0);E(this,ct,void 0);this.config=e,b(this,Re,[]),b(this,Qt,0)}build(e,r,s){const i=new sn({mutationCache:this,mutationId:++sr(this,Qt)._,options:e.defaultMutationOptions(r),state:s});return this.add(i),i}add(e){n(this,Re).push(e),this.notify({type:"added",mutation:e})}remove(e){b(this,Re,n(this,Re).filter(r=>r!==e)),this.notify({type:"removed",mutation:e})}clear(){se.batch(()=>{n(this,Re).forEach(e=>{this.remove(e)})})}getAll(){return n(this,Re)}find(e){const r={exact:!0,...e};return n(this,Re).find(s=>cs(r,s))}findAll(e={}){return n(this,Re).filter(r=>cs(e,r))}notify(e){se.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){return b(this,ct,(n(this,ct)??Promise.resolve()).then(()=>{const e=n(this,Re).filter(r=>r.state.isPaused);return se.batch(()=>e.reduce((r,s)=>r.then(()=>s.continue().catch(Oe)),Promise.resolve()))}).then(()=>{b(this,ct,void 0)})),n(this,ct)}},Re=new WeakMap,Qt=new WeakMap,ct=new WeakMap,Ss);function an(t){return{onFetch:(e,r)=>{const s=async()=>{var P,N,m,R,U;const i=e.options,a=(m=(N=(P=e.fetchOptions)==null?void 0:P.meta)==null?void 0:N.fetchMore)==null?void 0:m.direction,o=((R=e.state.data)==null?void 0:R.pages)||[],h=((U=e.state.data)==null?void 0:U.pageParams)||[],l={pages:[],pageParams:[]};let p=!1;const d=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},C=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),x=async(A,z,Y)=>{if(p)return Promise.reject();if(z==null&&A.pages.length)return Promise.resolve(A);const G={queryKey:e.queryKey,pageParam:z,direction:Y?"backward":"forward",meta:e.options.meta};d(G);const j=await C(G),{maxPages:u}=e.options,c=Y?Ji:Vi;return{pages:c(A.pages,j,u),pageParams:c(A.pageParams,z,u)}};let v;if(a&&o.length){const A=a==="backward",z=A?on:fs,Y={pages:o,pageParams:h},G=z(i,Y);v=await x(Y,G,A)}else{v=await x(l,h[0]??i.initialPageParam);const A=t??o.length;for(let z=1;z{var i,a;return(a=(i=e.options).persister)==null?void 0:a.call(i,s,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=s}}}function fs(t,{pages:e,pageParams:r}){const s=e.length-1;return t.getNextPageParam(e[s],e,r[s],r)}function on(t,{pages:e,pageParams:r}){var s;return(s=t.getPreviousPageParam)==null?void 0:s.call(t,e[0],e,r[0],r)}var re,Ye,Ze,St,_t,Xe,kt,Tt,_s,un=(_s=class{constructor(t={}){E(this,re,void 0);E(this,Ye,void 0);E(this,Ze,void 0);E(this,St,void 0);E(this,_t,void 0);E(this,Xe,void 0);E(this,kt,void 0);E(this,Tt,void 0);b(this,re,t.queryCache||new $s),b(this,Ye,t.mutationCache||new nn),b(this,Ze,t.defaultOptions||{}),b(this,St,new Map),b(this,_t,new Map),b(this,Xe,0)}mount(){sr(this,Xe)._++,n(this,Xe)===1&&(b(this,kt,fr.subscribe(()=>{fr.isFocused()&&(this.resumePausedMutations(),n(this,re).onFocus())})),b(this,Tt,pr.subscribe(()=>{pr.isOnline()&&(this.resumePausedMutations(),n(this,re).onOnline())})))}unmount(){var t,e;sr(this,Xe)._--,n(this,Xe)===0&&((t=n(this,kt))==null||t.call(this),b(this,kt,void 0),(e=n(this,Tt))==null||e.call(this),b(this,Tt,void 0))}isFetching(t){return n(this,re).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return n(this,Ye).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=n(this,re).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return e!==void 0?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:e,state:r})=>{const s=r.data;return[e,s]})}setQueryData(t,e,r){const s=this.defaultQueryOptions({queryKey:t}),i=n(this,re).get(s.queryHash),a=i==null?void 0:i.state.data,o=Wi(e,a);if(!(typeof o>"u"))return n(this,re).build(this,s).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return se.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=n(this,re).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=n(this,re);se.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=n(this,re),s={type:"active",...t};return se.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries(s,e)))}cancelQueries(t={},e={}){const r={revert:!0,...e},s=se.batch(()=>n(this,re).findAll(t).map(i=>i.cancel(r)));return Promise.all(s).then(Oe).catch(Oe)}invalidateQueries(t={},e={}){return se.batch(()=>{if(n(this,re).findAll(t).forEach(s=>{s.invalidate()}),t.refetchType==="none")return Promise.resolve();const r={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(r,e)})}refetchQueries(t={},e){const r={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},s=se.batch(()=>n(this,re).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Oe)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(Oe)}fetchQuery(t){const e=this.defaultQueryOptions(t);typeof e.retry>"u"&&(e.retry=!1);const r=n(this,re).build(this,e);return r.isStaleByTime(e.staleTime)?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Oe).catch(Oe)}fetchInfiniteQuery(t){return t.behavior=an(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Oe).catch(Oe)}resumePausedMutations(){return n(this,Ye).resumePausedMutations()}getQueryCache(){return n(this,re)}getMutationCache(){return n(this,Ye)}getDefaultOptions(){return n(this,Ze)}setDefaultOptions(t){b(this,Ze,t)}setQueryDefaults(t,e){n(this,St).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...n(this,St).values()];let r={};return e.forEach(s=>{Lt(t,s.queryKey)&&(r={...r,...s.defaultOptions})}),r}setMutationDefaults(t,e){n(this,_t).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...n(this,_t).values()];let r={};return e.forEach(s=>{Lt(t,s.mutationKey)&&(r={...r,...s.defaultOptions})}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...n(this,Ze).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Vr(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...n(this,Ze).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){n(this,re).clear(),n(this,Ye).clear()}},re=new WeakMap,Ye=new WeakMap,Ze=new WeakMap,St=new WeakMap,_t=new WeakMap,Xe=new WeakMap,kt=new WeakMap,Tt=new WeakMap,_s),fe,$,$t,de,ht,Ft,Ie,zt,Pt,jt,dt,ft,et,It,pt,Mt,Kt,Tr,Ht,Fr,Wt,Pr,Gt,jr,Vt,Ir,Jt,Dr,Yt,Nr,gr,Ks,ks,ln=(ks=class extends Ut{constructor(e,r){super();E(this,pt);E(this,Kt);E(this,Ht);E(this,Wt);E(this,Gt);E(this,Vt);E(this,Jt);E(this,Yt);E(this,gr);E(this,fe,void 0);E(this,$,void 0);E(this,$t,void 0);E(this,de,void 0);E(this,ht,void 0);E(this,Ft,void 0);E(this,Ie,void 0);E(this,zt,void 0);E(this,Pt,void 0);E(this,jt,void 0);E(this,dt,void 0);E(this,ft,void 0);E(this,et,void 0);E(this,It,new Set);this.options=r,b(this,fe,e),b(this,Ie,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(n(this,$).addObserver(this),ps(n(this,$),this.options)?D(this,pt,Mt).call(this):this.updateResult(),D(this,Gt,jr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ur(n(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ur(n(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,D(this,Vt,Ir).call(this),D(this,Jt,Dr).call(this),n(this,$).removeObserver(this)}setOptions(e,r){const s=this.options,i=n(this,$);if(this.options=n(this,fe).defaultQueryOptions(e),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");D(this,Yt,Nr).call(this),dr(this.options,s)||n(this,fe).getQueryCache().notify({type:"observerOptionsUpdated",query:n(this,$),observer:this});const a=this.hasListeners();a&&ms(n(this,$),i,this.options,s)&&D(this,pt,Mt).call(this),this.updateResult(r),a&&(n(this,$)!==i||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&D(this,Kt,Tr).call(this);const o=D(this,Ht,Fr).call(this);a&&(n(this,$)!==i||this.options.enabled!==s.enabled||o!==n(this,et))&&D(this,Wt,Pr).call(this,o)}getOptimisticResult(e){const r=n(this,fe).getQueryCache().build(n(this,fe),e),s=this.createResult(r,e);return hn(this,s)&&(b(this,de,s),b(this,Ft,this.options),b(this,ht,n(this,$).state)),s}getCurrentResult(){return n(this,de)}trackResult(e){const r={};return Object.keys(e).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(n(this,It).add(s),e[s])})}),r}getCurrentQuery(){return n(this,$)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=n(this,fe).defaultQueryOptions(e),s=n(this,fe).getQueryCache().build(n(this,fe),r);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,r))}fetch(e){return D(this,pt,Mt).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),n(this,de)))}createResult(e,r){var G;const s=n(this,$),i=this.options,a=n(this,de),o=n(this,ht),h=n(this,Ft),p=e!==s?e.state:n(this,$t),{state:d}=e;let{error:C,errorUpdatedAt:x,fetchStatus:v,status:P}=d,N=!1,m;if(r._optimisticResults){const j=this.hasListeners(),u=!j&&ps(e,r),c=j&&ms(e,s,r,i);(u||c)&&(v=vr(e.options.networkMode)?"fetching":"paused",d.dataUpdatedAt||(P="pending")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.select&&typeof d.data<"u")if(a&&d.data===(o==null?void 0:o.data)&&r.select===n(this,zt))m=n(this,Pt);else try{b(this,zt,r.select),m=r.select(d.data),m=kr(a==null?void 0:a.data,m,r),b(this,Pt,m),b(this,Ie,null)}catch(j){b(this,Ie,j)}else m=d.data;if(typeof r.placeholderData<"u"&&typeof m>"u"&&P==="pending"){let j;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(h==null?void 0:h.placeholderData))j=a.data;else if(j=typeof r.placeholderData=="function"?r.placeholderData((G=n(this,jt))==null?void 0:G.state.data,n(this,jt)):r.placeholderData,r.select&&typeof j<"u")try{j=r.select(j),b(this,Ie,null)}catch(u){b(this,Ie,u)}typeof j<"u"&&(P="success",m=kr(a==null?void 0:a.data,j,r),N=!0)}n(this,Ie)&&(C=n(this,Ie),m=n(this,Pt),x=Date.now(),P="error");const R=v==="fetching",U=P==="pending",A=P==="error",z=U&&R;return{status:P,fetchStatus:v,isPending:U,isSuccess:P==="success",isError:A,isInitialLoading:z,isLoading:z,data:m,dataUpdatedAt:d.dataUpdatedAt,error:C,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>p.dataUpdateCount||d.errorUpdateCount>p.errorUpdateCount,isFetching:R,isRefetching:R&&!U,isLoadingError:A&&d.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:N,isRefetchError:A&&d.dataUpdatedAt!==0,isStale:Jr(e,r),refetch:this.refetch}}updateResult(e){const r=n(this,de),s=this.createResult(n(this,$),this.options);if(b(this,ht,n(this,$).state),b(this,Ft,this.options),n(this,ht).data!==void 0&&b(this,jt,n(this,$)),dr(s,r))return;b(this,de,s);const i={},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!n(this,It).size)return!0;const l=new Set(h??n(this,It));return this.options.throwOnError&&l.add("error"),Object.keys(n(this,de)).some(p=>{const d=p;return n(this,de)[d]!==r[d]&&l.has(d)})};(e==null?void 0:e.listeners)!==!1&&a()&&(i.listeners=!0),D(this,gr,Ks).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&D(this,Gt,jr).call(this)}},fe=new WeakMap,$=new WeakMap,$t=new WeakMap,de=new WeakMap,ht=new WeakMap,Ft=new WeakMap,Ie=new WeakMap,zt=new WeakMap,Pt=new WeakMap,jt=new WeakMap,dt=new WeakMap,ft=new WeakMap,et=new WeakMap,It=new WeakMap,pt=new WeakSet,Mt=function(e){D(this,Yt,Nr).call(this);let r=n(this,$).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(Oe)),r},Kt=new WeakSet,Tr=function(){if(D(this,Vt,Ir).call(this),Nt||n(this,de).isStale||!Sr(this.options.staleTime))return;const r=As(n(this,de).dataUpdatedAt,this.options.staleTime)+1;b(this,dt,setTimeout(()=>{n(this,de).isStale||this.updateResult()},r))},Ht=new WeakSet,Fr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(n(this,$)):this.options.refetchInterval)??!1},Wt=new WeakSet,Pr=function(e){D(this,Jt,Dr).call(this),b(this,et,e),!(Nt||this.options.enabled===!1||!Sr(n(this,et))||n(this,et)===0)&&b(this,ft,setInterval(()=>{(this.options.refetchIntervalInBackground||fr.isFocused())&&D(this,pt,Mt).call(this)},n(this,et)))},Gt=new WeakSet,jr=function(){D(this,Kt,Tr).call(this),D(this,Wt,Pr).call(this,D(this,Ht,Fr).call(this))},Vt=new WeakSet,Ir=function(){n(this,dt)&&(clearTimeout(n(this,dt)),b(this,dt,void 0))},Jt=new WeakSet,Dr=function(){n(this,ft)&&(clearInterval(n(this,ft)),b(this,ft,void 0))},Yt=new WeakSet,Nr=function(){const e=n(this,fe).getQueryCache().build(n(this,fe),this.options);if(e===n(this,$))return;const r=n(this,$);b(this,$,e),b(this,$t,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},gr=new WeakSet,Ks=function(e){se.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(n(this,de))}),n(this,fe).getQueryCache().notify({query:n(this,$),type:"observerResultsUpdated"})})},ks);function cn(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function ps(t,e){return cn(t,e)||t.state.dataUpdatedAt>0&&Ur(t,e,e.refetchOnMount)}function Ur(t,e,r){if(e.enabled!==!1){const s=typeof r=="function"?r(t):r;return s==="always"||s!==!1&&Jr(t,e)}return!1}function ms(t,e,r,s){return r.enabled!==!1&&(t!==e||s.enabled===!1)&&(!r.suspense||t.state.status!=="error")&&Jr(t,r)}function Jr(t,e){return t.isStaleByTime(e.staleTime)}function hn(t,e){return!dr(t.getCurrentResult(),e)}var tt,rt,ge,qe,Dt,ar,Zt,Mr,Ts,dn=(Ts=class extends Ut{constructor(r,s){super();E(this,Dt);E(this,Zt);E(this,tt,void 0);E(this,rt,void 0);E(this,ge,void 0);E(this,qe,void 0);b(this,tt,r),this.setOptions(s),this.bindMethods(),D(this,Dt,ar).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const s=this.options;this.options=n(this,tt).defaultMutationOptions(r),dr(this.options,s)||n(this,tt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:n(this,ge),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&mt(s.mutationKey)!==mt(this.options.mutationKey)?this.reset():(i=n(this,ge))==null||i.setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=n(this,ge))==null||r.removeObserver(this)}onMutationUpdate(r){D(this,Dt,ar).call(this),D(this,Zt,Mr).call(this,r)}getCurrentResult(){return n(this,rt)}reset(){var r;(r=n(this,ge))==null||r.removeObserver(this),b(this,ge,void 0),D(this,Dt,ar).call(this),D(this,Zt,Mr).call(this)}mutate(r,s){var i;return b(this,qe,s),(i=n(this,ge))==null||i.removeObserver(this),b(this,ge,n(this,tt).getMutationCache().build(n(this,tt),this.options)),n(this,ge).addObserver(this),n(this,ge).execute(r)}},tt=new WeakMap,rt=new WeakMap,ge=new WeakMap,qe=new WeakMap,Dt=new WeakSet,ar=function(){var s;const r=((s=n(this,ge))==null?void 0:s.state)??zs();b(this,rt,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Zt=new WeakSet,Mr=function(r){se.batch(()=>{var s,i,a,o,h,l,p,d;if(n(this,qe)&&this.hasListeners()){const C=n(this,rt).variables,x=n(this,rt).context;(r==null?void 0:r.type)==="success"?((i=(s=n(this,qe)).onSuccess)==null||i.call(s,r.data,C,x),(o=(a=n(this,qe)).onSettled)==null||o.call(a,r.data,null,C,x)):(r==null?void 0:r.type)==="error"&&((l=(h=n(this,qe)).onError)==null||l.call(h,r.error,C,x),(d=(p=n(this,qe)).onSettled)==null||d.call(p,void 0,r.error,C,x))}this.listeners.forEach(C=>{C(n(this,rt))})})},Ts),Hs=y.createContext(void 0),Ws=t=>{const e=y.useContext(Hs);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},fn=({client:t,children:e})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),f.jsx(Hs.Provider,{value:t,children:e})),Gs=y.createContext(!1),pn=()=>y.useContext(Gs);Gs.Provider;function mn(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var gn=y.createContext(mn()),yn=()=>y.useContext(gn);function Vs(t,e){return typeof t=="function"?t(...e):!!t}var vn=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},bn=t=>{y.useEffect(()=>{t.clearReset()},[t])},xn=({result:t,errorResetBoundary:e,throwOnError:r,query:s})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&Vs(r,[t.error,s]),wn=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},Cn=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,En=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function Rn(t,e,r){const s=Ws(r),i=pn(),a=yn(),o=s.defaultQueryOptions(t);o._optimisticResults=i?"isRestoring":"optimistic",wn(o),vn(o,a),bn(a);const[h]=y.useState(()=>new e(s,o)),l=h.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(p=>{const d=i?()=>{}:h.subscribe(se.batchCalls(p));return h.updateResult(),d},[h,i]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),y.useEffect(()=>{h.setOptions(o,{listeners:!1})},[o,h]),Cn(o,l))throw En(o,h,a);if(xn({result:l,errorResetBoundary:a,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash)}))throw l.error;return o.notifyOnChangeProps?l:h.trackResult(l)}function Js(t,e){return Rn(t,ln,e)}function Ys(t,e){const r=Ws(e),[s]=y.useState(()=>new dn(r,t));y.useEffect(()=>{s.setOptions(t)},[s,t]);const i=y.useSyncExternalStore(y.useCallback(o=>s.subscribe(se.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=y.useCallback((o,h)=>{s.mutate(o,h).catch(On)},[s]);if(i.error&&Vs(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function On(){}var Sn=function(){return null};function Xt({children:t,disabled:e,type:r,className:s,onClick:i,variant:a}){return f.jsx("button",{className:` + inline-flex w-fit items-center justify-center rounded-md shadow-sm transition-buttons duration-200 px-4 py-2 text-sm font-medium + + ${e?"":` + hover:shadow-lg + focus:outline-none focus:ring-2 focus:ring-offset-2`} + + ${a==="primary"?` + bg-oxford-600 text-white + hover:bg-oxford-700 + focus:bg-oxford-700 focus:ring-oxford-500 focus:ring-offset-white + `:""} + ${a==="secondary"?` + bg-slate-500 text-white + hover:bg-slate-600 + focus:bg-slate-600 focus:ring-slate-500 focus:ring-offset-white + `:""} + + ${s} + `,disabled:e,onClick:i,type:r,children:t})}Xt.propTypes={children:w.node.isRequired,className:w.string,disabled:w.bool,onClick:w.func,type:w.string,variant:w.string};Xt.defaultProps={className:null,disabled:!1,onClick:()=>null,type:"button",variant:"primary"};function _n(t){let e=[],r=[];return t.map((s,i)=>{const a=s.name.split("/");return i===0?(e=[],e=a):(r=[],a.map((o,h)=>o===e[h]?r.push(o):null))}),r.join("/")}function kn(t){const e=new Intl.Collator("en"),r=[...t].sort((i,a)=>a.date.localeCompare(i.date)).map((i,a)=>({dateOrder:a,...i})).sort((i,a)=>e.compare(i.name.toUpperCase(),a.name.toUpperCase())).map((i,a)=>({nameOrder:a,...i}));if(r.length<2)return r.map(i=>({...i,shortName:i.name,visible:!0}));const s=_n(r);return r.map(i=>({...i,shortName:i.name.replace(`${s}/`,""),visible:!0}))}function Zs({authToken:t,filesUrl:e}){return Js({queryKey:["FILE_LIST"],queryFn:async()=>{const r=await fetch(e,{headers:{Authorization:t}});if(!r.ok)throw new Error("File list not found");return r.json()},select:r=>kn(r.files),meta:{errorMessage:"Unable to load files",id:e}})}const pe={authToken:w.string,basePath:w.string,csrfToken:w.string,filesUrl:w.string,prepareUrl:w.string,publishUrl:w.string},De={date:w.string,id:w.string,is_deleted:w.bool,name:w.string,sha256:w.string,size:w.number,url:w.string,user:w.string};let Tn={data:""},Fn=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Tn,Pn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,jn=/\/\*[^]*?\*\/| +/g,gs=/\n+/g,We=(t,e)=>{let r="",s="",i="";for(let a in t){let o=t[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":s+=a[1]=="f"?We(o,a):a+"{"+We(o,a[1]=="k"?"":e)+"}":typeof o=="object"?s+=We(o,e?e.replace(/([^,])+/g,h=>a.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,h):h?h+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=We.p?We.p(a,o):a+":"+o+";")}return r+(e&&i?e+"{"+i+"}":i)+s},Ae={},Xs=t=>{if(typeof t=="object"){let e="";for(let r in t)e+=r+Xs(t[r]);return e}return t},In=(t,e,r,s,i)=>{let a=Xs(t),o=Ae[a]||(Ae[a]=(l=>{let p=0,d=11;for(;p>>0;return"go"+d})(a));if(!Ae[o]){let l=a!==t?t:(p=>{let d,C,x=[{}];for(;d=Pn.exec(p.replace(jn,""));)d[4]?x.shift():d[3]?(C=d[3].replace(gs," ").trim(),x.unshift(x[0][C]=x[0][C]||{})):x[0][d[1]]=d[2].replace(gs," ").trim();return x[0]})(t);Ae[o]=We(i?{["@keyframes "+o]:l}:l,r?"":"."+o)}let h=r&&Ae.g?Ae.g:null;return r&&(Ae.g=Ae[o]),((l,p,d,C)=>{C?p.data=p.data.replace(C,l):p.data.indexOf(l)===-1&&(p.data=d?l+p.data:p.data+l)})(Ae[o],e,s,h),o},Dn=(t,e,r)=>t.reduce((s,i,a)=>{let o=e[a];if(o&&o.call){let h=o(r),l=h&&h.props&&h.props.className||/^go/.test(h)&&h;o=l?"."+l:h&&typeof h=="object"?h.props?"":We(h,""):h===!1?"":h}return s+i+(o??"")},"");function br(t){let e=this||{},r=t.call?t(e.p):t;return In(r.unshift?r.raw?Dn(r,[].slice.call(arguments,1),e.p):r.reduce((s,i)=>Object.assign(s,i&&i.call?i(e.p):i),{}):r,Fn(e.target),e.g,e.o,e.k)}let ei,Ar,Lr;br.bind({g:1});let Be=br.bind({k:1});function Nn(t,e,r,s){We.p=e,ei=t,Ar=r,Lr=s}function st(t,e){let r=this||{};return function(){let s=arguments;function i(a,o){let h=Object.assign({},a),l=h.className||i.className;r.p=Object.assign({theme:Ar&&Ar()},h),r.o=/ *go\d+/.test(l),h.className=br.apply(r,s)+(l?" "+l:""),e&&(h.ref=o);let p=t;return t[0]&&(p=h.as||t,delete h.as),Lr&&p[0]&&Lr(h),ei(p,h)}return e?e(i):i}}var Un=t=>typeof t=="function",mr=(t,e)=>Un(t)?t(e):t,Mn=(()=>{let t=0;return()=>(++t).toString()})(),ti=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),An=20,or=new Map,Ln=1e3,ys=t=>{if(or.has(t))return;let e=setTimeout(()=>{or.delete(t),gt({type:4,toastId:t})},Ln);or.set(t,e)},qn=t=>{let e=or.get(t);e&&clearTimeout(e)},qr=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,An)};case 1:return e.toast.id&&qn(e.toast.id),{...t,toasts:t.toasts.map(a=>a.id===e.toast.id?{...a,...e.toast}:a)};case 2:let{toast:r}=e;return t.toasts.find(a=>a.id===r.id)?qr(t,{type:1,toast:r}):qr(t,{type:0,toast:r});case 3:let{toastId:s}=e;return s?ys(s):t.toasts.forEach(a=>{ys(a.id)}),{...t,toasts:t.toasts.map(a=>a.id===s||s===void 0?{...a,visible:!1}:a)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(a=>a.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},ur=[],lr={toasts:[],pausedAt:void 0},gt=t=>{lr=qr(lr,t),ur.forEach(e=>{e(lr)})},Bn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Qn=(t={})=>{let[e,r]=y.useState(lr);y.useEffect(()=>(ur.push(r),()=>{let i=ur.indexOf(r);i>-1&&ur.splice(i,1)}),[e]);let s=e.toasts.map(i=>{var a,o;return{...t,...t[i.type],...i,duration:i.duration||((a=t[i.type])==null?void 0:a.duration)||(t==null?void 0:t.duration)||Bn[i.type],style:{...t.style,...(o=t[i.type])==null?void 0:o.style,...i.style}}});return{...e,toasts:s}},$n=(t,e="blank",r)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Mn()}),er=t=>(e,r)=>{let s=$n(e,t,r);return gt({type:2,toast:s}),s.id},ye=(t,e)=>er("blank")(t,e);ye.error=er("error");ye.success=er("success");ye.loading=er("loading");ye.custom=er("custom");ye.dismiss=t=>{gt({type:3,toastId:t})};ye.remove=t=>gt({type:4,toastId:t});ye.promise=(t,e,r)=>{let s=ye.loading(e.loading,{...r,...r==null?void 0:r.loading});return t.then(i=>(ye.success(mr(e.success,i),{id:s,...r,...r==null?void 0:r.success}),i)).catch(i=>{ye.error(mr(e.error,i),{id:s,...r,...r==null?void 0:r.error})}),t};var zn=(t,e)=>{gt({type:1,toast:{id:t,height:e}})},Kn=()=>{gt({type:5,time:Date.now()})},Hn=t=>{let{toasts:e,pausedAt:r}=Qn(t);y.useEffect(()=>{if(r)return;let a=Date.now(),o=e.map(h=>{if(h.duration===1/0)return;let l=(h.duration||0)+h.pauseDuration-(a-h.createdAt);if(l<0){h.visible&&ye.dismiss(h.id);return}return setTimeout(()=>ye.dismiss(h.id),l)});return()=>{o.forEach(h=>h&&clearTimeout(h))}},[e,r]);let s=y.useCallback(()=>{r&>({type:6,time:Date.now()})},[r]),i=y.useCallback((a,o)=>{let{reverseOrder:h=!1,gutter:l=8,defaultPosition:p}=o||{},d=e.filter(v=>(v.position||p)===(a.position||p)&&v.height),C=d.findIndex(v=>v.id===a.id),x=d.filter((v,P)=>Pv.visible).slice(...h?[x+1]:[0,x]).reduce((v,P)=>v+(P.height||0)+l,0)},[e]);return{toasts:e,handlers:{updateHeight:zn,startPause:Kn,endPause:s,calculateOffset:i}}},Wn=Be` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,Gn=Be` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,Vn=Be` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,Jn=st("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${t=>t.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${Wn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${Gn} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${t=>t.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${Vn} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,Yn=Be` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,Zn=st("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${t=>t.secondary||"#e0e0e0"}; + border-right-color: ${t=>t.primary||"#616161"}; + animation: ${Yn} 1s linear infinite; +`,Xn=Be` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,ea=Be` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,ta=st("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${t=>t.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${Xn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${ea} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${t=>t.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,ra=st("div")` + position: absolute; +`,sa=st("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,ia=Be` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,na=st("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${ia} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,aa=({toast:t})=>{let{icon:e,type:r,iconTheme:s}=t;return e!==void 0?typeof e=="string"?y.createElement(na,null,e):e:r==="blank"?null:y.createElement(sa,null,y.createElement(Zn,{...s}),r!=="loading"&&y.createElement(ra,null,r==="error"?y.createElement(Jn,{...s}):y.createElement(ta,{...s})))},oa=t=>` +0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,ua=t=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;} +`,la="0%{opacity:0;} 100%{opacity:1;}",ca="0%{opacity:1;} 100%{opacity:0;}",ha=st("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,da=st("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,fa=(t,e)=>{let r=t.includes("top")?1:-1,[s,i]=ti()?[la,ca]:[oa(r),ua(r)];return{animation:e?`${Be(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Be(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ri=y.memo(({toast:t,position:e,style:r,children:s})=>{let i=t.height?fa(t.position||e||"top-center",t.visible):{opacity:0},a=y.createElement(aa,{toast:t}),o=y.createElement(da,{...t.ariaProps},mr(t.message,t));return y.createElement(ha,{className:t.className,style:{...i,...r,...t.style}},typeof s=="function"?s({icon:a,message:o}):y.createElement(y.Fragment,null,a,o))});Nn(y.createElement);var pa=({id:t,className:e,style:r,onHeightUpdate:s,children:i})=>{let a=y.useCallback(o=>{if(o){let h=()=>{let l=o.getBoundingClientRect().height;s(t,l)};h(),new MutationObserver(h).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[t,s]);return y.createElement("div",{ref:a,className:e,style:r},i)},ma=(t,e)=>{let r=t.includes("top"),s=r?{top:0}:{bottom:0},i=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:ti()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(r?1:-1)}px)`,...s,...i}},ga=br` + z-index: 9999; + > * { + pointer-events: auto; + } +`,ir=16,ya=({reverseOrder:t,position:e="top-center",toastOptions:r,gutter:s,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:h,handlers:l}=Hn(r);return y.createElement("div",{style:{position:"fixed",zIndex:9999,top:ir,left:ir,right:ir,bottom:ir,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},h.map(p=>{let d=p.position||e,C=l.calculateOffset(p,{reverseOrder:t,gutter:s,defaultPosition:e}),x=ma(d,C);return y.createElement(pa,{id:p.id,key:p.id,onHeightUpdate:l.updateHeight,className:p.visible?ga:"",style:x},p.type==="custom"?mr(p.message,p):i?i(p):y.createElement(ri,{toast:p,position:d}))}))},Yr=ye;function si({toastId:t}){Yr.dismiss(t)}function Zr({toastId:t,message:e,...r}){console.error(e,{...r}),Yr.error(e,{id:t})}function ii({authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s}){const{data:i}=Zs({authToken:t,filesUrl:r}),a="PrepareButton",o=Ys({mutationFn:async l=>{const p=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":e},body:JSON.stringify({file_ids:l})});if(!p.ok){const d=await p.json();throw new Error(d.detail)}return p.json()},onMutate:()=>{si({toastId:a})},onSuccess:l=>{window.location.href=l.url},onError:l=>{Zr({message:`${l}`,toastId:a,prepareUrl:s,url:document.location.href})}});if(!(i!=null&&i.length))return null;const h=i.map(l=>l.id);return f.jsx(Xt,{disabled:o.isPending,onClick:l=>(l.preventDefault(),o.mutate(h)),type:"button",variant:o.isPending?"secondary":"primary",children:o.isPending?"Creating…":"Create a draft publication"})}ii.propTypes={authToken:pe.authToken.isRequired,csrfToken:pe.csrfToken.isRequired,filesUrl:pe.filesUrl.isRequired,prepareUrl:pe.prepareUrl.isRequired};function ni({csrfToken:t,publishUrl:e}){const r="PublishButton",s=Ys({mutationFn:async()=>{const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":t},body:""});if(!i.ok){const a=await i.json();throw new Error(a.detail)}return i.text()},onMutate:()=>{si({toastId:r})},onSuccess:()=>{window.location.reload()},onError:i=>{Zr({message:`${i}`,toastId:r,publishUrl:e,url:document.location.href})}});return f.jsx(Xt,{disabled:s.isPending,onClick:i=>(i.preventDefault(),s.mutate()),type:"button",variant:s.isPending?"secondary":"primary",children:s.isPending?"Creating…":"Create a public published output"})}ni.propTypes={csrfToken:pe.csrfToken.isRequired,publishUrl:pe.publishUrl.isRequired};function vt({className:t,container:e,header:r,innerClassName:s,children:i}){return f.jsxs("div",{className:`bg-white shadow ${t}`,children:[r?f.jsx("div",{className:"flex flex-wrap gap-2 items-center justify-between px-4 py-2 sm:px-6 sm:py-4 sm:flex-nowrap bg-slate-50",children:r}):null,f.jsx("div",{className:` + ${s} + ${e?"px-4 py-3 md:px-6 md:py-5":""} + ${r&&e?"border-t border-slate-200":""} + `,children:i})]})}vt.propTypes={children:w.element.isRequired,className:w.string,container:w.bool,header:w.element,innerClassName:w.string};vt.defaultProps={className:"",container:!1,header:null,innerClassName:""};const va=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ba=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],xa=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],wa=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vs=(t,e,r)=>{let s=t;return typeof e=="string"||Array.isArray(e)?s=t.toLocaleString(e,r):(e===!0||r!==void 0)&&(s=t.toLocaleString(void 0,r)),s};function Ca(t,e){if(!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);e={bits:!1,binary:!1,space:!0,...e};const r=e.bits?e.binary?wa:xa:e.binary?ba:va,s=e.space?" ":"";if(e.signed&&t===0)return` 0${s}${r[0]}`;const i=t<0,a=i?"-":e.signed?"+":"";i&&(t=-t);let o;if(e.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:e.maximumFractionDigits,...o}),t<1){const d=vs(t,e.locale,o);return a+d+s+r[0]}const h=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),r.length-1);t/=(e.binary?1024:1e3)**h,o||(t=t.toPrecision(3));const l=vs(Number(t),e.locale,o),p=r[h];return a+l+s+p}function ai(t){return t?Ca(t,{locale:"en-gb"}):"unknown"}function Xr({autocapitalize:t,autocomplete:e,autocorrect:r,className:s,hideLabel:i,hintText:a,id:o,inputClassName:h,inputmode:l,label:p,labelClass:d,onChange:C,placeholder:x,required:v,type:P,value:N}){return f.jsxs("div",{className:s,children:[f.jsxs("label",{className:`inline-block font-semibold text-lg text-slate-900 cursor-pointer ${d} ${i?"sr-only":"null"}`,htmlFor:o,children:[p,v?f.jsx("span",{"aria-hidden":"true",className:"text-bn-ribbon-700 font-bold",children:"*"}):null]}),a?f.jsx("p",{className:"mb-2 text-sm text-gray-700",children:{hintText:a}}):null,f.jsx("div",{className:"relative",children:f.jsx("input",{autoCapitalize:t,autoComplete:e,autoCorrect:r,className:` + block w-full border-slate-300 text-slate-900 shadow-sm + focus:border-oxford-500 focus:ring-oxford-500 + sm:text-sm + [&:not(:placeholder-shown):not(:focus)]:invalid:border-bn-ribbon-600 [&:not(:placeholder-shown):not(:focus)]:invalid:ring-bn-ribbon-600 [&:not(:placeholder-shown):not(:focus)]:invalid:ring-1 + ${h} + ${i?"":"mt-1"} + `,id:o,inputMode:l,onChange:C,placeholder:x,required:v,type:P,value:N})})]})}Xr.propTypes={autocapitalize:w.string,autocomplete:w.oneOf(["none","off","characters","words","sentences"]),autocorrect:w.oneOf(["on","off"]),className:w.string,hideLabel:w.bool,hintText:w.string,id:w.string,inputClassName:w.string,inputmode:w.string,label:w.string,labelClass:w.string,onChange:w.func,placeholder:w.string,required:w.bool,type:w.string,value:w.string};Xr.defaultProps={autocapitalize:null,autocomplete:null,autocorrect:null,className:null,hideLabel:!1,hintText:null,id:"inputID",inputClassName:null,inputmode:null,label:null,labelClass:null,onChange:()=>null,placeholder:null,required:null,type:"text",value:null};function oi({files:t,listRef:e,setFiles:r}){const[s,i]=y.useState("");y.useEffect(()=>{const o=[...t].map(h=>({...h,visible:h.shortName.toLowerCase().includes(s.toLowerCase())}));r(o)},[s]);function a(o){var h;(h=e==null?void 0:e.current)==null||h.scrollToItem(0),i(o.target.value)}return f.jsx(Xr,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",className:"mb-1",hideLabel:!0,id:"filterFiles",label:"Find a file…",onChange:o=>a(o),placeholder:"Find a file…",type:"search",value:s})}oi.propTypes={files:w.arrayOf(w.shape()).isRequired,listRef:w.oneOfType([w.func,w.shape({current:w.instanceOf(Element)})]).isRequired,setFiles:w.func.isRequired};function ui({authToken:t,filesUrl:e,listVisible:r,setSelectedFile:s}){const[i,a]=y.useState([]),[o,h]=y.useState("nameOrder"),{data:l,isError:p,isLoading:d,isSuccess:C}=Zs({authToken:t,filesUrl:e}),x=Mi(),v=Ds(),P=y.createRef();if(y.useEffect(()=>{const m=l==null?void 0:l.find(R=>`/${R.name}`===v.pathname);s(m),l&&a(l)},[C]),d)return f.jsx(vt,{container:!0,children:f.jsx("p",{children:"Loading…"})});if(p)return f.jsx(vt,{container:!0,header:f.jsx("h2",{className:"font-semibold text-lg",children:"Error"}),children:f.jsx("p",{children:"Unable to load files"})});const N=({e:m,item:R})=>{m.preventDefault();const U=`/${R.name}`;return x(U),s(R)};return f.jsxs("div",{className:r?"block md:sticky md:top-2":"hidden",children:[f.jsxs("div",{className:"flex flex-row items-center gap-2 mb-1",children:[f.jsx("label",{className:"inline-block font-semibold text-sm text-slate-900 cursor-pointer flex-shrink-0",htmlFor:"fileSort",children:"Sort files by"}),f.jsxs("select",{className:` + block w-full border-slate-300 text-slate-900 shadow-sm + focus:border-oxford-500 focus:ring-oxford-500 + sm:text-sm + `,id:"fileSort",name:"file-sort",onChange:m=>h(m.target.value),value:o,children:[f.jsx("option",{value:"nameOrder",children:"File name"}),f.jsx("option",{value:"dateOrder",children:"Created date"})]})]}),f.jsx(oi,{files:l,listRef:P,setFiles:a}),f.jsx(vt,{className:"py-2 md:max-h-screen md:h-full overflow-x-auto md:overflow-y-auto",container:!1,children:f.jsx("ul",{className:"text-sm text-oxford-600 flex flex-col gap-y-1 items-start",children:i.sort((m,R)=>m[o]-R[o]).map(m=>f.jsx(Fs.Fragment,{children:m.visible&&f.jsx("li",{className:`leading-tight px-4 ${`/${m.name}`===v.pathname?"font-bold text-oxford-800":""}`,children:`/${m.name}`===v.pathname?f.jsx("span",{children:m.shortName}):f.jsx("a",{disabled:`/${m.name}`===v.pathname,href:m.url,onClick:R=>N({e:R,item:m}),title:`File size: ${ai(m.size)}`,children:m.shortName})})},m.id))})})]})}ui.propTypes={authToken:pe.authToken.isRequired,filesUrl:pe.filesUrl.isRequired,listVisible:w.bool.isRequired,setSelectedFile:w.func.isRequired};function tr({className:t,children:e,href:r,newTab:s}){return f.jsx("a",{className:` + font-semibold text-oxford-600 underline underline-offset-2 decoration-oxford-300 transition-colors duration-200 + hover:decoration-transparent hover:text-oxford + focus:decoration-transparent focus:text-oxford focus:bg-bn-sun-300 + ${t} + `,href:r,rel:s?"noreferrer noopener":void 0,target:s?"filePreview":void 0,children:e})}tr.propTypes={children:w.oneOfType([w.element,w.string]),className:w.string,href:w.string.isRequired,newTab:w.bool};tr.defaultProps={children:null,className:null,newTab:!1};function li({fileDate:t,fileName:e,fileSize:r,fileUrl:s}){const i=()=>{if(Date.parse(t)){const a=new Date(t);return{absolute:a.toISOString(),formatted:new Intl.DateTimeFormat("en-GB",{timeZone:"UTC",dateStyle:"short",timeStyle:"short"}).format(a)}}return!1};return f.jsxs("ul",{className:"flex flex-row gap-2 items-center w-full flex-wrap",children:[f.jsx("li",{className:"mr-auto pr-4",children:f.jsx(tr,{className:` + font-semibold text-oxford-600 underline underline-offset-2 decoration-oxford-300 transition-colors duration-200 + hover:decoration-transparent hover:text-oxford + focus:decoration-transparent focus:text-oxford focus:bg-bn-sun-300 + after:content-['↗'] after:text-sm after:ml-1 after:absolute after:mt-0.5 + `,href:s,newTab:!0,children:e})}),i()&&f.jsxs("li",{className:"font-mono text-sm text-right whitespace-nowrap",children:[f.jsx("div",{className:"sr-only",children:"Last modified at: "}),f.jsx("time",{className:"",dateTime:i().absolute,title:i().absolute,children:i().formatted})]}),f.jsx("li",{className:"font-mono text-sm text-right whitespace-nowrap ml-4",children:ai(r)})]})}li.propTypes={fileDate:De.date.isRequired,fileName:De.name.isRequired,fileSize:De.size.isRequired,fileUrl:De.url.isRequired};function Ea(){return f.jsx(ya,{position:"top-right",toastOptions:{duration:1/0,style:{whiteSpace:"pre-line",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},error:{style:{color:"#721c24",backgroundColor:"#f8d7da"}}},children:t=>f.jsx(ri,{id:"ToastBar",toast:t,children:({icon:e,message:r})=>f.jsxs(f.Fragment,{children:[e,r,t.type!=="loading"&&f.jsxs("button",{className:"border border-current rounded p-1 hover:bg-current hover:fill-white",onClick:()=>Yr.dismiss(t.id),type:"button",children:[f.jsx("span",{className:"sr-only",children:"Dismiss"}),f.jsx("svg",{className:"h-4 w-4",fill:"currentFill",viewBox:"0 0 20 20",width:"12",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{clipRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",fillRule:"evenodd"})})]})]})})})}const Br=t=>t.toLowerCase().match(/.*\.(?:csv)$/i),ci=t=>t.toLowerCase().match(/.*\.(?:html)$/i),Qr=t=>t.toLowerCase().match(/.*\.(?:gif|jpg|jpeg|png|svg)$/i),hi=t=>t.toLowerCase().match(/.*\.(?:txt)$/i),di=t=>t.toLowerCase().match(/.*\.(?:json)$/i),bs=t=>Br(t)||ci(t)||Qr(t)||hi(t)||di(t),Rr='"File not yet uploaded"';var Ra=Oa;function Oa(t,e,r){var s=null,i=null,a=function(){s&&(clearTimeout(s),i=null,s=null)},o=function(){var l=i;a(),l&&l()},h=function(){if(!e)return t.apply(this,arguments);var l=this,p=arguments,d=r&&!s;if(a(),i=function(){t.apply(l,p)},s=setTimeout(function(){if(s=null,!d){var C=i;return i=null,C()}},e),d)return i()};return h.cancel=a,h.flush=o,h}function Sa(t=100){const[e,r]=y.useState({width:void 0,height:void 0});return y.useEffect(()=>{function s(){r({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",Ra(s,t)),s(),()=>window.removeEventListener("resize",s)},[t]),e}function fi({data:t,fileName:e,fileUrl:r}){const s=Sa(),[i,a]=y.useState(0),o=encodeURIComponent(r).replace(/\W/g,"");return y.useLayoutEffect(()=>{var l;if(document.getElementById(o)&&window.innerWidth>991){const p=Math.round((l=document==null?void 0:document.getElementById("outputsSPA"))==null?void 0:l.offsetHeight);if(!p||p<1e3)return a(1e3)}return a(1e3)},[s,o]),f.jsx("iframe",{className:"-mx-4 -my-3 w-[calc(100%+2rem)] md:-mx-6 md:-my-5 md:w-[calc(100%+3rem)]",frameBorder:"0",height:i,id:o,src:r,srcDoc:t,title:e,width:"100%"})}fi.propTypes={data:w.string.isRequired,fileName:De.name.isRequired,fileUrl:De.url.isRequired};function pi({data:t}){return f.jsx("img",{alt:"",className:"h-auto max-w-full",src:t})}pi.propTypes={data:w.string.isRequired};function es({error:t,fileUrl:e}){return f.jsxs(f.Fragment,{children:[t?f.jsx("p",{children:"Error: Unable to load file"}):f.jsx("p",{children:"We cannot show a preview of this file."}),f.jsx("p",{className:"mt-3",children:f.jsx(tr,{href:e,newTab:!0,children:"Open file in a new tab ↗"})})]})}es.propTypes={error:w.shape({message:w.string}),fileUrl:De.url.isRequired};es.defaultProps={error:null};var mi={exports:{}};/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/(function(t,e){(function(r,s){t.exports=s()})(Ci,function r(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},i=!s.document&&!!s.postMessage,a=s.IS_PAPA_WORKER||!1,o={},h=0,l={parse:function(u,c){var g=(c=c||{}).dynamicTyping||!1;if(j(g)&&(c.dynamicTypingFunction=g,g={}),c.dynamicTyping=g,c.transform=!!j(c.transform)&&c.transform,c.worker&&l.WORKERS_SUPPORTED){var O=function(){if(!l.WORKERS_SUPPORTED)return!1;var I=(oe=s.URL||s.webkitURL||null,V=r.toString(),l.BLOB_URL||(l.BLOB_URL=oe.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",V,")();"],{type:"text/javascript"})))),M=new s.Worker(I),oe,V;return M.onmessage=U,M.id=h++,o[M.id]=M}();return O.userStep=c.step,O.userChunk=c.chunk,O.userComplete=c.complete,O.userError=c.error,c.step=j(c.step),c.chunk=j(c.chunk),c.complete=j(c.complete),c.error=j(c.error),delete c.worker,void O.postMessage({input:u,config:c,workerId:O.id})}var _=null;return l.NODE_STREAM_INPUT,typeof u=="string"?(u=function(I){return I.charCodeAt(0)===65279?I.slice(1):I}(u),_=c.download?new C(c):new v(c)):u.readable===!0&&j(u.read)&&j(u.on)?_=new P(c):(s.File&&u instanceof File||u instanceof Object)&&(_=new x(c)),_.stream(u)},unparse:function(u,c){var g=!1,O=!0,_=",",I=`\r +`,M='"',oe=M+M,V=!1,k=null,Z=!1;(function(){if(typeof c=="object"){if(typeof c.delimiter!="string"||l.BAD_DELIMITERS.filter(function(S){return c.delimiter.indexOf(S)!==-1}).length||(_=c.delimiter),(typeof c.quotes=="boolean"||typeof c.quotes=="function"||Array.isArray(c.quotes))&&(g=c.quotes),typeof c.skipEmptyLines!="boolean"&&typeof c.skipEmptyLines!="string"||(V=c.skipEmptyLines),typeof c.newline=="string"&&(I=c.newline),typeof c.quoteChar=="string"&&(M=c.quoteChar),typeof c.header=="boolean"&&(O=c.header),Array.isArray(c.columns)){if(c.columns.length===0)throw new Error("Option columns is empty");k=c.columns}c.escapeChar!==void 0&&(oe=c.escapeChar+M),(typeof c.escapeFormulae=="boolean"||c.escapeFormulae instanceof RegExp)&&(Z=c.escapeFormulae instanceof RegExp?c.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var F=new RegExp(m(M),"g");if(typeof u=="string"&&(u=JSON.parse(u)),Array.isArray(u)){if(!u.length||Array.isArray(u[0]))return Se(null,u,V);if(typeof u[0]=="object")return Se(k||Object.keys(u[0]),u,V)}else if(typeof u=="object")return typeof u.data=="string"&&(u.data=JSON.parse(u.data)),Array.isArray(u.data)&&(u.fields||(u.fields=u.meta&&u.meta.fields||k),u.fields||(u.fields=Array.isArray(u.data[0])?u.fields:typeof u.data[0]=="object"?Object.keys(u.data[0]):[]),Array.isArray(u.data[0])||typeof u.data[0]=="object"||(u.data=[u.data])),Se(u.fields||[],u.data||[],V);throw new Error("Unable to serialize unrecognized input");function Se(S,K,ce){var J="";typeof S=="string"&&(S=JSON.parse(S)),typeof K=="string"&&(K=JSON.parse(K));var ue=Array.isArray(S)&&0=this._config.preview;if(a)s.postMessage({results:I,workerId:l.WORKER_ID,finished:oe});else if(j(this._config.chunk)&&!g){if(this._config.chunk(I,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);I=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(I.data),this._completeResults.errors=this._completeResults.errors.concat(I.errors),this._completeResults.meta=I.meta),this._completed||!oe||!j(this._config.complete)||I&&I.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),oe||I&&I.meta.paused||this._nextChunk(),I}this._halted=!0},this._sendError=function(c){j(this._config.error)?this._config.error(c):a&&this._config.error&&s.postMessage({workerId:l.WORKER_ID,error:c,finished:!1})}}function C(u){var c;(u=u||{}).chunkSize||(u.chunkSize=l.RemoteChunkSize),d.call(this,u),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(g){this._input=g,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(c=new XMLHttpRequest,this._config.withCredentials&&(c.withCredentials=this._config.withCredentials),i||(c.onload=G(this._chunkLoaded,this),c.onerror=G(this._chunkError,this)),c.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var g=this._config.downloadRequestHeaders;for(var O in g)c.setRequestHeader(O,g[O])}if(this._config.chunkSize){var _=this._start+this._config.chunkSize-1;c.setRequestHeader("Range","bytes="+this._start+"-"+_)}try{c.send(this._config.downloadRequestBody)}catch(I){this._chunkError(I.message)}i&&c.status===0&&this._chunkError()}},this._chunkLoaded=function(){c.readyState===4&&(c.status<200||400<=c.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:c.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(g){var O=g.getResponseHeader("Content-Range");return O===null?-1:parseInt(O.substring(O.lastIndexOf("/")+1))}(c),this.parseChunk(c.responseText)))},this._chunkError=function(g){var O=c.statusText||g;this._sendError(new Error(O))}}function x(u){var c,g;(u=u||{}).chunkSize||(u.chunkSize=l.LocalChunkSize),d.call(this,u);var O=typeof FileReader<"u";this.stream=function(_){this._input=_,g=_.slice||_.webkitSlice||_.mozSlice,O?((c=new FileReader).onload=G(this._chunkLoaded,this),c.onerror=G(this._chunkError,this)):c=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(_.target.result)},this._chunkError=function(){this._sendError(c.error)}}function v(u){var c;d.call(this,u=u||{}),this.stream=function(g){return c=g,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var g,O=this._config.chunkSize;return O?(g=c.substring(0,O),c=c.substring(O)):(g=c,c=""),this._finished=!c,this.parseChunk(g)}}}function P(u){d.call(this,u=u||{});var c=[],g=!0,O=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(_){this._input=_,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){O&&c.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),c.length?this.parseChunk(c.shift()):g=!0},this._streamData=G(function(_){try{c.push(typeof _=="string"?_:_.toString(this._config.encoding)),g&&(g=!1,this._checkIsFinished(),this.parseChunk(c.shift()))}catch(I){this._streamError(I)}},this),this._streamError=G(function(_){this._streamCleanUp(),this._sendError(_)},this),this._streamEnd=G(function(){this._streamCleanUp(),O=!0,this._streamData("")},this),this._streamCleanUp=G(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function N(u){var c,g,O,_=Math.pow(2,53),I=-_,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,oe=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,V=this,k=0,Z=0,F=!1,Se=!1,le=[],S={data:[],errors:[],meta:{}};if(j(u.step)){var K=u.step;u.step=function(T){if(S=T,ue())J();else{if(J(),S.data.length===0)return;k+=T.data.length,u.preview&&k>u.preview?g.abort():(S.data=S.data[0],K(S,V))}}}function ce(T){return u.skipEmptyLines==="greedy"?T.join("").trim()==="":T.length===1&&T[0].length===0}function J(){return S&&O&&(ne("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),O=!1),u.skipEmptyLines&&(S.data=S.data.filter(function(T){return!ce(T)})),ue()&&function(){if(!S)return;function T(H,te){j(u.transformHeader)&&(H=u.transformHeader(H,te)),le.push(H)}if(Array.isArray(S.data[0])){for(var L=0;ue()&&L=le.length?"__parsed_extra":le[B]),u.transform&&(Q=u.transform(Q,X)),Q=ie(X,Q),X==="__parsed_extra"?(he[X]=he[X]||[],he[X].push(Q)):he[X]=Q}return u.header&&(B>le.length?ne("FieldMismatch","TooManyFields","Too many fields: expected "+le.length+" fields but parsed "+B,Z+te):B=ve.length/2?`\r +`:"\r"}(T,te)),O=!1,u.delimiter)j(u.delimiter)&&(u.delimiter=u.delimiter(T),S.meta.delimiter=u.delimiter);else{var B=function(X,Q,_e,ve,Te){var Ue,be,W,ee;Te=Te||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var it=0;it=M)return xe(!0)}else for(q=k,k++;;){if((q=F.indexOf(c,q+1))===-1)return le||ne.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:k}),ze();if(q===S-1)return ze(F.substring(k,q).replace(it,c));if(c!==V||F[q+1]!==V){if(c===V||q===0||F[q-1]!==V){W!==-1&&W=M)return xe(!0);break}ne.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:k}),q++}}else q++}return ze();function nt(we){ie.push(we),L=k}function $e(we){var rs=0;if(we!==-1){var xr=F.substring(q+1,we);xr&&xr.trim()===""&&(rs=xr.length)}return rs}function ze(we){return le||(we===void 0&&(we=F.substring(k)),T.push(we),k=S,nt(T),ue&&rr()),xe()}function Ke(we){k=we,nt(T),T=[],ee=F.indexOf(O,k)}function xe(we){return{data:ie,errors:ne,meta:{delimiter:g,linebreak:O,aborted:Z,truncated:!!we,cursor:L+(Se||0)}}}function rr(){I(xe()),ie=[],ne=[]}},this.abort=function(){Z=!0},this.getCharIndex=function(){return k}}function U(u){var c=u.data,g=o[c.workerId],O=!1;if(c.error)g.userError(c.error,c.file);else if(c.results&&c.results.data){var _={abort:function(){O=!0,A(c.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:z,resume:z};if(j(g.userStep)){for(var I=0;If.jsx(gi,{cell:e},r))})}function yi({data:t}){const{readString:e}=Pa(),r=e(t,{chunk:!0,complete:s=>s}).data;return r.length>=1e3?f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"font-bold mb-2",role:"alert",children:"This is a preview of the first 1000 rows"}),f.jsx("div",{className:"flow-root",children:f.jsx("div",{className:"overflow-x-auto",children:f.jsx("div",{className:"inline-block min-w-full align-middle",children:f.jsx("table",{className:"min-w-full divide-y divide-gray-300",children:f.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:r.slice(0,1e3).map((s,i)=>f.jsx($r,{row:s},i))})})})})})]}):f.jsx("div",{className:"flow-root",children:f.jsx("div",{className:"overflow-x-auto",children:f.jsx("div",{className:"inline-block min-w-full align-middle",children:f.jsx("table",{className:"min-w-full divide-y divide-gray-300",children:f.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:r.map((s,i)=>f.jsx($r,{row:s},i))})})})})})}gi.propTypes={cell:w.string.isRequired};$r.propTypes={row:w.arrayOf(w.string).isRequired};yi.propTypes={data:w.string.isRequired};function zr({data:t}){return f.jsx("pre",{className:"whitespace-break-spaces break-words",children:t})}zr.propTypes={data:w.string.isRequired};function vi({authToken:t,fileName:e,fileSize:r,fileUrl:s,uuid:i}){const{data:a,error:o,isLoading:h,isError:l}=Js({queryKey:["FILE",s],queryFn:async()=>{if(!bs(e)||r>2e7||Br(e)&&r>5e6)return!1;const p=`${s}?${i}`;let d=await fetch(p,{headers:{Authorization:t}});if(!d.ok)throw new Error;if(d.headers.has("Location")&&d.headers.has("Authorization")&&(d=await fetch(d.headers.get("Location"),{headers:{Authorization:d.headers.get("Authorization")}}),!d.ok))throw new Error;const C=await d.clone().text();if(C===Rr)return Rr;if(Qr(e)){const x=await d.blob();return URL.createObjectURL(x)}return C},meta:{errorMessage:`${e} - Unable to load file`,id:s}});return h?f.jsx("span",{children:"Loading..."}):a===Rr?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:"This file has not been uploaded yet. This is likely due to do an error that occurred during release."}),f.jsx("p",{className:"mt-3",children:f.jsx(tr,{href:"https://docs.opensafely.org/how-to-get-help/#slack",newTab:!0,children:"Contact tech support in Slack for more information."})})]}):l||!a||!bs(e)?f.jsx(es,{error:o,fileUrl:s}):f.jsxs(f.Fragment,{children:[Br(e)?f.jsx(yi,{data:a}):null,ci(e)&&f.jsx(fi,{data:a,fileName:e,fileUrl:s}),Qr(e)?f.jsx(pi,{data:a}):null,hi(e)?f.jsx(zr,{data:a}):null,di(e)?f.jsx(zr,{data:a}):null]})}vi.propTypes={authToken:pe.authToken.isRequired,fileName:De.name.isRequired,fileSize:De.size.isRequired,fileUrl:De.url.isRequired,uuid:w.number.isRequired};const ja=new un({defaultOptions:{queries:{refetchOnWindowFocus:!1}},queryCache:new $s({onError:(t,e)=>{e.meta.errorMessage&&Zr({message:e.meta.errorMessage,toastId:e.meta.id,filesUrl:e.meta.id,url:document.location.href})}})});function ts({authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s,publishUrl:i}){const a=Date.now(),[o,h]=y.useState(!0),[l,p]=y.useState();return f.jsxs(fn,{client:ja,children:[f.jsxs("div",{className:"py-6",children:[(s||i)&&f.jsxs("div",{className:"mb-3 -mt-3 px-1 md:px-6",children:[s&&f.jsx(ii,{authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s}),i&&f.jsx(ni,{csrfToken:e,publishUrl:i})]}),f.jsxs("div",{className:"grid gap-6 grid-cols-1 px-1 md:grid-cols-3 md:px-6 lg:grid-cols-4",children:[f.jsxs("div",{className:"flex flex-col gap-y-1 md:col-span-1",children:[f.jsxs(Xt,{className:"block md:hidden mb-3",onClick:()=>h(!o),type:"button",variant:"secondary",children:[o?"Hide":"Show"," file list"]}),f.jsx(ui,{authToken:t,filesUrl:r,listVisible:o,setListVisible:h,setSelectedFile:p})]}),f.jsx("div",{className:"md:col-span-2 lg:col-span-3",children:l&&f.jsx(vt,{container:!0,header:f.jsx(li,{fileDate:l.date,fileName:l.shortName,fileSize:l.size,fileUrl:l.url}),children:f.jsx(vi,{authToken:t,fileName:l.shortName,fileSize:l.size,fileUrl:l.url,uuid:a})})})]})]}),f.jsx(Ea,{}),f.jsx(Sn,{initialIsOpen:!1})]})}ts.propTypes={authToken:pe.authToken.isRequired,csrfToken:pe.csrfToken.isRequired,filesUrl:pe.filesUrl.isRequired,prepareUrl:pe.prepareUrl,publishUrl:pe.publishUrl};ts.defaultProps={prepareUrl:null,publishUrl:null};var Ia={BASE_URL:"/static/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};xi({dsn:Ia.VITE_SENTRY_DSN,tracesSampleRate:1});const cr=document.getElementById("outputsSPA"),Da=wi(cr);document.getElementById("content")&&document.getElementById("content").remove();Da.render(f.jsx(Fs.StrictMode,{children:f.jsx(Hi,{basename:cr.dataset.basePath,children:f.jsx(ts,{...cr.dataset,element:cr})})})); diff --git a/assets/dist/assets/outputs-viewer-D3u6S7H_.js b/assets/dist/assets/outputs-viewer-D3u6S7H_.js deleted file mode 100644 index efb958db..00000000 --- a/assets/dist/assets/outputs-viewer-D3u6S7H_.js +++ /dev/null @@ -1,258 +0,0 @@ -var xr=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var n=(t,e,r)=>(xr(t,e,"read from private field"),r?r.call(t):e.get(t)),E=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},b=(t,e,r,s)=>(xr(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r);var sr=(t,e,r,s)=>({set _(i){b(t,e,i,r)},get _(){return n(t,e,s)}}),U=(t,e,r)=>(xr(t,e,"access private method"),r);import{r as y,e as vi,P as x,j as p,i as bi,c as wi,R as xi}from"./index-xG0evL3U.js";import{c as Ci,g as Ei}from"./_commonjsHelpers-4gQjN7DL.js";/** - * @remix-run/router v1.14.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function At(){return At=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Oi(){return Math.random().toString(36).substr(2,8)}function is(t,e){return{usr:t.state,key:t.key,idx:e}}function Or(t,e,r,s){return r===void 0&&(r=null),At({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?yr(e):e,{state:r,key:e&&e.key||s||Oi()})}function Ps(t){let{pathname:e="/",search:r="",hash:s=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function yr(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let s=t.indexOf("?");s>=0&&(e.search=t.substr(s),t=t.substr(0,s)),t&&(e.pathname=t)}return e}function Si(t,e,r,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:a=!1}=s,o=i.history,h=at.Pop,c=null,f=d();f==null&&(f=0,o.replaceState(At({},o.state,{idx:f}),""));function d(){return(o.state||{idx:null}).idx}function C(){h=at.Pop;let g=d(),O=g==null?null:g-f;f=g,c&&c({action:h,location:P.location,delta:O})}function v(g,O){h=at.Push;let N=Or(P.location,g,O);r&&r(N,g),f=d()+1;let A=is(N,f),z=P.createHref(N);try{o.pushState(A,"",z)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;i.location.assign(z)}a&&c&&c({action:h,location:P.location,delta:1})}function w(g,O){h=at.Replace;let N=Or(P.location,g,O);r&&r(N,g),f=d();let A=is(N,f),z=P.createHref(N);o.replaceState(A,"",z),a&&c&&c({action:h,location:P.location,delta:0})}function j(g){let O=i.location.origin!=="null"?i.location.origin:i.location.href,N=typeof g=="string"?g:Ps(g);return Ue(O,"No window.location.(origin|href) available to create URL for href: "+N),new URL(N,O)}let P={get action(){return h},get location(){return t(i,o)},listen(g){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(ss,C),c=g,()=>{i.removeEventListener(ss,C),c=null}},createHref(g){return e(i,g)},createURL:j,encodeLocation(g){let O=j(g);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:w,go(g){return o.go(g)}};return P}var ns;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ns||(ns={}));function _i(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,s=t.charAt(r);return s&&s!=="/"?null:t.slice(r)||"/"}function ki(t,e){e===void 0&&(e="/");let{pathname:r,search:s="",hash:i=""}=typeof t=="string"?yr(t):t;return{pathname:r?r.startsWith("/")?r:Ti(r,e):e,search:Di(s),hash:Ui(i)}}function Ti(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Cr(t,e,r,s){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Pi(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Fi(t,e){let r=Pi(t);return e?r.map((s,i)=>i===t.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function ji(t,e,r,s){s===void 0&&(s=!1);let i;typeof t=="string"?i=yr(t):(i=At({},t),Ue(!i.pathname||!i.pathname.includes("?"),Cr("?","pathname","search",i)),Ue(!i.pathname||!i.pathname.includes("#"),Cr("#","pathname","hash",i)),Ue(!i.search||!i.search.includes("#"),Cr("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,h;if(o==null)h=r;else{let C=e.length-1;if(!s&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),C-=1;i.pathname=v.join("/")}h=C>=0?e[C]:"/"}let c=ki(i,h),f=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(f||d)&&(c.pathname+="/"),c}const Ii=t=>t.join("/").replace(/\/\/+/g,"/"),Di=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ui=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Fs=["post","put","patch","delete"];new Set(Fs);const Mi=["get",...Fs];new Set(Mi);/** - * React Router v6.21.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function hr(){return hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{h.current=!0}),y.useCallback(function(f,d){if(d===void 0&&(d={}),!h.current)return;if(typeof f=="number"){s.go(f);return}let C=ji(f,JSON.parse(o),a,d.relative==="path");t==null&&e!=="/"&&(C.pathname=C.pathname==="/"?e:Ii([e,C.pathname])),(d.replace?s.replace:s.push)(C,d.state,d)},[e,s,o,a,t])}var Us=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Us||{}),Ms=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ms||{});function Li(t){let e=y.useContext(js);return e||Ue(!1),e}function qi(t){let e=y.useContext(Hr);return e||Ue(!1),e}function Bi(t){let e=qi(),r=e.matches[e.matches.length-1];return r.route.id||Ue(!1),r.route.id}function Qi(){let{router:t}=Li(Us.UseNavigateStable),e=Bi(Ms.UseNavigateStable),r=y.useRef(!1);return Ds(()=>{r.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,hr({fromRouteId:e},a)))},[t,e])}function $i(t){let{basename:e="/",children:r=null,location:s,navigationType:i=at.Pop,navigator:a,static:o=!1,future:h}=t;Gr()&&Ue(!1);let c=e.replace(/^\/*/,"/"),f=y.useMemo(()=>({basename:c,navigator:a,static:o,future:hr({v7_relativeSplatPath:!1},h)}),[c,h,a,o]);typeof s=="string"&&(s=yr(s));let{pathname:d="/",search:C="",hash:v="",state:w=null,key:j="default"}=s,P=y.useMemo(()=>{let g=_i(d,c);return g==null?null:{location:{pathname:g,search:C,hash:v,state:w,key:j},navigationType:i}},[c,d,C,v,w,j,i]);return P==null?null:y.createElement(Kr.Provider,{value:f},y.createElement(Wr.Provider,{children:r,value:P}))}new Promise(()=>{});/** - * React Router DOM v6.21.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const zi="startTransition",as=vi[zi];function Ki(t){let{basename:e,children:r,future:s,window:i}=t,a=y.useRef();a.current==null&&(a.current=Ri({window:i,v5Compat:!0}));let o=a.current,[h,c]=y.useState({action:o.action,location:o.location}),{v7_startTransition:f}=s||{},d=y.useCallback(C=>{f&&as?as(()=>c(C)):c(C)},[c,f]);return y.useLayoutEffect(()=>o.listen(d),[o,d]),y.createElement($i,{basename:e,children:r,location:h.location,navigationType:h.action,navigator:o,future:s})}var os;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(os||(os={}));var us;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(us||(us={}));var Mt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ut=typeof window>"u"||"Deno"in window;function Oe(){}function Wi(t,e){return typeof t=="function"?t(e):t}function Sr(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ns(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ls(t,e){const{type:r="all",exact:s,fetchStatus:i,predicate:a,queryKey:o,stale:h}=t;if(o){if(s){if(e.queryHash!==Jr(o,e.options))return!1}else if(!Lt(e.queryKey,o))return!1}if(r!=="all"){const c=e.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof h=="boolean"&&e.isStale()!==h||typeof i<"u"&&i!==e.state.fetchStatus||a&&!a(e))}function cs(t,e){const{exact:r,status:s,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(r){if(mt(e.options.mutationKey)!==mt(a))return!1}else if(!Lt(e.options.mutationKey,a))return!1}return!(s&&e.state.status!==s||i&&!i(e))}function Jr(t,e){return((e==null?void 0:e.queryKeyHashFn)||mt)(t)}function mt(t){return JSON.stringify(t,(e,r)=>_r(r)?Object.keys(r).sort().reduce((s,i)=>(s[i]=r[i],s),{}):r)}function Lt(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!Lt(t[r],e[r])):!1}function As(t,e){if(t===e)return t;const r=hs(t)&&hs(e);if(r||_r(t)&&_r(e)){const s=r?t.length:Object.keys(t).length,i=r?e:Object.keys(e),a=i.length,o=r?[]:{};let h=0;for(let c=0;c"u")return!0;const r=e.prototype;return!(!ds(r)||!r.hasOwnProperty("isPrototypeOf"))}function ds(t){return Object.prototype.toString.call(t)==="[object Object]"}function Hi(t){return new Promise(e=>{setTimeout(e,t)})}function kr(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?As(t,e):e}function Gi(t,e,r=0){const s=[...t,e];return r&&s.length>r?s.slice(1):s}function Ji(t,e,r=0){const s=[e,...t];return r&&s.length>r?s.slice(0,-1):s}var ot,Je,bt,ws,Vi=(ws=class extends Mt{constructor(){super();E(this,ot,void 0);E(this,Je,void 0);E(this,bt,void 0);b(this,bt,e=>{if(!Ut&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){n(this,Je)||this.setEventListener(n(this,bt))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,Je))==null||e.call(this),b(this,Je,void 0))}setEventListener(e){var r;b(this,bt,e),(r=n(this,Je))==null||r.call(this),b(this,Je,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){n(this,ot)!==e&&(b(this,ot,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof n(this,ot)=="boolean"?n(this,ot):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ot=new WeakMap,Je=new WeakMap,bt=new WeakMap,ws),fr=new Vi,wt,Ve,xt,xs,Yi=(xs=class extends Mt{constructor(){super();E(this,wt,!0);E(this,Ve,void 0);E(this,xt,void 0);b(this,xt,e=>{if(!Ut&&window.addEventListener){const r=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){n(this,Ve)||this.setEventListener(n(this,xt))}onUnsubscribe(){var e;this.hasListeners()||((e=n(this,Ve))==null||e.call(this),b(this,Ve,void 0))}setEventListener(e){var r;b(this,xt,e),(r=n(this,Ve))==null||r.call(this),b(this,Ve,e(this.setOnline.bind(this)))}setOnline(e){n(this,wt)!==e&&(b(this,wt,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return n(this,wt)}},wt=new WeakMap,Ve=new WeakMap,xt=new WeakMap,xs),pr=new Yi;function Zi(t){return Math.min(1e3*2**t,3e4)}function vr(t){return(t??"online")==="online"?pr.isOnline():!0}var Ls=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Er(t){return t instanceof Ls}function qs(t){let e=!1,r=0,s=!1,i,a,o;const h=new Promise((g,O)=>{a=g,o=O}),c=g=>{var O;s||(w(new Ls(g)),(O=t.abort)==null||O.call(t))},f=()=>{e=!0},d=()=>{e=!1},C=()=>!fr.isFocused()||t.networkMode!=="always"&&!pr.isOnline(),v=g=>{var O;s||(s=!0,(O=t.onSuccess)==null||O.call(t,g),i==null||i(),a(g))},w=g=>{var O;s||(s=!0,(O=t.onError)==null||O.call(t,g),i==null||i(),o(g))},j=()=>new Promise(g=>{var O;i=N=>{const A=s||!C();return A&&g(N),A},(O=t.onPause)==null||O.call(t)}).then(()=>{var g;i=void 0,s||(g=t.onContinue)==null||g.call(t)}),P=()=>{if(s)return;let g;try{g=t.fn()}catch(O){g=Promise.reject(O)}Promise.resolve(g).then(v).catch(O=>{var G;if(s)return;const N=t.retry??(Ut?0:3),A=t.retryDelay??Zi,z=typeof A=="function"?A(r,O):A,Y=N===!0||typeof N=="number"&&r{if(C())return j()}).then(()=>{e?w(O):P()})})};return vr(t.networkMode)?P():j().then(P),{promise:h,cancel:c,continue:()=>(i==null?void 0:i())?h:Promise.resolve(),cancelRetry:f,continueRetry:d}}function Xi(){let t=[],e=0,r=v=>{v()},s=v=>{v()},i=v=>setTimeout(v,0);const a=v=>{i=v},o=v=>{let w;e++;try{w=v()}finally{e--,e||f()}return w},h=v=>{e?t.push(v):i(()=>{r(v)})},c=v=>(...w)=>{h(()=>{v(...w)})},f=()=>{const v=t;t=[],v.length&&i(()=>{s(()=>{v.forEach(w=>{r(w)})})})};return{batch:o,batchCalls:c,schedule:h,setNotifyFunction:v=>{r=v},setBatchNotifyFunction:v=>{s=v},setScheduler:a}}var se=Xi(),ut,Cs,Bs=(Cs=class{constructor(){E(this,ut,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sr(this.gcTime)&&b(this,ut,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ut?1/0:5*60*1e3))}clearGcTimeout(){n(this,ut)&&(clearTimeout(n(this,ut)),b(this,ut,void 0))}},ut=new WeakMap,Cs),Ct,Et,Ce,Ye,Ee,ae,qt,lt,Rt,nr,ke,Le,Es,en=(Es=class extends Bs{constructor(e){super();E(this,Rt);E(this,ke);E(this,Ct,void 0);E(this,Et,void 0);E(this,Ce,void 0);E(this,Ye,void 0);E(this,Ee,void 0);E(this,ae,void 0);E(this,qt,void 0);E(this,lt,void 0);b(this,lt,!1),b(this,qt,e.defaultOptions),U(this,Rt,nr).call(this,e.options),b(this,ae,[]),b(this,Ce,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,b(this,Ct,e.state||tn(this.options)),this.state=n(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!n(this,ae).length&&this.state.fetchStatus==="idle"&&n(this,Ce).remove(this)}setData(e,r){const s=kr(this.state.data,e,this.options);return U(this,ke,Le).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(e,r){U(this,ke,Le).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var s;const r=n(this,Ye);return(s=n(this,Ee))==null||s.cancel(e),r?r.then(Oe).catch(Oe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(n(this,Ct))}isActive(){return n(this,ae).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||n(this,ae).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Ns(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=n(this,ae).find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=n(this,Ee))==null||r.continue()}onOnline(){var r;const e=n(this,ae).find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=n(this,Ee))==null||r.continue()}addObserver(e){n(this,ae).includes(e)||(n(this,ae).push(e),this.clearGcTimeout(),n(this,Ce).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){n(this,ae).includes(e)&&(b(this,ae,n(this,ae).filter(r=>r!==e)),n(this,ae).length||(n(this,Ee)&&(n(this,lt)?n(this,Ee).cancel({revert:!0}):n(this,Ee).cancelRetry()),this.scheduleGc()),n(this,Ce).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return n(this,ae).length}invalidate(){this.state.isInvalidated||U(this,ke,Le).call(this,{type:"invalidate"})}fetch(e,r){var f,d,C,v;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(n(this,Ye))return(f=n(this,Ee))==null||f.continueRetry(),n(this,Ye)}if(e&&U(this,Rt,nr).call(this,e),!this.options.queryFn){const w=n(this,ae).find(j=>j.options.queryFn);w&&U(this,Rt,nr).call(this,w.options)}const s=new AbortController,i={queryKey:this.queryKey,meta:this.meta},a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(b(this,lt,!0),s.signal)})};a(i);const o=()=>this.options.queryFn?(b(this,lt,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(h),(d=this.options.behavior)==null||d.onFetch(h,this),b(this,Et,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=h.fetchOptions)==null?void 0:C.meta))&&U(this,ke,Le).call(this,{type:"fetch",meta:(v=h.fetchOptions)==null?void 0:v.meta});const c=w=>{var j,P,g,O;Er(w)&&w.silent||U(this,ke,Le).call(this,{type:"error",error:w}),Er(w)||((P=(j=n(this,Ce).config).onError)==null||P.call(j,w,this),(O=(g=n(this,Ce).config).onSettled)==null||O.call(g,this.state.data,w,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return b(this,Ee,qs({fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:w=>{var j,P,g,O;if(typeof w>"u"){c(new Error(`${this.queryHash} data is undefined`));return}this.setData(w),(P=(j=n(this,Ce).config).onSuccess)==null||P.call(j,w,this),(O=(g=n(this,Ce).config).onSettled)==null||O.call(g,w,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(w,j)=>{U(this,ke,Le).call(this,{type:"failed",failureCount:w,error:j})},onPause:()=>{U(this,ke,Le).call(this,{type:"pause"})},onContinue:()=>{U(this,ke,Le).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode})),b(this,Ye,n(this,Ee).promise),n(this,Ye)}},Ct=new WeakMap,Et=new WeakMap,Ce=new WeakMap,Ye=new WeakMap,Ee=new WeakMap,ae=new WeakMap,qt=new WeakMap,lt=new WeakMap,Rt=new WeakSet,nr=function(e){this.options={...n(this,qt),...e},this.updateGcTime(this.options.gcTime)},ke=new WeakSet,Le=function(e){const r=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:vr(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Er(i)&&i.revert&&n(this,Et)?{...n(this,Et),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=r(this.state),se.batch(()=>{n(this,ae).forEach(s=>{s.onQueryUpdate()}),n(this,Ce).notify({query:this,type:"updated",action:e})})},Es);function tn(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=typeof e<"u",s=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Pe,Rs,Qs=(Rs=class extends Mt{constructor(e={}){super();E(this,Pe,void 0);this.config=e,b(this,Pe,new Map)}build(e,r,s){const i=r.queryKey,a=r.queryHash??Jr(i,r);let o=this.get(a);return o||(o=new en({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(r),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){n(this,Pe).has(e.queryHash)||(n(this,Pe).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=n(this,Pe).get(e.queryHash);r&&(e.destroy(),r===e&&n(this,Pe).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){se.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return n(this,Pe).get(e)}getAll(){return[...n(this,Pe).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(s=>ls(r,s))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(s=>ls(e,s)):r}notify(e){se.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){se.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){se.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Pe=new WeakMap,Rs),Fe,Bt,me,Ot,je,He,Os,rn=(Os=class extends Bs{constructor(e){super();E(this,je);E(this,Fe,void 0);E(this,Bt,void 0);E(this,me,void 0);E(this,Ot,void 0);this.mutationId=e.mutationId,b(this,Bt,e.defaultOptions),b(this,me,e.mutationCache),b(this,Fe,[]),this.state=e.state||$s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...n(this,Bt),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){n(this,Fe).includes(e)||(n(this,Fe).push(e),this.clearGcTimeout(),n(this,me).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){b(this,Fe,n(this,Fe).filter(r=>r!==e)),this.scheduleGc(),n(this,me).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){n(this,Fe).length||(this.state.status==="pending"?this.scheduleGc():n(this,me).remove(this))}continue(){var e;return((e=n(this,Ot))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,a,o,h,c,f,d,C,v,w,j,P,g,O,N,A,z,Y,G,I;const r=()=>(b(this,Ot,qs({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(u,l)=>{U(this,je,He).call(this,{type:"failed",failureCount:u,error:l})},onPause:()=>{U(this,je,He).call(this,{type:"pause"})},onContinue:()=>{U(this,je,He).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),n(this,Ot).promise),s=this.state.status==="pending";try{if(!s){U(this,je,He).call(this,{type:"pending",variables:e}),await((a=(i=n(this,me).config).onMutate)==null?void 0:a.call(i,e,this));const l=await((h=(o=this.options).onMutate)==null?void 0:h.call(o,e));l!==this.state.context&&U(this,je,He).call(this,{type:"pending",context:l,variables:e})}const u=await r();return await((f=(c=n(this,me).config).onSuccess)==null?void 0:f.call(c,u,e,this.state.context,this)),await((C=(d=this.options).onSuccess)==null?void 0:C.call(d,u,e,this.state.context)),await((w=(v=n(this,me).config).onSettled)==null?void 0:w.call(v,u,null,this.state.variables,this.state.context,this)),await((P=(j=this.options).onSettled)==null?void 0:P.call(j,u,null,e,this.state.context)),U(this,je,He).call(this,{type:"success",data:u}),u}catch(u){try{throw await((O=(g=n(this,me).config).onError)==null?void 0:O.call(g,u,e,this.state.context,this)),await((A=(N=this.options).onError)==null?void 0:A.call(N,u,e,this.state.context)),await((Y=(z=n(this,me).config).onSettled)==null?void 0:Y.call(z,void 0,u,this.state.variables,this.state.context,this)),await((I=(G=this.options).onSettled)==null?void 0:I.call(G,void 0,u,e,this.state.context)),u}finally{U(this,je,He).call(this,{type:"error",error:u})}}}},Fe=new WeakMap,Bt=new WeakMap,me=new WeakMap,Ot=new WeakMap,je=new WeakSet,He=function(e){const r=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!vr(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),se.batch(()=>{n(this,Fe).forEach(s=>{s.onMutationUpdate(e)}),n(this,me).notify({mutation:this,type:"updated",action:e})})},Os);function $s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Re,Qt,ct,Ss,sn=(Ss=class extends Mt{constructor(e={}){super();E(this,Re,void 0);E(this,Qt,void 0);E(this,ct,void 0);this.config=e,b(this,Re,[]),b(this,Qt,0)}build(e,r,s){const i=new rn({mutationCache:this,mutationId:++sr(this,Qt)._,options:e.defaultMutationOptions(r),state:s});return this.add(i),i}add(e){n(this,Re).push(e),this.notify({type:"added",mutation:e})}remove(e){b(this,Re,n(this,Re).filter(r=>r!==e)),this.notify({type:"removed",mutation:e})}clear(){se.batch(()=>{n(this,Re).forEach(e=>{this.remove(e)})})}getAll(){return n(this,Re)}find(e){const r={exact:!0,...e};return n(this,Re).find(s=>cs(r,s))}findAll(e={}){return n(this,Re).filter(r=>cs(e,r))}notify(e){se.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){return b(this,ct,(n(this,ct)??Promise.resolve()).then(()=>{const e=n(this,Re).filter(r=>r.state.isPaused);return se.batch(()=>e.reduce((r,s)=>r.then(()=>s.continue().catch(Oe)),Promise.resolve()))}).then(()=>{b(this,ct,void 0)})),n(this,ct)}},Re=new WeakMap,Qt=new WeakMap,ct=new WeakMap,Ss);function nn(t){return{onFetch:(e,r)=>{const s=async()=>{var j,P,g,O,N;const i=e.options,a=(g=(P=(j=e.fetchOptions)==null?void 0:j.meta)==null?void 0:P.fetchMore)==null?void 0:g.direction,o=((O=e.state.data)==null?void 0:O.pages)||[],h=((N=e.state.data)==null?void 0:N.pageParams)||[],c={pages:[],pageParams:[]};let f=!1;const d=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(e.signal.aborted?f=!0:e.signal.addEventListener("abort",()=>{f=!0}),e.signal)})},C=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),v=async(A,z,Y)=>{if(f)return Promise.reject();if(z==null&&A.pages.length)return Promise.resolve(A);const G={queryKey:e.queryKey,pageParam:z,direction:Y?"backward":"forward",meta:e.options.meta};d(G);const I=await C(G),{maxPages:u}=e.options,l=Y?Ji:Gi;return{pages:l(A.pages,I,u),pageParams:l(A.pageParams,z,u)}};let w;if(a&&o.length){const A=a==="backward",z=A?an:fs,Y={pages:o,pageParams:h},G=z(i,Y);w=await v(Y,G,A)}else{w=await v(c,h[0]??i.initialPageParam);const A=t??o.length;for(let z=1;z{var i,a;return(a=(i=e.options).persister)==null?void 0:a.call(i,s,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=s}}}function fs(t,{pages:e,pageParams:r}){const s=e.length-1;return t.getNextPageParam(e[s],e,r[s],r)}function an(t,{pages:e,pageParams:r}){var s;return(s=t.getPreviousPageParam)==null?void 0:s.call(t,e[0],e,r[0],r)}var re,Ze,Xe,St,_t,et,kt,Tt,_s,on=(_s=class{constructor(t={}){E(this,re,void 0);E(this,Ze,void 0);E(this,Xe,void 0);E(this,St,void 0);E(this,_t,void 0);E(this,et,void 0);E(this,kt,void 0);E(this,Tt,void 0);b(this,re,t.queryCache||new Qs),b(this,Ze,t.mutationCache||new sn),b(this,Xe,t.defaultOptions||{}),b(this,St,new Map),b(this,_t,new Map),b(this,et,0)}mount(){sr(this,et)._++,n(this,et)===1&&(b(this,kt,fr.subscribe(()=>{fr.isFocused()&&(this.resumePausedMutations(),n(this,re).onFocus())})),b(this,Tt,pr.subscribe(()=>{pr.isOnline()&&(this.resumePausedMutations(),n(this,re).onOnline())})))}unmount(){var t,e;sr(this,et)._--,n(this,et)===0&&((t=n(this,kt))==null||t.call(this),b(this,kt,void 0),(e=n(this,Tt))==null||e.call(this),b(this,Tt,void 0))}isFetching(t){return n(this,re).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return n(this,Ze).findAll({...t,status:"pending"}).length}getQueryData(t){var e;return(e=n(this,re).find({queryKey:t}))==null?void 0:e.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return e!==void 0?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:e,state:r})=>{const s=r.data;return[e,s]})}setQueryData(t,e,r){const s=n(this,re).find({queryKey:t}),i=s==null?void 0:s.state.data,a=Wi(e,i);if(typeof a>"u")return;const o=this.defaultQueryOptions({queryKey:t});return n(this,re).build(this,o).setData(a,{...r,manual:!0})}setQueriesData(t,e,r){return se.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,r)]))}getQueryState(t){var e;return(e=n(this,re).find({queryKey:t}))==null?void 0:e.state}removeQueries(t){const e=n(this,re);se.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=n(this,re),s={type:"active",...t};return se.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries(s,e)))}cancelQueries(t={},e={}){const r={revert:!0,...e},s=se.batch(()=>n(this,re).findAll(t).map(i=>i.cancel(r)));return Promise.all(s).then(Oe).catch(Oe)}invalidateQueries(t={},e={}){return se.batch(()=>{if(n(this,re).findAll(t).forEach(s=>{s.invalidate()}),t.refetchType==="none")return Promise.resolve();const r={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(r,e)})}refetchQueries(t={},e){const r={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},s=se.batch(()=>n(this,re).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Oe)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(Oe)}fetchQuery(t){const e=this.defaultQueryOptions(t);typeof e.retry>"u"&&(e.retry=!1);const r=n(this,re).build(this,e);return r.isStaleByTime(e.staleTime)?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Oe).catch(Oe)}fetchInfiniteQuery(t){return t.behavior=nn(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Oe).catch(Oe)}resumePausedMutations(){return n(this,Ze).resumePausedMutations()}getQueryCache(){return n(this,re)}getMutationCache(){return n(this,Ze)}getDefaultOptions(){return n(this,Xe)}setDefaultOptions(t){b(this,Xe,t)}setQueryDefaults(t,e){n(this,St).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...n(this,St).values()];let r={};return e.forEach(s=>{Lt(t,s.queryKey)&&(r={...r,...s.defaultOptions})}),r}setMutationDefaults(t,e){n(this,_t).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...n(this,_t).values()];let r={};return e.forEach(s=>{Lt(t,s.mutationKey)&&(r={...r,...s.defaultOptions})}),r}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const e={...n(this,Xe).queries,...(t==null?void 0:t.queryKey)&&this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Jr(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...n(this,Xe).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){n(this,re).clear(),n(this,Ze).clear()}},re=new WeakMap,Ze=new WeakMap,Xe=new WeakMap,St=new WeakMap,_t=new WeakMap,et=new WeakMap,kt=new WeakMap,Tt=new WeakMap,_s),fe,$,$t,de,ht,Pt,Ie,zt,Ft,jt,dt,ft,tt,It,pt,Nt,Kt,Tr,Wt,Pr,Ht,Fr,Gt,jr,Jt,Ir,Vt,Dr,Yt,Ur,gr,zs,ks,un=(ks=class extends Mt{constructor(e,r){super();E(this,pt);E(this,Kt);E(this,Wt);E(this,Ht);E(this,Gt);E(this,Jt);E(this,Vt);E(this,Yt);E(this,gr);E(this,fe,void 0);E(this,$,void 0);E(this,$t,void 0);E(this,de,void 0);E(this,ht,void 0);E(this,Pt,void 0);E(this,Ie,void 0);E(this,zt,void 0);E(this,Ft,void 0);E(this,jt,void 0);E(this,dt,void 0);E(this,ft,void 0);E(this,tt,void 0);E(this,It,new Set);this.options=r,b(this,fe,e),b(this,Ie,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(n(this,$).addObserver(this),ps(n(this,$),this.options)?U(this,pt,Nt).call(this):this.updateResult(),U(this,Gt,jr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mr(n(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mr(n(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,U(this,Jt,Ir).call(this),U(this,Vt,Dr).call(this),n(this,$).removeObserver(this)}setOptions(e,r){const s=this.options,i=n(this,$);if(this.options=n(this,fe).defaultQueryOptions(e),dr(s,this.options)||n(this,fe).getQueryCache().notify({type:"observerOptionsUpdated",query:n(this,$),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),U(this,Yt,Ur).call(this);const a=this.hasListeners();a&&ms(n(this,$),i,this.options,s)&&U(this,pt,Nt).call(this),this.updateResult(r),a&&(n(this,$)!==i||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&U(this,Kt,Tr).call(this);const o=U(this,Wt,Pr).call(this);a&&(n(this,$)!==i||this.options.enabled!==s.enabled||o!==n(this,tt))&&U(this,Ht,Fr).call(this,o)}getOptimisticResult(e){const r=n(this,fe).getQueryCache().build(n(this,fe),e),s=this.createResult(r,e);return cn(this,s)&&(b(this,de,s),b(this,Pt,this.options),b(this,ht,n(this,$).state)),s}getCurrentResult(){return n(this,de)}trackResult(e){const r={};return Object.keys(e).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(n(this,It).add(s),e[s])})}),r}getCurrentQuery(){return n(this,$)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=n(this,fe).defaultQueryOptions(e),s=n(this,fe).getQueryCache().build(n(this,fe),r);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,r))}fetch(e){return U(this,pt,Nt).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),n(this,de)))}createResult(e,r){var G;const s=n(this,$),i=this.options,a=n(this,de),o=n(this,ht),h=n(this,Pt),f=e!==s?e.state:n(this,$t),{state:d}=e;let{error:C,errorUpdatedAt:v,fetchStatus:w,status:j}=d,P=!1,g;if(r._optimisticResults){const I=this.hasListeners(),u=!I&&ps(e,r),l=I&&ms(e,s,r,i);(u||l)&&(w=vr(e.options.networkMode)?"fetching":"paused",d.dataUpdatedAt||(j="pending")),r._optimisticResults==="isRestoring"&&(w="idle")}if(r.select&&typeof d.data<"u")if(a&&d.data===(o==null?void 0:o.data)&&r.select===n(this,zt))g=n(this,Ft);else try{b(this,zt,r.select),g=r.select(d.data),g=kr(a==null?void 0:a.data,g,r),b(this,Ft,g),b(this,Ie,null)}catch(I){b(this,Ie,I)}else g=d.data;if(typeof r.placeholderData<"u"&&typeof g>"u"&&j==="pending"){let I;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(h==null?void 0:h.placeholderData))I=a.data;else if(I=typeof r.placeholderData=="function"?r.placeholderData((G=n(this,jt))==null?void 0:G.state.data,n(this,jt)):r.placeholderData,r.select&&typeof I<"u")try{I=r.select(I),b(this,Ie,null)}catch(u){b(this,Ie,u)}typeof I<"u"&&(j="success",g=kr(a==null?void 0:a.data,I,r),P=!0)}n(this,Ie)&&(C=n(this,Ie),g=n(this,Ft),v=Date.now(),j="error");const O=w==="fetching",N=j==="pending",A=j==="error",z=N&&O;return{status:j,fetchStatus:w,isPending:N,isSuccess:j==="success",isError:A,isInitialLoading:z,isLoading:z,data:g,dataUpdatedAt:d.dataUpdatedAt,error:C,errorUpdatedAt:v,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>f.dataUpdateCount||d.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!N,isLoadingError:A&&d.dataUpdatedAt===0,isPaused:w==="paused",isPlaceholderData:P,isRefetchError:A&&d.dataUpdatedAt!==0,isStale:Vr(e,r),refetch:this.refetch}}updateResult(e){const r=n(this,de),s=this.createResult(n(this,$),this.options);if(b(this,ht,n(this,$).state),b(this,Pt,this.options),n(this,ht).data!==void 0&&b(this,jt,n(this,$)),dr(s,r))return;b(this,de,s);const i={},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!n(this,It).size)return!0;const c=new Set(h??n(this,It));return this.options.throwOnError&&c.add("error"),Object.keys(n(this,de)).some(f=>{const d=f;return n(this,de)[d]!==r[d]&&c.has(d)})};(e==null?void 0:e.listeners)!==!1&&a()&&(i.listeners=!0),U(this,gr,zs).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&U(this,Gt,jr).call(this)}},fe=new WeakMap,$=new WeakMap,$t=new WeakMap,de=new WeakMap,ht=new WeakMap,Pt=new WeakMap,Ie=new WeakMap,zt=new WeakMap,Ft=new WeakMap,jt=new WeakMap,dt=new WeakMap,ft=new WeakMap,tt=new WeakMap,It=new WeakMap,pt=new WeakSet,Nt=function(e){U(this,Yt,Ur).call(this);let r=n(this,$).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(Oe)),r},Kt=new WeakSet,Tr=function(){if(U(this,Jt,Ir).call(this),Ut||n(this,de).isStale||!Sr(this.options.staleTime))return;const r=Ns(n(this,de).dataUpdatedAt,this.options.staleTime)+1;b(this,dt,setTimeout(()=>{n(this,de).isStale||this.updateResult()},r))},Wt=new WeakSet,Pr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(n(this,$)):this.options.refetchInterval)??!1},Ht=new WeakSet,Fr=function(e){U(this,Vt,Dr).call(this),b(this,tt,e),!(Ut||this.options.enabled===!1||!Sr(n(this,tt))||n(this,tt)===0)&&b(this,ft,setInterval(()=>{(this.options.refetchIntervalInBackground||fr.isFocused())&&U(this,pt,Nt).call(this)},n(this,tt)))},Gt=new WeakSet,jr=function(){U(this,Kt,Tr).call(this),U(this,Ht,Fr).call(this,U(this,Wt,Pr).call(this))},Jt=new WeakSet,Ir=function(){n(this,dt)&&(clearTimeout(n(this,dt)),b(this,dt,void 0))},Vt=new WeakSet,Dr=function(){n(this,ft)&&(clearInterval(n(this,ft)),b(this,ft,void 0))},Yt=new WeakSet,Ur=function(){const e=n(this,fe).getQueryCache().build(n(this,fe),this.options);if(e===n(this,$))return;const r=n(this,$);b(this,$,e),b(this,$t,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},gr=new WeakSet,zs=function(e){se.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(n(this,de))}),n(this,fe).getQueryCache().notify({query:n(this,$),type:"observerResultsUpdated"})})},ks);function ln(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function ps(t,e){return ln(t,e)||t.state.dataUpdatedAt>0&&Mr(t,e,e.refetchOnMount)}function Mr(t,e,r){if(e.enabled!==!1){const s=typeof r=="function"?r(t):r;return s==="always"||s!==!1&&Vr(t,e)}return!1}function ms(t,e,r,s){return r.enabled!==!1&&(t!==e||s.enabled===!1)&&(!r.suspense||t.state.status!=="error")&&Vr(t,r)}function Vr(t,e){return t.isStaleByTime(e.staleTime)}function cn(t,e){return!dr(t.getCurrentResult(),e)}var rt,qe,ge,Be,Dt,ar,Zt,Nr,Ts,hn=(Ts=class extends Mt{constructor(r,s){super();E(this,Dt);E(this,Zt);E(this,rt,void 0);E(this,qe,void 0);E(this,ge,void 0);E(this,Be,void 0);b(this,qe,void 0),b(this,rt,r),this.setOptions(s),this.bindMethods(),U(this,Dt,ar).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const s=this.options;this.options=n(this,rt).defaultMutationOptions(r),dr(s,this.options)||n(this,rt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:n(this,ge),observer:this}),(i=n(this,ge))==null||i.setOptions(this.options),s!=null&&s.mutationKey&&this.options.mutationKey&&mt(s.mutationKey)!==mt(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var r;this.hasListeners()||(r=n(this,ge))==null||r.removeObserver(this)}onMutationUpdate(r){U(this,Dt,ar).call(this),U(this,Zt,Nr).call(this,r)}getCurrentResult(){return n(this,qe)}reset(){var r;(r=n(this,ge))==null||r.removeObserver(this),b(this,ge,void 0),U(this,Dt,ar).call(this),U(this,Zt,Nr).call(this)}mutate(r,s){var i;return b(this,Be,s),(i=n(this,ge))==null||i.removeObserver(this),b(this,ge,n(this,rt).getMutationCache().build(n(this,rt),this.options)),n(this,ge).addObserver(this),n(this,ge).execute(r)}},rt=new WeakMap,qe=new WeakMap,ge=new WeakMap,Be=new WeakMap,Dt=new WeakSet,ar=function(){var s;const r=((s=n(this,ge))==null?void 0:s.state)??$s();b(this,qe,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Zt=new WeakSet,Nr=function(r){se.batch(()=>{var s,i,a,o,h,c,f,d;if(n(this,Be)&&this.hasListeners()){const C=n(this,qe).variables,v=n(this,qe).context;(r==null?void 0:r.type)==="success"?((i=(s=n(this,Be)).onSuccess)==null||i.call(s,r.data,C,v),(o=(a=n(this,Be)).onSettled)==null||o.call(a,r.data,null,C,v)):(r==null?void 0:r.type)==="error"&&((c=(h=n(this,Be)).onError)==null||c.call(h,r.error,C,v),(d=(f=n(this,Be)).onSettled)==null||d.call(f,void 0,r.error,C,v))}this.listeners.forEach(C=>{C(n(this,qe))})})},Ts),Ks=y.createContext(void 0),Ws=t=>{const e=y.useContext(Ks);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},dn=({client:t,children:e})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),y.createElement(Ks.Provider,{value:t},e)),Hs=y.createContext(!1),fn=()=>y.useContext(Hs);Hs.Provider;function pn(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var mn=y.createContext(pn()),gn=()=>y.useContext(mn);function Gs(t,e){return typeof t=="function"?t(...e):!!t}var yn=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},vn=t=>{y.useEffect(()=>{t.clearReset()},[t])},bn=({result:t,errorResetBoundary:e,throwOnError:r,query:s})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&Gs(r,[t.error,s]),wn=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},xn=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Cn=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function En(t,e,r){const s=Ws(r),i=fn(),a=gn(),o=s.defaultQueryOptions(t);o._optimisticResults=i?"isRestoring":"optimistic",wn(o),yn(o,a),vn(a);const[h]=y.useState(()=>new e(s,o)),c=h.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(f=>{const d=i?()=>{}:h.subscribe(se.batchCalls(f));return h.updateResult(),d},[h,i]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),y.useEffect(()=>{h.setOptions(o,{listeners:!1})},[o,h]),xn(o,c))throw Cn(o,h,a);if(bn({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash)}))throw c.error;return o.notifyOnChangeProps?c:h.trackResult(c)}function Js(t,e){return En(t,un,e)}function Vs(t,e){const r=Ws(e),[s]=y.useState(()=>new hn(r,t));y.useEffect(()=>{s.setOptions(t)},[s,t]);const i=y.useSyncExternalStore(y.useCallback(o=>s.subscribe(se.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=y.useCallback((o,h)=>{s.mutate(o,h).catch(Rn)},[s]);if(i.error&&Gs(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Rn(){}var On=function(){return null};function Xt({children:t,disabled:e,type:r,className:s,onClick:i,variant:a}){return p.jsx("button",{className:` - inline-flex w-fit items-center justify-center rounded-md shadow-sm transition-buttons duration-200 px-4 py-2 text-sm font-medium - - ${e?"":` - hover:shadow-lg - focus:outline-none focus:ring-2 focus:ring-offset-2`} - - ${a==="primary"?` - bg-oxford-600 text-white - hover:bg-oxford-700 - focus:bg-oxford-700 focus:ring-oxford-500 focus:ring-offset-white - `:""} - ${a==="secondary"?` - bg-slate-500 text-white - hover:bg-slate-600 - focus:bg-slate-600 focus:ring-slate-500 focus:ring-offset-white - `:""} - - ${s} - `,disabled:e,onClick:i,type:r,children:t})}Xt.propTypes={children:x.node.isRequired,className:x.string,disabled:x.bool,onClick:x.func,type:x.string,variant:x.string};Xt.defaultProps={className:null,disabled:!1,onClick:()=>null,type:"button",variant:"primary"};function Sn(t){let e=[],r=[];return t.map((s,i)=>{const a=s.name.split("/");return i===0?(e=[],e=a):(r=[],a.map((o,h)=>o===e[h]?r.push(o):null))}),r.join("/")}function _n(t){const e=new Intl.Collator("en"),r=[...t].sort((i,a)=>e.compare(i.name.toUpperCase(),a.name.toUpperCase()));if(r.length<2)return r.map(i=>({...i,shortName:i.name}));const s=Sn(r);return r.map(i=>({...i,shortName:i.name.replace(`${s}/`,"")}))}function Ys({authToken:t,filesUrl:e}){return Js({queryKey:["FILE_LIST"],queryFn:async()=>{const r=await fetch(e,{headers:{Authorization:t}});if(!r.ok)throw new Error;return r.json()},select:r=>_n(r.files),meta:{errorMessage:"Unable to load files",id:e}})}const pe={authToken:x.string,basePath:x.string,csrfToken:x.string,filesUrl:x.string,prepareUrl:x.string,publishUrl:x.string},De={date:x.string,id:x.string,is_deleted:x.bool,name:x.string,sha256:x.string,size:x.number,url:x.string,user:x.string};let kn={data:""},Tn=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||kn,Pn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Fn=/\/\*[^]*?\*\/| +/g,gs=/\n+/g,Ge=(t,e)=>{let r="",s="",i="";for(let a in t){let o=t[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":s+=a[1]=="f"?Ge(o,a):a+"{"+Ge(o,a[1]=="k"?"":e)+"}":typeof o=="object"?s+=Ge(o,e?e.replace(/([^,])+/g,h=>a.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,h):h?h+" "+c:c)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ge.p?Ge.p(a,o):a+":"+o+";")}return r+(e&&i?e+"{"+i+"}":i)+s},Ae={},Zs=t=>{if(typeof t=="object"){let e="";for(let r in t)e+=r+Zs(t[r]);return e}return t},jn=(t,e,r,s,i)=>{let a=Zs(t),o=Ae[a]||(Ae[a]=(c=>{let f=0,d=11;for(;f>>0;return"go"+d})(a));if(!Ae[o]){let c=a!==t?t:(f=>{let d,C,v=[{}];for(;d=Pn.exec(f.replace(Fn,""));)d[4]?v.shift():d[3]?(C=d[3].replace(gs," ").trim(),v.unshift(v[0][C]=v[0][C]||{})):v[0][d[1]]=d[2].replace(gs," ").trim();return v[0]})(t);Ae[o]=Ge(i?{["@keyframes "+o]:c}:c,r?"":"."+o)}let h=r&&Ae.g?Ae.g:null;return r&&(Ae.g=Ae[o]),((c,f,d,C)=>{C?f.data=f.data.replace(C,c):f.data.indexOf(c)===-1&&(f.data=d?c+f.data:f.data+c)})(Ae[o],e,s,h),o},In=(t,e,r)=>t.reduce((s,i,a)=>{let o=e[a];if(o&&o.call){let h=o(r),c=h&&h.props&&h.props.className||/^go/.test(h)&&h;o=c?"."+c:h&&typeof h=="object"?h.props?"":Ge(h,""):h===!1?"":h}return s+i+(o??"")},"");function br(t){let e=this||{},r=t.call?t(e.p):t;return jn(r.unshift?r.raw?In(r,[].slice.call(arguments,1),e.p):r.reduce((s,i)=>Object.assign(s,i&&i.call?i(e.p):i),{}):r,Tn(e.target),e.g,e.o,e.k)}let Xs,Ar,Lr;br.bind({g:1});let Qe=br.bind({k:1});function Dn(t,e,r,s){Ge.p=e,Xs=t,Ar=r,Lr=s}function st(t,e){let r=this||{};return function(){let s=arguments;function i(a,o){let h=Object.assign({},a),c=h.className||i.className;r.p=Object.assign({theme:Ar&&Ar()},h),r.o=/ *go\d+/.test(c),h.className=br.apply(r,s)+(c?" "+c:""),e&&(h.ref=o);let f=t;return t[0]&&(f=h.as||t,delete h.as),Lr&&f[0]&&Lr(h),Xs(f,h)}return e?e(i):i}}var Un=t=>typeof t=="function",mr=(t,e)=>Un(t)?t(e):t,Mn=(()=>{let t=0;return()=>(++t).toString()})(),ei=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),Nn=20,or=new Map,An=1e3,ys=t=>{if(or.has(t))return;let e=setTimeout(()=>{or.delete(t),gt({type:4,toastId:t})},An);or.set(t,e)},Ln=t=>{let e=or.get(t);e&&clearTimeout(e)},qr=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,Nn)};case 1:return e.toast.id&&Ln(e.toast.id),{...t,toasts:t.toasts.map(a=>a.id===e.toast.id?{...a,...e.toast}:a)};case 2:let{toast:r}=e;return t.toasts.find(a=>a.id===r.id)?qr(t,{type:1,toast:r}):qr(t,{type:0,toast:r});case 3:let{toastId:s}=e;return s?ys(s):t.toasts.forEach(a=>{ys(a.id)}),{...t,toasts:t.toasts.map(a=>a.id===s||s===void 0?{...a,visible:!1}:a)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(a=>a.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},ur=[],lr={toasts:[],pausedAt:void 0},gt=t=>{lr=qr(lr,t),ur.forEach(e=>{e(lr)})},qn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Bn=(t={})=>{let[e,r]=y.useState(lr);y.useEffect(()=>(ur.push(r),()=>{let i=ur.indexOf(r);i>-1&&ur.splice(i,1)}),[e]);let s=e.toasts.map(i=>{var a,o;return{...t,...t[i.type],...i,duration:i.duration||((a=t[i.type])==null?void 0:a.duration)||(t==null?void 0:t.duration)||qn[i.type],style:{...t.style,...(o=t[i.type])==null?void 0:o.style,...i.style}}});return{...e,toasts:s}},Qn=(t,e="blank",r)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Mn()}),er=t=>(e,r)=>{let s=Qn(e,t,r);return gt({type:2,toast:s}),s.id},ye=(t,e)=>er("blank")(t,e);ye.error=er("error");ye.success=er("success");ye.loading=er("loading");ye.custom=er("custom");ye.dismiss=t=>{gt({type:3,toastId:t})};ye.remove=t=>gt({type:4,toastId:t});ye.promise=(t,e,r)=>{let s=ye.loading(e.loading,{...r,...r==null?void 0:r.loading});return t.then(i=>(ye.success(mr(e.success,i),{id:s,...r,...r==null?void 0:r.success}),i)).catch(i=>{ye.error(mr(e.error,i),{id:s,...r,...r==null?void 0:r.error})}),t};var $n=(t,e)=>{gt({type:1,toast:{id:t,height:e}})},zn=()=>{gt({type:5,time:Date.now()})},Kn=t=>{let{toasts:e,pausedAt:r}=Bn(t);y.useEffect(()=>{if(r)return;let a=Date.now(),o=e.map(h=>{if(h.duration===1/0)return;let c=(h.duration||0)+h.pauseDuration-(a-h.createdAt);if(c<0){h.visible&&ye.dismiss(h.id);return}return setTimeout(()=>ye.dismiss(h.id),c)});return()=>{o.forEach(h=>h&&clearTimeout(h))}},[e,r]);let s=y.useCallback(()=>{r&>({type:6,time:Date.now()})},[r]),i=y.useCallback((a,o)=>{let{reverseOrder:h=!1,gutter:c=8,defaultPosition:f}=o||{},d=e.filter(w=>(w.position||f)===(a.position||f)&&w.height),C=d.findIndex(w=>w.id===a.id),v=d.filter((w,j)=>jw.visible).slice(...h?[v+1]:[0,v]).reduce((w,j)=>w+(j.height||0)+c,0)},[e]);return{toasts:e,handlers:{updateHeight:$n,startPause:zn,endPause:s,calculateOffset:i}}},Wn=Qe` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,Hn=Qe` -from { - transform: scale(0); - opacity: 0; -} -to { - transform: scale(1); - opacity: 1; -}`,Gn=Qe` -from { - transform: scale(0) rotate(90deg); - opacity: 0; -} -to { - transform: scale(1) rotate(90deg); - opacity: 1; -}`,Jn=st("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${t=>t.primary||"#ff4b4b"}; - position: relative; - transform: rotate(45deg); - - animation: ${Wn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - - &:after, - &:before { - content: ''; - animation: ${Hn} 0.15s ease-out forwards; - animation-delay: 150ms; - position: absolute; - border-radius: 3px; - opacity: 0; - background: ${t=>t.secondary||"#fff"}; - bottom: 9px; - left: 4px; - height: 2px; - width: 12px; - } - - &:before { - animation: ${Gn} 0.15s ease-out forwards; - animation-delay: 180ms; - transform: rotate(90deg); - } -`,Vn=Qe` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,Yn=st("div")` - width: 12px; - height: 12px; - box-sizing: border-box; - border: 2px solid; - border-radius: 100%; - border-color: ${t=>t.secondary||"#e0e0e0"}; - border-right-color: ${t=>t.primary||"#616161"}; - animation: ${Vn} 1s linear infinite; -`,Zn=Qe` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,Xn=Qe` -0% { - height: 0; - width: 0; - opacity: 0; -} -40% { - height: 0; - width: 6px; - opacity: 1; -} -100% { - opacity: 1; - height: 10px; -}`,ea=st("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${t=>t.primary||"#61d345"}; - position: relative; - transform: rotate(45deg); - - animation: ${Zn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - &:after { - content: ''; - box-sizing: border-box; - animation: ${Xn} 0.2s ease-out forwards; - opacity: 0; - animation-delay: 200ms; - position: absolute; - border-right: 2px solid; - border-bottom: 2px solid; - border-color: ${t=>t.secondary||"#fff"}; - bottom: 6px; - left: 6px; - height: 10px; - width: 6px; - } -`,ta=st("div")` - position: absolute; -`,ra=st("div")` - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-width: 20px; - min-height: 20px; -`,sa=Qe` -from { - transform: scale(0.6); - opacity: 0.4; -} -to { - transform: scale(1); - opacity: 1; -}`,ia=st("div")` - position: relative; - transform: scale(0.6); - opacity: 0.4; - min-width: 20px; - animation: ${sa} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; -`,na=({toast:t})=>{let{icon:e,type:r,iconTheme:s}=t;return e!==void 0?typeof e=="string"?y.createElement(ia,null,e):e:r==="blank"?null:y.createElement(ra,null,y.createElement(Yn,{...s}),r!=="loading"&&y.createElement(ta,null,r==="error"?y.createElement(Jn,{...s}):y.createElement(ea,{...s})))},aa=t=>` -0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;} -100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,oa=t=>` -0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} -100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;} -`,ua="0%{opacity:0;} 100%{opacity:1;}",la="0%{opacity:1;} 100%{opacity:0;}",ca=st("div")` - display: flex; - align-items: center; - background: #fff; - color: #363636; - line-height: 1.3; - will-change: transform; - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); - max-width: 350px; - pointer-events: auto; - padding: 8px 10px; - border-radius: 8px; -`,ha=st("div")` - display: flex; - justify-content: center; - margin: 4px 10px; - color: inherit; - flex: 1 1 auto; - white-space: pre-line; -`,da=(t,e)=>{let r=t.includes("top")?1:-1,[s,i]=ei()?[ua,la]:[aa(r),oa(r)];return{animation:e?`${Qe(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Qe(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ti=y.memo(({toast:t,position:e,style:r,children:s})=>{let i=t.height?da(t.position||e||"top-center",t.visible):{opacity:0},a=y.createElement(na,{toast:t}),o=y.createElement(ha,{...t.ariaProps},mr(t.message,t));return y.createElement(ca,{className:t.className,style:{...i,...r,...t.style}},typeof s=="function"?s({icon:a,message:o}):y.createElement(y.Fragment,null,a,o))});Dn(y.createElement);var fa=({id:t,className:e,style:r,onHeightUpdate:s,children:i})=>{let a=y.useCallback(o=>{if(o){let h=()=>{let c=o.getBoundingClientRect().height;s(t,c)};h(),new MutationObserver(h).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[t,s]);return y.createElement("div",{ref:a,className:e,style:r},i)},pa=(t,e)=>{let r=t.includes("top"),s=r?{top:0}:{bottom:0},i=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:ei()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(r?1:-1)}px)`,...s,...i}},ma=br` - z-index: 9999; - > * { - pointer-events: auto; - } -`,ir=16,ga=({reverseOrder:t,position:e="top-center",toastOptions:r,gutter:s,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:h,handlers:c}=Kn(r);return y.createElement("div",{style:{position:"fixed",zIndex:9999,top:ir,left:ir,right:ir,bottom:ir,pointerEvents:"none",...a},className:o,onMouseEnter:c.startPause,onMouseLeave:c.endPause},h.map(f=>{let d=f.position||e,C=c.calculateOffset(f,{reverseOrder:t,gutter:s,defaultPosition:e}),v=pa(d,C);return y.createElement(fa,{id:f.id,key:f.id,onHeightUpdate:c.updateHeight,className:f.visible?ma:"",style:v},f.type==="custom"?mr(f.message,f):i?i(f):y.createElement(ti,{toast:f,position:d}))}))},Yr=ye;function ri({toastId:t}){Yr.dismiss(t)}function Zr({toastId:t,message:e,...r}){console.error(e,{...r}),Yr.error(e,{id:t})}function si({authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s}){const{data:i}=Ys({authToken:t,filesUrl:r}),a="PrepareButton",o=Vs({mutationFn:async c=>{const f=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":e},body:JSON.stringify({file_ids:c})});if(!f.ok){const d=await f.json();throw new Error(d.detail)}return f.json()},onMutate:()=>{ri({toastId:a})},onSuccess:c=>{window.location.href=c.url},onError:c=>{Zr({message:`${c}`,toastId:a,prepareUrl:s,url:document.location.href})}});if(!(i!=null&&i.length))return null;const h=i.map(c=>c.id);return p.jsx(Xt,{disabled:o.isPending,onClick:c=>(c.preventDefault(),o.mutate(h)),type:"button",variant:o.isPending?"secondary":"primary",children:o.isPending?"Creating…":"Create a draft publication"})}si.propTypes={authToken:pe.authToken.isRequired,csrfToken:pe.csrfToken.isRequired,filesUrl:pe.filesUrl.isRequired,prepareUrl:pe.prepareUrl.isRequired};function ii({csrfToken:t,publishUrl:e}){const r="PublishButton",s=Vs({mutationFn:async()=>{const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":t},body:""});if(!i.ok){const a=await i.json();throw new Error(a.detail)}return i.text()},onMutate:()=>{ri({toastId:r})},onSuccess:()=>{window.location.reload()},onError:i=>{Zr({message:`${i}`,toastId:r,publishUrl:e,url:document.location.href})}});return p.jsx(Xt,{disabled:s.isPending,onClick:i=>(i.preventDefault(),s.mutate()),type:"button",variant:s.isPending?"secondary":"primary",children:s.isPending?"Creating…":"Create a public published output"})}ii.propTypes={csrfToken:pe.csrfToken.isRequired,publishUrl:pe.publishUrl.isRequired};function vt({className:t,container:e,header:r,innerClassName:s,children:i}){return p.jsxs("div",{className:`bg-white shadow ${t}`,children:[r?p.jsx("div",{className:"flex flex-wrap gap-2 items-center justify-between px-4 py-2 sm:px-6 sm:py-4 sm:flex-nowrap bg-slate-50",children:r}):null,p.jsx("div",{className:` - ${s} - ${e?"px-4 py-3 md:px-6 md:py-5":""} - ${r&&e?"border-t border-slate-200":""} - `,children:i})]})}vt.propTypes={children:x.element.isRequired,className:x.string,container:x.bool,header:x.element,innerClassName:x.string};vt.defaultProps={className:"",container:!1,header:null,innerClassName:""};const ya=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],va=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ba=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],wa=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vs=(t,e,r)=>{let s=t;return typeof e=="string"||Array.isArray(e)?s=t.toLocaleString(e,r):(e===!0||r!==void 0)&&(s=t.toLocaleString(void 0,r)),s};function xa(t,e){if(!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);e={bits:!1,binary:!1,space:!0,...e};const r=e.bits?e.binary?wa:ba:e.binary?va:ya,s=e.space?" ":"";if(e.signed&&t===0)return` 0${s}${r[0]}`;const i=t<0,a=i?"-":e.signed?"+":"";i&&(t=-t);let o;if(e.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:e.maximumFractionDigits,...o}),t<1){const d=vs(t,e.locale,o);return a+d+s+r[0]}const h=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),r.length-1);t/=(e.binary?1024:1e3)**h,o||(t=t.toPrecision(3));const c=vs(Number(t),e.locale,o),f=r[h];return a+c+s+f}function ni(t){return t?xa(t,{locale:"en-gb"}):"unknown"}function Xr({autocapitalize:t,autocomplete:e,autocorrect:r,className:s,hideLabel:i,hintText:a,id:o,inputClassName:h,inputmode:c,label:f,labelClass:d,onChange:C,placeholder:v,required:w,type:j,value:P}){return p.jsxs("div",{className:s,children:[p.jsxs("label",{className:`inline-block font-semibold text-lg text-slate-900 cursor-pointer ${d} ${i?"sr-only":"null"}`,htmlFor:o,children:[f,w?p.jsx("span",{"aria-hidden":"true",className:"text-bn-ribbon-700 font-bold",children:"*"}):null]}),a?p.jsx("p",{className:"mb-2 text-sm text-gray-700",children:{hintText:a}}):null,p.jsx("div",{className:"relative",children:p.jsx("input",{autoCapitalize:t,autoComplete:e,autoCorrect:r,className:` - block w-full border-slate-300 text-slate-900 shadow-sm - focus:border-oxford-500 focus:ring-oxford-500 - sm:text-sm - [&:not(:placeholder-shown):not(:focus)]:invalid:border-bn-ribbon-600 [&:not(:placeholder-shown):not(:focus)]:invalid:ring-bn-ribbon-600 [&:not(:placeholder-shown):not(:focus)]:invalid:ring-1 - ${h} - ${i?"":"mt-1"} - `,id:o,inputMode:c,onChange:C,placeholder:v,required:w,type:j,value:P})})]})}Xr.propTypes={autocapitalize:x.string,autocomplete:x.oneOf(["none","off","characters","words","sentences"]),autocorrect:x.oneOf(["on","off"]),className:x.string,hideLabel:x.bool,hintText:x.string,id:x.string,inputClassName:x.string,inputmode:x.string,label:x.string,labelClass:x.string,onChange:x.func,placeholder:x.string,required:x.bool,type:x.string,value:x.string};Xr.defaultProps={autocapitalize:null,autocomplete:null,autocorrect:null,className:null,hideLabel:!1,hintText:null,id:"inputID",inputClassName:null,inputmode:null,label:null,labelClass:null,onChange:()=>null,placeholder:null,required:null,type:"text",value:null};function ai({files:t,listRef:e,setFiles:r}){const[s,i]=y.useState("");y.useEffect(()=>{if(s){const o=setTimeout(()=>r(t.filter(h=>h.name.toLowerCase().includes(s.toLowerCase()))),350);return()=>clearTimeout(o)}return r(t)},[t,s,r]);function a(o){var h;(h=e==null?void 0:e.current)==null||h.scrollToItem(0),i(o.target.value)}return p.jsx(Xr,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",className:"mb-1",hideLabel:!0,id:"filterFiles",label:"Find a file…",onChange:o=>a(o),placeholder:"Find a file…",type:"search",value:s})}ai.propTypes={files:x.arrayOf(x.shape()).isRequired,listRef:x.oneOfType([x.func,x.shape({current:x.instanceOf(Element)})]).isRequired,setFiles:x.func.isRequired};function oi({authToken:t,filesUrl:e,listVisible:r,setSelectedFile:s}){const[i,a]=y.useState([]),[o,h]=y.useState(null),{data:c,isError:f,isLoading:d}=Ys({authToken:t,filesUrl:e}),C=Ni(),v=Is(),w=y.createRef();if(y.useEffect(()=>{const P=i.findIndex(g=>`/${g.name}`===v.pathname);i[P]&&(h(P),s(i[P]))},[c,i,v,s]),d)return p.jsx(vt,{container:!0,children:p.jsx("p",{children:"Loading…"})});if(f)return p.jsx(vt,{container:!0,header:p.jsx("h2",{className:"font-semibold text-lg",children:"Error"}),children:p.jsx("p",{children:"Unable to load files"})});const j=({e:P,item:g})=>{var N;P.preventDefault();const O=`/${g.name}`;return O===v.pathname||O===((N=v==null?void 0:v.location)==null?void 0:N.pathname)?null:(C(O),s(g))};return p.jsxs("div",{className:r?"block md:sticky md:top-2":"hidden",children:[p.jsx(ai,{files:c,listRef:w,setFiles:a}),p.jsx(vt,{className:"py-2 md:max-h-screen md:h-full overflow-x-auto md:overflow-y-auto",container:!1,children:p.jsx("ul",{className:"text-sm text-oxford-600 flex flex-col gap-y-1 items-start",children:i.map((P,g)=>p.jsx("li",{className:`leading-tight px-4 ${o===g?"font-bold text-oxford-800":""}`,children:o===g?p.jsx("span",{children:P.shortName}):p.jsx("a",{disabled:`/${P.name}`===v.pathname,href:P.url,onClick:O=>j({e:O,item:P}),title:`File size: ${ni(P.size)}`,children:P.shortName})},P.name))})})]})}oi.propTypes={authToken:pe.authToken.isRequired,filesUrl:pe.filesUrl.isRequired,listVisible:x.bool.isRequired,setSelectedFile:x.func.isRequired};function tr({className:t,children:e,href:r,newTab:s}){return p.jsx("a",{className:` - font-semibold text-oxford-600 underline underline-offset-2 decoration-oxford-300 transition-colors duration-200 - hover:decoration-transparent hover:text-oxford - focus:decoration-transparent focus:text-oxford focus:bg-bn-sun-300 - ${t} - `,href:r,rel:s?"noreferrer noopener":void 0,target:s?"filePreview":void 0,children:e})}tr.propTypes={children:x.oneOfType([x.element,x.string]),className:x.string,href:x.string.isRequired,newTab:x.bool};tr.defaultProps={children:null,className:null,newTab:!1};function ui({fileDate:t,fileName:e,fileSize:r,fileUrl:s}){const i=()=>{if(Date.parse(t)){const a=new Date(t);return{absolute:a.toISOString(),formatted:new Intl.DateTimeFormat("en-GB",{timeZone:"UTC",dateStyle:"short",timeStyle:"short"}).format(a)}}return!1};return p.jsxs("ul",{className:"flex flex-row gap-2 items-center w-full flex-wrap",children:[p.jsx("li",{className:"mr-auto pr-4",children:p.jsx(tr,{className:` - font-semibold text-oxford-600 underline underline-offset-2 decoration-oxford-300 transition-colors duration-200 - hover:decoration-transparent hover:text-oxford - focus:decoration-transparent focus:text-oxford focus:bg-bn-sun-300 - after:content-['↗'] after:text-sm after:ml-1 after:absolute after:mt-0.5 - `,href:s,newTab:!0,children:e})}),i()&&p.jsxs("li",{className:"font-mono text-sm text-right whitespace-nowrap",children:[p.jsx("div",{className:"sr-only",children:"Last modified at: "}),p.jsx("time",{className:"",dateTime:i().absolute,title:i().absolute,children:i().formatted})]}),p.jsx("li",{className:"font-mono text-sm text-right whitespace-nowrap ml-4",children:ni(r)})]})}ui.propTypes={fileDate:De.date.isRequired,fileName:De.name.isRequired,fileSize:De.size.isRequired,fileUrl:De.url.isRequired};function Ca(){return p.jsx(ga,{position:"top-right",toastOptions:{duration:1/0,style:{whiteSpace:"pre-line",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},error:{style:{color:"#721c24",backgroundColor:"#f8d7da"}}},children:t=>p.jsx(ti,{id:"ToastBar",toast:t,children:({icon:e,message:r})=>p.jsxs(p.Fragment,{children:[e,r,t.type!=="loading"&&p.jsxs("button",{className:"border border-current rounded p-1 hover:bg-current hover:fill-white",onClick:()=>Yr.dismiss(t.id),type:"button",children:[p.jsx("span",{className:"sr-only",children:"Dismiss"}),p.jsx("svg",{className:"h-4 w-4",fill:"currentFill",viewBox:"0 0 20 20",width:"12",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{clipRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",fillRule:"evenodd"})})]})]})})})}const Br=t=>t.toLowerCase().match(/.*\.(?:csv)$/i),li=t=>t.toLowerCase().match(/.*\.(?:html)$/i),Qr=t=>t.toLowerCase().match(/.*\.(?:gif|jpg|jpeg|png|svg)$/i),ci=t=>t.toLowerCase().match(/.*\.(?:txt)$/i),hi=t=>t.toLowerCase().match(/.*\.(?:json)$/i),bs=t=>Br(t)||li(t)||Qr(t)||ci(t)||hi(t),Rr='"File not yet uploaded"';var Ea=Ra;function Ra(t,e,r){var s=null,i=null,a=function(){s&&(clearTimeout(s),i=null,s=null)},o=function(){var c=i;a(),c&&c()},h=function(){if(!e)return t.apply(this,arguments);var c=this,f=arguments,d=r&&!s;if(a(),i=function(){t.apply(c,f)},s=setTimeout(function(){if(s=null,!d){var C=i;return i=null,C()}},e),d)return i()};return h.cancel=a,h.flush=o,h}function Oa(t=100){const[e,r]=y.useState({width:void 0,height:void 0});return y.useEffect(()=>{function s(){r({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",Ea(s,t)),s(),()=>window.removeEventListener("resize",s)},[t]),e}function di({data:t,fileName:e,fileUrl:r}){const s=Oa(),[i,a]=y.useState(0),o=encodeURIComponent(r).replace(/\W/g,"");return y.useLayoutEffect(()=>{document.getElementById(o)&&(window.innerWidth>991?a(Math.round(window.innerHeight-document.getElementById(o).getBoundingClientRect().top-17-40)):a(1e3))},[s,o]),p.jsx("iframe",{className:"-mx-4 -my-3 w-[calc(100%+2rem)] md:-mx-6 md:-my-5 md:w-[calc(100%+3rem)]",frameBorder:"0",height:i,id:o,src:r,srcDoc:t,title:e,width:"100%"})}di.propTypes={data:x.string.isRequired,fileName:De.name.isRequired,fileUrl:De.url.isRequired};function fi({data:t}){return p.jsx("img",{alt:"",className:"h-auto max-w-full",src:t})}fi.propTypes={data:x.string.isRequired};function es({error:t,fileUrl:e}){return p.jsxs(p.Fragment,{children:[t?p.jsx("p",{children:"Error: Unable to load file"}):p.jsx("p",{children:"We cannot show a preview of this file."}),p.jsx("p",{className:"mt-3",children:p.jsx(tr,{href:e,newTab:!0,children:"Open file in a new tab ↗"})})]})}es.propTypes={error:x.shape({message:x.string}),fileUrl:De.url.isRequired};es.defaultProps={error:null};var pi={exports:{}};/* @license -Papa Parse -v5.4.1 -https://github.com/mholt/PapaParse -License: MIT -*/(function(t,e){(function(r,s){t.exports=s()})(Ci,function r(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},i=!s.document&&!!s.postMessage,a=s.IS_PAPA_WORKER||!1,o={},h=0,c={parse:function(u,l){var m=(l=l||{}).dynamicTyping||!1;if(I(m)&&(l.dynamicTypingFunction=m,m={}),l.dynamicTyping=m,l.transform=!!I(l.transform)&&l.transform,l.worker&&c.WORKERS_SUPPORTED){var R=function(){if(!c.WORKERS_SUPPORTED)return!1;var D=(oe=s.URL||s.webkitURL||null,J=r.toString(),c.BLOB_URL||(c.BLOB_URL=oe.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",J,")();"],{type:"text/javascript"})))),M=new s.Worker(D),oe,J;return M.onmessage=N,M.id=h++,o[M.id]=M}();return R.userStep=l.step,R.userChunk=l.chunk,R.userComplete=l.complete,R.userError=l.error,l.step=I(l.step),l.chunk=I(l.chunk),l.complete=I(l.complete),l.error=I(l.error),delete l.worker,void R.postMessage({input:u,config:l,workerId:R.id})}var _=null;return c.NODE_STREAM_INPUT,typeof u=="string"?(u=function(D){return D.charCodeAt(0)===65279?D.slice(1):D}(u),_=l.download?new C(l):new w(l)):u.readable===!0&&I(u.read)&&I(u.on)?_=new j(l):(s.File&&u instanceof File||u instanceof Object)&&(_=new v(l)),_.stream(u)},unparse:function(u,l){var m=!1,R=!0,_=",",D=`\r -`,M='"',oe=M+M,J=!1,k=null,Z=!1;(function(){if(typeof l=="object"){if(typeof l.delimiter!="string"||c.BAD_DELIMITERS.filter(function(S){return l.delimiter.indexOf(S)!==-1}).length||(_=l.delimiter),(typeof l.quotes=="boolean"||typeof l.quotes=="function"||Array.isArray(l.quotes))&&(m=l.quotes),typeof l.skipEmptyLines!="boolean"&&typeof l.skipEmptyLines!="string"||(J=l.skipEmptyLines),typeof l.newline=="string"&&(D=l.newline),typeof l.quoteChar=="string"&&(M=l.quoteChar),typeof l.header=="boolean"&&(R=l.header),Array.isArray(l.columns)){if(l.columns.length===0)throw new Error("Option columns is empty");k=l.columns}l.escapeChar!==void 0&&(oe=l.escapeChar+M),(typeof l.escapeFormulae=="boolean"||l.escapeFormulae instanceof RegExp)&&(Z=l.escapeFormulae instanceof RegExp?l.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var F=new RegExp(g(M),"g");if(typeof u=="string"&&(u=JSON.parse(u)),Array.isArray(u)){if(!u.length||Array.isArray(u[0]))return Se(null,u,J);if(typeof u[0]=="object")return Se(k||Object.keys(u[0]),u,J)}else if(typeof u=="object")return typeof u.data=="string"&&(u.data=JSON.parse(u.data)),Array.isArray(u.data)&&(u.fields||(u.fields=u.meta&&u.meta.fields||k),u.fields||(u.fields=Array.isArray(u.data[0])?u.fields:typeof u.data[0]=="object"?Object.keys(u.data[0]):[]),Array.isArray(u.data[0])||typeof u.data[0]=="object"||(u.data=[u.data])),Se(u.fields||[],u.data||[],J);throw new Error("Unable to serialize unrecognized input");function Se(S,K,ce){var V="";typeof S=="string"&&(S=JSON.parse(S)),typeof K=="string"&&(K=JSON.parse(K));var ue=Array.isArray(S)&&0=this._config.preview;if(a)s.postMessage({results:D,workerId:c.WORKER_ID,finished:oe});else if(I(this._config.chunk)&&!m){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!oe||!I(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),oe||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(l){I(this._config.error)?this._config.error(l):a&&this._config.error&&s.postMessage({workerId:c.WORKER_ID,error:l,finished:!1})}}function C(u){var l;(u=u||{}).chunkSize||(u.chunkSize=c.RemoteChunkSize),d.call(this,u),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(m){this._input=m,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(l=new XMLHttpRequest,this._config.withCredentials&&(l.withCredentials=this._config.withCredentials),i||(l.onload=G(this._chunkLoaded,this),l.onerror=G(this._chunkError,this)),l.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var m=this._config.downloadRequestHeaders;for(var R in m)l.setRequestHeader(R,m[R])}if(this._config.chunkSize){var _=this._start+this._config.chunkSize-1;l.setRequestHeader("Range","bytes="+this._start+"-"+_)}try{l.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}i&&l.status===0&&this._chunkError()}},this._chunkLoaded=function(){l.readyState===4&&(l.status<200||400<=l.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:l.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(m){var R=m.getResponseHeader("Content-Range");return R===null?-1:parseInt(R.substring(R.lastIndexOf("/")+1))}(l),this.parseChunk(l.responseText)))},this._chunkError=function(m){var R=l.statusText||m;this._sendError(new Error(R))}}function v(u){var l,m;(u=u||{}).chunkSize||(u.chunkSize=c.LocalChunkSize),d.call(this,u);var R=typeof FileReader<"u";this.stream=function(_){this._input=_,m=_.slice||_.webkitSlice||_.mozSlice,R?((l=new FileReader).onload=G(this._chunkLoaded,this),l.onerror=G(this._chunkError,this)):l=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(_.target.result)},this._chunkError=function(){this._sendError(l.error)}}function w(u){var l;d.call(this,u=u||{}),this.stream=function(m){return l=m,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var m,R=this._config.chunkSize;return R?(m=l.substring(0,R),l=l.substring(R)):(m=l,l=""),this._finished=!l,this.parseChunk(m)}}}function j(u){d.call(this,u=u||{});var l=[],m=!0,R=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(_){this._input=_,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){R&&l.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),l.length?this.parseChunk(l.shift()):m=!0},this._streamData=G(function(_){try{l.push(typeof _=="string"?_:_.toString(this._config.encoding)),m&&(m=!1,this._checkIsFinished(),this.parseChunk(l.shift()))}catch(D){this._streamError(D)}},this),this._streamError=G(function(_){this._streamCleanUp(),this._sendError(_)},this),this._streamEnd=G(function(){this._streamCleanUp(),R=!0,this._streamData("")},this),this._streamCleanUp=G(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function P(u){var l,m,R,_=Math.pow(2,53),D=-_,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,oe=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,J=this,k=0,Z=0,F=!1,Se=!1,le=[],S={data:[],errors:[],meta:{}};if(I(u.step)){var K=u.step;u.step=function(T){if(S=T,ue())V();else{if(V(),S.data.length===0)return;k+=T.data.length,u.preview&&k>u.preview?m.abort():(S.data=S.data[0],K(S,J))}}}function ce(T){return u.skipEmptyLines==="greedy"?T.join("").trim()==="":T.length===1&&T[0].length===0}function V(){return S&&R&&(ne("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),R=!1),u.skipEmptyLines&&(S.data=S.data.filter(function(T){return!ce(T)})),ue()&&function(){if(!S)return;function T(W,te){I(u.transformHeader)&&(W=u.transformHeader(W,te)),le.push(W)}if(Array.isArray(S.data[0])){for(var L=0;ue()&&L=le.length?"__parsed_extra":le[B]),u.transform&&(Q=u.transform(Q,X)),Q=ie(X,Q),X==="__parsed_extra"?(he[X]=he[X]||[],he[X].push(Q)):he[X]=Q}return u.header&&(B>le.length?ne("FieldMismatch","TooManyFields","Too many fields: expected "+le.length+" fields but parsed "+B,Z+te):B=ve.length/2?`\r -`:"\r"}(T,te)),R=!1,u.delimiter)I(u.delimiter)&&(u.delimiter=u.delimiter(T),S.meta.delimiter=u.delimiter);else{var B=function(X,Q,_e,ve,Te){var Me,be,H,ee;Te=Te||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var it=0;it=M)return we(!0)}else for(q=k,k++;;){if((q=F.indexOf(l,q+1))===-1)return le||ne.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:k}),Ke();if(q===S-1)return Ke(F.substring(k,q).replace(it,l));if(l!==J||F[q+1]!==J){if(l===J||q===0||F[q-1]!==J){H!==-1&&H=M)return we(!0);break}ne.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:k}),q++}}else q++}return Ke();function nt(xe){ie.push(xe),L=k}function ze(xe){var rs=0;if(xe!==-1){var wr=F.substring(q+1,xe);wr&&wr.trim()===""&&(rs=wr.length)}return rs}function Ke(xe){return le||(xe===void 0&&(xe=F.substring(k)),T.push(xe),k=S,nt(T),ue&&rr()),we()}function We(xe){k=xe,nt(T),T=[],ee=F.indexOf(R,k)}function we(xe){return{data:ie,errors:ne,meta:{delimiter:m,linebreak:R,aborted:Z,truncated:!!xe,cursor:L+(Se||0)}}}function rr(){D(we()),ie=[],ne=[]}},this.abort=function(){Z=!0},this.getCharIndex=function(){return k}}function N(u){var l=u.data,m=o[l.workerId],R=!1;if(l.error)m.userError(l.error,l.file);else if(l.results&&l.results.data){var _={abort:function(){R=!0,A(l.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:z,resume:z};if(I(m.userStep)){for(var D=0;Dp.jsx(mi,{cell:e},r))})}function gi({data:t}){const{readString:e}=Pa(),r=e(t,{chunk:!0,complete:s=>s}).data;return r.length>=1e3?p.jsxs(p.Fragment,{children:[p.jsx("p",{className:"font-bold mb-2",role:"alert",children:"This is a preview of the first 1000 rows"}),p.jsx("div",{className:"flow-root",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsx("div",{className:"inline-block min-w-full align-middle",children:p.jsx("table",{className:"min-w-full divide-y divide-gray-300",children:p.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:r.slice(0,1e3).map((s,i)=>p.jsx($r,{row:s},i))})})})})})]}):p.jsx("div",{className:"flow-root",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsx("div",{className:"inline-block min-w-full align-middle",children:p.jsx("table",{className:"min-w-full divide-y divide-gray-300",children:p.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:r.map((s,i)=>p.jsx($r,{row:s},i))})})})})})}mi.propTypes={cell:x.string.isRequired};$r.propTypes={row:x.arrayOf(x.string).isRequired};gi.propTypes={data:x.string.isRequired};function zr({data:t}){return p.jsx("pre",{className:"whitespace-break-spaces break-words",children:t})}zr.propTypes={data:x.string.isRequired};function yi({authToken:t,fileName:e,fileSize:r,fileUrl:s,uuid:i}){const{data:a,error:o,isLoading:h,isError:c}=Js({queryKey:["FILE",s],queryFn:async()=>{if(!bs(e)||r>2e7||Br(e)&&r>5e6)return!1;const f=`${s}?${i}`;let d=await fetch(f,{headers:{Authorization:t}});if(!d.ok)throw new Error;if(d.headers.has("Location")&&d.headers.has("Authorization")&&(d=await fetch(d.headers.get("Location"),{headers:{Authorization:d.headers.get("Authorization")}}),!d.ok))throw new Error;const C=await d.clone().text();if(C===Rr)return Rr;if(Qr(e)){const v=await d.blob();return URL.createObjectURL(v)}return C},meta:{errorMessage:`${e} - Unable to load file`,id:s}});return h?p.jsx("span",{children:"Loading..."}):a===Rr?p.jsxs(p.Fragment,{children:[p.jsx("p",{children:"This file has not been uploaded yet. This is likely due to do an error that occurred during release."}),p.jsx("p",{className:"mt-3",children:p.jsx(tr,{href:"https://docs.opensafely.org/how-to-get-help/#slack",newTab:!0,children:"Contact tech support in Slack for more information."})})]}):c||!a||!bs(e)?p.jsx(es,{error:o,fileUrl:s}):p.jsxs(p.Fragment,{children:[Br(e)?p.jsx(gi,{data:a}):null,li(e)&&p.jsx(di,{data:a,fileName:e,fileUrl:s}),Qr(e)?p.jsx(fi,{data:a}):null,ci(e)?p.jsx(zr,{data:a}):null,hi(e)?p.jsx(zr,{data:a}):null]})}yi.propTypes={authToken:pe.authToken.isRequired,fileName:De.name.isRequired,fileSize:De.size.isRequired,fileUrl:De.url.isRequired,uuid:x.number.isRequired};const Fa=new on({defaultOptions:{queries:{refetchOnWindowFocus:!1}},queryCache:new Qs({onError:(t,e)=>{e.meta.errorMessage&&Zr({message:e.meta.errorMessage,toastId:e.meta.id,filesUrl:e.meta.id,url:document.location.href})}})});function ts({authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s,publishUrl:i}){const a=Date.now(),[o,h]=y.useState(!0),[c,f]=y.useState();return p.jsxs(dn,{client:Fa,children:[p.jsxs("div",{className:"py-6",children:[(s||i)&&p.jsxs("div",{className:"mb-3 -mt-3 px-1 md:px-6",children:[s&&p.jsx(si,{authToken:t,csrfToken:e,filesUrl:r,prepareUrl:s}),i&&p.jsx(ii,{csrfToken:e,publishUrl:i})]}),p.jsxs("div",{className:"grid gap-6 grid-cols-1 px-1 md:grid-cols-3 md:px-6 lg:grid-cols-4",children:[p.jsxs("div",{className:"flex flex-col gap-y-1 md:col-span-1",children:[p.jsxs(Xt,{className:"block md:hidden mb-3",onClick:()=>h(!o),type:"button",variant:"secondary",children:[o?"Hide":"Show"," file list"]}),p.jsx(oi,{authToken:t,filesUrl:r,listVisible:o,setListVisible:h,setSelectedFile:f})]}),p.jsx("div",{className:"md:col-span-2 lg:col-span-3",children:c&&p.jsx(vt,{container:!0,header:p.jsx(ui,{fileDate:c.date,fileName:c.shortName,fileSize:c.size,fileUrl:c.url}),children:p.jsx(yi,{authToken:t,fileName:c.shortName,fileSize:c.size,fileUrl:c.url,uuid:a})})})]})]}),p.jsx(Ca,{}),p.jsx(On,{initialIsOpen:!1})]})}ts.propTypes={authToken:pe.authToken.isRequired,csrfToken:pe.csrfToken.isRequired,filesUrl:pe.filesUrl.isRequired,prepareUrl:pe.prepareUrl,publishUrl:pe.publishUrl};ts.defaultProps={prepareUrl:null,publishUrl:null};bi({dsn:"",tracesSampleRate:1});const cr=document.getElementById("outputsSPA"),ja=wi(cr);document.getElementById("content")&&document.getElementById("content").remove();ja.render(p.jsx(xi.StrictMode,{children:p.jsx(Ki,{basename:cr.dataset.basePath,children:p.jsx(ts,{...cr.dataset,element:cr})})})); diff --git a/assets/dist/assets/preload-helper-H-c3VWY_.js b/assets/dist/assets/preload-helper-DEPslLRF.js similarity index 100% rename from assets/dist/assets/preload-helper-H-c3VWY_.js rename to assets/dist/assets/preload-helper-DEPslLRF.js diff --git a/assets/dist/assets/public-sans-latin-400-normal--BfcnxYs.woff2 b/assets/dist/assets/public-sans-latin-400-normal-D4F9yfFi.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-400-normal--BfcnxYs.woff2 rename to assets/dist/assets/public-sans-latin-400-normal-D4F9yfFi.woff2 diff --git a/assets/dist/assets/public-sans-latin-400-normal--L4Buklq.woff b/assets/dist/assets/public-sans-latin-400-normal-D4vgG6SW.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-400-normal--L4Buklq.woff rename to assets/dist/assets/public-sans-latin-400-normal-D4vgG6SW.woff diff --git a/assets/dist/assets/public-sans-latin-500-normal-oWXARJya.woff2 b/assets/dist/assets/public-sans-latin-500-normal-ChZcBEnJ.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-500-normal-oWXARJya.woff2 rename to assets/dist/assets/public-sans-latin-500-normal-ChZcBEnJ.woff2 diff --git a/assets/dist/assets/public-sans-latin-500-normal-wkKMPqwN.woff b/assets/dist/assets/public-sans-latin-500-normal-DCQow-rA.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-500-normal-wkKMPqwN.woff rename to assets/dist/assets/public-sans-latin-500-normal-DCQow-rA.woff diff --git a/assets/dist/assets/public-sans-latin-600-normal-V9AcMVZe.woff b/assets/dist/assets/public-sans-latin-600-normal-BX0BwxVl.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-600-normal-V9AcMVZe.woff rename to assets/dist/assets/public-sans-latin-600-normal-BX0BwxVl.woff diff --git a/assets/dist/assets/public-sans-latin-600-normal-pOk8n0SH.woff2 b/assets/dist/assets/public-sans-latin-600-normal-Ck6TyfRI.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-600-normal-pOk8n0SH.woff2 rename to assets/dist/assets/public-sans-latin-600-normal-Ck6TyfRI.woff2 diff --git a/assets/dist/assets/public-sans-latin-700-normal-ho0YVvnU.woff2 b/assets/dist/assets/public-sans-latin-700-normal-CGjRhW-d.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-700-normal-ho0YVvnU.woff2 rename to assets/dist/assets/public-sans-latin-700-normal-CGjRhW-d.woff2 diff --git a/assets/dist/assets/public-sans-latin-700-normal-xW7PhEsr.woff b/assets/dist/assets/public-sans-latin-700-normal-DFbs-ESy.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-700-normal-xW7PhEsr.woff rename to assets/dist/assets/public-sans-latin-700-normal-DFbs-ESy.woff diff --git a/assets/dist/assets/public-sans-latin-ext-400-normal-cCs-QHh8.woff b/assets/dist/assets/public-sans-latin-ext-400-normal-BwKz5AeH.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-400-normal-cCs-QHh8.woff rename to assets/dist/assets/public-sans-latin-ext-400-normal-BwKz5AeH.woff diff --git a/assets/dist/assets/public-sans-latin-ext-400-normal-C-WUMmV_.woff2 b/assets/dist/assets/public-sans-latin-ext-400-normal-L5ZQyZX_.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-400-normal-C-WUMmV_.woff2 rename to assets/dist/assets/public-sans-latin-ext-400-normal-L5ZQyZX_.woff2 diff --git a/assets/dist/assets/public-sans-latin-ext-500-normal-wt_mAGtF.woff b/assets/dist/assets/public-sans-latin-ext-500-normal-DC3-YAa0.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-500-normal-wt_mAGtF.woff rename to assets/dist/assets/public-sans-latin-ext-500-normal-DC3-YAa0.woff diff --git a/assets/dist/assets/public-sans-latin-ext-500-normal-z_Voae12.woff2 b/assets/dist/assets/public-sans-latin-ext-500-normal-DP9Whp7X.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-500-normal-z_Voae12.woff2 rename to assets/dist/assets/public-sans-latin-ext-500-normal-DP9Whp7X.woff2 diff --git a/assets/dist/assets/public-sans-latin-ext-600-normal-TqkwLzA0.woff2 b/assets/dist/assets/public-sans-latin-ext-600-normal-BOqTAvMD.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-600-normal-TqkwLzA0.woff2 rename to assets/dist/assets/public-sans-latin-ext-600-normal-BOqTAvMD.woff2 diff --git a/assets/dist/assets/public-sans-latin-ext-600-normal-FgWRuwOZ.woff b/assets/dist/assets/public-sans-latin-ext-600-normal-WBZG7A5n.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-600-normal-FgWRuwOZ.woff rename to assets/dist/assets/public-sans-latin-ext-600-normal-WBZG7A5n.woff diff --git a/assets/dist/assets/public-sans-latin-ext-700-normal-T42oAd7l.woff b/assets/dist/assets/public-sans-latin-ext-700-normal-BPjagB3u.woff similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-700-normal-T42oAd7l.woff rename to assets/dist/assets/public-sans-latin-ext-700-normal-BPjagB3u.woff diff --git a/assets/dist/assets/public-sans-latin-ext-700-normal-0HhJR1gK.woff2 b/assets/dist/assets/public-sans-latin-ext-700-normal-DQeElHWA.woff2 similarity index 100% rename from assets/dist/assets/public-sans-latin-ext-700-normal-0HhJR1gK.woff2 rename to assets/dist/assets/public-sans-latin-ext-700-normal-DQeElHWA.woff2 diff --git a/assets/dist/assets/public-sans-vietnamese-400-normal-cBFFxxGO.woff b/assets/dist/assets/public-sans-vietnamese-400-normal-BwEUXHEY.woff similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-400-normal-cBFFxxGO.woff rename to assets/dist/assets/public-sans-vietnamese-400-normal-BwEUXHEY.woff diff --git a/assets/dist/assets/public-sans-vietnamese-400-normal-H8whGGcJ.woff2 b/assets/dist/assets/public-sans-vietnamese-400-normal-fzCEYZwl.woff2 similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-400-normal-H8whGGcJ.woff2 rename to assets/dist/assets/public-sans-vietnamese-400-normal-fzCEYZwl.woff2 diff --git a/assets/dist/assets/public-sans-vietnamese-500-normal-SjVlx-ww.woff b/assets/dist/assets/public-sans-vietnamese-500-normal-BKNWXH7D.woff similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-500-normal-SjVlx-ww.woff rename to assets/dist/assets/public-sans-vietnamese-500-normal-BKNWXH7D.woff diff --git a/assets/dist/assets/public-sans-vietnamese-500-normal-LD6X5P8g.woff2 b/assets/dist/assets/public-sans-vietnamese-500-normal-sPpfk_yB.woff2 similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-500-normal-LD6X5P8g.woff2 rename to assets/dist/assets/public-sans-vietnamese-500-normal-sPpfk_yB.woff2 diff --git a/assets/dist/assets/public-sans-vietnamese-600-normal-aFadiEZb.woff2 b/assets/dist/assets/public-sans-vietnamese-600-normal-BoVp2IRl.woff2 similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-600-normal-aFadiEZb.woff2 rename to assets/dist/assets/public-sans-vietnamese-600-normal-BoVp2IRl.woff2 diff --git a/assets/dist/assets/public-sans-vietnamese-600-normal-gi41Qlme.woff b/assets/dist/assets/public-sans-vietnamese-600-normal-CCLjVCWZ.woff similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-600-normal-gi41Qlme.woff rename to assets/dist/assets/public-sans-vietnamese-600-normal-CCLjVCWZ.woff diff --git a/assets/dist/assets/public-sans-vietnamese-700-normal-o3H9TOXa.woff2 b/assets/dist/assets/public-sans-vietnamese-700-normal-Cjcf1M5d.woff2 similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-700-normal-o3H9TOXa.woff2 rename to assets/dist/assets/public-sans-vietnamese-700-normal-Cjcf1M5d.woff2 diff --git a/assets/dist/assets/public-sans-vietnamese-700-normal-s4Obk52V.woff b/assets/dist/assets/public-sans-vietnamese-700-normal-Czg5uTnZ.woff similarity index 100% rename from assets/dist/assets/public-sans-vietnamese-700-normal-s4Obk52V.woff rename to assets/dist/assets/public-sans-vietnamese-700-normal-Czg5uTnZ.woff diff --git a/assets/dist/assets/purify.es-zHtM-7sw.js b/assets/dist/assets/purify.es-BZcJlXyC.js similarity index 100% rename from assets/dist/assets/purify.es-zHtM-7sw.js rename to assets/dist/assets/purify.es-BZcJlXyC.js diff --git a/assets/dist/assets/sign-off-repo-veQoilvX.js b/assets/dist/assets/sign-off-repo-CPAwP2x5.js similarity index 100% rename from assets/dist/assets/sign-off-repo-veQoilvX.js rename to assets/dist/assets/sign-off-repo-CPAwP2x5.js diff --git a/assets/dist/assets/staff-base-NqQk57Yi.js b/assets/dist/assets/staff-base-C0bgJ9vM.js similarity index 87% rename from assets/dist/assets/staff-base-NqQk57Yi.js rename to assets/dist/assets/staff-base-C0bgJ9vM.js index fce61dd2..69d77442 100644 --- a/assets/dist/assets/staff-base-NqQk57Yi.js +++ b/assets/dist/assets/staff-base-C0bgJ9vM.js @@ -1,7 +1,7 @@ -import"./_datatable-4Wejxm88.js";import{_ as d}from"./preload-helper-H-c3VWY_.js";class p extends HTMLElement{constructor(){super(),this.currentQuery=null,this.filter=null,this.debounceInputChange=_(()=>f(this,!0)),this.boundFilterResults=()=>{f(this,!1)}}static get observedAttributes(){return["aria-owns"]}attributeChangedCallback(t,n){n&&t==="aria-owns"&&f(this,!1)}connectedCallback(){const t=this.input;t&&(t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false"),t.addEventListener("focus",this.boundFilterResults),t.addEventListener("change",this.boundFilterResults),t.addEventListener("input",this.debounceInputChange))}disconnectedCallback(){const t=this.input;t&&(t.removeEventListener("focus",this.boundFilterResults),t.removeEventListener("change",this.boundFilterResults),t.removeEventListener("input",this.debounceInputChange))}get input(){const t=this.querySelector("input");return t instanceof HTMLInputElement?t:null}reset(){const t=this.input;t&&(t.value="",t.dispatchEvent(new Event("change",{bubbles:!0})))}}async function f(e,t=!1){const n=e.input;if(!n)return;const i=n.value.trim(),m=e.getAttribute("aria-owns");if(!m)return;const s=document.getElementById(m);if(!s)return;const a=s.hasAttribute("data-filter-list")?s:s.querySelector("[data-filter-list]");if(!a||(e.dispatchEvent(new CustomEvent("filter-input-start",{bubbles:!0})),t&&e.currentQuery===i))return;e.currentQuery=i;const E=e.filter||g,b=a.childElementCount;let l=0,h=!1;for(const u of Array.from(a.children)){if(!(u instanceof HTMLElement))continue;const w=v(u),o=E(u,w,i);o.hideNew===!0&&(h=o.hideNew),u.hidden=!o.match,o.match&&l++}const r=s.querySelector("[data-filter-new-item]"),c=!!r&&i.length>0&&!h;r instanceof HTMLElement&&(r.hidden=!c,c&&y(r,i)),L(s,l>0||c),e.dispatchEvent(new CustomEvent("filter-input-updated",{bubbles:!0,detail:{count:l,total:b}}))}function g(e,t,n){return{match:t.toLowerCase().indexOf(n.toLowerCase())!==-1,hideNew:t===n}}function v(e){return((e.querySelector("[data-filter-item-text]")||e).textContent||"").trim()}function y(e,t){const n=e.querySelector("[data-filter-new-item-text]");n&&(n.textContent=t);const i=e.querySelector("[data-filter-new-item-value]");(i instanceof HTMLInputElement||i instanceof HTMLButtonElement)&&(i.value=t)}function L(e,t){const n=e.querySelector("[data-filter-empty-state]");n instanceof HTMLElement&&(n.hidden=t)}function _(e){let t;return function(){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e()},300)}}window.customElements.get("filter-input")||(window.FilterInputElement=p,window.customElements.define("filter-input",p));(async()=>{const e=document.getElementById("analysisRequest");if(e){const t=(await d(()=>import("./core-qr9noKQr.js"),__vite__mapDeps([0,1,2]))).default,n=(await d(()=>import("./json-PR43yn9U.js"),__vite__mapDeps([]))).default;await d(()=>Promise.resolve({}),__vite__mapDeps([3])),t.registerLanguage("json",n),e.textContent=JSON.stringify(JSON.parse(document.getElementById("analysisRequestData").textContent),null,2),t.highlightAll()}})(); +import"./_datatable-Dl3Q3-Er.js";import{_ as d}from"./preload-helper-DEPslLRF.js";class p extends HTMLElement{constructor(){super(),this.currentQuery=null,this.filter=null,this.debounceInputChange=_(()=>f(this,!0)),this.boundFilterResults=()=>{f(this,!1)}}static get observedAttributes(){return["aria-owns"]}attributeChangedCallback(t,n){n&&t==="aria-owns"&&f(this,!1)}connectedCallback(){const t=this.input;t&&(t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false"),t.addEventListener("focus",this.boundFilterResults),t.addEventListener("change",this.boundFilterResults),t.addEventListener("input",this.debounceInputChange))}disconnectedCallback(){const t=this.input;t&&(t.removeEventListener("focus",this.boundFilterResults),t.removeEventListener("change",this.boundFilterResults),t.removeEventListener("input",this.debounceInputChange))}get input(){const t=this.querySelector("input");return t instanceof HTMLInputElement?t:null}reset(){const t=this.input;t&&(t.value="",t.dispatchEvent(new Event("change",{bubbles:!0})))}}async function f(e,t=!1){const n=e.input;if(!n)return;const i=n.value.trim(),m=e.getAttribute("aria-owns");if(!m)return;const s=document.getElementById(m);if(!s)return;const a=s.hasAttribute("data-filter-list")?s:s.querySelector("[data-filter-list]");if(!a||(e.dispatchEvent(new CustomEvent("filter-input-start",{bubbles:!0})),t&&e.currentQuery===i))return;e.currentQuery=i;const E=e.filter||g,b=a.childElementCount;let l=0,h=!1;for(const u of Array.from(a.children)){if(!(u instanceof HTMLElement))continue;const w=v(u),o=E(u,w,i);o.hideNew===!0&&(h=o.hideNew),u.hidden=!o.match,o.match&&l++}const r=s.querySelector("[data-filter-new-item]"),c=!!r&&i.length>0&&!h;r instanceof HTMLElement&&(r.hidden=!c,c&&y(r,i)),L(s,l>0||c),e.dispatchEvent(new CustomEvent("filter-input-updated",{bubbles:!0,detail:{count:l,total:b}}))}function g(e,t,n){return{match:t.toLowerCase().indexOf(n.toLowerCase())!==-1,hideNew:t===n}}function v(e){return((e.querySelector("[data-filter-item-text]")||e).textContent||"").trim()}function y(e,t){const n=e.querySelector("[data-filter-new-item-text]");n&&(n.textContent=t);const i=e.querySelector("[data-filter-new-item-value]");(i instanceof HTMLInputElement||i instanceof HTMLButtonElement)&&(i.value=t)}function L(e,t){const n=e.querySelector("[data-filter-empty-state]");n instanceof HTMLElement&&(n.hidden=t)}function _(e){let t;return function(){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e()},300)}}window.customElements.get("filter-input")||(window.FilterInputElement=p,window.customElements.define("filter-input",p));(async()=>{const e=document.getElementById("analysisRequest");if(e){const t=(await d(()=>import("./core-ChbsETua.js"),__vite__mapDeps([0,1,2]))).default,n=(await d(()=>import("./json-CFG4bYpx.js"),__vite__mapDeps([]))).default;await d(()=>Promise.resolve({}),__vite__mapDeps([3])),t.registerLanguage("json",n),e.textContent=JSON.stringify(JSON.parse(document.getElementById("analysisRequestData").textContent),null,2),t.highlightAll()}})(); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/core-qr9noKQr.js","assets/core-83wAAQS5.js","assets/_commonjsHelpers-4gQjN7DL.js","assets/github-hpNP9OIE.css"] + __vite__mapDeps.viteFileDeps = ["assets/core-ChbsETua.js","assets/core-B2AmeFJW.js","assets/_commonjsHelpers-BosuxZz1.js","assets/github-CGk0_04g.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/dist/assets/staff-base-BJ8QSkn7.css b/assets/dist/assets/staff-base-EnxBKSfv.css similarity index 100% rename from assets/dist/assets/staff-base-BJ8QSkn7.css rename to assets/dist/assets/staff-base-EnxBKSfv.css diff --git a/assets/dist/assets/workspace_create-7z8vvE0g.js b/assets/dist/assets/workspace_create-CcyGGZDT.js similarity index 100% rename from assets/dist/assets/workspace_create-7z8vvE0g.js rename to assets/dist/assets/workspace_create-CcyGGZDT.js diff --git a/assets/templates/_components/form/radio_list.html b/assets/templates/_components/form/radio_list.html index df50ba91..cfa4fe61 100644 --- a/assets/templates/_components/form/radio_list.html +++ b/assets/templates/_components/form/radio_list.html @@ -1,3 +1,42 @@ +{% if id %} + {% var label_for=id %} + {% var radios_id=id %} + {% var radios_name=name %} +{% else %} + {% var label_for=field.id_for_label %} + {% var radios_id=field.auto_id %} + {% var radios_name=field.html_name %} +{% endif %} + +{% if label %} + {% var radios_label=label %} +{% elif field.label %} + {% var radios_label=label %} +{% else %} + {% var radios_label="" %} +{% endif %} + +
    + {% if radios_label %} + + {% endif %} + + {% if hint_text %} +

    {{ hint_text }}

    + {% endif %} + {% for value, label in field.field.choices %} {% if field.value == value %} @@ -7,7 +46,8 @@ {% endif %} {% with id=forloop.counter|stringformat:"s" %} - {% form_radio id="id_backend"|add:id name="backend" value=value label=label checked=checked %} + {% form_radio id="id_"|add:radios_name|add:id name=radios_name value=value label=label checked=checked %} {% endwith %} {% endfor %} +
    diff --git a/assets/templates/_components/index.html b/assets/templates/_components/index.html index bb59d252..29db7ba0 100644 --- a/assets/templates/_components/index.html +++ b/assets/templates/_components/index.html @@ -332,6 +332,14 @@

    Forms

    Checkbox

    • checked: [boolean] - if true, checkbox is checked
    • +
    • field: a Django form field + +
    • custom_field: [boolean] - set to true if field does not directly map to a Django Form field
    • id: [string] - set the HTML id for the input element
    • label_class: [string] - add HTML classes to the label tag
    • @@ -370,7 +378,7 @@

      Input

    • autocorrect
    • class: [string] - add HTML classes to the component
    • errors: [object] - object for Django to map over for individual errors
    • -
    • field - passed from Django +
    • field: a Django form field
      - {% form_input type="email" label="Email address" required=True field=example_form_email hint_text="Must be an opensafely.org account" %} + {% form_input type="email" label="Email address" required=True field=example_form.example_email hint_text="Must be an opensafely.org account" %} {% form_input type="text" label="Phone number" inputmode="number" autocapitalize=False autocomplete=False autocorrect=False %} {% form_input type="search" label="Search the site"%}
      @@ -447,13 +455,36 @@

      Radio

      Radio list

      -

      Pass Django radio fields in to a list of radios

      +

      Pass Django choice fields in to a list of radios

      +
        +
      • choices: [dict] - dict of [value, label] for the options
      • +
      • class: [string] - add HTML classes to the component
      • +
      • field: a Django form field + +
      • +
      • hint_text: [string] - add a subtitle as hint text for the select
      • +
      • id: [string] - set the HTML id for the select element
      • +
      • label: [string] - overwrite the label passed from Django
      • +
      • name: [string] - set the HTML name for the select element
      • +
      • required
      • +
      • selected: [string] - matches value of choice for preselected option
      • +
      +
      + {% form_radios class="w-full max-w-lg mx-auto" label="Choose a language" required=True field=example_form.example_radios choices=example_form.example_radios.field.choices selected=example_form.example_radios.value %} +
      {% verbatim %}{% form_radios class="w-full max-w-lg mx-auto" label="Choose a language" required=True field=example_form.example_radios choices=example_form.example_radios.field.choices selected=example_form.example_radios.value %}{% endverbatim %}
      +

      Select

      • choices: [dict] - dict of [value, label] for the options
      • class: [string] - add HTML classes to the component
      • -
      • field +
      • field: a Django form field
        • auto_id
        • errors
        • @@ -470,8 +501,8 @@

          Select

        • selected: [string] - matches value of choice for preselected option
        - {% form_select class="w-full max-w-lg mx-auto" label="Select a language" required=True field=example_form_select choices=example_form_select.choices selected=example_form_select.value %} -
        {% verbatim %}{% form_select class="w-full max-w-lg mx-auto" label="Select a language" required=True field=example_form_select choices=example_form_select.choices selected=example_form_select.value %}{% endverbatim %}
        + {% form_select class="w-full max-w-lg mx-auto" label="Select a language" required=True field=example_form.example_select choices=example_form.example_select.field.choices selected=example_form.example_select.value %} +
        {% verbatim %}{% form_select class="w-full max-w-lg mx-auto" label="Select a language" required=True field=example_form.example_select choices=example_form.example_select.field.choices selected=example_form.example_select.value %}{% endverbatim %}

        Textarea

        @@ -481,7 +512,7 @@

        Textarea

      • autocorrect
      • class: [string] - add HTML classes to the component
      • errors: [object] - object for Django to map over for individual errors
      • -
      • field +
      • field: a Django form field
        • auto_id
        • errors
        • @@ -504,8 +535,8 @@

          Textarea

        • value: [string] - set the HTML value for the input element
        - {% form_textarea class="max-w-lg w-full mx-auto" field=example_form_textarea label="Enter a short description of the project" resize=True rows=8 %} -
        {% verbatim %}{% form_textarea class="max-w-lg w-full mx-auto" field=example_form_textarea label="Enter a short description of the project" resize=True rows=8 %}{% endverbatim %}
        + {% form_textarea class="max-w-lg w-full mx-auto" field=example_form.example_textarea label="Enter a short description of the project" resize=True rows=8 %} +
        {% verbatim %}{% form_textarea class="max-w-lg w-full mx-auto" field=example_form.example_textarea label="Enter a short description of the project" resize=True rows=8 %}{% endverbatim %}
        diff --git a/assets/templates/_components/log-item.html b/assets/templates/_components/log-item.html new file mode 100644 index 00000000..ddf0279e --- /dev/null +++ b/assets/templates/_components/log-item.html @@ -0,0 +1,13 @@ +{% load humanize %} + +
      • +
        +
        + {{ children }} +
        + + {% #time datetime=created_at.isoformat tooltip=created_at|date:"Y-m-d H:i:sO" class="flex-shrink-0" %} + {{ created_at|naturalday:"d M Y"|capfirst }} + {% /time %} +
        +
      • diff --git a/assets/templates/_components/time.html b/assets/templates/_components/time.html index 618b0bfc..453fd322 100644 --- a/assets/templates/_components/time.html +++ b/assets/templates/_components/time.html @@ -2,7 +2,7 @@ {% if class or tooltip %} class=" {{ class }} - {% if tooltip %}relative group{% endif %} + {% if tooltip %}relative group hover:cursor-pointer{% endif %} " {% endif %} datetime="{{ datetime }}"