diff --git a/CHANGELOG.md b/CHANGELOG.md index a9ee4ce..c6073d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,31 @@ All notable changes to FastAdmin are documented in this file. +## Unreleased + +### Features + +- **Column labels**: new `list_display_labels` ModelAdmin attribute + (`{"field": "Header"}`) overrides or translates auto-generated list-page + column titles. Sorting, filtering and data binding stay keyed by the field + name. +- **Actions without selection**: `@action(requires_selection=False)` enables + the Apply button without selecting rows; the action receives an empty `ids` + list and should treat it as "all objects". + +### Frontend + +- **Apple-like design refresh**: frosted-glass sticky header with hairline + borders (the configured `primary_color` now serves as the accent instead of + the header background), larger continuous corner radii, softer diffuse + shadows, `#f5f5f7`/`#161617` layout backgrounds, tighter letter spacing and + transparent table headers. The rich-text editor accent follows + `primary_color` instead of a hardcoded teal. +- **Dependencies**: antd 6.5.1, i18next 26, react-i18next 17, vite 8, jsdom 29, + TypeScript 6.0, vitest 4.1.10, eslint 10.7; `quill-delta` added to satisfy a + peer dependency and `baseUrl` removed from `tsconfig.json` (deprecated in + TypeScript 6). + ## 0.8.3 Correctness and security fixes from a full-codebase review. The only public API diff --git a/docs/api-reference.md b/docs/api-reference.md index 53d08dc..01618ae 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -71,7 +71,7 @@ Overridable hooks (shared by model and inline admins): | Export | Description | | --- | --- | | `@register(*models, **kwargs)` | Register a `ModelAdmin` subclass for the given model(s). For SQLAlchemy pass `sqlalchemy_sessionmaker=...`. | -| `@action(description=None)` | Mark an admin method as a bulk action (list it in `actions`). | +| `@action(description=None, requires_selection=True)` | Mark an admin method as a bulk action (list it in `actions`). With `requires_selection=False` the action can be applied without selecting rows and receives an empty `ids` list. | | `@display(sorter=False)` | Mark an admin method as a computed list column (include it in `list_display`). | | `@widget_action(...)` | Mark an admin method as a dashboard widget (list it in `widget_actions`). See [Dashboard widgets](guides/dashboard-widgets.md). | @@ -94,7 +94,7 @@ Overridable hooks (shared by model and inline admins): | Export | Description | | --- | --- | -| `ActionInputSchema` | Input to `@action` handlers: `ids` of the selected objects. | +| `ActionInputSchema` | Input to `@action` handlers: `ids` of the selected objects (empty for actions with `requires_selection=False`). | | `ActionResponseSchema` | Action result: `type` (`ActionResponseType`), `data`, optional `file_name`. | | `WidgetActionInputSchema` | Input to `@widget_action` handlers: `query` — a list of `WidgetActionQuerySchema`. | | `WidgetActionQuerySchema` | One filter/argument value: `field_name`, `widget_type`, `value`. | diff --git a/docs/guides/model-admins.md b/docs/guides/model-admins.md index 51b8771..6029cc9 100644 --- a/docs/guides/model-admins.md +++ b/docs/guides/model-admins.md @@ -15,6 +15,7 @@ attributes are optional and mirror Django Admin where possible. | `list_display` | `()` | Fields shown as columns on the list page. Without it, a single `__str__` column is shown. | | `list_display_links` | `()` | Which `list_display` fields link to the change page. | | `list_display_widths` | `{}` | Column widths per field (`{"id": "100px"}`). | +| `list_display_labels` | `{}` | Column headers per field (`{"id": "Идентификатор"}`) — use to override or translate the auto-generated titles. | | `list_filter` | `()` | Fields that get a filter in the table columns. | | `list_per_page` | `10` | Items per paginated page. | | `list_max_show_all` | `200` | Max total count for which a "Show all" link is displayed. | @@ -75,6 +76,17 @@ class StoryAdmin(TortoiseModelAdmin): An action can return `None`, a `MESSAGE` response, or a `DOWNLOAD_BASE64` response (`data` is base64 file content, `file_name` names the download). +By default the Apply button is disabled until at least one row is selected. +Pass `requires_selection=False` to allow running an action without selecting +rows — the action then receives an empty `ids` list and should treat it as +"all objects": + +```python + @action(description="Delete all stories", requires_selection=False) + async def delete_all(self, ids: list) -> None: + await Story.all().delete() +``` + ## Display fields Add computed, read-only columns with the `@display` decorator and include diff --git a/docs/guides/settings.md b/docs/guides/settings.md index d219429..5080f2f 100644 --- a/docs/guides/settings.md +++ b/docs/guides/settings.md @@ -34,7 +34,7 @@ export ADMIN_SECRET_KEY=secret_key | `ADMIN_SITE_SIGN_IN_LOGO` | `/admin/static/images/sign-in-logo.svg` | Logo path on the sign-in page. | | `ADMIN_SITE_HEADER_LOGO` | `/admin/static/images/header-logo.svg` | Logo path in the header. | | `ADMIN_SITE_FAVICON` | `/admin/static/images/favicon.png` | Favicon path. | -| `ADMIN_PRIMARY_COLOR` | `#009485` | Primary UI color. | +| `ADMIN_PRIMARY_COLOR` | `#009485` | Accent color used for buttons, links, menu selection and other controls. | | `ADMIN_SESSION_ID_KEY` | `admin_session_id` | Cookie key for the session id (HTTP-only). | | `ADMIN_SESSION_EXPIRED_AT` | `144000` | Session lifetime in seconds. | | `ADMIN_SESSION_COOKIE_SECURE` | `true` | Set the `Secure` flag so the session cookie is only sent over HTTPS. Set to `false` for local HTTP development. | diff --git a/fastadmin/models/base.py b/fastadmin/models/base.py index e171ecf..a5eae1d 100644 --- a/fastadmin/models/base.py +++ b/fastadmin/models/base.py @@ -130,6 +130,15 @@ class BaseModelAdmin: # } list_display_widths: dict[str, str] = {} # noqa: RUF012 + # A dictionary containing the field names and the corresponding column labels (headers) + # for the list view. Use it to override or translate the auto-generated column titles. + # Example of usage: + # list_display_labels = { + # "id": "Идентификатор", + # "created_at": "Создано", + # } + list_display_labels: dict[str, str] = {} # noqa: RUF012 + # Set list_filter to activate filters in the tabel columns of the list page of the admin. # Example of usage: list_filter = ("is_superuser", "is_active", "created_at") list_filter: Sequence[str] = () diff --git a/fastadmin/models/decorators.py b/fastadmin/models/decorators.py index 0ebf524..c533f58 100644 --- a/fastadmin/models/decorators.py +++ b/fastadmin/models/decorators.py @@ -30,6 +30,7 @@ def action( function=None, *, description: str | None = None, + requires_selection: bool = True, ): """Conveniently add attributes to an action function: @@ -42,12 +43,15 @@ async def make_published(self, objs: list[Any]) -> ActionResponseSchema | None: :param function: A function to decorate. :param description: A string value to set the function's short_description + :param requires_selection: If False, the action can be applied without selecting rows + (the action function receives an empty ids list in that case). """ def decorator(func): wrapped = _wrap_callable(func) wrapped.is_action = True + wrapped.requires_selection = requires_selection if description is not None: wrapped.short_description = description return wrapped diff --git a/fastadmin/models/helpers.py b/fastadmin/models/helpers.py index a929431..86e70b3 100644 --- a/fastadmin/models/helpers.py +++ b/fastadmin/models/helpers.py @@ -152,6 +152,7 @@ async def generate_models_schema( filter_widget_type=filter_widget_type, filter_widget_props=filter_widget_props, width=admin_model_obj.list_display_widths.get(field_name, None), + label=admin_model_obj.list_display_labels.get(field_name, None), ) add_configuration = None @@ -206,6 +207,7 @@ async def generate_models_schema( filter_widget_type=None, filter_widget_props=None, width=admin_model_obj.list_display_widths.get(field_name, None), + label=admin_model_obj.list_display_labels.get(field_name, None), ), add_configuration=None, change_configuration=None, @@ -231,6 +233,7 @@ async def generate_models_schema( ModelAction( name=action, description=getattr(action_function, "short_description", None), + requires_selection=getattr(action_function, "requires_selection", True), ), ) diff --git a/fastadmin/models/schemas.py b/fastadmin/models/schemas.py index 50a7779..fddeb67 100644 --- a/fastadmin/models/schemas.py +++ b/fastadmin/models/schemas.py @@ -113,6 +113,7 @@ class ModelAction: name: str description: str | None + requires_selection: bool = True @dataclass @@ -143,6 +144,7 @@ class ListConfigurationFieldSchema: empty_value_display: str filter_widget_type: WidgetType | None filter_widget_props: dict | None + label: str | None = None @dataclass diff --git a/fastadmin/static/index.min.css b/fastadmin/static/index.min.css index 4a5d212..5d023dc 100644 --- a/fastadmin/static/index.min.css +++ b/fastadmin/static/index.min.css @@ -1 +1,2 @@ -.react-tel-input{font-family:Roboto,sans-serif;font-size:15px;position:relative;width:100%}.react-tel-input :disabled{cursor:not-allowed}.react-tel-input .flag{width:16px;height:11px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAACmCAMAAAACnqETAAADAFBMVEUAAAD30gQCKn0GJJ4MP4kMlD43WGf9/f329vcBAQHhAADx8vHvAwL8AQL7UlL4RUUzqDP2MjLp6un2Jyj0Ghn2PTr9fHvi5OJYuln7Xl75+UPpNzXUAQH29jH6cXC+AAIAJwBNtE/23Ff5aGdDr0TJAQHsZV3qR0IAOQB3x3fdRD/Z2NvuWFLkcG7fVlH4kI4AAlXO0M8BATsdS6MCagIBfQEASgPoKSc4VKL442q4xeQAigD46eetAABYd9jvf3nZMiwAAoD30zz55X5ng9tPbKZnwGXz8x77+lY7OTjzzikABGsenh72pKNPldEAWgHgGBgAACH88/Gqt95JR0OWAwP3uLd/qdr53kMBBJJ3d3XMPTpWer8NnAwABKPH1O1VVFIuLSz13NtZnlf2kEh9keLn7vfZ4vNkZGHzvwJIXZRfZLuDwfv4y8tvk79LlUblzsxorGcCBusFKuYCCcdmfq5jqvlxt/tzktEABLb8/HL2tlTAw8SLlMFpj/ZlpNhBZ81BYbQcGxuToN9SYdjXY2Lz7lD0dCQ6S9Dm0EUCYPdDlvWWvd2AnviXqc11eMZTqPc3cPMCRev16ZrRUE0Hf/tNT7HIJyTptDVTffSsTkvhtgQ0T4jigoFUx/g+hsX9/QUHzQY1dbJ7sHV02Pduvd0leiK1XmaTrfpCQPgELrrdsrY1NamgyPrh03iPxosvX92ysbCgoZzk5kP1YD7t6AILnu+45LykNS40qvXDdHnR6tBennz6u3TSxU1Or9Swz6wqzCsPZKzglJbIqEY8hDhyAgFzbJxuOC+Li4d9sJLFsnhwbvH2d1A3kzAqPZQITsN76nq2dzaZdKJf4F6RJkb078YFiM+tnWZGh2F+dDibykYoMcsnekdI1UhCAwWb25qVkEq43km9yBrclQMGwfyZ3/zZ2QK9gJxsJWCBUk32QwqOSYKRxh6Xdm3B4oMW22EPZzawnR72kgZltCqPxrdH1dkBkqDdWwwMwMO9O2sqKXHvipPGJkzlRVLhJjVIs9KrAAAAB3RSTlMA/v3+/Pn9Fk05qAAAUU9JREFUeNp0nAlYVNcVxzHazoroGBkXhAgCCjMsroDoKIgKdFABBwQUnSAoCqLRFBfcCBIM4kbqShO1hlSrCJqQQmNssVFqjBarsdjFJWlMTOLXJDZt8/X7+j/n3pk3vNq/bb8+3nbP79137/+dd954qTVt8uTJL73OMhqNer03ady4cWOhWbNmjV+0FfKGjMb36Y9/1fXUst9cb2y8/lpb797z5k2dOjXVD9Ljn59fcHBwQEDAgGch3l9on6feeeedn0r9kvT222+/sErRgvcDArwV8f5tN/rcvPnMZ22pqVFRSVGjR38k9Rsp9fLql/MXLj20VGjt2rVeak2Og/auI/kHBQ3We/tCo0ZNhwYNGj58/NaWlpbOyMhIX1//2/jTrICvckhXruQsWbJw4cL3tzhPORynSk5lZWVtglL9IkmdDQ05NqvVGhLwbKSUL+Tvb9yH/2sj+eN0IZZ3fvq3Hnp71ZtCOyofdnTYSzq9xX7UtsF9+/Y1FpeZT54sc2aUlq6Jy89YM/qj2oZaoeOkMR8dV/Tee++NWb04rrA5MRYKDAyc/NKCpwDIyKhE9LEzZ/r4DLQAAE6EyEeM6AcNH7m1pTMnB+fHX7tG9Bs0Xt+GwM/frqm5tz950aKDk6rsiA0xbUrbRAii/BDeV9bGhQsPRlyOCAuZ9GykZwT++n2RHPnVYQU+oaFDPQD8jEQAPiDdaLPaHGVXbn/O7YHQuIH9B/gYgzts1iqrtSopKWlNRkzS6I8arFaOFvTfew8AfiYil/rN6sWTKwtbArOzExISUl7+vwCuQNt8Bg71AQCcTwNpWeFbW3IIQEmJr08XgIzX2xDcvZrs7Jru5EWXwwKSwh2RkQ77w7Q0bXp6YRoDaKO+kZl8MCwsYpJ3pEf8liAAoPhDhqUMQ/wAkF+oqKiosJYA7HxotdnTtVe6Pr/S0h+AI90QffU3T9obGuwdD5PqkmJiMtbM+ajWI/60TX0COhoarAAE1dfXV80FgMmLi1oSKP7/B6ASAGyBV4YM7D/Bx8/bF7g5fgmgEwCCSiJtJQRgxEi9zZqVdYUu9pW0tLCIgOvxdR0dpxx5aWl7EzV7CYDV+tXnCzMzkzMvE4AFlTuhZaSf/OQny1L32RC+JcHikzJ06NAJoe+YNKRbsbG3xPlWZTxssNmdOP/J27ffudLJ60V7DAaT1lxRVvfwYe3Jlrq4uJiKjAwAcIWP+BkAhV/i7HA0uAG8BAIUf8qfzvwvgJcQf+XMK4GWi8OGTpgQ6uftzwC0LIM2WgcASwaXOBwlA7v6/YgAhFRt2pRGeu0/UyImbal77eHDo2kVAJAeKwE0fl6P63/5nSlTAKBCiR8AovbZEL9lf8I5AMD5booAE7OzY8X5fhGJi0/nTzTcMh+80iIBaF0APqvIu3EjqfRGcV3S4aSKYk8AaW4ADU4gOFlfn8sAXnoJBDpTCMDL87zU2kwATl+x1Nw+P2HChKHBBMDHFT8DwGjX11FSYu/f/aMf9XtOjwAacf2hmxRg7ywXDrr30kb7NVhDquo/z0y+nJs7ZUoYA5DxM4BFmcnJyV93PzjbvQhK3urqAYF7xflWVT5ssDaU4Ox7T9+6Ei4BaN0AUkvXJEExMTGHD9cdFgA2yfgZQAP1f0dJw0lrfS4BmIb4z5yZBgL/H8DibbehGROenQ0AQRhvZPwQAGDQ8wlqsFkmdP9ofr/n/OgK2ml1xxQECAAy/tdee++91wCA1mfWJy/KXUTr536T+O67764X2r9//T+3JkPdDx50f7qItDXfff+zeAxY1lYV0VCmPV1Ts5fGAGUYDbHpo0qT6vKTignAtWvXiuf0StwGZZPQybMPAYC8/xF/bj0AUPwvvzytKCdl6dMAvJxRuXjxkCHnL86YMXs2A8B4m4yWQTrdIp0uByMajcATJrwzXwCIiIjAFSrbJwGI+FlH00YH8/rQy5enQPsYgBK/BLCI1c0Afonhn/XjH8MNLP9o1Y4Pfg795N9hYQ23bt1q4fb07z+A/ITR2J8AFJnqOP7iuj7Fc35TK+9/bkPaM+NGiSnsB6wRIwGA4n/5T5Pzc5aeeAqAP1VCM4niWRqVgr1p1sEYlskNJQC4BQZbLJi0MAgCgBUKqYo3VEVEhIWFTZqXtYmVxiIAtB4QeDUAvMuSFBgAJCkwAKHlLAKw4wMIFG5URVgdLdwedEq6BuCgj1qzpi4uiVScYa6I0fWKJQVC2aRDY0eNWrlyECwMMIDDc2vZ6UF0F7z8tB5w4kTvtZ+ygklGkk4lvZ6sne45SDg8aJIQ2z+4Mmg0qcfauXPnfvPNN9XV/1S0VSWyf1Ls4FZ5aIHu/blGKb2UOM0ckq4PmsZ2b8yYMb2l4FbhX8ePHwmhuSPXkhaQ5q0tXzBvntdUUq9eSyFu9njXxpA74Leg198yktRWVI4OkAkymw2Q3WO90+nnN3u2H0QkHI6JpHHj2GvTYdsupd68GfVZ4yTJqJeUaNKhQ+rzCUvOMXEr//4vD3333XdLe+rRJx4iqumDnT2O5zW1HII1hPLy8pJGjz9GWgk9D61Al4fWkWay9VRbUa1GEVCYDRoonu0dr++n0ZQ0dMCNdDRYHVrtuImjWHQ80lvfl4WfhJetw1CFm6h+rkazd28iJHvyIe/IHt7ZOBY7o4GPH4smPqf7nRwz/sH6bmmi2HtvYiBUYPxEcZakt701PdsPAIhb3DBbYmIIAOK+F9HXJ6z7t799AwDI48+cOQRi66m2ogoAYVwIQEkQb8DrJza1azRWq9NpjUjXtg+aNXHU9EEQHW/YsGFD3toHMFZbgzUsDNPkPgAgpScG1vA4TgB8PZATAAoc6IasWPHhhwCQkyNCdwMIJCVqDabA8+cAAJFLYVD92dvpjvQe7ZcA7p0/350dEzNmy+iRAHBPrO9+AwB41Of4h2HoFdZYhsfL7ej7QmbSBdED/GkDXv+ju9Pv4i9mM+g09Rs1duKoQSQR/4whb7msbFhufHy8M2xup6AZ3sHzWOChaveIWQCtn00A7s/84MDuD4bd+fBDcYEukrVna5fwMQPAsqnQZOqqLtBzezysvHd6z/YLANndUELMGAmgXqzPfeON3+IE8PHbuL2YegYCAO+/fz/io2VMM+5HpR/BGXIPGCzix3oAaBo13aApK9Mahg8fNAo9ANsPGi7iB4BLZRUPH9advJGb6zx+3Jk7FwFtCNekNzQUabW3cAv0Ek9uUA0U+PGsY4NmzrxQVBS3e82wGQDA7bvI8SsAsgNP7y26HV4GALyeJzGaY5J18fZ4GT+3DwBK8/K2ZF/s7v46ZYwEsMJHrJ/gApBJ8QPAs9gh2BYBnT077OwUnvcBwB0/nCEAQPFBdADefv5dPEu3p2u18e39Bg2aPou2h9wNmP3wi7bGL9qsuVOcizoBgM/X0BBtamggK2wGABn+WSLw8awm9P4Du3ecys+aMWPGt6J9medF/EsBIBbxJxSFm4vM5moJAOGL+AHAO90jfglgy5bshO7uFAIQM2fkyhUr6sX6fW+MJQDYX1wvWI/+uOIc79mziJec4ESxDPGy6AF9RfzYHgBw02s7yswNhf1GDJ8+lvcfPgKrxfoAa0S9uP9HTV95LHdur8TzuF7W5OSqDdEGAFiaiIjk9U8hAMdw+1Ts3r37VPOMGR/K9l3k+CUA9P9b4c6y8LKC6upqAiDj3wpxD1Dix/m9Uku3KAD6xMx5DgC6xfrLYwnAEuw/jOJnAMHjpnvECwA8aK5YseK3EA2aogf0pQNIAIOaXI8S0/sBAPaHaLUEIOJHPmjUsWACACN7/qLVmoz2Zjabv3x8X+oBdP/DWeih94d9sHv3BzO+fOOND6l9C93xL00BgOy97dHo/ZHm6EcAwM8OHlZ+YLpFtF9eQAGA9+81pg8DQCzdU3D9Ef/YN3AC8OP4Z5D1DBg7XYmfAKitqYl7AA8AvDxxVLtGW1VVVhYRZjC0jhg/Tuzv3j6gCuEjfghGYd/cXrFk5BNqai4K633k938h/Zp15C8Tx68E7X7Dtm2b8QZEAH743j8gYQQwC8TGlp08Z7ZWC+k/4eFf6pc//Sje3+TZ/pFeqXkQ7hoIhhoAnve8ogRgCQZBMQsgTgBgXykpAoDKmpoIuJP/wMvzwaOKHkisVfUnDYZZ2J/k3n4ST/94UiHt2/d+Lx7yttFAXnP+60W6+X9ggQFzGDdeOJT791fQNAgAv/qHFFMAAJou7AWQBCAkKXzknW71bD96APnWQ4c+hthRsv1Ty2WNA4InwYYpzhJSW1MT+lmkxx9awyfNhQVmvf9+c9M4kVt1by8tsmuLub3I/in6er7URGkh1SZ1znfk/xR9o2oP7F8Pax1vbO8RgJcwhYp8BvpMcD1t+0GffPJ7xUo+CA54Yc+DPXv2vGA0vkBavfqIW+xeH3kr8iJ9QxJegQNpu/TMzZupnzXOkQ7+OkumeCCOU+Si2Sr7kR6RkQZ/iA0y62PWVKlUiLy8fsz1MSd6s+YhLz1vu0t7ILS4T1Rqn2cU9fF6YQdpMZIAG6dNmzZ5bX+7PZKGsXi0CM9xwZ+0DmuVnejxsHMDJu3Zu24vkrT+QTtYq4/8nvWHPzyeCa2HUySRbzMKAO9CGhZ15Pku67uGlaS7frzoeFat26uY2CpzijiIrbKfLdH2buy7eKLkR8oAaXWhQNLH8+qEKirKy0tLS6O8bXVZQpvg8dPmbV/O+jH0IvRClLY06hkPAcBGqLa19ckBzC0HVg+0R9rQFpqFtWER1oBPhr3+eutPocevPzIaBwTseTORAu/rQ7sd2AgA4g69T1PlfmGVsX9fn8ESALk4ER5Gsb/Mny2tbzGkPQwASH1s2iTDBwC2yhYeVdgq+yXODAwpCCzAozT7Dml12fqR8VGcOMtk9A0pkUvsI7YvR+DQrl2vQLtWpdbFPAVAq8lgMrcygKEEoKQsJKTMYQgLDQn4ZN3r60T43ngSrH5g1rBcWaINAoCMX1plXq8GoBUAXNYX4RcfPqzVXa8tqk3bpATAVtnCVpytsp8tsCBifcJVil8BoFhfu7OE5RCyGn0HWxweQLYvf/HF2tp1T568IgD0Gf2MJilKBSCrPf5Cc3h76e4zuwmAv8ZqQ5cLMwwNA4DWn+IfwoeqX3/8kQvAQC2rGQCU+NkqywuiAqAVACa6rO/hYsR/uBi3wKZd7wGA1gPAcEvfhAQAmEEA4DwLEgo4/tmzwyYdYqurWF+9zWKxhCKlTjnV2WEBxkhHX5/G8jSZEZoKALWJWbuyYgWBVRgA6vqk9hgDNh54YtI2t2jbn5wBgAl2m1XTYAmxhFoNU5DG/uRnHuG/d/yjEa0X7kID+99tgu6OxTytxK8A0KoAaCGexz+rWHPpUtKaG4e1hwnAhhNZlLtMhwyG+HhDGVvl0PXZ2fv7w3oMe8vPijuf4of2AQCyutDmzWdI1zcv0Psr8SOFF2As0Th8Qr84CiEzcjSKni09b4l5C+al4r9uAcCBA1nthuYKc3spA4i0hWgNdFazgbK8n3iEjzct380S1rd/f+mkAECJH87O21/2v76eALQM4MiRX0+MKqXsFXSYAei8/d3WXLHaoQNTUga4AYSGiesPTSEASvwEwCrin4D4GYAv4m9MS5M5yalGX1uixccntCDwKqf5n5FSboGNBw4caG03m1tbz5zZs3v1bAAAKvtJDAuzAeD1c0r4DEBY4f4DKH4C8AclfgYQxFl0etRWAAj+RwjA6DUyfuoC3xt02F6JnwDQ8UNpeQAB+DTY6op/HxJLU+au3jj5JYRPwvR5ZoFN3v12oVxjkE+oXbG+4o71WH5dJa9VALD7wBPMArvP7AEAfaTVgm3NZkzcszHoBCvhM4BvhTcfMOCB8OZH/sDxp0hrCwA8PvKjNqkaAPaL80sAyvU3fF+sU1tptspDaRkA3gKAEIoforwaAPhZ3f2de4RWeUvAARqDKH65ZDKE7/nxriexm17ZtO0JxvhXX1n1Q5UAYCMQTCsvn7ybEuYL9JE2q9jfZJoSBgADEP5xt757MJM0xMcHUUOfzr9Pywlua+vtThhJAOvdPYDc/LjRayC+CxiDTm2l2SpbeJmPHywzyhLDXH1ICI96wEAcAlIr4ABKSThuXt4c75ByyJ2Zj9qDWbD2SSJmAdaqBSp5CdPoB5frx9LDdEVDG6C5cKnB/xz1kdB3rAcP2Bb7+X0q9GtOXirWU7HGEgBSwI/CoehosrIT2f7pFKmtNFvlYF4W/jvAI6kMoX2y1kBIZKBHu1PDwfNI7A1ZbP+UIgPMAn08hFnAIOROal3P6pnlzSQlK8pHf4F2s+AwjSRNvDsCadl76bQif9tbqDBdNvzPfxcy8+nCw1OULDDrOukEi7PXnngo+IDLY8UZZMmGOmsMn09yPTI8VwjhWEUkXIY4mYVu2/7qq9tJXuqsLoxJj+XMZqEWUmdnskabf8olWOI9Rl9Ik07vqeh1id/EpqZRUGKOhksqxveuZGm0Idx3g//+BPrd734n793wXnuFEoUOXc+ClJcrC4wiI8rv0On4GNUbbh8TBRtwDOPVWerxv2P9SuiPukKcBwd0xRPusuLSH+/xUmd1r9dm5XsuZzZ35kBLxCt+ANBoihA5CY6YAODEmnS8KRpIr7cBgJp2uyDkahcmi+EAUE7SpvPQFRrw9yfcvk5nPHUyApDokQWPBQCOXN7DafPo+ABH1RN8fL0t6OrVq1X3eC7C8dVZ6vHu2P/4xz//WQDAQ44rnmhXFlrYYxeAW+mJ6bcSEyUAEFCyqJdPfkX6HLp8+fJXBEBTyAR2uAD0tWjSfbh9BGAUxX/1zi8HVXcpAHZq03m9BNBptXY4ET8DUOKXANJk/AxAFETYbO/ayJ3aACAwcH3gep/Qru4PUZ8w/nW8X9gWOMSdZR7bRG81jkOU1XjeDUArFOey4i++WFW1vr4NAMTLaFjLvekuAJvylYKIXIcvFcQItzLB9o5G44CzylcA+Pe1+GjS+fojwGDO4hbcOfuXX35bnZ0deIgB7Nyp1QqrygB+1Wb9lbOBAUQTAOV1XuwhdRZXI7Q3UVplfSKS45aEc0MH9p/yTveKkQCw7WrIXneWmYDMrD3++Mnx47x8Iqt8GiTs4+bJ8y6V3Xj4sOLkjV27qjA9AYCBvGJsQkLgXraKBAAEOsCdZPfLdbjjRwQAUOJvxy7t/BK+NKuPhqVYTX6PEHJ101+qq8MWLcrUqdf/ne5Pa+OvMLPRPB3dBw+ychaDSkers7gaFiAliv31sSHr14euv0o8n322XoeAHXhwOyuydsMYwJDax0+ePD5OywCA8NM4fAIwdWfdtIqKvKyMXbuKDPWFRS8wAG3r3lvtF0RBAveANuqv7K2Dc+3K9Z/g7gGtlKRja9sjPjSQF6/eqc7+9ttztKz3Z6uarl22BcqL+jvdo1URvyqzGbSUpOTX6XlkW0mvpaqzuBLA6dOxOD4DKMA7koRzaMyUf3+xczUCvlVgic+m+CWAIUNqjz95vEkBwJdfAniVhj6+/xuRjGyTAO42XRjVxJMfACjxE4CuveRlC2SO7d13NJD59yJFSQD0QRj+tPHu7flhpqv6y+pv/9lF7wn0QexZ4g1bBIBZBCAnIsJaEm+QAJT4f/Naqrmndd2wCFMPhuHTp3OWQDk6vS1hfcL+6v6I/iU8vgPAkAs1+5vPIn62zt6+56AsdNChjx49OqcvwsEQPx2OjwcAIv5d+YW5hfkSgNZ814wNGADHP0HEo58Q8PXe2Fjx/JkCxd7T8uXn+CUA3P4AILcPFu8NuqrDziF+lND4hfCjigAQsywKozQN0Esc8eJ89LTHLk8+7ZmV+LnBnJX2KNAA8KvVQ//9xWTYkDNnJq9VW2m5XF8vl2lSx/X3AMDhU35kee7yXS94mfh8St78RNZDOetAEwBAmaRjoS6t4a7M0TKFcWxNtfE+cvvgsWKCjs3U8jwFAGxd0w150DIAkHO0QSjaSPM3Pa6BI+RnVtojAPAErBRo6AeHtN1YDP8uRra1aiutXgYALTZ1H287pn+SxAAA0pFB0aQT7wuzKbOQwV93kfC/Qt13j/TI0k5kg2Yqox1YY0VBwlKdWXgx6VvLzKlRrPEjRU53Q7QQdpenE/bW7G7JBpZOpUmfLVi9arXQWkhtpdXLZP8WzFsQFx3Hh2vm/CjrBZaX9UbvmzenotZWWmpZ3AOJUgvCtkq/2u2Vy0lmbiOfZhxLqSWuyC/FpS5qbCyiW/6LUm/om2rv6mrvR9VGyCRkNErs6uOprS2bcpaZ91Bbd0CTmsTiPd/i8gtuzxGVPpoIebTY61qJ+aT9pJOytEnQ6NfiSBlxcbWsMTRG7LBtdFvJ8nxI9FAyKEhgkJRa4jqHpigjQxMZqamry/fV1Hk3eWRx198zmjTpmEZovSbe7tRGq4+ntraGnlY9nJfT47Wu5YAGVIKSZIEF7y8KOrg9R5C++r2iI6/W9myvF2p3/YNwyqQYcl/Fc14TkcNAk+r60AkPhBzg0wkA4GNi2fyDCMAg5VURKkfz4uwOzWJN0GBNuR0Qrnk3jTrrqlh68O1wvDlyNCBp6R+k0Tqq7ACgOp7K2koA6b7xSgFGeuTgvkElWBYAEDgidxVY8P5c0DGMrbLTgx908tVTPdo73uumw+4baW94WByTlp+fFuMCkJGhBqD1ACCeFP2pTg/WVzkgTpiXUV6GtCCeD4Li82N29vYGoDs1/Lrvy379ngcADaWtg0JwMAe8ufp46gIM+brdYnEKL4/lSF5fItqjFE6ms6/g/UVBB18Qb1xgeno4x7qqf/XUKdr81i2ZIfJaU1LR0YEsbUxMWmnFUQEgP5/sYFxceXlWn1XIGR6w0JzDWosGZ2SIBgeFwJvDeBBvtxWVz5Ior2Xle486i4KIO1fP3aEXkiv0QQ47pa9CQoTTnP304227d08ejwMsszRaylwAZIGDvwCw/RQ8ObRRaBUXcIiCDpwPAN6NvQoN5vgHngOA5XT7NDVJa+31WUXSjRsxa27EXEuLawGAo3HU/+OysnBjlpdmPeNnExkYV16+HO3NEKMQJjgrGizjl1a0MTLI4xL2vek9KrBg+IiuhBRUFhMAfrojiae74Kcf715m8j0+ngDgj/vBR9QOAyArUmj2njc5cJmkOLCKa5u5PTO4YMM7cR0REPELAMtxxA0bpDX3SsXYFwNdu5bWmZN0bc7RjNraOMSPHpBRCgCrKWcYKq//njNrp4kGmyCQCQlGg5X40WDZA3z6u3vAnUEjRtw5d+5LAJi/Qm9xcOstFht9JxHp9/TjDeteKJyd7AFhuVPKhFX39vcXXd4hssjbuQO4IGxkAD6iPZy1Rg9Yj/g5/IGPAGD58kJ42Q0bwnE8AUDG39mZl5eToyMAiL62Fok2AkD34O7QM26jlIcG14oui6sYEjymrpxeyuUJlaZuqViWnz5Y0x8AQpt7J6V6Hxs+4k4N2chD386f/6EeRseB9lso89oBY6I+3lhVAQYDSHfud5qEkUEWGftj574ii2xWUqJyPTqfKOjg/WlQ5P7v4wJwSguhoJEV7hW1huOHKO1xDQD45aJWWyoAUAPOhBEAgwtAbZ2YhC2haDA/bbkfNvKmxmRobJF5mgEDNL/Q2EPKU72nD7rPPhq5rwf9CIDdageAUK2hod4GAKrj/U8BRiQ/ju8/R/7UJ4Ssbl9HutbpL63uUws2RH/k5bKe1vrKq8td1nsflDsXAES5OXQY9da639SS6uQswAC0ByyTlR6QAQkbEgIBQNbicggY8qCpdRpb3M6dNAguS4rTWC4ZjwVCXIABCitgdZ2RGNBDMAs4bSUAoDre/xRgsCFYvx5hkbkVVjfIv6/L6j61YIMLOs7ysuvttdSRV+vcnqEecycAiFpbFtUbiEpbzpiy6NKsDlhL/pS1ZQuq6TZwkjCYJOtuSVNJpZ8nIQeaf/NmPlKyz9R+b4T++cj46JF+9iM9JK2un5+0uurjkX2T5Qsso5Df/7O6smCj5/a93oI+5eUjKu0JVpLMJK/r18PDZRaWq4i3k0ykcHbLKmcqaoVlCvcQtGjEjyZ6emF1Fre3CpDa6vKZhbHn8wdLueytnqU8n7CTFSllugeMik0WaJd6CrUZDTfmwep/cY3S5M/hmqjP73V9Mj0uKjnA7ZQtFebiRWiVt8x/yrHW6GE1SYf8Hraa2psUa2m0QWRlQ0QWd8FiUrkrL5XK+ytm13iiUog3mzZtQbANsrpL7CfpySCz+G8BXEChYRVAxj1vSsmCDVUBxTfFTq3zpDO+Li5/Q9OFlrg6tdX2MovZCn6MtXM7PS8LAPQ+HQA48IcPeardqFesJtf6HvL2bby97tat9unCCQIAz/ORkWKeBwB3PgafKWxOFVYXCYvjwuqe4NAlnpcIgIhcFkQAAAfOfwwNIwAALR4IkKEpMJp6ZrWj1QUUgx2Yde32G/hIB+VVx6LUVlsCcF2Dyt4MQBzvFQgAKP62pvA2CUBaTZmF/RjLEV+dn7nuVvuo4fQRFQBYoHRH31DKAgdX5EMSb0ZGXIy0uiU+JcLqEoBprvgZgBK/BKDEHxYBAIMEAG16NQDoJYAdO7QCQAKnL043N5+mbpB4qNEZ77CXlFRk5FMJfFOd/OyOxJ/deZ1A99+8Weue5gjALphFLL+yezcB2AhZmy5Y2Wnh9feSCGE1ET8DAM2D3WeHDKFuMGi80R/hl+CjqvgSBsBlc5V0vMpCqigRF4viN7AVXV252B3+S8jaKtdTZoH5q7IIaUUjJnEBhYHWxysA3ty4482Nb2r5+KyMuvw64fQqnBknT2aU7aQe0PX8MqoXaKUsaCvivWvQmiQA7qHQ5t7bkSt5RctWYzcD2MEAwsNDJICvFi7sewf6knRnIltPn8vdxGNYvGkcAPj42OPt9hJfTqpyAws1GRnaImRBXQAQf4mBG7i2snwnaxlp51R1FjnEYRfqgBo69nHO0YD1ngAKNxbiP7S9BFAXV1EhnN7D8KLw5riiirq4lXUHK47VIf6mC63tTU3trU3T78IJilJSpQcAwK5XeLlQAXCg6oMbVYife8DCep8RSqkpACD+e0hL70UPGD5S70/pLXQ6pyhY4BzfYi20uNDgBoD4Bxi4gQyQZnVZPK3OMquXOecIdgQA0vMGuPwbD+yg9RIA4o8T20+tAFvxlV59Te6y0Vh5wWQytLYaTOgBAFCp3KNiEPzxrldUADD8VV06/wUWfw4AZDUVqzoSy2GXHwyZiTGgHwGhLHGoj7Mk0jmUAVS4D54BxcVcr90E5fUfkJTGb36ox4gSDwg9hkthP4RQCDtu3Ic6dYEDF1CYPAHweowBwgqPbVoJyXJXfFCxrCgjDv8Jr4urO51bk1GBLDOUQ+IssxesKKlSqveeH7+iBnAAqo/YTTogsq49rOfB7m23brUOp2UGQNH4DJ1gEVnledP47pKvfLdEqd/9occo8TMAJX4CoFXilwBg+lQA5HoFAIcvviiZWsHXH4q5nVDzk9HqLLNXUaFLJlORqahuz4uQOCDPAkblUYvkx1bTw3oGt3Xi4ivLsoDBnVWeygNc3mYSsoQA4PnyFwDIMCglD8EjXc3/kAQAPbPE4Wx9PW6BF6RDkW1ci2+K+JsngQE9AB2QOwEudGNdRoU6y+zl/ohMmjWyf6uiyfduWEVSnJ0wZLw4UvkMTaebCCuqLOtVFQxKGasQdwSYZdcZPWweSykFFuKwlZxoOBdQXIiGmvUkVxJ5g5TaSivnHs3SqeQ1UZUl7Q1p9Bp3kQWvFicXNvvQfGX7cR8fmqs6oPozOp1KAqgClSyw1AKSnqVA/PbTXj3E7RWnn/81jrcb4loHme7+n/Pz5krWuu3GM5+hVnmOfAICAFVWtzdVE9g05VApHvNTPawnW8fLiYmPeXvofmCNztv2lRxRuG/p1AUXOl6rrDd6WFGyyqsXQ4oXnKe3sRIT2f5YAsY2PV4nNJPUS2nv/a9wQJ3yewPiW2OcP3wDN8LQvIHP3zO+7/kXJ8IvrYGuJBUDgEhqyruaAJSXa0I0eaSjRwGA1otw2DrqOs8HBt6hzb+tSbi4RAdn17jE/UI7UwJw+Po6xLOFjmsroj//fEMmr+eCCovl6lUfeqHu47d2scsG0WA5eSqMj1AovM/QiAB8JXZnnRvBul6u9k4/v9Ccmbzwn8ZIgROwwDPET6sxdeaEa5xOTfiSnHA+//OeWetce0cDVAzl5BwGgNb29lb570L73fZ+AFCqsWg4fgCIYuspLidbVxzwNgggzZOQ0o2AyNpG2JWHKQZgJ6sdycvR3CGdDbYyE6kFABD/+uyEgoFcUBHQEAHVV1XxZyNhcwUAy/r1FP+UiIBZo0zmY+2etcQc//3uzE5T54P1evSokvj4SB/w7I/jAUB4Z3N6ZF8f3/TmJRsYwMILraQLUOvwz8ocHR2ODlSo5V65sg8ANKx0B7IsJGGtLaraXXF+Nir0/r77fPb58wkXM1HAAACUpbZjvQJAfJY00EnLRt8gdPXPIyIuiwoRLqi4mlBQkFI9gQFQUWpDhNNZbwWAXADg+AMD9w8dOmVKaMAsg2FQ+3BYFs/2TL+/EIN4Z8qjgXqjf4kdpoP7kwCgMWkdMGNDI03hOD+11+xhrWWt8uHiwyfbGk+6AdjtjkhhPV3Fx2F0/tnyszixP9cCy8/UshP2y8/Q7Brg9sHeImvLX42JlLADy+E4HrxxZlhY8gSuEGGrjOrnagAg4wMA9RH4lCu+w5lLADpQ+mlxxm8LvFUytKTEcnCWofV5fOVzzAmVlDk7yAneP4/4M79GcSoBcJb4l8SHIH4+Hj8oNoeGLtv8kNojASjWGlnwS5eK16BMM6eidMlhFwBtpK/Bw3qGqqyn2J+SkASAPtM6fz7l62QG4O8RvwQQL95qOGnZDeCyLGaGVeYesL8ayxKANl6Lt125+/DV2CVTZZGzcrHZPDmvbPLm8O/RA4a39+uux+WQF2T6/ZZMxJ/yDbcHPcBGPYDjFwBM2lPL8jafyTCF4/zUXrOHlY7iStXDEDlUAPCNdzgdeHqz8z9Hwzx8SQoAR4/S6/yYo1FsPbUKADipewnZeMvxZcrS7q2LuNY3TMYPAQAUSfHbeDma/1xmtdIYYMYYQE5yYEFKyjdoLwMIC4sHAPzHSQAqKovi8L5w2uT8yrz8uPLiWStN7Su60COnkADg8fkWU2dmZkr/ZwWAoCCMAUEU/7M4np9BE57TrM3avLm8sHnhBkM0ffbX4S4mdoSNXiPiv3b7ypIlt2/rvNjaYnwXFQb99QRAO5QB4Fvio6PZeor4OAury7mYXfMtWeFvD/X6OpNqfbtkXpYLIkTBhX1w30gDA6D9Mfp2d/cTn6kZg7gQoLpaFlQsKH/J9Sj6p1/8Yktq76LFIDAtP39yXn5dXv4zs5DFqFB06Us8jYZn7v/GVRCBW4qrC4aKMQA9wJyzJFqbn2+IXrgkmgHkDqRV8nwE4DDU53DO7dt0C6gLCqZi+tdatHlyGhjN1lPL4vVbAwPvu2aVOyn7dd4h92ReVhREqAsuxk6XqyFplT0LMILXyklQUpiaVJlfWRkXt7g8P6M8I2Na1KyVpTt2vPjiRgjO/MAq3RKopsDd3lNFbuVDWTj/hmYTj3ctzQYCEIFRVzkfirUheRdcAwB1lpXsnyHAFOVyj2w9hdPk9UsPjVM+Oxv/9cdzx49VliF1wcVY1S84eBg9JavMLlyqeOrhw6mpl4qjooqfiSruM+sErLmHYP7++sijvduVYgfa7gX1+XV6Y48TzoF6WOFPDilfxZHUWWB1VlY+Fe12qTe0wCOIQKkE+SaAQcp6E1JvlZRSYaH+AyCPn1sTnxMqmq2SOsurXl5L6vUWnYFb4KXWJ3v39viFBXXWVFpT/EFY0wOiSjg//03Wmd5ZdRcSL9SJdyN4MRK4cuX69bHvtjWyLn4claHNqFCssfN/ACSSlF+MGKC8+fSFjHPbWOJ4Bw/+1VsldXvVy2sXQ+ug2Fgy108DwIHXPr4gfmHhs4fQDegL0g2dPhI20/2ISwA4B52fv5EeQncAwGk0/HReHj/u5qUGrny+oCBWNPhg48GuKK3GcMkKcR2DddI8IfQYIffvA8hfjEDBBklG4A8AHDj0DnTwr656mAApdZZXvcxWe+bM27e3bQujn/J6CoDH/FFkQs1dBnCiklL4izERbebSUmEMTE3HzOIzOQaw42+dnX/bCBGAFjS/heNXADQ27u+6eLHrIABkGOouKVmdsgyhiooMoU/58/ga1vnzNV/j9beUqB94v02JnwDopFxPzOqCCvUyAZi8rQa/d5f9fwAkcg/APXteApgGFWq0hZM9ANx9fkWTJ4CizOQiAWDBYnR8cf1BYHNq4PMAEAgACfsPgkBXVMWlS+gBso6lapJGqKVFI6T+BQpTz6ywuSzeKVVG6tCxtrZsdQPgeLu65C9W8LLyCxEAgFlm2+2IiHsAMOWpAKgHXKAe8AQE3j5BxMrp/NO4tJQBtFOKpp2sJAPYsTwuOTnuRQbwfcWNG5eEMLdc0kkABxMu7t+f0nWzK75nlrdMxpe8SAGgxA8fYVJlhf+nFpkVvUSn6RQAOCtd39WVi3gJQKS4f0R9bxAATAaAewUFADDlqQD+W9y1hkVRRmGyy+6ygrYleMVCM4sQoRvQKiFSBlG56CZiYYigEIgFlcJWhIJ0YUuUCLMbT1mhS4ClaRJPEQRElhbhpRD1qSyhInvq6f6e832zMzta/arebm4zOzvnnW9n3j3fOe9H8f/gev6HH57vpPZyMAbK0pESpAfz/YKA5YuWvb9skdnMBGCq6PO2lpbMz6l19pWhUZdg8h1ljvLHSOCiZUxASxyw/eM9F7Cbn1LHNGWugYHyv3pJgIcDhSRAla5B/zQCZNvdnj2y7U73/lAiYFVJ3/33980jJXkqAsDA84e+aaorq5MEYCaLlBjiVwgw73z//eadZgAEIAV3O6YB9qN4CASQ1t/KMkP82BEE4Mu/5+ieoyDA6pnVzd3G6Ni3r0P8aVqwNA94nJDcetfnWyRuB7Z80rqDvv8MPA+36y1M9W13escIEACVNW9eX9+8vyIghr0Fnq/r/IEdFnq/xP1fwbHjprFqZyYCvHDaYzRXGBkHJAoCArby5qtJa4KAGctAwIzqTR9/vP3j7Xu20whQ69gwAs7UgbPIfGyRRUYxs1LMCzy6tnWTGj8R8CkDnUfyDyc5WOiyxCtmQmTOGxcXd20cm7mdTIALI4DwvHBYGOopjceO9czaggDcA0TBA+4BIGCSsp1mr8YIAgKrqqs/BrbvOWr1lMa5egJ0WWQQAIhqXgAEqE9BQu+3OuilvL7W+FZKOAmHvYuBkwl4rV81WCB4CmNtgncag+XfKyr0bWyiq7kK2MDQdb2dPALUtzPWywznWolWoFcD/fv1Ul6pE1DKjVmkiloGPgMvPTh/qpGOWjsGoPeZUlF9+ypv//pVTspyLe5S3n/paR5YynvfweDt+qzzEAn5CWhkdySGR2NKMD4+1oH/c5WAsv9lO9qSqJZ5k5LbNgukKuerrxUmKrSXzyTQ2moSuJEgiiouIKBfAPBTpWO0IzJS9rAsWNAWPLR0ZQw9VyIisH1UQcnXnJVdSYjg/U/Twcdvl5/fewzejv0ZSlZ2SDmhsLs7t5w+I2yIozwjwwGxjFcZkflh+iz1L7VBtW+jzc3pzM8CwoyGUM7hBcjz5YIKqTSBaWrWWbTxcVZ6IHhgYNMAZ6Vv7ADEk4J9jgUBE1TpiConQzls5WJji2IHStN+8vErCEzzpSqlEVtnVG0dylnZEioQmMf7y7jnzXMTEDjBF/aHAG/n/YHD54us8xDE7WjurLVXuPDDlAjIiUzPyTcY8ImRKSBAZH0PHJAFF4+/jfDwd2wl5c5jw8xB9cSAzVeeL0tleZ8gpYik6yRlQp0KMSkrXb3uq2EXvpv8LmWluWNFEIAqBDcBqnSMTiQCEH7R/D2lu1ItkJZdBWm+aWkj0qq2YjtnZbkKawbvf4TQ39/d3d/Pf/TZFVjg+xID22l/jv6aiyYOP4DECBNQX9HgKMx3VRAB0Q5k9nNiiYCUICaA4p84ejTCp/25zQ21zCCgvHxmJUZAoYEJkOcLLzQMDE5fsRcaLDQ+BA5to8IwImCA4qcn7cePX6cSAG8zI0nj8WJ6fJQqHeMdiZH5dPk3IXyjOf/rkC5fhF9QUFp69jkoNOSsLBdIzOD9ScGcf+gio/GiQ+dfjxcYMV2SAN6O/YGJzcaJQuoSARXfFDkiwztiYjPzw8opNZcSaTBGRpYnwhwT+59/WEijfux/heI4URk+8+aamZWzzTKNPUyebxKZwRURwskLbSqatCj+nTsPCQJ8/Dyn35kAY27nV7VaAiZdDAjT03gUfdLl79rVbcxw5M+mvjykMEePSyutikPpKkvXEtkxzwQA2wzANv6jT0RBYJcggLfT/ofroKK2NSOi4ZOHOEBAaE650VEUkwkC+LGNf5SkJRFwzWiaGm08QbW+xxxZe/dWOvdmhs901EzP1BAgpO9UR74U4sBZbSYm4KNtOz8iIAlLSlGVSgoB/vUDQWb+bSAIGMnnTlL0ivgcXP62Tbu6zZE54bDW+toPI6CrNC6utPQcGgEsXRE/CGDlxe1Tt8Ay8NAtz9KffWBmtpXCv/NO1RFip9G80+hfh+MTAfmFFbGO0AUdMZnhsbPLUzLSMQjQ05kY5J8YGUv7L2scfaB/XOMLtH+8MysWU9tAT0tfX7gkwGgdIaWvvlZZEPAhj4DPQIDOoYIJ2GdsQFkiDDLcBJyvFjzE5+Dmtys7qDwW1ZIgAFJza0HaCIRf+v3XisMD1+IKAoRIsaRmp2/nP/pEzPAkgM3TcAecOFwc35Gf73C5CuubY9rDQQCMkVPgCms04kVkfvhs3v/9/nHj+hE/E1CE+LmYt69vtyQAOWSY1UkCZPyybQ7KkupCP9yG+ImAG2vUyXYyiLyCCfBvaPDXEGA8Xy14iM9v67Tj4u++dPduJiCgYF7p2WdXVZ177tenfT9CODzw58Wx9OQMlq/9ppvsvufSn/EVmAECKEGnOkIMP7TN/9A1fHwiIL+jor4+ph7FuUxAeUo+EwBvcBDA+7//Pp8PEyDiZ4AAPl8iQErfE4cPc8GSBNr4hDK/Wrb9ieOp8YGAffvEF078NmDpeI1a4DC1vjYxJ5YQDuArMCuwC4MItjaY7Kq6lmtz5VOApScr2DE3QcvjP4APPZ9fYpyyljdetMkWFnJ2lghIsVgc+UYjnoL+QeGz9ftP5cd/bCxYIJhk1tn6F7XC+qzzeP32K94ABAEXAyCApOONkwGRtT1rSLxaPQzAP4qwdKk34wvOEn/xKnDUmzBGB9477w4gj7frfX01hg8MvMbfYRZLmHAX4/35DfyOydjbo5pZJn1zvSXUUmEBVb4L6D+f/yMKQKYRvPKSBgeTUKp7gdT0c3XSNSlaZqzjo4upse0DAVFcDHytgmt3rwDqLNQXbekwAaLAwky1x3w8ofRVua/P4iImwwcGNQ198OBBLy2mMlQSnQGLF/vOnD5scyCjTPEpVnZhFjRtdkrbHX8U4JVUUVFfUeF4z2wjWHN9NtZ5SNFop8PBZXzF6dmjID0/ePjh4vLyYsXn4davd0mI/uKh8CWm2Wwz5uN2ki8xS1tRsMDHQy2ytnfzTn3tMLLQhocNAcETpOPEwaHeBz0IQLM5Q5ixzX4iIzVjZUZ2yr0ls8gQvEw6RNCdZm8+vmLjbXZjsGfbnTGdunBEgYa31/6KehdKS9dMkVlfH79JfdousCSnK7ANPviRlgBIz4TmDx7+xlUyq6T+vpkzUeM0EwSkKSil2l2y2AQBNTWoxiSLTZa2ggA+HipRAf65DxABOBN3HpMImGS42cClc+w4sXmoNfVlDwI4cDm7Ezt7UmpMQkRIRMLqEkYZHCJYOmeGH99xfDcISDWkTvHwPU7npplhskADBDhcaE5fY7EycimrmqvxCU5yBoIAZ0YqbEKH5W678VgFcsz7R4/u3MsIy7ZZFaQCtZMFAYsWGY3bXmACRgoCjGaWtg8h06Ma3N3+4Dlau/xRAd6CAJmCIQJsqanW0zUE5GjihxvdsOyYkEC/iLensB98SZl0iNiLG+bx3cczZ4832g1TZPxyBKRsYTM04XiBr0CM0+VyrrmYSwKmjB+6o2CS77qFC5WSl2hnW1tloiUE99yQoIuoDW3WrP19eAYMGwY16uuN2IDsXbtkSQwREGrYtuydDiLgHZNa22tmKawYQsRUiIIFs2cWOMgA3Ky+tuy2W63eY4d4jgCKX5qxPZFhD5oVaX9xeiPiBwGKQ0T4pszdxzcdnz0+WG2rpPoD5fMofiYgz4HLDygjYKhrfqDvsGTFwQEEVGbh8o84e5h950RuQ5vVtx8MjEP8RIA4YEJX6S7hQEG+xKGGmnfeWW5sJgLU2l4LZX0VApo3SkcIszZ+aeCw+D5gJq8Qcesv3t6bdyN9oBCwocKloKmpyTW4KmHx4mGLnVOyED9QdmxvZlvbk20gYNPu3cfDmQAZPxOwfosYfTTbRZ4kXhdQ/z6AEUfCYLz3QGDwsGS+/A8IAootCfh2+gUdIqlMI2B0H+KfQfFTZ6c6AjgLS77Eoc3L33lnUUcz+RKrtb0Wer86AmKE9jfrsrj06j5NQcMvYzdu5OsvQStKuGd3z8g0Bc7CzY/RyASobYAQckPCTdK3mJukqP6A70G4Aymf52W1EZRvsTWXtHM20hUSndEZVrQt4vKPFFJ58jdNfXPm9I07wZnJfaZt8maxU6D5PCKgbhkufkcz+RKTtJUE8PvlPeD55/kxcPfa0++RM/EA2d9ByRnuY8cV4RU2NSo1dcpULQHlhoxYEf4ZggAZ/jyE31g1NV+N/9iQ3aZp5Fs8nCDOn9sBRDl0SBSyxl5jgy/RZnWnQfunwdWcgPRG3NEgKviZkNs8XErJyW8coJo4jh+pWZNH29pVw88jX2I00eBGENRMvsQsRQUB/H4qxmasB2BuFp0jg+dmrefCxk4iAjhLTO5x08JgTD9pWpibAHiRWSIRvyDgSRDA8SN8ip8IcMdfXX0MBJBvscZHGN5iiJ8IyL5wTDYISLUB6n28FtpftrkxC0d98JCy+9e5peR57FEk8SkI0ElN8iVGaVxNjdFcCF9isV0QwNvXqklvgAjIkUOAAQImGW82KlVaIOACOKmOBwMqATnKUwA8yBEgKWACshQdn3kcbYDsW6w5v7UYeQSaqU6lEUBunLUCbxOGfr90A5qtjiqAYuqsu0yVkqjj9YBeatLmGmRlC4NCF7m3hwbR/zmPtq8FtPZm0bpaXsg/88sWNcuJ/81QGFCW01DA8k+iCsD+HrtwOhonqIh9pZgCYpghfIXF1RcNegLu1rVeb0+p2pDkmTcmWenO4QI2BXJIXRYVdUWS5h1508aqWXZAX2sszNDUz1uvgvXzKZf40MwX6R0puCXvVeC009T0uSZGL5aimlrgsbq2NdPARqFSAgp4++juYqdmsawwesRrpbPNs1Y4NcpiycbuLqcLv7OzKqfe8d6XG0UWF4Djg77WGFIaULPU6kQJpm0efXTtqZf4GFD8vkx6RwquRdYsEeI9aRSyppw2JYwHATiQphZ4rK5tDVnV6kt8gbQZcVuxHQEmInBgMyAIuIZqd6Ujg00bPhPgb8/KaiqrbGrLbNkNApAvp/dI5OprjSGllx9oKiiQWV8QgMB/+OabH14ngIBTLfGB0IXXGQjQOVLk0WSvcJTg/b1HjRmT3NWVfDWDCcDxNLXAcqkrV0y3UGKUVv4KS06k4a5IvsFGg82W4pTxny4IQPzI+E1sngil5yZABvhCtr2msrKsrL2sJbNpSWwYCHjpvQx1u77WGAQ0lXVtLaiSWV8i4BCmYcYJBtby8ckugn1ozf5iBHD8TIDekSKPJns1S4SMRU3pxStXagkAnZpaYNGuHjElLcIqCVhY2DCnetjWrajuRUbI2L1ypc3s3Mzxn75ZElDnP3L4yJ3NUHoKAcoVDsKZVFa2tcMvP65lScvUOx5JwdpRe1ezozwmS30CRslaY5WArtTcLrmEBxMw7hmgkVYgen2tCDg1JCRVU5w9wPEzAXpHCnah1SwRMgQP3ITkZDseusBz8V6cNVVrgQUBFYGrdwRWSHO0woVz6ue8m3z2OaVLUZxs6541q9uwsuH4McJxk5l+506sI9P+kcNJKofILyjPWI7CXB0IaI/tmUEE7G8JuyPSkIFs0XEpTVuJAG2tsSAgI7iKs54gAN/9ZwjjBAHpQnnWObOF9BZKEvFLAvSOFAoBSOLheIIAFDFnX6olQK4mp86vm8v37i2HYwET0DBnznx8P7efc24ptmMEVNhsIe4sKxFw/sSLzIdkgYM+CxtKBLS0NM3vw11uMBNfgUhaNkuugLYaI0CNX0rpAy1dUWVx4v0g4NFHrxUj4DUQcKcgIDUqCgSYFQIGZPyt75r0jhRUIHF/ibpECBEA45mNl3KPPAgQq8npCDBmwARItKlRre2cBvpl0Ps4B2zrtmVPkPFJApBTbTbX1TWPBAH6goWhWI+wMhMFUC0tRwaXbAYBuP4Z6nS5rtaYf0scaKqqKsX7FQLoHnBtx2uCAGVPbvNKZwKMRhl+77smvSPFipmo9OD4BQFGIDk7N5mPgQssaoU1tcB6H18QUN9O8QNzh3LACcPUggQmgB4AdTv9rxl+1clLbnh3pq3bvHl+S8sgsGTzbBCwyuJu6zHX6muNJ9MSH+/jAPx+IgC3vh8OH0b8TADf1QFaLg1marcyAQNMQG8rCNA7UqygUieO/1U+Ht+YduzINQv4i1phtRYYBEzx8PFFbW77EqXN7N2rva/tDtEvqWH+uyU3QMDqrErG5vDNRMBe7ZoarfpaY7HEh/r+9fT4B15nEAGA6LYGmACcungMAia9IwXXInMWex4fz6wWTwgChhJyGd6EC7QqDTB5ojVNV5BAVN+od3AANJP0c8NUeTo7r3U8jqsuqaGrNZZaW33/ep37WR5B02amb03TO1LQXis2cIGEPF8mxw0vo4TSO6lRngycm8f6c3mL895Tz2D7IGRuUvQR8i6Tvr46qXoGgAINLomYCgz19qw/GeMMv2l8uPNxxQhZ3/ZmtCkwQ1pbLM+6cQvDKODuHLuccBrjlFL6KkDbR6f3Fc5YzwVaAi7X3WshTRmyE9NUbFxsSHwPwJewweXaHw2dW78SSBPS9Ko6T6l6BrLHqATOEXg6zDvbZseyvAEy6zu2MiElISTFnuh0kt1g1lSeKFXPx6Jvw4MpitYW5Rb9+bO5GytfIX3VeISPsFqwIXyJ9b7C/kgZKVnrzrIyFwhwNyPj7rTMlFecQrGvATrLmpYhY5SV5YLUTGNpSgURNVqpCgJycvCDTVr0gQCbPcAOF6ULpZMUChsnTAAdYoa/CATgt4Z6PhabgWtm+bUgQLPuDlas0J0/CEBgmtXx1HiEj7BnBsq80+slt0cwrW35yB14g7L/fU1N5SBgUd225prmZvzT8QIIWJyBq4/w9zaVHXiBCWgX8Z+tFEQs12QYckHADcgv5CN+SUDqJVi2WcQPAi5IwHjxi9pRVNQCFE2FoUIGtxKuIkxPeiUxalSq36jixYziFZ9tOwQoo+DDZyUBLpdRIQAXViN9RTx3bdnyKKUh7lrrE8J1pAUFUqh54bHEEBO6L92xXsaP3ekNdxIBzc11zXUdy5mANcZVxmJx+V9A3osIcLnjv8SeS1ng5WrbSOhS/ZIYdlsCHtDSIv/C8UUJiVEbEzc6isKZgLAVM+1m+xrCQWBNdN4jAci8+zqJEJTu3qp+PTRSuK4C+dHl/BoE0Fp2Bw4I6QsCEM2WlIwMUPDoQyCACyZm4IRYamsJoCzFS3dgvh1QZpxLvkCWt3lnc0dH3aLlNcsQcF7kquJVuPxNB16QBLTL+M+eYIew4CzwIqVSDwREqPETAUNxBTTl9xfMjSzescNZviM8fMCR4ggHAZhtUOJ/GQQsDh6VGuI7cxURsMZNgHL8IL5gD3f+8ENPA7JMd93Jnz8aNSaHxep44oLiB3IK4gcBomAibdy4UsSvJ+AOEKAvOJisLqbGAa/A+HfSt5/iv4wIcHH8IwKy3W12y/3l+TEBFL+6GpzNMwucixHEX38QMLBsERGAG4wHAaHOmc7a6Rw/E6B9vyRgeWddTc+yh4gAWcDR3y+lr/ARvj09/faHeLuQ3jNQyS1Xm5u28WfCbwI/t+oLDkiaNjMKmwUBaxo6cfk5fiKggeIfRj/OcEtpvhxZ4EWaR23hkJynn0b80qP0uTAmQOMHEO1E/JVU4VS0bFlReNjcL38W+Jjwc+/4jW/nTg/FuuF8fuvmHpSOQwC7zrBP8H03d7bcdwNPtbEZm0b6Ch9h3Ai2KFNxbqXGaX0vvXRFAB7L0REBYt21ukV0xfPqcfkXyfiR9Y12pQ3zTbCiBubQRcOx/+XXLJqjdWgAAc/h+iN+JmC2TY2fgBGgVHjtxlK54WGn8AkOsEepr1es4tEB5AEHo0Wef0ts7O0iQM5Sq6vjgQB1KpK2mw3ysy2M0JPa5k7K8roNKd4hmOZ0lnVqV6ML2+Vn99/ZXDdyotj/suWeDg1UEIG7AB4CjNlmXe1wvJPL3ABRkPFPPsG3riIo3xEQIGcZRZhEgPoUoP312y93t/HJ1eZOMifTFRwAJi2ODr7g8frdd9+/6jLs7y5AMHmC5B+yzO4SB5Jz0gwil0ACkHPCEv/kE6zvslOFsgCXVyAHitU5dFJabscO2iy211kmT4zXFUioApyxoiF4UrCKKVfrs7TwRvFwJt7Rdvqxj4cc26Skvrm0gl0hNrAWlu+9SpGm+uONB7T11nkEFvj4B2jV7T958uPT5k4+7zvluumPZxZQzdSefEVncRHlKRXvhLXMI8WPKHeeFfWpU66+2I2bxuuztDeopjkPA2+dIWt9xSIwsWFsniYW1SA5PFYWSLg/T18wofcN5l+D5JPlqidtkGTq3OXx+ZM7MLkB++7QDp7BMZ3sU5zqB6td5TUIeH29RyelT9QkjfEuCPDw+gIBWEYZi2lLPL5dn6X9vkK7uvqun0St78bg2KL89vZYIgB5e9EoCCFABCRkB4waFSgelWVy9ThVCut9gykfkJ7TiQVPmnqK1tyfZJrfE9ilfj4I2LFxdce+jn3+b/ASG3x+2Zj/svtJn+JRtByesj8IwK+kyFSLgoU+fl1pJcDoRrqTNvanpKutuUBxvXVXdwgYUAjQL2xMxcvrqhcutNqruc3tmFzSIraoKbCqpWg2ETBTNEqyEPLB9Ugd5et2f6tkSyMH4AQc0eK5H1NREWHj43OOL316J9DUfpAIWNJXUqDWOk/uwFjZV7gv1PLGp5IAX7vdzzfAHjJB+BRnj4Kxsbrw8hkPbXvo0ewQBe9CKnaljR5dMoj4B68dfcTgqbUt9fVL2g3Z5yhfKzYsMDaT+dghiyQgrQWPgVBrbkvuu9W9+bLWt6ioottNADu9BUIOEwF2q93X94QEapI4feLOOhs5/u6KCmuMQkBDw/T0+9e0d7b3HLw/2tQQtHB/ybw0WTsMAlZvWr3vDf+gjn1MAElfu1+C1c8vdQJtlxdMXXj5jIefKXxw/c8+Er1QSl1bYex73eC4/bcNjpMEpNTUpIiChvr65x21BssxBXRArK6N+M+/iKRv647OzoUNDXMKl7TX7tmDEeBYwKvLhYe3NLWAAG7MdHG36BgmIISywr7utrloJ8evpt0pfuSpkaN2kfSFUnQ1dC5Ys6aop70FvxVMFqyEg4qVNFkLfB4TsG/fGxQ/pu9J+dl9rX7D7NZRtF1XOwwCHq149MEv8UoABPAIaBwcd+2rg9cyAXyNm2XBQkPnlztiUqBZBIbwCGCLjzp/MxPgKK+GCij0r9/elrO9N56qLlnptBw4MBg+m5e8cFH8IECt5j7BGH7iininev1PT9osa4PxiypGSGsQ0NlQ1g4CsEY6pDKPgMZ5aUoW+rw3Vg+sw7y1nL4XBASEWBP8Un1puz5r7XXWaw8+mNJtVbDQZ8LWNEUJv/pqY3+k+v0X94DumApHtLpiob5NjdvcPr7utsJaavOSBIQTAZktLWeFzz6dZmpcFH8ZF0EtjaCeYVmQgIWTk4o1M4+VWVPNuuODgPbOpibcAfct20cEzJ+zv0TMoigEVK/m+CUByDonJEwYAWfJS2i7LmsNAh5c/60GV/gEY4EkjVsc33SgvbDEHdTXqlvxFFgQPUSF3pzse9z+GVWEgp9AgIj/0ieBcNPp90xfsMDF/cJXEgEbIsoA8l0mxA3qzdN4Ieh3VOmNLG9WT1N7T0/PvmUvEwFL+maUqtIZBLy9eqMIXxKAeO2pVmvCKN6ul9pev6z/9lktAd471BwtcF6e6vIEHkBAyu54TfzxenMyOFMzygWGTOXHP0HU+t56j3ITdF0IoJbX8/N88MiWE0sEb/1C0LfiPJwNrsCypvY3yHHC1FMwSiOVQQAeg7J8AzD9g7TGCPiOcYWCabqCB9XxVqAt3mPR1l9MOkD+aZ2Jz9CW+tL205OAQV43mBPQemmql776haClFI6Pjxbo1e1vMs31qDn4J2ntpZeKVgzkB6y+7tetEr2M7b0vM2B6JrerWdbLTxzBB+qzynqCshT4BfAMvX7JjPjElKypUxMdiZI3xV3CIrPEdDlOkyDmXj1yhMsfFOxou/XYx0mQ3sBUQH98fbxeeql4jq1h/vwGm1153bpDwaZO16ae3pdp4QG4aSvb3W1uFzWW9KHAAQUNgFrQYFINHAmmLMMW+sv4ovimN5htFVjj62HCzcDp8UYkiOm2K+6Cs3k1OpRVKlnhvPe43oHTvlSQ8X7UykPyNWFpkpDexe4CjgqrrbvCUIG/u7u7K1z6eEWBREKC6sBgt7UvXDjfliBf66XpyzcXw4UX5dlyu2JudrgR1lq37R+k6WwOXRY0cIpN9SF+NWuLdCDBrDD8xqZYUHpbwfe8dEJkfEa6IyMyIzIofDM1SIAAIRttstY3773pq5TjkTna+4unf6M5/lLZZrfaXcBRERGD6CNKbLaIwLLGTindu7oUKcxS0Wq1qw4MCWBgznxriHgNy1as2vQmgMLNuI4hgoDp0y9Us8Bk7tXYuB/3wMHGfhCgncpae5pYKFlK3XlHs7YYHzM+Zn5sPY3LWeZCEFCyEi1jW7bwyh5vtX6ptAF+DFSblMXYbObuzs5uKwhYtQrF2qNJqpOP8WlEsOpzvEFI7417Kzcvwn0QBEBDlJQsdux9zzXuSFl3EMULFMxQpDCEiJ/Nb1jACOswxYEhwTZ/DjHAr/F+Q4qM/+mON0EA1ieFR+aFQkoyAbj8TXPQlHek8dAHTMBTMn5MZgqhk91gtIv9s7Y8Rlj/li8oP8dvndkaE2M1SpdReIzqsr6FICCCYMzo6Ww6UiEIOHzg8OETh6+l2uM8nqVIxwDiLHJSFknv4tq9mzfvq2letjnMaQx1BZY4sVNZo6sisZDPZ96M0aPj4s5mKQxlZLdhPCOppUhFMICCgCXWEHptaG7GIBDxPx3XEX36zewRugBnL9vi6PL34RnY19j45utrP3n4ecKbEpdCGAHGhiVGaoDfjnsALr/lQf8P+L6UXm+hiSCcvkShrna4cKkwWcFPIXNPj9koCDgwsbFxeP+1JJ3xGvEXrzlYnIEs2ZqkY85KVHdnEQF1ze+AgIxIgyHCFpy7uqy5OAMEsI0vjZcROH8mAPEGQCj5ZZ/rlooh1iW33bbEGoXXMRUx3Rkcf08cLWV98kLJB+jyX4fLX0fT16d5ZpVp/UASxsaL68XqcTwCHnzrg5eZQb/qG1J4+Ct4K10bv4YAY4WrtrY+NHSFGAEnTvQfuZZylnjN8R8EA5QjjHZL6X3LQMDs4sgUw7JAIqAx0uEPAvj8S5EWl1KYpKEd9Xw0Ia9KRTDwwAMLU6PO9jZ0d3P4lOmJewME6KTkVa6SPmigvsbDb74mCFDjJwIGXU3AEQX70Umi+qQGpba/fLNqsksE97KUdsO0IUa47GCuqbbWbAmlgFHwcWI4jk6lt71uvwdRshOfpfyU6Ozra9rMXWaNByqaWppccUGQ0uL8x20dgaSxJIDiDaH4tVIxxLrwgQfmpIZ466WpXkp+4VooLj8qWCQBavyvjtvwjOfrL/yy/ahVW3yDfAKqM/j+z4Crr6VQ5yvMBAQCZloMGgFQVrgEXYX9OBoRoD8fECB/SvUAggBzs6UszlVcaGYCeK0KavbD/kzAqaUixsB1ty1J9e5Vbsp7qvYgw3GStCQp3NdY8vzrDBCgPvUIG3y6BLYKeAepbFrS/f27XlZshm9gRF/h6SsMAuRTgN7DBOArII7feKqCjHihH+QwYAL487qRpmMC9FL4r6Virgmo7WVAYP7Ue0ppif+1/4sTH7izrm5jsA0C+v2nELhEpJrhr1teTilEUCCOcvRortxpxYqkJOXopyrI0LflWdxrTwicJIUf2GCaq5WGSTC4nzZtndvyIgzgo2G7B2SNw1VXjQw9R/N+/epzQZM1OWZgnhszGJfq8MckTbGtbdIfXv82TD0xAzs00jDJiaxncIIsY1s3Nyy/PMgRCTsouR0ODVF+qpPt2P66ukOWBPX9l9cp6CkoaEk7z2io+YaADlfCVaNHqEBKqErGHa4QkD3l92xeZZWqAX+fku31b8M0vy8QpbCKFGYCVq97e906tvYhAiLb2spRmy+2gwBEfoni4njJ2MGYi5ZftDNhgnw/CLhIunuPXJ6WVjMZN9FOrRSeN8LdIgkwAUVFOQtynAvuKSrCC4Ph1z9+tRm6ugw2/MFg8Pq3QVnVsq+q3VlSImAdCEhel2tMTU5uRYNCZnkbehPk9pBsuwLy6LzQ1BlxzfKROy3yfweDAMR/jSwrWT7ZuDLBMCBvgj/9tHU8CKDoq6q8CRczAU6MAAyBBQvwgi/879lRUfRvw39BgCuwqa9MWeh4jkkSkJycm1yLv0BAZmI59WZI6asvUKC8PFWLi6zGyCtAgDR3H3PObQ+keUfFzAqJql5XnZzMbnCt80Yg/LRzq6puSsPEEAgQGOjJFH8wEH4dExx8MS7/f0JA55KyOftlv8WGsj3JYi2L5GRj7eNvm0FAW2Ybxf+LlL46qUq+vX2B15xPFilw9Zl43uV1irm9IMAeMmuW3Sj5hRIUBFS99VZV2lg3AZkopJQMSJ/jm25KMPxHBPS0NO0vk+eHE5wWLK29UpPffhwjQC999W1uuIeU1cD1REwlnT8ZBMjhf+W5D4AAc8isAnM1H5L79ogA79KqHxdV/aQSgPjBQLgkgG8D+Ps/ImAJrv+c990LKU9bLU82udZci2puvfRtL9Sux19/namzERUFO/3FdGBklljiYqRKAHyWv8Is4k8//cQNGCDAG6iqajmGphVJQHgPCBhQRkAqf/v/s3vAEjV+QQDHT0DG7vFWvdTEkFduGDxiBiOoXWLxGqVgQV3i4qZzHzCVggBzzziNFJ43huMvrfqpCk07IICR2TMwHwNAfQoA/9VToM+15HzNQspz8fgHkiUNraeQvu48MGDqp6fgYnfFQrS6xMWFY667rdTbaK45wBBGF5fNGKN1uU0GAYz5bh1wCS484T/TAUdNk7ULKSuFvK0SJ0lfHS677MzyFZrV1NQlLi6Aj9dYb3+T55IXM9CxogAcV/3vSvC/Bj1utPD6n/EnnaQbrf6BCX0AAAAASUVORK5CYII=)}.react-tel-input .ad{background-position:-16px 0}.react-tel-input .ae{background-position:-32px 0}.react-tel-input .af{background-position:-48px 0}.react-tel-input .ag{background-position:-64px 0}.react-tel-input .ai{background-position:-80px 0}.react-tel-input .al{background-position:-96px 0}.react-tel-input .am{background-position:-112px 0}.react-tel-input .ao{background-position:-128px 0}.react-tel-input .ar{background-position:-144px 0}.react-tel-input .as{background-position:-160px 0}.react-tel-input .at{background-position:-176px 0}.react-tel-input .au{background-position:-192px 0}.react-tel-input .aw{background-position:-208px 0}.react-tel-input .az{background-position:-224px 0}.react-tel-input .ba{background-position:-240px 0}.react-tel-input .bb{background-position:0 -11px}.react-tel-input .bd{background-position:-16px -11px}.react-tel-input .be{background-position:-32px -11px}.react-tel-input .bf{background-position:-48px -11px}.react-tel-input .bg{background-position:-64px -11px}.react-tel-input .bh{background-position:-80px -11px}.react-tel-input .bi{background-position:-96px -11px}.react-tel-input .bj{background-position:-112px -11px}.react-tel-input .bm{background-position:-128px -11px}.react-tel-input .bn{background-position:-144px -11px}.react-tel-input .bo{background-position:-160px -11px}.react-tel-input .br{background-position:-176px -11px}.react-tel-input .bs{background-position:-192px -11px}.react-tel-input .bt{background-position:-208px -11px}.react-tel-input .bw{background-position:-224px -11px}.react-tel-input .by{background-position:-240px -11px}.react-tel-input .bz{background-position:0 -22px}.react-tel-input .ca{background-position:-16px -22px}.react-tel-input .cd{background-position:-32px -22px}.react-tel-input .cf{background-position:-48px -22px}.react-tel-input .cg{background-position:-64px -22px}.react-tel-input .ch{background-position:-80px -22px}.react-tel-input .ci{background-position:-96px -22px}.react-tel-input .ck{background-position:-112px -22px}.react-tel-input .cl{background-position:-128px -22px}.react-tel-input .cm{background-position:-144px -22px}.react-tel-input .cn{background-position:-160px -22px}.react-tel-input .co{background-position:-176px -22px}.react-tel-input .cr{background-position:-192px -22px}.react-tel-input .cu{background-position:-208px -22px}.react-tel-input .cv{background-position:-224px -22px}.react-tel-input .cw{background-position:-240px -22px}.react-tel-input .cy{background-position:0 -33px}.react-tel-input .cz{background-position:-16px -33px}.react-tel-input .de{background-position:-32px -33px}.react-tel-input .dj{background-position:-48px -33px}.react-tel-input .dk{background-position:-64px -33px}.react-tel-input .dm{background-position:-80px -33px}.react-tel-input .do{background-position:-96px -33px}.react-tel-input .dz{background-position:-112px -33px}.react-tel-input .ec{background-position:-128px -33px}.react-tel-input .ee{background-position:-144px -33px}.react-tel-input .eg{background-position:-160px -33px}.react-tel-input .er{background-position:-176px -33px}.react-tel-input .es{background-position:-192px -33px}.react-tel-input .et{background-position:-208px -33px}.react-tel-input .fi{background-position:-224px -33px}.react-tel-input .fj{background-position:-240px -33px}.react-tel-input .fk{background-position:0 -44px}.react-tel-input .fm{background-position:-16px -44px}.react-tel-input .fo{background-position:-32px -44px}.react-tel-input .fr,.react-tel-input .bl,.react-tel-input .mf{background-position:-48px -44px}.react-tel-input .ga{background-position:-64px -44px}.react-tel-input .gb{background-position:-80px -44px}.react-tel-input .gd{background-position:-96px -44px}.react-tel-input .ge{background-position:-112px -44px}.react-tel-input .gf{background-position:-128px -44px}.react-tel-input .gh{background-position:-144px -44px}.react-tel-input .gi{background-position:-160px -44px}.react-tel-input .gl{background-position:-176px -44px}.react-tel-input .gm{background-position:-192px -44px}.react-tel-input .gn{background-position:-208px -44px}.react-tel-input .gp{background-position:-224px -44px}.react-tel-input .gq{background-position:-240px -44px}.react-tel-input .gr{background-position:0 -55px}.react-tel-input .gt{background-position:-16px -55px}.react-tel-input .gu{background-position:-32px -55px}.react-tel-input .gw{background-position:-48px -55px}.react-tel-input .gy{background-position:-64px -55px}.react-tel-input .hk{background-position:-80px -55px}.react-tel-input .hn{background-position:-96px -55px}.react-tel-input .hr{background-position:-112px -55px}.react-tel-input .ht{background-position:-128px -55px}.react-tel-input .hu{background-position:-144px -55px}.react-tel-input .id{background-position:-160px -55px}.react-tel-input .ie{background-position:-176px -55px}.react-tel-input .il{background-position:-192px -55px}.react-tel-input .in{background-position:-208px -55px}.react-tel-input .io{background-position:-224px -55px}.react-tel-input .iq{background-position:-240px -55px}.react-tel-input .ir{background-position:0 -66px}.react-tel-input .is{background-position:-16px -66px}.react-tel-input .it{background-position:-32px -66px}.react-tel-input .je{background-position:-144px -154px}.react-tel-input .jm{background-position:-48px -66px}.react-tel-input .jo{background-position:-64px -66px}.react-tel-input .jp{background-position:-80px -66px}.react-tel-input .ke{background-position:-96px -66px}.react-tel-input .kg{background-position:-112px -66px}.react-tel-input .kh{background-position:-128px -66px}.react-tel-input .ki{background-position:-144px -66px}.react-tel-input .xk{background-position:-128px -154px}.react-tel-input .km{background-position:-160px -66px}.react-tel-input .kn{background-position:-176px -66px}.react-tel-input .kp{background-position:-192px -66px}.react-tel-input .kr{background-position:-208px -66px}.react-tel-input .kw{background-position:-224px -66px}.react-tel-input .ky{background-position:-240px -66px}.react-tel-input .kz{background-position:0 -77px}.react-tel-input .la{background-position:-16px -77px}.react-tel-input .lb{background-position:-32px -77px}.react-tel-input .lc{background-position:-48px -77px}.react-tel-input .li{background-position:-64px -77px}.react-tel-input .lk{background-position:-80px -77px}.react-tel-input .lr{background-position:-96px -77px}.react-tel-input .ls{background-position:-112px -77px}.react-tel-input .lt{background-position:-128px -77px}.react-tel-input .lu{background-position:-144px -77px}.react-tel-input .lv{background-position:-160px -77px}.react-tel-input .ly{background-position:-176px -77px}.react-tel-input .ma{background-position:-192px -77px}.react-tel-input .mc{background-position:-208px -77px}.react-tel-input .md{background-position:-224px -77px}.react-tel-input .me{background-position:-112px -154px;height:12px}.react-tel-input .mg{background-position:0 -88px}.react-tel-input .mh{background-position:-16px -88px}.react-tel-input .mk{background-position:-32px -88px}.react-tel-input .ml{background-position:-48px -88px}.react-tel-input .mm{background-position:-64px -88px}.react-tel-input .mn{background-position:-80px -88px}.react-tel-input .mo{background-position:-96px -88px}.react-tel-input .mp{background-position:-112px -88px}.react-tel-input .mq{background-position:-128px -88px}.react-tel-input .mr{background-position:-144px -88px}.react-tel-input .ms{background-position:-160px -88px}.react-tel-input .mt{background-position:-176px -88px}.react-tel-input .mu{background-position:-192px -88px}.react-tel-input .mv{background-position:-208px -88px}.react-tel-input .mw{background-position:-224px -88px}.react-tel-input .mx{background-position:-240px -88px}.react-tel-input .my{background-position:0 -99px}.react-tel-input .mz{background-position:-16px -99px}.react-tel-input .na{background-position:-32px -99px}.react-tel-input .nc{background-position:-48px -99px}.react-tel-input .ne{background-position:-64px -99px}.react-tel-input .nf{background-position:-80px -99px}.react-tel-input .ng{background-position:-96px -99px}.react-tel-input .ni{background-position:-112px -99px}.react-tel-input .nl,.react-tel-input .bq{background-position:-128px -99px}.react-tel-input .no{background-position:-144px -99px}.react-tel-input .np{background-position:-160px -99px}.react-tel-input .nr{background-position:-176px -99px}.react-tel-input .nu{background-position:-192px -99px}.react-tel-input .nz{background-position:-208px -99px}.react-tel-input .om{background-position:-224px -99px}.react-tel-input .pa{background-position:-240px -99px}.react-tel-input .pe{background-position:0 -110px}.react-tel-input .pf{background-position:-16px -110px}.react-tel-input .pg{background-position:-32px -110px}.react-tel-input .ph{background-position:-48px -110px}.react-tel-input .pk{background-position:-64px -110px}.react-tel-input .pl{background-position:-80px -110px}.react-tel-input .pm{background-position:-96px -110px}.react-tel-input .pr{background-position:-112px -110px}.react-tel-input .ps{background-position:-128px -110px}.react-tel-input .pt{background-position:-144px -110px}.react-tel-input .pw{background-position:-160px -110px}.react-tel-input .py{background-position:-176px -110px}.react-tel-input .qa{background-position:-192px -110px}.react-tel-input .re{background-position:-208px -110px}.react-tel-input .ro{background-position:-224px -110px}.react-tel-input .rs{background-position:-240px -110px}.react-tel-input .ru{background-position:0 -121px}.react-tel-input .rw{background-position:-16px -121px}.react-tel-input .sa{background-position:-32px -121px}.react-tel-input .sb{background-position:-48px -121px}.react-tel-input .sc{background-position:-64px -121px}.react-tel-input .sd{background-position:-80px -121px}.react-tel-input .se{background-position:-96px -121px}.react-tel-input .sg{background-position:-112px -121px}.react-tel-input .sh{background-position:-128px -121px}.react-tel-input .si{background-position:-144px -121px}.react-tel-input .sk{background-position:-160px -121px}.react-tel-input .sl{background-position:-176px -121px}.react-tel-input .sm{background-position:-192px -121px}.react-tel-input .sn{background-position:-208px -121px}.react-tel-input .so{background-position:-224px -121px}.react-tel-input .sr{background-position:-240px -121px}.react-tel-input .ss{background-position:0 -132px}.react-tel-input .st{background-position:-16px -132px}.react-tel-input .sv{background-position:-32px -132px}.react-tel-input .sx{background-position:-48px -132px}.react-tel-input .sy{background-position:-64px -132px}.react-tel-input .sz{background-position:-80px -132px}.react-tel-input .tc{background-position:-96px -132px}.react-tel-input .td{background-position:-112px -132px}.react-tel-input .tg{background-position:-128px -132px}.react-tel-input .th{background-position:-144px -132px}.react-tel-input .tj{background-position:-160px -132px}.react-tel-input .tk{background-position:-176px -132px}.react-tel-input .tl{background-position:-192px -132px}.react-tel-input .tm{background-position:-208px -132px}.react-tel-input .tn{background-position:-224px -132px}.react-tel-input .to{background-position:-240px -132px}.react-tel-input .tr{background-position:0 -143px}.react-tel-input .tt{background-position:-16px -143px}.react-tel-input .tv{background-position:-32px -143px}.react-tel-input .tw{background-position:-48px -143px}.react-tel-input .tz{background-position:-64px -143px}.react-tel-input .ua{background-position:-80px -143px}.react-tel-input .ug{background-position:-96px -143px}.react-tel-input .us{background-position:-112px -143px}.react-tel-input .uy{background-position:-128px -143px}.react-tel-input .uz{background-position:-144px -143px}.react-tel-input .va{background-position:-160px -143px}.react-tel-input .vc{background-position:-176px -143px}.react-tel-input .ve{background-position:-192px -143px}.react-tel-input .vg{background-position:-208px -143px}.react-tel-input .vi{background-position:-224px -143px}.react-tel-input .vn{background-position:-240px -143px}.react-tel-input .vu{background-position:0 -154px}.react-tel-input .wf{background-position:-16px -154px}.react-tel-input .ws{background-position:-32px -154px}.react-tel-input .ye{background-position:-48px -154px}.react-tel-input .za{background-position:-64px -154px}.react-tel-input .zm{background-position:-80px -154px}.react-tel-input .zw{background-position:-96px -154px}.react-tel-input *{box-sizing:border-box;-moz-box-sizing:border-box}.react-tel-input .hide{display:none}.react-tel-input .v-hide{visibility:hidden}.react-tel-input .form-control{position:relative;font-size:14px;letter-spacing:.01rem;margin-top:0!important;margin-bottom:0!important;padding-left:48px;margin-left:0;background:#fff;border:1px solid #CACACA;border-radius:5px;line-height:25px;height:35px;width:300px;outline:none}.react-tel-input .form-control.invalid-number{border:1px solid #d79f9f;background-color:#faf0f0;border-left-color:#cacaca}.react-tel-input .form-control.invalid-number:focus{border:1px solid #d79f9f;border-left-color:#cacaca;background-color:#faf0f0}.react-tel-input .flag-dropdown{position:absolute;top:0;bottom:0;padding:0;background-color:#f5f5f5;border:1px solid #cacaca;border-radius:3px 0 0 3px}.react-tel-input .flag-dropdown:hover,.react-tel-input .flag-dropdown:focus{cursor:pointer}.react-tel-input .flag-dropdown.invalid-number{border-color:#d79f9f}.react-tel-input .flag-dropdown.open{z-index:2;background:#fff;border-radius:3px 0 0}.react-tel-input .flag-dropdown.open .selected-flag{background:#fff;border-radius:3px 0 0}.react-tel-input input[disabled]+.flag-dropdown:hover{cursor:default}.react-tel-input input[disabled]+.flag-dropdown:hover .selected-flag{background-color:transparent}.react-tel-input .selected-flag{outline:none;position:relative;width:38px;height:100%;padding:0 0 0 8px;border-radius:3px 0 0 3px}.react-tel-input .selected-flag:hover,.react-tel-input .selected-flag:focus{background-color:#fff}.react-tel-input .selected-flag .flag{position:absolute;top:50%;margin-top:-5px}.react-tel-input .selected-flag .arrow{position:relative;top:50%;margin-top:-2px;left:20px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #555}.react-tel-input .selected-flag .arrow.up{border-top:none;border-bottom:4px solid #555}.react-tel-input .country-list{outline:none;z-index:1;list-style:none;position:absolute;padding:0;margin:10px 0 10px -1px;box-shadow:1px 2px 10px #00000059;background-color:#fff;width:300px;max-height:200px;overflow-y:scroll;border-radius:0 0 3px 3px}.react-tel-input .country-list .flag{display:inline-block}.react-tel-input .country-list .divider{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #ccc}.react-tel-input .country-list .country{padding:7px 9px}.react-tel-input .country-list .country .dial-code{color:#6b6b6b}.react-tel-input .country-list .country:hover,.react-tel-input .country-list .country.highlight{background-color:#f1f1f1}.react-tel-input .country-list .flag{margin-right:7px;margin-top:2px}.react-tel-input .country-list .country-name{margin-right:6px}.react-tel-input .country-list .search{position:sticky;top:0;background-color:#fff;padding:10px 0 6px 10px}.react-tel-input .country-list .search-emoji{font-size:15px}.react-tel-input .country-list .search-box{border:1px solid #cacaca;border-radius:3px;font-size:15px;line-height:15px;margin-left:6px;padding:3px 8px 5px;outline:none}.react-tel-input .country-list .no-entries-message{padding:7px 10px 11px;opacity:.7}.react-tel-input .invalid-number-message{position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;color:#de0000}.react-tel-input .special-label{display:none;position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;white-space:nowrap}.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media(pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}:root{--admin-spacing-xs: 4px;--admin-spacing-sm: 8px;--admin-spacing-md: 16px;--admin-spacing-lg: 24px;--admin-spacing-xl: 32px;--admin-radius-sm: 6px;--admin-radius-md: 8px;--admin-radius-lg: 12px;--admin-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);--admin-shadow-md: 0 4px 12px rgba(0, 0, 0, .08);--admin-shadow-lg: 0 8px 24px rgba(0, 0, 0, .1);--admin-transition: .2s ease}*,*:before,*:after{box-sizing:border-box}html{font-size:14px;-webkit-text-size-adjust:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5715;color:#000000e0;background-color:#f5f5f5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body[data-theme=dark]{color:#ffffffe0;background-color:#000}:focus-visible{outline:2px solid var(--ant-color-primary, #1677ff);outline-offset:2px}a,button,[role=button],input,select,textarea{transition:border-color var(--admin-transition),box-shadow var(--admin-transition),background-color var(--admin-transition)}code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.9em}.table-row-selected{background-color:#1677ff0f!important}.table-row-selected:hover{background-color:#1677ff1a!important}.user-menu-username.ant-menu-item-disabled{opacity:1!important;color:#fff!important;cursor:default}.ant-card{border-radius:var(--admin-radius-md);box-shadow:var(--admin-shadow-sm)}.ant-card:hover{box-shadow:var(--admin-shadow-md)}.quill{background-color:#fff!important;border-radius:var(--admin-radius-sm)}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#009485!important}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#009485!important}.ql-snow a{color:#009485!important}.ql-toolbar{border-top-left-radius:var(--admin-radius-sm);border-top-right-radius:var(--admin-radius-sm)}.ql-container{border-bottom-left-radius:var(--admin-radius-sm);border-bottom-right-radius:var(--admin-radius-sm)}@media(max-width:768px){body{padding:0}.ant-layout,.ant-layout-content{padding:var(--admin-spacing-xs)!important}.ant-card{border-radius:var(--admin-radius-sm)}.ant-card-head{padding-inline:var(--admin-spacing-sm);padding-block:var(--admin-spacing-xs)}.ant-card-body{padding:var(--admin-spacing-sm)}.ant-form-vertical .ant-form-item{margin-bottom:12px}.ant-form-item-label>label{margin-bottom:4px}.ant-table-wrapper .ant-table{border-radius:var(--admin-radius-sm)}.ant-table-wrapper .ant-table-thead>tr>th,.ant-table-wrapper .ant-table-tbody>tr>td{padding:8px 12px}} +.react-tel-input{width:100%;font-family:Roboto,sans-serif;font-size:15px;position:relative}.react-tel-input :disabled{cursor:not-allowed}.react-tel-input .flag{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAACmCAMAAAACnqETAAADAFBMVEUAAAD30gQCKn0GJJ4MP4kMlD43WGf9/f329vcBAQHhAADx8vHvAwL8AQL7UlL4RUUzqDP2MjLp6un2Jyj0Ghn2PTr9fHvi5OJYuln7Xl75+UPpNzXUAQH29jH6cXC+AAIAJwBNtE/23Ff5aGdDr0TJAQHsZV3qR0IAOQB3x3fdRD/Z2NvuWFLkcG7fVlH4kI4AAlXO0M8BATsdS6MCagIBfQEASgPoKSc4VKL442q4xeQAigD46eetAABYd9jvf3nZMiwAAoD30zz55X5ng9tPbKZnwGXz8x77+lY7OTjzzikABGsenh72pKNPldEAWgHgGBgAACH88/Gqt95JR0OWAwP3uLd/qdr53kMBBJJ3d3XMPTpWer8NnAwABKPH1O1VVFIuLSz13NtZnlf2kEh9keLn7vfZ4vNkZGHzvwJIXZRfZLuDwfv4y8tvk79LlUblzsxorGcCBusFKuYCCcdmfq5jqvlxt/tzktEABLb8/HL2tlTAw8SLlMFpj/ZlpNhBZ81BYbQcGxuToN9SYdjXY2Lz7lD0dCQ6S9Dm0EUCYPdDlvWWvd2AnviXqc11eMZTqPc3cPMCRev16ZrRUE0Hf/tNT7HIJyTptDVTffSsTkvhtgQ0T4jigoFUx/g+hsX9/QUHzQY1dbJ7sHV02Pduvd0leiK1XmaTrfpCQPgELrrdsrY1NamgyPrh03iPxosvX92ysbCgoZzk5kP1YD7t6AILnu+45LykNS40qvXDdHnR6tBennz6u3TSxU1Or9Swz6wqzCsPZKzglJbIqEY8hDhyAgFzbJxuOC+Li4d9sJLFsnhwbvH2d1A3kzAqPZQITsN76nq2dzaZdKJf4F6RJkb078YFiM+tnWZGh2F+dDibykYoMcsnekdI1UhCAwWb25qVkEq43km9yBrclQMGwfyZ3/zZ2QK9gJxsJWCBUk32QwqOSYKRxh6Xdm3B4oMW22EPZzawnR72kgZltCqPxrdH1dkBkqDdWwwMwMO9O2sqKXHvipPGJkzlRVLhJjVIs9KrAAAAB3RSTlMA/v3+/Pn9Fk05qAAAUU9JREFUeNp0nAlYVNcVxzHazoroGBkXhAgCCjMsroDoKIgKdFABBwQUnSAoCqLRFBfcCBIM4kbqShO1hlSrCJqQQmNssVFqjBarsdjFJWlMTOLXJDZt8/X7+j/n3pk3vNq/bb8+3nbP79137/+dd954qTVt8uTJL73OMhqNer03ady4cWOhWbNmjV+0FfKGjMb36Y9/1fXUst9cb2y8/lpb797z5k2dOjXVD9Ljn59fcHBwQEDAgGch3l9on6feeeedn0r9kvT222+/sErRgvcDArwV8f5tN/rcvPnMZ22pqVFRSVGjR38k9Rsp9fLql/MXLj20VGjt2rVeak2Og/auI/kHBQ3We/tCo0ZNhwYNGj58/NaWlpbOyMhIX1//2/jTrICvckhXruQsWbJw4cL3tzhPORynSk5lZWVtglL9IkmdDQ05NqvVGhLwbKSUL+Tvb9yH/2sj+eN0IZZ3fvq3Hnp71ZtCOyofdnTYSzq9xX7UtsF9+/Y1FpeZT54sc2aUlq6Jy89YM/qj2oZaoeOkMR8dV/Tee++NWb04rrA5MRYKDAyc/NKCpwDIyKhE9LEzZ/r4DLQAAE6EyEeM6AcNH7m1pTMnB+fHX7tG9Bs0Xt+GwM/frqm5tz950aKDk6rsiA0xbUrbRAii/BDeV9bGhQsPRlyOCAuZ9GykZwT++n2RHPnVYQU+oaFDPQD8jEQAPiDdaLPaHGVXbn/O7YHQuIH9B/gYgzts1iqrtSopKWlNRkzS6I8arFaOFvTfew8AfiYil/rN6sWTKwtbArOzExISUl7+vwCuQNt8Bg71AQCcTwNpWeFbW3IIQEmJr08XgIzX2xDcvZrs7Jru5EWXwwKSwh2RkQ77w7Q0bXp6YRoDaKO+kZl8MCwsYpJ3pEf8liAAoPhDhqUMQ/wAkF+oqKiosJYA7HxotdnTtVe6Pr/S0h+AI90QffU3T9obGuwdD5PqkmJiMtbM+ajWI/60TX0COhoarAAE1dfXV80FgMmLi1oSKP7/B6ASAGyBV4YM7D/Bx8/bF7g5fgmgEwCCSiJtJQRgxEi9zZqVdYUu9pW0tLCIgOvxdR0dpxx5aWl7EzV7CYDV+tXnCzMzkzMvE4AFlTuhZaSf/OQny1L32RC+JcHikzJ06NAJoe+YNKRbsbG3xPlWZTxssNmdOP/J27ffudLJ60V7DAaT1lxRVvfwYe3Jlrq4uJiKjAwAcIWP+BkAhV/i7HA0uAG8BAIUf8qfzvwvgJcQf+XMK4GWi8OGTpgQ6uftzwC0LIM2WgcASwaXOBwlA7v6/YgAhFRt2pRGeu0/UyImbal77eHDo2kVAJAeKwE0fl6P63/5nSlTAKBCiR8AovbZEL9lf8I5AMD5booAE7OzY8X5fhGJi0/nTzTcMh+80iIBaF0APqvIu3EjqfRGcV3S4aSKYk8AaW4ADU4gOFlfn8sAXnoJBDpTCMDL87zU2kwATl+x1Nw+P2HChKHBBMDHFT8DwGjX11FSYu/f/aMf9XtOjwAacf2hmxRg7ywXDrr30kb7NVhDquo/z0y+nJs7ZUoYA5DxM4BFmcnJyV93PzjbvQhK3urqAYF7xflWVT5ssDaU4Ox7T9+6Ei4BaN0AUkvXJEExMTGHD9cdFgA2yfgZQAP1f0dJw0lrfS4BmIb4z5yZBgL/H8DibbehGROenQ0AQRhvZPwQAGDQ8wlqsFkmdP9ofr/n/OgK2ml1xxQECAAy/tdee++91wCA1mfWJy/KXUTr536T+O67764X2r9//T+3JkPdDx50f7qItDXfff+zeAxY1lYV0VCmPV1Ts5fGAGUYDbHpo0qT6vKTignAtWvXiuf0StwGZZPQybMPAYC8/xF/bj0AUPwvvzytKCdl6dMAvJxRuXjxkCHnL86YMXs2A8B4m4yWQTrdIp0uByMajcATJrwzXwCIiIjAFSrbJwGI+FlH00YH8/rQy5enQPsYgBK/BLCI1c0Afonhn/XjH8MNLP9o1Y4Pfg795N9hYQ23bt1q4fb07z+A/ITR2J8AFJnqOP7iuj7Fc35TK+9/bkPaM+NGiSnsB6wRIwGA4n/5T5Pzc5aeeAqAP1VCM4niWRqVgr1p1sEYlskNJQC4BQZbLJi0MAgCgBUKqYo3VEVEhIWFTZqXtYmVxiIAtB4QeDUAvMuSFBgAJCkwAKHlLAKw4wMIFG5URVgdLdwedEq6BuCgj1qzpi4uiVScYa6I0fWKJQVC2aRDY0eNWrlyECwMMIDDc2vZ6UF0F7z8tB5w4kTvtZ+ygklGkk4lvZ6sne45SDg8aJIQ2z+4Mmg0qcfauXPnfvPNN9XV/1S0VSWyf1Ls4FZ5aIHu/blGKb2UOM0ckq4PmsZ2b8yYMb2l4FbhX8ePHwmhuSPXkhaQ5q0tXzBvntdUUq9eSyFu9njXxpA74Leg198yktRWVI4OkAkymw2Q3WO90+nnN3u2H0QkHI6JpHHj2GvTYdsupd68GfVZ4yTJqJeUaNKhQ+rzCUvOMXEr//4vD3333XdLe+rRJx4iqumDnT2O5zW1HII1hPLy8pJGjz9GWgk9D61Al4fWkWay9VRbUa1GEVCYDRoonu0dr++n0ZQ0dMCNdDRYHVrtuImjWHQ80lvfl4WfhJetw1CFm6h+rkazd28iJHvyIe/IHt7ZOBY7o4GPH4smPqf7nRwz/sH6bmmi2HtvYiBUYPxEcZakt701PdsPAIhb3DBbYmIIAOK+F9HXJ6z7t799AwDI48+cOQRi66m2ogoAYVwIQEkQb8DrJza1azRWq9NpjUjXtg+aNXHU9EEQHW/YsGFD3toHMFZbgzUsDNPkPgAgpScG1vA4TgB8PZATAAoc6IasWPHhhwCQkyNCdwMIJCVqDabA8+cAAJFLYVD92dvpjvQe7ZcA7p0/350dEzNmy+iRAHBPrO9+AwB41Of4h2HoFdZYhsfL7ej7QmbSBdED/GkDXv+ju9Pv4i9mM+g09Rs1duKoQSQR/4whb7msbFhufHy8M2xup6AZ3sHzWOChaveIWQCtn00A7s/84MDuD4bd+fBDcYEukrVna5fwMQPAsqnQZOqqLtBzezysvHd6z/YLANndUELMGAmgXqzPfeON3+IE8PHbuL2YegYCAO+/fz/io2VMM+5HpR/BGXIPGCzix3oAaBo13aApK9Mahg8fNAo9ANsPGi7iB4BLZRUPH9advJGb6zx+3Jk7FwFtCNekNzQUabW3cAv0Ek9uUA0U+PGsY4NmzrxQVBS3e82wGQDA7bvI8SsAsgNP7y26HV4GALyeJzGaY5J18fZ4GT+3DwBK8/K2ZF/s7v46ZYwEsMJHrJ/gApBJ8QPAs9gh2BYBnT077OwUnvcBwB0/nCEAQPFBdADefv5dPEu3p2u18e39Bg2aPou2h9wNmP3wi7bGL9qsuVOcizoBgM/X0BBtamggK2wGABn+WSLw8awm9P4Du3ecys+aMWPGt6J9medF/EsBIBbxJxSFm4vM5moJAOGL+AHAO90jfglgy5bshO7uFAIQM2fkyhUr6sX6fW+MJQDYX1wvWI/+uOIc79mziJec4ESxDPGy6AF9RfzYHgBw02s7yswNhf1GDJ8+lvcfPgKrxfoAa0S9uP9HTV95LHdur8TzuF7W5OSqDdEGAFiaiIjk9U8hAMdw+1Ts3r37VPOMGR/K9l3k+CUA9P9b4c6y8LKC6upqAiDj3wpxD1Dix/m9Uku3KAD6xMx5DgC6xfrLYwnAEuw/jOJnAMHjpnvECwA8aK5YseK3EA2aogf0pQNIAIOaXI8S0/sBAPaHaLUEIOJHPmjUsWACACN7/qLVmoz2Zjabv3x8X+oBdP/DWeih94d9sHv3BzO+fOOND6l9C93xL00BgOy97dHo/ZHm6EcAwM8OHlZ+YLpFtF9eQAGA9+81pg8DQCzdU3D9Ef/YN3AC8OP4Z5D1DBg7XYmfAKitqYl7AA8AvDxxVLtGW1VVVhYRZjC0jhg/Tuzv3j6gCuEjfghGYd/cXrFk5BNqai4K633k938h/Zp15C8Tx68E7X7Dtm2b8QZEAH743j8gYQQwC8TGlp08Z7ZWC+k/4eFf6pc//Sje3+TZ/pFeqXkQ7hoIhhoAnve8ogRgCQZBMQsgTgBgXykpAoDKmpoIuJP/wMvzwaOKHkisVfUnDYZZ2J/k3n4ST/94UiHt2/d+Lx7yttFAXnP+60W6+X9ggQFzGDdeOJT791fQNAgAv/qHFFMAAJou7AWQBCAkKXzknW71bD96APnWQ4c+hthRsv1Ty2WNA4InwYYpzhJSW1MT+lmkxx9awyfNhQVmvf9+c9M4kVt1by8tsmuLub3I/in6er7URGkh1SZ1znfk/xR9o2oP7F8Pax1vbO8RgJcwhYp8BvpMcD1t+0GffPJ7xUo+CA54Yc+DPXv2vGA0vkBavfqIW+xeH3kr8iJ9QxJegQNpu/TMzZupnzXOkQ7+OkumeCCOU+Si2Sr7kR6RkQZ/iA0y62PWVKlUiLy8fsz1MSd6s+YhLz1vu0t7ILS4T1Rqn2cU9fF6YQdpMZIAG6dNmzZ5bX+7PZKGsXi0CM9xwZ+0DmuVnejxsHMDJu3Zu24vkrT+QTtYq4/8nvWHPzyeCa2HUySRbzMKAO9CGhZ15Pku67uGlaS7frzoeFat26uY2CpzijiIrbKfLdH2buy7eKLkR8oAaXWhQNLH8+qEKirKy0tLS6O8bXVZQpvg8dPmbV/O+jH0IvRClLY06hkPAcBGqLa19ckBzC0HVg+0R9rQFpqFtWER1oBPhr3+eutPocevPzIaBwTseTORAu/rQ7sd2AgA4g69T1PlfmGVsX9fn8ESALk4ER5Gsb/Mny2tbzGkPQwASH1s2iTDBwC2yhYeVdgq+yXODAwpCCzAozT7Dml12fqR8VGcOMtk9A0pkUvsI7YvR+DQrl2vQLtWpdbFPAVAq8lgMrcygKEEoKQsJKTMYQgLDQn4ZN3r60T43ngSrH5g1rBcWaINAoCMX1plXq8GoBUAXNYX4RcfPqzVXa8tqk3bpATAVtnCVpytsp8tsCBifcJVil8BoFhfu7OE5RCyGn0HWxweQLYvf/HF2tp1T568IgD0Gf2MJilKBSCrPf5Cc3h76e4zuwmAv8ZqQ5cLMwwNA4DWn+IfwoeqX3/8kQvAQC2rGQCU+NkqywuiAqAVACa6rO/hYsR/uBi3wKZd7wGA1gPAcEvfhAQAmEEA4DwLEgo4/tmzwyYdYqurWF+9zWKxhCKlTjnV2WEBxkhHX5/G8jSZEZoKALWJWbuyYgWBVRgA6vqk9hgDNh54YtI2t2jbn5wBgAl2m1XTYAmxhFoNU5DG/uRnHuG/d/yjEa0X7kID+99tgu6OxTytxK8A0KoAaCGexz+rWHPpUtKaG4e1hwnAhhNZlLtMhwyG+HhDGVvl0PXZ2fv7w3oMe8vPijuf4of2AQCyutDmzWdI1zcv0Psr8SOFF2As0Th8Qr84CiEzcjSKni09b4l5C+al4r9uAcCBA1nthuYKc3spA4i0hWgNdFazgbK8n3iEjzct380S1rd/f+mkAECJH87O21/2v76eALQM4MiRX0+MKqXsFXSYAei8/d3WXLHaoQNTUga4AYSGiesPTSEASvwEwCrin4D4GYAv4m9MS5M5yalGX1uixccntCDwKqf5n5FSboGNBw4caG03m1tbz5zZs3v1bAAAKvtJDAuzAeD1c0r4DEBY4f4DKH4C8AclfgYQxFl0etRWAAj+RwjA6DUyfuoC3xt02F6JnwDQ8UNpeQAB+DTY6op/HxJLU+au3jj5JYRPwvR5ZoFN3v12oVxjkE+oXbG+4o71WH5dJa9VALD7wBPMArvP7AEAfaTVgm3NZkzcszHoBCvhM4BvhTcfMOCB8OZH/sDxp0hrCwA8PvKjNqkaAPaL80sAyvU3fF+sU1tptspDaRkA3gKAEIoforwaAPhZ3f2de4RWeUvAARqDKH65ZDKE7/nxriexm17ZtO0JxvhXX1n1Q5UAYCMQTCsvn7ybEuYL9JE2q9jfZJoSBgADEP5xt757MJM0xMcHUUOfzr9Pywlua+vtThhJAOvdPYDc/LjRayC+CxiDTm2l2SpbeJmPHywzyhLDXH1ICI96wEAcAlIr4ABKSThuXt4c75ByyJ2Zj9qDWbD2SSJmAdaqBSp5CdPoB5frx9LDdEVDG6C5cKnB/xz1kdB3rAcP2Bb7+X0q9GtOXirWU7HGEgBSwI/CoehosrIT2f7pFKmtNFvlYF4W/jvAI6kMoX2y1kBIZKBHu1PDwfNI7A1ZbP+UIgPMAn08hFnAIOROal3P6pnlzSQlK8pHf4F2s+AwjSRNvDsCadl76bQif9tbqDBdNvzPfxcy8+nCw1OULDDrOukEi7PXnngo+IDLY8UZZMmGOmsMn09yPTI8VwjhWEUkXIY4mYVu2/7qq9tJXuqsLoxJj+XMZqEWUmdnskabf8olWOI9Rl9Ik07vqeh1id/EpqZRUGKOhksqxveuZGm0Idx3g//+BPrd734n793wXnuFEoUOXc+ClJcrC4wiI8rv0On4GNUbbh8TBRtwDOPVWerxv2P9SuiPukKcBwd0xRPusuLSH+/xUmd1r9dm5XsuZzZ35kBLxCt+ANBoihA5CY6YAODEmnS8KRpIr7cBgJp2uyDkahcmi+EAUE7SpvPQFRrw9yfcvk5nPHUyApDokQWPBQCOXN7DafPo+ABH1RN8fL0t6OrVq1X3eC7C8dVZ6vHu2P/4xz//WQDAQ44rnmhXFlrYYxeAW+mJ6bcSEyUAEFCyqJdPfkX6HLp8+fJXBEBTyAR2uAD0tWjSfbh9BGAUxX/1zi8HVXcpAHZq03m9BNBptXY4ET8DUOKXANJk/AxAFETYbO/ayJ3aACAwcH3gep/Qru4PUZ8w/nW8X9gWOMSdZR7bRG81jkOU1XjeDUArFOey4i++WFW1vr4NAMTLaFjLvekuAJvylYKIXIcvFcQItzLB9o5G44CzylcA+Pe1+GjS+fojwGDO4hbcOfuXX35bnZ0deIgB7Nyp1QqrygB+1Wb9lbOBAUQTAOV1XuwhdRZXI7Q3UVplfSKS45aEc0MH9p/yTveKkQCw7WrIXneWmYDMrD3++Mnx47x8Iqt8GiTs4+bJ8y6V3Xj4sOLkjV27qjA9AYCBvGJsQkLgXraKBAAEOsCdZPfLdbjjRwQAUOJvxy7t/BK+NKuPhqVYTX6PEHJ101+qq8MWLcrUqdf/ne5Pa+OvMLPRPB3dBw+ychaDSkers7gaFiAliv31sSHr14euv0o8n322XoeAHXhwOyuydsMYwJDax0+ePD5OywCA8NM4fAIwdWfdtIqKvKyMXbuKDPWFRS8wAG3r3lvtF0RBAveANuqv7K2Dc+3K9Z/g7gGtlKRja9sjPjSQF6/eqc7+9ttztKz3Z6uarl22BcqL+jvdo1URvyqzGbSUpOTX6XlkW0mvpaqzuBLA6dOxOD4DKMA7koRzaMyUf3+xczUCvlVgic+m+CWAIUNqjz95vEkBwJdfAniVhj6+/xuRjGyTAO42XRjVxJMfACjxE4CuveRlC2SO7d13NJD59yJFSQD0QRj+tPHu7flhpqv6y+pv/9lF7wn0QexZ4g1bBIBZBCAnIsJaEm+QAJT4f/Naqrmndd2wCFMPhuHTp3OWQDk6vS1hfcL+6v6I/iU8vgPAkAs1+5vPIn62zt6+56AsdNChjx49OqcvwsEQPx2OjwcAIv5d+YW5hfkSgNZ814wNGADHP0HEo58Q8PXe2Fjx/JkCxd7T8uXn+CUA3P4AILcPFu8NuqrDziF+lND4hfCjigAQsywKozQN0Esc8eJ89LTHLk8+7ZmV+LnBnJX2KNAA8KvVQ//9xWTYkDNnJq9VW2m5XF8vl2lSx/X3AMDhU35kee7yXS94mfh8St78RNZDOetAEwBAmaRjoS6t4a7M0TKFcWxNtfE+cvvgsWKCjs3U8jwFAGxd0w150DIAkHO0QSjaSPM3Pa6BI+RnVtojAPAErBRo6AeHtN1YDP8uRra1aiutXgYALTZ1H287pn+SxAAA0pFB0aQT7wuzKbOQwV93kfC/Qt13j/TI0k5kg2Yqox1YY0VBwlKdWXgx6VvLzKlRrPEjRU53Q7QQdpenE/bW7G7JBpZOpUmfLVi9arXQWkhtpdXLZP8WzFsQFx3Hh2vm/CjrBZaX9UbvmzenotZWWmpZ3AOJUgvCtkq/2u2Vy0lmbiOfZhxLqSWuyC/FpS5qbCyiW/6LUm/om2rv6mrvR9VGyCRkNErs6uOprS2bcpaZ91Bbd0CTmsTiPd/i8gtuzxGVPpoIebTY61qJ+aT9pJOytEnQ6NfiSBlxcbWsMTRG7LBtdFvJ8nxI9FAyKEhgkJRa4jqHpigjQxMZqamry/fV1Hk3eWRx198zmjTpmEZovSbe7tRGq4+ntraGnlY9nJfT47Wu5YAGVIKSZIEF7y8KOrg9R5C++r2iI6/W9myvF2p3/YNwyqQYcl/Fc14TkcNAk+r60AkPhBzg0wkA4GNi2fyDCMAg5VURKkfz4uwOzWJN0GBNuR0Qrnk3jTrrqlh68O1wvDlyNCBp6R+k0Tqq7ACgOp7K2koA6b7xSgFGeuTgvkElWBYAEDgidxVY8P5c0DGMrbLTgx908tVTPdo73uumw+4baW94WByTlp+fFuMCkJGhBqD1ACCeFP2pTg/WVzkgTpiXUV6GtCCeD4Li82N29vYGoDs1/Lrvy379ngcADaWtg0JwMAe8ufp46gIM+brdYnEKL4/lSF5fItqjFE6ms6/g/UVBB18Qb1xgeno4x7qqf/XUKdr81i2ZIfJaU1LR0YEsbUxMWmnFUQEgP5/sYFxceXlWn1XIGR6w0JzDWosGZ2SIBgeFwJvDeBBvtxWVz5Ior2Xle486i4KIO1fP3aEXkiv0QQ47pa9CQoTTnP304227d08ejwMsszRaylwAZIGDvwCw/RQ8ObRRaBUXcIiCDpwPAN6NvQoN5vgHngOA5XT7NDVJa+31WUXSjRsxa27EXEuLawGAo3HU/+OysnBjlpdmPeNnExkYV16+HO3NEKMQJjgrGizjl1a0MTLI4xL2vek9KrBg+IiuhBRUFhMAfrojiae74Kcf715m8j0+ngDgj/vBR9QOAyArUmj2njc5cJmkOLCKa5u5PTO4YMM7cR0REPELAMtxxA0bpDX3SsXYFwNdu5bWmZN0bc7RjNraOMSPHpBRCgCrKWcYKq//njNrp4kGmyCQCQlGg5X40WDZA3z6u3vAnUEjRtw5d+5LAJi/Qm9xcOstFht9JxHp9/TjDeteKJyd7AFhuVPKhFX39vcXXd4hssjbuQO4IGxkAD6iPZy1Rg9Yj/g5/IGPAGD58kJ42Q0bwnE8AUDG39mZl5eToyMAiL62Fok2AkD34O7QM26jlIcG14oui6sYEjymrpxeyuUJlaZuqViWnz5Y0x8AQpt7J6V6Hxs+4k4N2chD386f/6EeRseB9lso89oBY6I+3lhVAQYDSHfud5qEkUEWGftj574ii2xWUqJyPTqfKOjg/WlQ5P7v4wJwSguhoJEV7hW1huOHKO1xDQD45aJWWyoAUAPOhBEAgwtAbZ2YhC2haDA/bbkfNvKmxmRobJF5mgEDNL/Q2EPKU72nD7rPPhq5rwf9CIDdageAUK2hod4GAKrj/U8BRiQ/ju8/R/7UJ4Ssbl9HutbpL63uUws2RH/k5bKe1vrKq8td1nsflDsXAES5OXQY9da639SS6uQswAC0ByyTlR6QAQkbEgIBQNbicggY8qCpdRpb3M6dNAguS4rTWC4ZjwVCXIABCitgdZ2RGNBDMAs4bSUAoDre/xRgsCFYvx5hkbkVVjfIv6/L6j61YIMLOs7ysuvttdSRV+vcnqEecycAiFpbFtUbiEpbzpiy6NKsDlhL/pS1ZQuq6TZwkjCYJOtuSVNJpZ8nIQeaf/NmPlKyz9R+b4T++cj46JF+9iM9JK2un5+0uurjkX2T5Qsso5Df/7O6smCj5/a93oI+5eUjKu0JVpLMJK/r18PDZRaWq4i3k0ykcHbLKmcqaoVlCvcQtGjEjyZ6emF1Fre3CpDa6vKZhbHn8wdLueytnqU8n7CTFSllugeMik0WaJd6CrUZDTfmwep/cY3S5M/hmqjP73V9Mj0uKjnA7ZQtFebiRWiVt8x/yrHW6GE1SYf8Hraa2psUa2m0QWRlQ0QWd8FiUrkrL5XK+ytm13iiUog3mzZtQbANsrpL7CfpySCz+G8BXEChYRVAxj1vSsmCDVUBxTfFTq3zpDO+Li5/Q9OFlrg6tdX2MovZCn6MtXM7PS8LAPQ+HQA48IcPeardqFesJtf6HvL2bby97tat9unCCQIAz/ORkWKeBwB3PgafKWxOFVYXCYvjwuqe4NAlnpcIgIhcFkQAAAfOfwwNIwAALR4IkKEpMJp6ZrWj1QUUgx2Yde32G/hIB+VVx6LUVlsCcF2Dyt4MQBzvFQgAKP62pvA2CUBaTZmF/RjLEV+dn7nuVvuo4fQRFQBYoHRH31DKAgdX5EMSb0ZGXIy0uiU+JcLqEoBprvgZgBK/BKDEHxYBAIMEAG16NQDoJYAdO7QCQAKnL043N5+mbpB4qNEZ77CXlFRk5FMJfFOd/OyOxJ/deZ1A99+8Weue5gjALphFLL+yezcB2AhZmy5Y2Wnh9feSCGE1ET8DAM2D3WeHDKFuMGi80R/hl+CjqvgSBsBlc5V0vMpCqigRF4viN7AVXV252B3+S8jaKtdTZoH5q7IIaUUjJnEBhYHWxysA3ty4482Nb2r5+KyMuvw64fQqnBknT2aU7aQe0PX8MqoXaKUsaCvivWvQmiQA7qHQ5t7bkSt5RctWYzcD2MEAwsNDJICvFi7sewf6knRnIltPn8vdxGNYvGkcAPj42OPt9hJfTqpyAws1GRnaImRBXQAQf4mBG7i2snwnaxlp51R1FjnEYRfqgBo69nHO0YD1ngAKNxbiP7S9BFAXV1EhnN7D8KLw5riiirq4lXUHK47VIf6mC63tTU3trU3T78IJilJSpQcAwK5XeLlQAXCg6oMbVYife8DCep8RSqkpACD+e0hL70UPGD5S70/pLXQ6pyhY4BzfYi20uNDgBoD4Bxi4gQyQZnVZPK3OMquXOecIdgQA0vMGuPwbD+yg9RIA4o8T20+tAFvxlV59Te6y0Vh5wWQytLYaTOgBAFCp3KNiEPzxrldUADD8VV06/wUWfw4AZDUVqzoSy2GXHwyZiTGgHwGhLHGoj7Mk0jmUAVS4D54BxcVcr90E5fUfkJTGb36ox4gSDwg9hkthP4RQCDtu3Ic6dYEDF1CYPAHweowBwgqPbVoJyXJXfFCxrCgjDv8Jr4urO51bk1GBLDOUQ+IssxesKKlSqveeH7+iBnAAqo/YTTogsq49rOfB7m23brUOp2UGQNH4DJ1gEVnledP47pKvfLdEqd/9occo8TMAJX4CoFXilwBg+lQA5HoFAIcvviiZWsHXH4q5nVDzk9HqLLNXUaFLJlORqahuz4uQOCDPAkblUYvkx1bTw3oGt3Xi4ivLsoDBnVWeygNc3mYSsoQA4PnyFwDIMCglD8EjXc3/kAQAPbPE4Wx9PW6BF6RDkW1ci2+K+JsngQE9AB2QOwEudGNdRoU6y+zl/ohMmjWyf6uiyfduWEVSnJ0wZLw4UvkMTaebCCuqLOtVFQxKGasQdwSYZdcZPWweSykFFuKwlZxoOBdQXIiGmvUkVxJ5g5TaSivnHs3SqeQ1UZUl7Q1p9Bp3kQWvFicXNvvQfGX7cR8fmqs6oPozOp1KAqgClSyw1AKSnqVA/PbTXj3E7RWnn/81jrcb4loHme7+n/Pz5krWuu3GM5+hVnmOfAICAFVWtzdVE9g05VApHvNTPawnW8fLiYmPeXvofmCNztv2lRxRuG/p1AUXOl6rrDd6WFGyyqsXQ4oXnKe3sRIT2f5YAsY2PV4nNJPUS2nv/a9wQJ3yewPiW2OcP3wDN8LQvIHP3zO+7/kXJ8IvrYGuJBUDgEhqyruaAJSXa0I0eaSjRwGA1otw2DrqOs8HBt6hzb+tSbi4RAdn17jE/UI7UwJw+Po6xLOFjmsroj//fEMmr+eCCovl6lUfeqHu47d2scsG0WA5eSqMj1AovM/QiAB8JXZnnRvBul6u9k4/v9Ccmbzwn8ZIgROwwDPET6sxdeaEa5xOTfiSnHA+//OeWetce0cDVAzl5BwGgNb29lb570L73fZ+AFCqsWg4fgCIYuspLidbVxzwNgggzZOQ0o2AyNpG2JWHKQZgJ6sdycvR3CGdDbYyE6kFABD/+uyEgoFcUBHQEAHVV1XxZyNhcwUAy/r1FP+UiIBZo0zmY+2etcQc//3uzE5T54P1evSokvj4SB/w7I/jAUB4Z3N6ZF8f3/TmJRsYwMILraQLUOvwz8ocHR2ODlSo5V65sg8ANKx0B7IsJGGtLaraXXF+Nir0/r77fPb58wkXM1HAAACUpbZjvQJAfJY00EnLRt8gdPXPIyIuiwoRLqi4mlBQkFI9gQFQUWpDhNNZbwWAXADg+AMD9w8dOmVKaMAsg2FQ+3BYFs/2TL+/EIN4Z8qjgXqjf4kdpoP7kwCgMWkdMGNDI03hOD+11+xhrWWt8uHiwyfbGk+6AdjtjkhhPV3Fx2F0/tnyszixP9cCy8/UshP2y8/Q7Brg9sHeImvLX42JlLADy+E4HrxxZlhY8gSuEGGrjOrnagAg4wMA9RH4lCu+w5lLADpQ+mlxxm8LvFUytKTEcnCWofV5fOVzzAmVlDk7yAneP4/4M79GcSoBcJb4l8SHIH4+Hj8oNoeGLtv8kNojASjWGlnwS5eK16BMM6eidMlhFwBtpK/Bw3qGqqyn2J+SkASAPtM6fz7l62QG4O8RvwQQL95qOGnZDeCyLGaGVeYesL8ayxKANl6Lt125+/DV2CVTZZGzcrHZPDmvbPLm8O/RA4a39+uux+WQF2T6/ZZMxJ/yDbcHPcBGPYDjFwBM2lPL8jafyTCF4/zUXrOHlY7iStXDEDlUAPCNdzgdeHqz8z9Hwzx8SQoAR4/S6/yYo1FsPbUKADipewnZeMvxZcrS7q2LuNY3TMYPAQAUSfHbeDma/1xmtdIYYMYYQE5yYEFKyjdoLwMIC4sHAPzHSQAqKovi8L5w2uT8yrz8uPLiWStN7Su60COnkADg8fkWU2dmZkr/ZwWAoCCMAUEU/7M4np9BE57TrM3avLm8sHnhBkM0ffbX4S4mdoSNXiPiv3b7ypIlt2/rvNjaYnwXFQb99QRAO5QB4Fvio6PZeor4OAury7mYXfMtWeFvD/X6OpNqfbtkXpYLIkTBhX1w30gDA6D9Mfp2d/cTn6kZg7gQoLpaFlQsKH/J9Sj6p1/8Yktq76LFIDAtP39yXn5dXv4zs5DFqFB06Us8jYZn7v/GVRCBW4qrC4aKMQA9wJyzJFqbn2+IXrgkmgHkDqRV8nwE4DDU53DO7dt0C6gLCqZi+tdatHlyGhjN1lPL4vVbAwPvu2aVOyn7dd4h92ReVhREqAsuxk6XqyFplT0LMILXyklQUpiaVJlfWRkXt7g8P6M8I2Na1KyVpTt2vPjiRgjO/MAq3RKopsDd3lNFbuVDWTj/hmYTj3ctzQYCEIFRVzkfirUheRdcAwB1lpXsnyHAFOVyj2w9hdPk9UsPjVM+Oxv/9cdzx49VliF1wcVY1S84eBg9JavMLlyqeOrhw6mpl4qjooqfiSruM+sErLmHYP7++sijvduVYgfa7gX1+XV6Y48TzoF6WOFPDilfxZHUWWB1VlY+Fe12qTe0wCOIQKkE+SaAQcp6E1JvlZRSYaH+AyCPn1sTnxMqmq2SOsurXl5L6vUWnYFb4KXWJ3v39viFBXXWVFpT/EFY0wOiSjg//03Wmd5ZdRcSL9SJdyN4MRK4cuX69bHvtjWyLn4claHNqFCssfN/ACSSlF+MGKC8+fSFjHPbWOJ4Bw/+1VsldXvVy2sXQ+ug2Fgy108DwIHXPr4gfmHhs4fQDegL0g2dPhI20/2ISwA4B52fv5EeQncAwGk0/HReHj/u5qUGrny+oCBWNPhg48GuKK3GcMkKcR2DddI8IfQYIffvA8hfjEDBBklG4A8AHDj0DnTwr656mAApdZZXvcxWe+bM27e3bQujn/J6CoDH/FFkQs1dBnCiklL4izERbebSUmEMTE3HzOIzOQaw42+dnX/bCBGAFjS/heNXADQ27u+6eLHrIABkGOouKVmdsgyhiooMoU/58/ga1vnzNV/j9beUqB94v02JnwDopFxPzOqCCvUyAZi8rQa/d5f9fwAkcg/APXteApgGFWq0hZM9ANx9fkWTJ4CizOQiAWDBYnR8cf1BYHNq4PMAEAgACfsPgkBXVMWlS+gBso6lapJGqKVFI6T+BQpTz6ywuSzeKVVG6tCxtrZsdQPgeLu65C9W8LLyCxEAgFlm2+2IiHsAMOWpAKgHXKAe8AQE3j5BxMrp/NO4tJQBtFOKpp2sJAPYsTwuOTnuRQbwfcWNG5eEMLdc0kkABxMu7t+f0nWzK75nlrdMxpe8SAGgxA8fYVJlhf+nFpkVvUSn6RQAOCtd39WVi3gJQKS4f0R9bxAATAaAewUFADDlqQD+W9y1hkVRRmGyy+6ygrYleMVCM4sQoRvQKiFSBlG56CZiYYigEIgFlcJWhIJ0YUuUCLMbT1mhS4ClaRJPEQRElhbhpRD1qSyhInvq6f6e832zMzta/arebm4zOzvnnW9n3j3fOe9H8f/gev6HH57vpPZyMAbK0pESpAfz/YKA5YuWvb9skdnMBGCq6PO2lpbMz6l19pWhUZdg8h1ljvLHSOCiZUxASxyw/eM9F7Cbn1LHNGWugYHyv3pJgIcDhSRAla5B/zQCZNvdnj2y7U73/lAiYFVJ3/33980jJXkqAsDA84e+aaorq5MEYCaLlBjiVwgw73z//eadZgAEIAV3O6YB9qN4CASQ1t/KMkP82BEE4Mu/5+ieoyDA6pnVzd3G6Ni3r0P8aVqwNA94nJDcetfnWyRuB7Z80rqDvv8MPA+36y1M9W13escIEACVNW9eX9+8vyIghr0Fnq/r/IEdFnq/xP1fwbHjprFqZyYCvHDaYzRXGBkHJAoCArby5qtJa4KAGctAwIzqTR9/vP3j7Xu20whQ69gwAs7UgbPIfGyRRUYxs1LMCzy6tnWTGj8R8CkDnUfyDyc5WOiyxCtmQmTOGxcXd20cm7mdTIALI4DwvHBYGOopjceO9czaggDcA0TBA+4BIGCSsp1mr8YIAgKrqqs/BrbvOWr1lMa5egJ0WWQQAIhqXgAEqE9BQu+3OuilvL7W+FZKOAmHvYuBkwl4rV81WCB4CmNtgncag+XfKyr0bWyiq7kK2MDQdb2dPALUtzPWywznWolWoFcD/fv1Ul6pE1DKjVmkiloGPgMvPTh/qpGOWjsGoPeZUlF9+ypv//pVTspyLe5S3n/paR5YynvfweDt+qzzEAn5CWhkdySGR2NKMD4+1oH/c5WAsv9lO9qSqJZ5k5LbNgukKuerrxUmKrSXzyTQ2moSuJEgiiouIKBfAPBTpWO0IzJS9rAsWNAWPLR0ZQw9VyIisH1UQcnXnJVdSYjg/U/Twcdvl5/fewzejv0ZSlZ2SDmhsLs7t5w+I2yIozwjwwGxjFcZkflh+iz1L7VBtW+jzc3pzM8CwoyGUM7hBcjz5YIKqTSBaWrWWbTxcVZ6IHhgYNMAZ6Vv7ADEk4J9jgUBE1TpiConQzls5WJji2IHStN+8vErCEzzpSqlEVtnVG0dylnZEioQmMf7y7jnzXMTEDjBF/aHAG/n/YHD54us8xDE7WjurLVXuPDDlAjIiUzPyTcY8ImRKSBAZH0PHJAFF4+/jfDwd2wl5c5jw8xB9cSAzVeeL0tleZ8gpYik6yRlQp0KMSkrXb3uq2EXvpv8LmWluWNFEIAqBDcBqnSMTiQCEH7R/D2lu1ItkJZdBWm+aWkj0qq2YjtnZbkKawbvf4TQ39/d3d/Pf/TZFVjg+xID22l/jv6aiyYOP4DECBNQX9HgKMx3VRAB0Q5k9nNiiYCUICaA4p84ejTCp/25zQ21zCCgvHxmJUZAoYEJkOcLLzQMDE5fsRcaLDQ+BA5to8IwImCA4qcn7cePX6cSAG8zI0nj8WJ6fJQqHeMdiZH5dPk3IXyjOf/rkC5fhF9QUFp69jkoNOSsLBdIzOD9ScGcf+gio/GiQ+dfjxcYMV2SAN6O/YGJzcaJQuoSARXfFDkiwztiYjPzw8opNZcSaTBGRpYnwhwT+59/WEijfux/heI4URk+8+aamZWzzTKNPUyebxKZwRURwskLbSqatCj+nTsPCQJ8/Dyn35kAY27nV7VaAiZdDAjT03gUfdLl79rVbcxw5M+mvjykMEePSyutikPpKkvXEtkxzwQA2wzANv6jT0RBYJcggLfT/ofroKK2NSOi4ZOHOEBAaE650VEUkwkC+LGNf5SkJRFwzWiaGm08QbW+xxxZe/dWOvdmhs901EzP1BAgpO9UR74U4sBZbSYm4KNtOz8iIAlLSlGVSgoB/vUDQWb+bSAIGMnnTlL0ivgcXP62Tbu6zZE54bDW+toPI6CrNC6utPQcGgEsXRE/CGDlxe1Tt8Ay8NAtz9KffWBmtpXCv/NO1RFip9G80+hfh+MTAfmFFbGO0AUdMZnhsbPLUzLSMQjQ05kY5J8YGUv7L2scfaB/XOMLtH+8MysWU9tAT0tfX7gkwGgdIaWvvlZZEPAhj4DPQIDOoYIJ2GdsQFkiDDLcBJyvFjzE5+Dmtys7qDwW1ZIgAFJza0HaCIRf+v3XisMD1+IKAoRIsaRmp2/nP/pEzPAkgM3TcAecOFwc35Gf73C5CuubY9rDQQCMkVPgCms04kVkfvhs3v/9/nHj+hE/E1CE+LmYt69vtyQAOWSY1UkCZPyybQ7KkupCP9yG+ImAG2vUyXYyiLyCCfBvaPDXEGA8Xy14iM9v67Tj4u++dPduJiCgYF7p2WdXVZ177tenfT9CODzw58Wx9OQMlq/9ppvsvufSn/EVmAECKEGnOkIMP7TN/9A1fHwiIL+jor4+ph7FuUxAeUo+EwBvcBDA+7//Pp8PEyDiZ4AAPl8iQErfE4cPc8GSBNr4hDK/Wrb9ieOp8YGAffvEF078NmDpeI1a4DC1vjYxJ5YQDuArMCuwC4MItjaY7Kq6lmtz5VOApScr2DE3QcvjP4APPZ9fYpyyljdetMkWFnJ2lghIsVgc+UYjnoL+QeGz9ftP5cd/bCxYIJhk1tn6F7XC+qzzeP32K94ABAEXAyCApOONkwGRtT1rSLxaPQzAP4qwdKk34wvOEn/xKnDUmzBGB9477w4gj7frfX01hg8MvMbfYRZLmHAX4/35DfyOydjbo5pZJn1zvSXUUmEBVb4L6D+f/yMKQKYRvPKSBgeTUKp7gdT0c3XSNSlaZqzjo4upse0DAVFcDHytgmt3rwDqLNQXbekwAaLAwky1x3w8ofRVua/P4iImwwcGNQ198OBBLy2mMlQSnQGLF/vOnD5scyCjTPEpVnZhFjRtdkrbHX8U4JVUUVFfUeF4z2wjWHN9NtZ5SNFop8PBZXzF6dmjID0/ePjh4vLyYsXn4davd0mI/uKh8CWm2Wwz5uN2ki8xS1tRsMDHQy2ytnfzTn3tMLLQhocNAcETpOPEwaHeBz0IQLM5Q5ixzX4iIzVjZUZ2yr0ls8gQvEw6RNCdZm8+vmLjbXZjsGfbnTGdunBEgYa31/6KehdKS9dMkVlfH79JfdousCSnK7ANPviRlgBIz4TmDx7+xlUyq6T+vpkzUeM0EwSkKSil2l2y2AQBNTWoxiSLTZa2ggA+HipRAf65DxABOBN3HpMImGS42cClc+w4sXmoNfVlDwI4cDm7Ezt7UmpMQkRIRMLqEkYZHCJYOmeGH99xfDcISDWkTvHwPU7npplhskADBDhcaE5fY7EycimrmqvxCU5yBoIAZ0YqbEKH5W678VgFcsz7R4/u3MsIy7ZZFaQCtZMFAYsWGY3bXmACRgoCjGaWtg8h06Ma3N3+4Dlau/xRAd6CAJmCIQJsqanW0zUE5GjihxvdsOyYkEC/iLensB98SZl0iNiLG+bx3cczZ4832g1TZPxyBKRsYTM04XiBr0CM0+VyrrmYSwKmjB+6o2CS77qFC5WSl2hnW1tloiUE99yQoIuoDW3WrP19eAYMGwY16uuN2IDsXbtkSQwREGrYtuydDiLgHZNa22tmKawYQsRUiIIFs2cWOMgA3Ky+tuy2W63eY4d4jgCKX5qxPZFhD5oVaX9xeiPiBwGKQ0T4pszdxzcdnz0+WG2rpPoD5fMofiYgz4HLDygjYKhrfqDvsGTFwQEEVGbh8o84e5h950RuQ5vVtx8MjEP8RIA4YEJX6S7hQEG+xKGGmnfeWW5sJgLU2l4LZX0VApo3SkcIszZ+aeCw+D5gJq8Qcesv3t6bdyN9oBCwocKloKmpyTW4KmHx4mGLnVOyED9QdmxvZlvbk20gYNPu3cfDmQAZPxOwfosYfTTbRZ4kXhdQ/z6AEUfCYLz3QGDwsGS+/A8IAootCfh2+gUdIqlMI2B0H+KfQfFTZ6c6AjgLS77Eoc3L33lnUUcz+RKrtb0Wer86AmKE9jfrsrj06j5NQcMvYzdu5OsvQStKuGd3z8g0Bc7CzY/RyASobYAQckPCTdK3mJukqP6A70G4Aymf52W1EZRvsTWXtHM20hUSndEZVrQt4vKPFFJ58jdNfXPm9I07wZnJfaZt8maxU6D5PCKgbhkufkcz+RKTtJUE8PvlPeD55/kxcPfa0++RM/EA2d9ByRnuY8cV4RU2NSo1dcpULQHlhoxYEf4ZggAZ/jyE31g1NV+N/9iQ3aZp5Fs8nCDOn9sBRDl0SBSyxl5jgy/RZnWnQfunwdWcgPRG3NEgKviZkNs8XErJyW8coJo4jh+pWZNH29pVw88jX2I00eBGENRMvsQsRQUB/H4qxmasB2BuFp0jg+dmrefCxk4iAjhLTO5x08JgTD9pWpibAHiRWSIRvyDgSRDA8SN8ip8IcMdfXX0MBJBvscZHGN5iiJ8IyL5wTDYISLUB6n28FtpftrkxC0d98JCy+9e5peR57FEk8SkI0ElN8iVGaVxNjdFcCF9isV0QwNvXqklvgAjIkUOAAQImGW82KlVaIOACOKmOBwMqATnKUwA8yBEgKWACshQdn3kcbYDsW6w5v7UYeQSaqU6lEUBunLUCbxOGfr90A5qtjiqAYuqsu0yVkqjj9YBeatLmGmRlC4NCF7m3hwbR/zmPtq8FtPZm0bpaXsg/88sWNcuJ/81QGFCW01DA8k+iCsD+HrtwOhonqIh9pZgCYpghfIXF1RcNegLu1rVeb0+p2pDkmTcmWenO4QI2BXJIXRYVdUWS5h1508aqWXZAX2sszNDUz1uvgvXzKZf40MwX6R0puCXvVeC009T0uSZGL5aimlrgsbq2NdPARqFSAgp4++juYqdmsawwesRrpbPNs1Y4NcpiycbuLqcLv7OzKqfe8d6XG0UWF4Djg77WGFIaULPU6kQJpm0efXTtqZf4GFD8vkx6RwquRdYsEeI9aRSyppw2JYwHATiQphZ4rK5tDVnV6kt8gbQZcVuxHQEmInBgMyAIuIZqd6Ujg00bPhPgb8/KaiqrbGrLbNkNApAvp/dI5OprjSGllx9oKiiQWV8QgMB/+OabH14ngIBTLfGB0IXXGQjQOVLk0WSvcJTg/b1HjRmT3NWVfDWDCcDxNLXAcqkrV0y3UGKUVv4KS06k4a5IvsFGg82W4pTxny4IQPzI+E1sngil5yZABvhCtr2msrKsrL2sJbNpSWwYCHjpvQx1u77WGAQ0lXVtLaiSWV8i4BCmYcYJBtby8ckugn1ozf5iBHD8TIDekSKPJns1S4SMRU3pxStXagkAnZpaYNGuHjElLcIqCVhY2DCnetjWrajuRUbI2L1ypc3s3Mzxn75ZElDnP3L4yJ3NUHoKAcoVDsKZVFa2tcMvP65lScvUOx5JwdpRe1ezozwmS30CRslaY5WArtTcLrmEBxMw7hmgkVYgen2tCDg1JCRVU5w9wPEzAXpHCnah1SwRMgQP3ITkZDseusBz8V6cNVVrgQUBFYGrdwRWSHO0woVz6ue8m3z2OaVLUZxs6541q9uwsuH4McJxk5l+506sI9P+kcNJKofILyjPWI7CXB0IaI/tmUEE7G8JuyPSkIFs0XEpTVuJAG2tsSAgI7iKs54gAN/9ZwjjBAHpQnnWObOF9BZKEvFLAvSOFAoBSOLheIIAFDFnX6olQK4mp86vm8v37i2HYwET0DBnznx8P7efc24ptmMEVNhsIe4sKxFw/sSLzIdkgYM+CxtKBLS0NM3vw11uMBNfgUhaNkuugLYaI0CNX0rpAy1dUWVx4v0g4NFHrxUj4DUQcKcgIDUqCgSYFQIGZPyt75r0jhRUIHF/ibpECBEA45mNl3KPPAgQq8npCDBmwARItKlRre2cBvpl0Ps4B2zrtmVPkPFJApBTbTbX1TWPBAH6goWhWI+wMhMFUC0tRwaXbAYBuP4Z6nS5rtaYf0scaKqqKsX7FQLoHnBtx2uCAGVPbvNKZwKMRhl+77smvSPFipmo9OD4BQFGIDk7N5mPgQssaoU1tcB6H18QUN9O8QNzh3LACcPUggQmgB4AdTv9rxl+1clLbnh3pq3bvHl+S8sgsGTzbBCwyuJu6zHX6muNJ9MSH+/jAPx+IgC3vh8OH0b8TADf1QFaLg1marcyAQNMQG8rCNA7UqygUieO/1U+Ht+YduzINQv4i1phtRYYBEzx8PFFbW77EqXN7N2rva/tDtEvqWH+uyU3QMDqrErG5vDNRMBe7ZoarfpaY7HEh/r+9fT4B15nEAGA6LYGmACcungMAia9IwXXInMWex4fz6wWTwgChhJyGd6EC7QqDTB5ojVNV5BAVN+od3AANJP0c8NUeTo7r3U8jqsuqaGrNZZaW33/ep37WR5B02amb03TO1LQXis2cIGEPF8mxw0vo4TSO6lRngycm8f6c3mL895Tz2D7IGRuUvQR8i6Tvr46qXoGgAINLomYCgz19qw/GeMMv2l8uPNxxQhZ3/ZmtCkwQ1pbLM+6cQvDKODuHLuccBrjlFL6KkDbR6f3Fc5YzwVaAi7X3WshTRmyE9NUbFxsSHwPwJewweXaHw2dW78SSBPS9Ko6T6l6BrLHqATOEXg6zDvbZseyvAEy6zu2MiElISTFnuh0kt1g1lSeKFXPx6Jvw4MpitYW5Rb9+bO5GytfIX3VeISPsFqwIXyJ9b7C/kgZKVnrzrIyFwhwNyPj7rTMlFecQrGvATrLmpYhY5SV5YLUTGNpSgURNVqpCgJycvCDTVr0gQCbPcAOF6ULpZMUChsnTAAdYoa/CATgt4Z6PhabgWtm+bUgQLPuDlas0J0/CEBgmtXx1HiEj7BnBsq80+slt0cwrW35yB14g7L/fU1N5SBgUd225prmZvzT8QIIWJyBq4/w9zaVHXiBCWgX8Z+tFEQs12QYckHADcgv5CN+SUDqJVi2WcQPAi5IwHjxi9pRVNQCFE2FoUIGtxKuIkxPeiUxalSq36jixYziFZ9tOwQoo+DDZyUBLpdRIQAXViN9RTx3bdnyKKUh7lrrE8J1pAUFUqh54bHEEBO6L92xXsaP3ekNdxIBzc11zXUdy5mANcZVxmJx+V9A3osIcLnjv8SeS1ng5WrbSOhS/ZIYdlsCHtDSIv/C8UUJiVEbEzc6isKZgLAVM+1m+xrCQWBNdN4jAci8+zqJEJTu3qp+PTRSuK4C+dHl/BoE0Fp2Bw4I6QsCEM2WlIwMUPDoQyCACyZm4IRYamsJoCzFS3dgvh1QZpxLvkCWt3lnc0dH3aLlNcsQcF7kquJVuPxNB16QBLTL+M+eYIew4CzwIqVSDwREqPETAUNxBTTl9xfMjSzescNZviM8fMCR4ggHAZhtUOJ/GQQsDh6VGuI7cxURsMZNgHL8IL5gD3f+8ENPA7JMd93Jnz8aNSaHxep44oLiB3IK4gcBomAibdy4UsSvJ+AOEKAvOJisLqbGAa/A+HfSt5/iv4wIcHH8IwKy3W12y/3l+TEBFL+6GpzNMwucixHEX38QMLBsERGAG4wHAaHOmc7a6Rw/E6B9vyRgeWddTc+yh4gAWcDR3y+lr/ARvj09/faHeLuQ3jNQyS1Xm5u28WfCbwI/t+oLDkiaNjMKmwUBaxo6cfk5fiKggeIfRj/OcEtpvhxZ4EWaR23hkJynn0b80qP0uTAmQOMHEO1E/JVU4VS0bFlReNjcL38W+Jjwc+/4jW/nTg/FuuF8fuvmHpSOQwC7zrBP8H03d7bcdwNPtbEZm0b6Ch9h3Ai2KFNxbqXGaX0vvXRFAB7L0REBYt21ukV0xfPqcfkXyfiR9Y12pQ3zTbCiBubQRcOx/+XXLJqjdWgAAc/h+iN+JmC2TY2fgBGgVHjtxlK54WGn8AkOsEepr1es4tEB5AEHo0Wef0ts7O0iQM5Sq6vjgQB1KpK2mw3ysy2M0JPa5k7K8roNKd4hmOZ0lnVqV6ML2+Vn99/ZXDdyotj/suWeDg1UEIG7AB4CjNlmXe1wvJPL3ABRkPFPPsG3riIo3xEQIGcZRZhEgPoUoP312y93t/HJ1eZOMifTFRwAJi2ODr7g8frdd9+/6jLs7y5AMHmC5B+yzO4SB5Jz0gwil0ACkHPCEv/kE6zvslOFsgCXVyAHitU5dFJabscO2iy211kmT4zXFUioApyxoiF4UrCKKVfrs7TwRvFwJt7Rdvqxj4cc26Skvrm0gl0hNrAWlu+9SpGm+uONB7T11nkEFvj4B2jV7T958uPT5k4+7zvluumPZxZQzdSefEVncRHlKRXvhLXMI8WPKHeeFfWpU66+2I2bxuuztDeopjkPA2+dIWt9xSIwsWFsniYW1SA5PFYWSLg/T18wofcN5l+D5JPlqidtkGTq3OXx+ZM7MLkB++7QDp7BMZ3sU5zqB6td5TUIeH29RyelT9QkjfEuCPDw+gIBWEYZi2lLPL5dn6X9vkK7uvqun0St78bg2KL89vZYIgB5e9EoCCFABCRkB4waFSgelWVy9ThVCut9gykfkJ7TiQVPmnqK1tyfZJrfE9ilfj4I2LFxdce+jn3+b/ASG3x+2Zj/svtJn+JRtByesj8IwK+kyFSLgoU+fl1pJcDoRrqTNvanpKutuUBxvXVXdwgYUAjQL2xMxcvrqhcutNqruc3tmFzSIraoKbCqpWg2ETBTNEqyEPLB9Ugd5et2f6tkSyMH4AQc0eK5H1NREWHj43OOL316J9DUfpAIWNJXUqDWOk/uwFjZV7gv1PLGp5IAX7vdzzfAHjJB+BRnj4Kxsbrw8hkPbXvo0ewQBe9CKnaljR5dMoj4B68dfcTgqbUt9fVL2g3Z5yhfKzYsMDaT+dghiyQgrQWPgVBrbkvuu9W9+bLWt6ioottNADu9BUIOEwF2q93X94QEapI4feLOOhs5/u6KCmuMQkBDw/T0+9e0d7b3HLw/2tQQtHB/ybw0WTsMAlZvWr3vDf+gjn1MAElfu1+C1c8vdQJtlxdMXXj5jIefKXxw/c8+Er1QSl1bYex73eC4/bcNjpMEpNTUpIiChvr65x21BssxBXRArK6N+M+/iKRv647OzoUNDXMKl7TX7tmDEeBYwKvLhYe3NLWAAG7MdHG36BgmIISywr7utrloJ8evpt0pfuSpkaN2kfSFUnQ1dC5Ys6aop70FvxVMFqyEg4qVNFkLfB4TsG/fGxQ/pu9J+dl9rX7D7NZRtF1XOwwCHq149MEv8UoABPAIaBwcd+2rg9cyAXyNm2XBQkPnlztiUqBZBIbwCGCLjzp/MxPgKK+GCij0r9/elrO9N56qLlnptBw4MBg+m5e8cFH8IECt5j7BGH7iininev1PT9osa4PxiypGSGsQ0NlQ1g4CsEY6pDKPgMZ5aUoW+rw3Vg+sw7y1nL4XBASEWBP8Un1puz5r7XXWaw8+mNJtVbDQZ8LWNEUJv/pqY3+k+v0X94DumApHtLpiob5NjdvcPr7utsJaavOSBIQTAZktLWeFzz6dZmpcFH8ZF0EtjaCeYVmQgIWTk4o1M4+VWVPNuuODgPbOpibcAfct20cEzJ+zv0TMoigEVK/m+CUByDonJEwYAWfJS2i7LmsNAh5c/60GV/gEY4EkjVsc33SgvbDEHdTXqlvxFFgQPUSF3pzse9z+GVWEgp9AgIj/0ieBcNPp90xfsMDF/cJXEgEbIsoA8l0mxA3qzdN4Ieh3VOmNLG9WT1N7T0/PvmUvEwFL+maUqtIZBLy9eqMIXxKAeO2pVmvCKN6ul9pev6z/9lktAd471BwtcF6e6vIEHkBAyu54TfzxenMyOFMzygWGTOXHP0HU+t56j3ITdF0IoJbX8/N88MiWE0sEb/1C0LfiPJwNrsCypvY3yHHC1FMwSiOVQQAeg7J8AzD9g7TGCPiOcYWCabqCB9XxVqAt3mPR1l9MOkD+aZ2Jz9CW+tL205OAQV43mBPQemmql776haClFI6Pjxbo1e1vMs31qDn4J2ntpZeKVgzkB6y+7tetEr2M7b0vM2B6JrerWdbLTxzBB+qzynqCshT4BfAMvX7JjPjElKypUxMdiZI3xV3CIrPEdDlOkyDmXj1yhMsfFOxou/XYx0mQ3sBUQH98fbxeeql4jq1h/vwGm1153bpDwaZO16ae3pdp4QG4aSvb3W1uFzWW9KHAAQUNgFrQYFINHAmmLMMW+sv4ovimN5htFVjj62HCzcDp8UYkiOm2K+6Cs3k1OpRVKlnhvPe43oHTvlSQ8X7UykPyNWFpkpDexe4CjgqrrbvCUIG/u7u7K1z6eEWBREKC6sBgt7UvXDjfliBf66XpyzcXw4UX5dlyu2JudrgR1lq37R+k6WwOXRY0cIpN9SF+NWuLdCDBrDD8xqZYUHpbwfe8dEJkfEa6IyMyIzIofDM1SIAAIRttstY3773pq5TjkTna+4unf6M5/lLZZrfaXcBRERGD6CNKbLaIwLLGTindu7oUKcxS0Wq1qw4MCWBgznxriHgNy1as2vQmgMLNuI4hgoDp0y9Us8Bk7tXYuB/3wMHGfhCgncpae5pYKFlK3XlHs7YYHzM+Zn5sPY3LWeZCEFCyEi1jW7bwyh5vtX6ptAF+DFSblMXYbObuzs5uKwhYtQrF2qNJqpOP8WlEsOpzvEFI7417Kzcvwn0QBEBDlJQsdux9zzXuSFl3EMULFMxQpDCEiJ/Nb1jACOswxYEhwTZ/DjHAr/F+Q4qM/+mON0EA1ieFR+aFQkoyAbj8TXPQlHek8dAHTMBTMn5MZgqhk91gtIv9s7Y8Rlj/li8oP8dvndkaE2M1SpdReIzqsr6FICCCYMzo6Ww6UiEIOHzg8OETh6+l2uM8nqVIxwDiLHJSFknv4tq9mzfvq2letjnMaQx1BZY4sVNZo6sisZDPZ96M0aPj4s5mKQxlZLdhPCOppUhFMICCgCXWEHptaG7GIBDxPx3XEX36zewRugBnL9vi6PL34RnY19j45utrP3n4ecKbEpdCGAHGhiVGaoDfjnsALr/lQf8P+L6UXm+hiSCcvkShrna4cKkwWcFPIXNPj9koCDgwsbFxeP+1JJ3xGvEXrzlYnIEs2ZqkY85KVHdnEQF1ze+AgIxIgyHCFpy7uqy5OAMEsI0vjZcROH8mAPEGQCj5ZZ/rlooh1iW33bbEGoXXMRUx3Rkcf08cLWV98kLJB+jyX4fLX0fT16d5ZpVp/UASxsaL68XqcTwCHnzrg5eZQb/qG1J4+Ct4K10bv4YAY4WrtrY+NHSFGAEnTvQfuZZylnjN8R8EA5QjjHZL6X3LQMDs4sgUw7JAIqAx0uEPAvj8S5EWl1KYpKEd9Xw0Ia9KRTDwwAMLU6PO9jZ0d3P4lOmJewME6KTkVa6SPmigvsbDb74mCFDjJwIGXU3AEQX70Umi+qQGpba/fLNqsksE97KUdsO0IUa47GCuqbbWbAmlgFHwcWI4jk6lt71uvwdRshOfpfyU6Ozra9rMXWaNByqaWppccUGQ0uL8x20dgaSxJIDiDaH4tVIxxLrwgQfmpIZ466WpXkp+4VooLj8qWCQBavyvjtvwjOfrL/yy/ahVW3yDfAKqM/j+z4Crr6VQ5yvMBAQCZloMGgFQVrgEXYX9OBoRoD8fECB/SvUAggBzs6UszlVcaGYCeK0KavbD/kzAqaUixsB1ty1J9e5Vbsp7qvYgw3GStCQp3NdY8vzrDBCgPvUIG3y6BLYKeAepbFrS/f27XlZshm9gRF/h6SsMAuRTgN7DBOArII7feKqCjHihH+QwYAL487qRpmMC9FL4r6Virgmo7WVAYP7Ue0ppif+1/4sTH7izrm5jsA0C+v2nELhEpJrhr1teTilEUCCOcvRortxpxYqkJOXopyrI0LflWdxrTwicJIUf2GCaq5WGSTC4nzZtndvyIgzgo2G7B2SNw1VXjQw9R/N+/epzQZM1OWZgnhszGJfq8MckTbGtbdIfXv82TD0xAzs00jDJiaxncIIsY1s3Nyy/PMgRCTsouR0ODVF+qpPt2P66ukOWBPX9l9cp6CkoaEk7z2io+YaADlfCVaNHqEBKqErGHa4QkD3l92xeZZWqAX+fku31b8M0vy8QpbCKFGYCVq97e906tvYhAiLb2spRmy+2gwBEfoni4njJ2MGYi5ZftDNhgnw/CLhIunuPXJ6WVjMZN9FOrRSeN8LdIgkwAUVFOQtynAvuKSrCC4Ph1z9+tRm6ugw2/MFg8Pq3QVnVsq+q3VlSImAdCEhel2tMTU5uRYNCZnkbehPk9pBsuwLy6LzQ1BlxzfKROy3yfweDAMR/jSwrWT7ZuDLBMCBvgj/9tHU8CKDoq6q8CRczAU6MAAyBBQvwgi/879lRUfRvw39BgCuwqa9MWeh4jkkSkJycm1yLv0BAZmI59WZI6asvUKC8PFWLi6zGyCtAgDR3H3PObQ+keUfFzAqJql5XnZzMbnCt80Yg/LRzq6puSsPEEAgQGOjJFH8wEH4dExx8MS7/f0JA55KyOftlv8WGsj3JYi2L5GRj7eNvm0FAW2Ybxf+LlL46qUq+vX2B15xPFilw9Zl43uV1irm9IMAeMmuW3Sj5hRIUBFS99VZV2lg3AZkopJQMSJ/jm25KMPxHBPS0NO0vk+eHE5wWLK29UpPffhwjQC999W1uuIeU1cD1REwlnT8ZBMjhf+W5D4AAc8isAnM1H5L79ogA79KqHxdV/aQSgPjBQLgkgG8D+Ps/ImAJrv+c990LKU9bLU82udZci2puvfRtL9Sux19/namzERUFO/3FdGBklljiYqRKAHyWv8Is4k8//cQNGCDAG6iqajmGphVJQHgPCBhQRkAqf/v/s3vAEjV+QQDHT0DG7vFWvdTEkFduGDxiBiOoXWLxGqVgQV3i4qZzHzCVggBzzziNFJ43huMvrfqpCk07IICR2TMwHwNAfQoA/9VToM+15HzNQspz8fgHkiUNraeQvu48MGDqp6fgYnfFQrS6xMWFY667rdTbaK45wBBGF5fNGKN1uU0GAYz5bh1wCS484T/TAUdNk7ULKSuFvK0SJ0lfHS677MzyFZrV1NQlLi6Aj9dYb3+T55IXM9CxogAcV/3vSvC/Bj1utPD6n/EnnaQbrf6BCX0AAAAASUVORK5CYII=);width:16px;height:11px}.react-tel-input .ad{background-position:-16px 0}.react-tel-input .ae{background-position:-32px 0}.react-tel-input .af{background-position:-48px 0}.react-tel-input .ag{background-position:-64px 0}.react-tel-input .ai{background-position:-80px 0}.react-tel-input .al{background-position:-96px 0}.react-tel-input .am{background-position:-112px 0}.react-tel-input .ao{background-position:-128px 0}.react-tel-input .ar{background-position:-144px 0}.react-tel-input .as{background-position:-160px 0}.react-tel-input .at{background-position:-176px 0}.react-tel-input .au{background-position:-192px 0}.react-tel-input .aw{background-position:-208px 0}.react-tel-input .az{background-position:-224px 0}.react-tel-input .ba{background-position:-240px 0}.react-tel-input .bb{background-position:0 -11px}.react-tel-input .bd{background-position:-16px -11px}.react-tel-input .be{background-position:-32px -11px}.react-tel-input .bf{background-position:-48px -11px}.react-tel-input .bg{background-position:-64px -11px}.react-tel-input .bh{background-position:-80px -11px}.react-tel-input .bi{background-position:-96px -11px}.react-tel-input .bj{background-position:-112px -11px}.react-tel-input .bm{background-position:-128px -11px}.react-tel-input .bn{background-position:-144px -11px}.react-tel-input .bo{background-position:-160px -11px}.react-tel-input .br{background-position:-176px -11px}.react-tel-input .bs{background-position:-192px -11px}.react-tel-input .bt{background-position:-208px -11px}.react-tel-input .bw{background-position:-224px -11px}.react-tel-input .by{background-position:-240px -11px}.react-tel-input .bz{background-position:0 -22px}.react-tel-input .ca{background-position:-16px -22px}.react-tel-input .cd{background-position:-32px -22px}.react-tel-input .cf{background-position:-48px -22px}.react-tel-input .cg{background-position:-64px -22px}.react-tel-input .ch{background-position:-80px -22px}.react-tel-input .ci{background-position:-96px -22px}.react-tel-input .ck{background-position:-112px -22px}.react-tel-input .cl{background-position:-128px -22px}.react-tel-input .cm{background-position:-144px -22px}.react-tel-input .cn{background-position:-160px -22px}.react-tel-input .co{background-position:-176px -22px}.react-tel-input .cr{background-position:-192px -22px}.react-tel-input .cu{background-position:-208px -22px}.react-tel-input .cv{background-position:-224px -22px}.react-tel-input .cw{background-position:-240px -22px}.react-tel-input .cy{background-position:0 -33px}.react-tel-input .cz{background-position:-16px -33px}.react-tel-input .de{background-position:-32px -33px}.react-tel-input .dj{background-position:-48px -33px}.react-tel-input .dk{background-position:-64px -33px}.react-tel-input .dm{background-position:-80px -33px}.react-tel-input .do{background-position:-96px -33px}.react-tel-input .dz{background-position:-112px -33px}.react-tel-input .ec{background-position:-128px -33px}.react-tel-input .ee{background-position:-144px -33px}.react-tel-input .eg{background-position:-160px -33px}.react-tel-input .er{background-position:-176px -33px}.react-tel-input .es{background-position:-192px -33px}.react-tel-input .et{background-position:-208px -33px}.react-tel-input .fi{background-position:-224px -33px}.react-tel-input .fj{background-position:-240px -33px}.react-tel-input .fk{background-position:0 -44px}.react-tel-input .fm{background-position:-16px -44px}.react-tel-input .fo{background-position:-32px -44px}.react-tel-input .fr,.react-tel-input .bl,.react-tel-input .mf{background-position:-48px -44px}.react-tel-input .ga{background-position:-64px -44px}.react-tel-input .gb{background-position:-80px -44px}.react-tel-input .gd{background-position:-96px -44px}.react-tel-input .ge{background-position:-112px -44px}.react-tel-input .gf{background-position:-128px -44px}.react-tel-input .gh{background-position:-144px -44px}.react-tel-input .gi{background-position:-160px -44px}.react-tel-input .gl{background-position:-176px -44px}.react-tel-input .gm{background-position:-192px -44px}.react-tel-input .gn{background-position:-208px -44px}.react-tel-input .gp{background-position:-224px -44px}.react-tel-input .gq{background-position:-240px -44px}.react-tel-input .gr{background-position:0 -55px}.react-tel-input .gt{background-position:-16px -55px}.react-tel-input .gu{background-position:-32px -55px}.react-tel-input .gw{background-position:-48px -55px}.react-tel-input .gy{background-position:-64px -55px}.react-tel-input .hk{background-position:-80px -55px}.react-tel-input .hn{background-position:-96px -55px}.react-tel-input .hr{background-position:-112px -55px}.react-tel-input .ht{background-position:-128px -55px}.react-tel-input .hu{background-position:-144px -55px}.react-tel-input .id{background-position:-160px -55px}.react-tel-input .ie{background-position:-176px -55px}.react-tel-input .il{background-position:-192px -55px}.react-tel-input .in{background-position:-208px -55px}.react-tel-input .io{background-position:-224px -55px}.react-tel-input .iq{background-position:-240px -55px}.react-tel-input .ir{background-position:0 -66px}.react-tel-input .is{background-position:-16px -66px}.react-tel-input .it{background-position:-32px -66px}.react-tel-input .je{background-position:-144px -154px}.react-tel-input .jm{background-position:-48px -66px}.react-tel-input .jo{background-position:-64px -66px}.react-tel-input .jp{background-position:-80px -66px}.react-tel-input .ke{background-position:-96px -66px}.react-tel-input .kg{background-position:-112px -66px}.react-tel-input .kh{background-position:-128px -66px}.react-tel-input .ki{background-position:-144px -66px}.react-tel-input .xk{background-position:-128px -154px}.react-tel-input .km{background-position:-160px -66px}.react-tel-input .kn{background-position:-176px -66px}.react-tel-input .kp{background-position:-192px -66px}.react-tel-input .kr{background-position:-208px -66px}.react-tel-input .kw{background-position:-224px -66px}.react-tel-input .ky{background-position:-240px -66px}.react-tel-input .kz{background-position:0 -77px}.react-tel-input .la{background-position:-16px -77px}.react-tel-input .lb{background-position:-32px -77px}.react-tel-input .lc{background-position:-48px -77px}.react-tel-input .li{background-position:-64px -77px}.react-tel-input .lk{background-position:-80px -77px}.react-tel-input .lr{background-position:-96px -77px}.react-tel-input .ls{background-position:-112px -77px}.react-tel-input .lt{background-position:-128px -77px}.react-tel-input .lu{background-position:-144px -77px}.react-tel-input .lv{background-position:-160px -77px}.react-tel-input .ly{background-position:-176px -77px}.react-tel-input .ma{background-position:-192px -77px}.react-tel-input .mc{background-position:-208px -77px}.react-tel-input .md{background-position:-224px -77px}.react-tel-input .me{background-position:-112px -154px;height:12px}.react-tel-input .mg{background-position:0 -88px}.react-tel-input .mh{background-position:-16px -88px}.react-tel-input .mk{background-position:-32px -88px}.react-tel-input .ml{background-position:-48px -88px}.react-tel-input .mm{background-position:-64px -88px}.react-tel-input .mn{background-position:-80px -88px}.react-tel-input .mo{background-position:-96px -88px}.react-tel-input .mp{background-position:-112px -88px}.react-tel-input .mq{background-position:-128px -88px}.react-tel-input .mr{background-position:-144px -88px}.react-tel-input .ms{background-position:-160px -88px}.react-tel-input .mt{background-position:-176px -88px}.react-tel-input .mu{background-position:-192px -88px}.react-tel-input .mv{background-position:-208px -88px}.react-tel-input .mw{background-position:-224px -88px}.react-tel-input .mx{background-position:-240px -88px}.react-tel-input .my{background-position:0 -99px}.react-tel-input .mz{background-position:-16px -99px}.react-tel-input .na{background-position:-32px -99px}.react-tel-input .nc{background-position:-48px -99px}.react-tel-input .ne{background-position:-64px -99px}.react-tel-input .nf{background-position:-80px -99px}.react-tel-input .ng{background-position:-96px -99px}.react-tel-input .ni{background-position:-112px -99px}.react-tel-input .nl,.react-tel-input .bq{background-position:-128px -99px}.react-tel-input .no{background-position:-144px -99px}.react-tel-input .np{background-position:-160px -99px}.react-tel-input .nr{background-position:-176px -99px}.react-tel-input .nu{background-position:-192px -99px}.react-tel-input .nz{background-position:-208px -99px}.react-tel-input .om{background-position:-224px -99px}.react-tel-input .pa{background-position:-240px -99px}.react-tel-input .pe{background-position:0 -110px}.react-tel-input .pf{background-position:-16px -110px}.react-tel-input .pg{background-position:-32px -110px}.react-tel-input .ph{background-position:-48px -110px}.react-tel-input .pk{background-position:-64px -110px}.react-tel-input .pl{background-position:-80px -110px}.react-tel-input .pm{background-position:-96px -110px}.react-tel-input .pr{background-position:-112px -110px}.react-tel-input .ps{background-position:-128px -110px}.react-tel-input .pt{background-position:-144px -110px}.react-tel-input .pw{background-position:-160px -110px}.react-tel-input .py{background-position:-176px -110px}.react-tel-input .qa{background-position:-192px -110px}.react-tel-input .re{background-position:-208px -110px}.react-tel-input .ro{background-position:-224px -110px}.react-tel-input .rs{background-position:-240px -110px}.react-tel-input .ru{background-position:0 -121px}.react-tel-input .rw{background-position:-16px -121px}.react-tel-input .sa{background-position:-32px -121px}.react-tel-input .sb{background-position:-48px -121px}.react-tel-input .sc{background-position:-64px -121px}.react-tel-input .sd{background-position:-80px -121px}.react-tel-input .se{background-position:-96px -121px}.react-tel-input .sg{background-position:-112px -121px}.react-tel-input .sh{background-position:-128px -121px}.react-tel-input .si{background-position:-144px -121px}.react-tel-input .sk{background-position:-160px -121px}.react-tel-input .sl{background-position:-176px -121px}.react-tel-input .sm{background-position:-192px -121px}.react-tel-input .sn{background-position:-208px -121px}.react-tel-input .so{background-position:-224px -121px}.react-tel-input .sr{background-position:-240px -121px}.react-tel-input .ss{background-position:0 -132px}.react-tel-input .st{background-position:-16px -132px}.react-tel-input .sv{background-position:-32px -132px}.react-tel-input .sx{background-position:-48px -132px}.react-tel-input .sy{background-position:-64px -132px}.react-tel-input .sz{background-position:-80px -132px}.react-tel-input .tc{background-position:-96px -132px}.react-tel-input .td{background-position:-112px -132px}.react-tel-input .tg{background-position:-128px -132px}.react-tel-input .th{background-position:-144px -132px}.react-tel-input .tj{background-position:-160px -132px}.react-tel-input .tk{background-position:-176px -132px}.react-tel-input .tl{background-position:-192px -132px}.react-tel-input .tm{background-position:-208px -132px}.react-tel-input .tn{background-position:-224px -132px}.react-tel-input .to{background-position:-240px -132px}.react-tel-input .tr{background-position:0 -143px}.react-tel-input .tt{background-position:-16px -143px}.react-tel-input .tv{background-position:-32px -143px}.react-tel-input .tw{background-position:-48px -143px}.react-tel-input .tz{background-position:-64px -143px}.react-tel-input .ua{background-position:-80px -143px}.react-tel-input .ug{background-position:-96px -143px}.react-tel-input .us{background-position:-112px -143px}.react-tel-input .uy{background-position:-128px -143px}.react-tel-input .uz{background-position:-144px -143px}.react-tel-input .va{background-position:-160px -143px}.react-tel-input .vc{background-position:-176px -143px}.react-tel-input .ve{background-position:-192px -143px}.react-tel-input .vg{background-position:-208px -143px}.react-tel-input .vi{background-position:-224px -143px}.react-tel-input .vn{background-position:-240px -143px}.react-tel-input .vu{background-position:0 -154px}.react-tel-input .wf{background-position:-16px -154px}.react-tel-input .ws{background-position:-32px -154px}.react-tel-input .ye{background-position:-48px -154px}.react-tel-input .za{background-position:-64px -154px}.react-tel-input .zm{background-position:-80px -154px}.react-tel-input .zw{background-position:-96px -154px}.react-tel-input *{box-sizing:border-box}.react-tel-input .hide{display:none}.react-tel-input .v-hide{visibility:hidden}.react-tel-input .form-control{letter-spacing:.01rem;background:#fff;border:1px solid #cacaca;border-radius:5px;outline:none;width:300px;height:35px;margin-left:0;padding-left:48px;font-size:14px;line-height:25px;position:relative;margin-top:0!important;margin-bottom:0!important}.react-tel-input .form-control.invalid-number,.react-tel-input .form-control.invalid-number:focus{background-color:#faf0f0;border:1px solid #d79f9f;border-left-color:#cacaca}.react-tel-input .flag-dropdown{background-color:#f5f5f5;border:1px solid #cacaca;border-radius:3px 0 0 3px;padding:0;position:absolute;top:0;bottom:0}.react-tel-input .flag-dropdown:hover,.react-tel-input .flag-dropdown:focus{cursor:pointer}.react-tel-input .flag-dropdown.invalid-number{border-color:#d79f9f}.react-tel-input .flag-dropdown.open{z-index:2;background:#fff;border-radius:3px 0 0}.react-tel-input .flag-dropdown.open .selected-flag{background:#fff;border-radius:3px 0 0}.react-tel-input input[disabled]+.flag-dropdown:hover{cursor:default}.react-tel-input input[disabled]+.flag-dropdown:hover .selected-flag{background-color:transparent}.react-tel-input .selected-flag{border-radius:3px 0 0 3px;outline:none;width:38px;height:100%;padding:0 0 0 8px;position:relative}.react-tel-input .selected-flag:hover,.react-tel-input .selected-flag:focus{background-color:#fff}.react-tel-input .selected-flag .flag{margin-top:-5px;position:absolute;top:50%}.react-tel-input .selected-flag .arrow{border-top:4px solid #555;border-left:3px solid transparent;border-right:3px solid transparent;width:0;height:0;margin-top:-2px;position:relative;top:50%;left:20px}.react-tel-input .selected-flag .arrow.up{border-top:none;border-bottom:4px solid #555}.react-tel-input .country-list{z-index:1;background-color:#fff;border-radius:0 0 3px 3px;outline:none;width:300px;max-height:200px;margin:10px 0 10px -1px;padding:0;list-style:none;position:absolute;overflow-y:scroll;box-shadow:1px 2px 10px rgba(0,0,0,.35)}.react-tel-input .country-list .flag{display:inline-block}.react-tel-input .country-list .divider{border-bottom:1px solid #ccc;margin-bottom:5px;padding-bottom:5px}.react-tel-input .country-list .country{padding:7px 9px}.react-tel-input .country-list .country .dial-code{color:#6b6b6b}.react-tel-input .country-list .country:hover,.react-tel-input .country-list .country.highlight{background-color:#f1f1f1}.react-tel-input .country-list .flag{margin-top:2px;margin-right:7px}.react-tel-input .country-list .country-name{margin-right:6px}.react-tel-input .country-list .search{background-color:#fff;padding:10px 0 6px 10px;position:-webkit-sticky;position:sticky;top:0}.react-tel-input .country-list .search-emoji{font-size:15px}.react-tel-input .country-list .search-box{border:1px solid #cacaca;border-radius:3px;outline:none;margin-left:6px;padding:3px 8px 5px;font-size:15px;line-height:15px}.react-tel-input .country-list .no-entries-message{opacity:.7;padding:7px 10px 11px}.react-tel-input .invalid-number-message{z-index:1;color:#de0000;background:#fff;padding:0 2px;font-size:13px;position:absolute;top:-8px;left:46px}.react-tel-input .special-label{z-index:1;white-space:nowrap;background:#fff;padding:0 2px;font-size:13px;display:none;position:absolute;top:-8px;left:46px}.ql-container{box-sizing:border-box;height:100%;margin:0;font-family:Helvetica,Arial,sans-serif;font-size:13px;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{height:1px;position:absolute;top:50%;left:-100000px;overflow-y:hidden}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;-moz-tab-size:4;tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word;outline:none;height:100%;padding:12px 15px;line-height:1.42;overflow-y:auto}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{padding-left:1.5em;list-style-type:none;position:relative}.ql-editor li>.ql-ui:before{text-align:right;white-space:nowrap;width:1.2em;margin-left:-1.5em;margin-right:.3em;display:inline-block}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0, decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1, lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2, lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3, decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4, lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5, lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6, decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7, lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8, lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9, decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{text-align:left;margin-left:.3em;margin-right:-1.5em}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{max-width:100%;display:block}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{text-align:inherit;direction:rtl}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);pointer-events:none;font-style:italic;position:absolute;left:15px;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{cursor:pointer;float:left;background:0 0;border:none;width:28px;height:24px;padding:3px 5px;display:inline-block}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{vertical-align:middle;display:inline-block}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2px}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1px}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-top:5px;margin-bottom:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-top:5px;margin-bottom:5px;padding:5px 10px}.ql-snow .ql-editor code{padding:2px 4px;font-size:85%}.ql-snow .ql-editor .ql-code-block-container{color:#f8f8f2;background-color:#23241f;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;float:left;vertical-align:middle;height:24px;font-size:14px;font-weight:500;display:inline-block;position:relative}.ql-snow .ql-picker-label{cursor:pointer;width:100%;height:100%;padding-left:8px;padding-right:2px;display:inline-block;position:relative}.ql-snow .ql-picker-label:before{line-height:22px;display:inline-block}.ql-snow .ql-picker-options{white-space:nowrap;background-color:#fff;min-width:100%;padding:4px 8px;display:none;position:absolute}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;padding-top:5px;padding-bottom:5px;display:block}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{z-index:1;margin-top:-1px;display:block;top:100%}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{width:24px;height:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{width:152px;padding:3px 5px}.ql-snow .ql-color-picker .ql-picker-item{float:left;border:1px solid transparent;width:16px;height:16px;margin:2px;padding:0}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{width:18px;margin-top:-9px;position:absolute;top:50%;right:0}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{top:5px;right:5px}.ql-toolbar.ql-snow{box-sizing:border-box;border:1px solid #ccc;padding:8px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{color:#444;white-space:nowrap;background-color:#fff;border:1px solid #ccc;padding:5px 12px;box-shadow:0 0 5px #ddd}.ql-snow .ql-tooltip:before{content:"Visit URL:";margin-right:8px;line-height:26px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #ccc;width:170px;height:26px;margin:0;padding:3px 5px;font-size:13px;display:none}.ql-snow .ql-tooltip a.ql-preview{text-overflow:ellipsis;vertical-align:top;max-width:200px;display:inline-block;overflow-x:hidden}.ql-snow .ql-tooltip a.ql-action:after{content:"Edit";border-right:1px solid #ccc;margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{content:"Save";border-right:0;padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-container.ql-snow{border:1px solid #ccc}:root{--admin-spacing-xs:4px;--admin-spacing-sm:8px;--admin-spacing-md:16px;--admin-spacing-lg:24px;--admin-spacing-xl:32px;--admin-radius-sm:8px;--admin-radius-md:12px;--admin-radius-lg:16px;--admin-hairline:rgba(0,0,0,.08);--admin-shadow-sm:0 1px 2px rgba(0,0,0,.04);--admin-shadow-md:0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);--admin-shadow-lg:0 1px 2px rgba(0,0,0,.04), 0 16px 48px rgba(0,0,0,.1);--admin-transition:.25s cubic-bezier(.25, .1, .25, 1)}body[data-theme=dark]{--admin-hairline:rgba(255,255,255,.08)}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;font-size:14px}body{letter-spacing:-.01em;color:rgba(0,0,0,.88);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f7;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5715}body[data-theme=dark]{color:rgba(255,255,255,.88);background-color:#161617}h1,h2,h3,h4,h5,h6{letter-spacing:-.02em}:focus-visible{outline:2px solid var(--ant-color-primary,#1677ff);outline-offset:2px}a,button,[role=button],input,select,textarea{transition:border-color var(--admin-transition), box-shadow var(--admin-transition), background-color var(--admin-transition)}code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.9em}.ant-card{border-radius:var(--admin-radius-lg);box-shadow:var(--admin-shadow-sm);transition:box-shadow var(--admin-transition)}.ant-card:hover{box-shadow:var(--admin-shadow-md)}.quill{border-radius:var(--admin-radius-sm);background-color:#fff!important}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:var(--ant-color-primary,#009485)!important}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:var(--ant-color-primary,#009485)!important}.ql-snow a{color:var(--ant-color-primary,#009485)!important}.ql-toolbar{border-top-left-radius:var(--admin-radius-sm);border-top-right-radius:var(--admin-radius-sm)}.ql-container{border-bottom-left-radius:var(--admin-radius-sm);border-bottom-right-radius:var(--admin-radius-sm)}@media (max-width:768px){body{padding:0}.ant-layout,.ant-layout-content{padding:var(--admin-spacing-xs)!important}.ant-card{border-radius:var(--admin-radius-sm)}.ant-card-head{padding-inline:var(--admin-spacing-sm);padding-block:var(--admin-spacing-xs)}.ant-card-body{padding:var(--admin-spacing-sm)}.ant-form-vertical .ant-form-item{margin-bottom:12px}.ant-form-item-label>label{margin-bottom:4px}.ant-table-wrapper .ant-table{border-radius:var(--admin-radius-sm)}.ant-table-wrapper .ant-table-thead>tr>th,.ant-table-wrapper .ant-table-tbody>tr>td{padding:8px 12px}} +/*$vite$:1*/ \ No newline at end of file diff --git a/fastadmin/static/index.min.js b/fastadmin/static/index.min.js index bc209cc..41a4569 100644 --- a/fastadmin/static/index.min.js +++ b/fastadmin/static/index.min.js @@ -1,16 +1,16 @@ -(function(Pn){typeof define=="function"&&define.amd?define(Pn):Pn()})((function(){"use strict";var NUt=Object.defineProperty,PUt=Object.defineProperties;var LUt=Object.getOwnPropertyDescriptors;var Zk=Object.getOwnPropertySymbols;var YMe=Object.prototype.hasOwnProperty,XMe=Object.prototype.propertyIsEnumerable;var $S=(Pn,wn)=>(wn=Symbol[Pn])?wn:Symbol.for("Symbol."+Pn),ZZ=Pn=>{throw TypeError(Pn)},na=Math.pow,XZ=(Pn,wn,_t)=>wn in Pn?NUt(Pn,wn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Pn[wn]=_t,I=(Pn,wn)=>{for(var _t in wn||(wn={}))YMe.call(wn,_t)&&XZ(Pn,_t,wn[_t]);if(Zk)for(var _t of Zk(wn))XMe.call(wn,_t)&&XZ(Pn,_t,wn[_t]);return Pn},te=(Pn,wn)=>PUt(Pn,LUt(wn));var Ze=(Pn,wn)=>{var _t={};for(var Oi in Pn)YMe.call(Pn,Oi)&&wn.indexOf(Oi)<0&&(_t[Oi]=Pn[Oi]);if(Pn!=null&&Zk)for(var Oi of Zk(Pn))wn.indexOf(Oi)<0&&XMe.call(Pn,Oi)&&(_t[Oi]=Pn[Oi]);return _t};var ke=(Pn,wn,_t)=>XZ(Pn,typeof wn!="symbol"?wn+"":wn,_t),JZ=(Pn,wn,_t)=>wn.has(Pn)||ZZ("Cannot "+_t);var Ve=(Pn,wn,_t)=>(JZ(Pn,wn,"read from private field"),_t?_t.call(Pn):wn.get(Pn)),rr=(Pn,wn,_t)=>wn.has(Pn)?ZZ("Cannot add the same private member more than once"):wn instanceof WeakSet?wn.add(Pn):wn.set(Pn,_t),Bn=(Pn,wn,_t,Oi)=>(JZ(Pn,wn,"write to private field"),Oi?Oi.call(Pn,_t):wn.set(Pn,_t),_t),Yr=(Pn,wn,_t)=>(JZ(Pn,wn,"access private method"),_t);var Jk=(Pn,wn,_t,Oi)=>({set _(ra){Bn(Pn,wn,ra,_t)},get _(){return Ve(Pn,wn,Oi)}});var Er=(Pn,wn,_t)=>new Promise((Oi,ra)=>{var ia=Qo=>{try{nl(_t.next(Qo))}catch(he){ra(he)}},wl=Qo=>{try{nl(_t.throw(Qo))}catch(he){ra(he)}},nl=Qo=>Qo.done?Oi(Qo.value):Promise.resolve(Qo.value).then(ia,wl);nl((_t=_t.apply(Pn,wn)).next())}),ub=function(Pn,wn){this[0]=Pn,this[1]=wn},eJ=(Pn,wn,_t)=>{var Oi=(nl,Qo,he,Pc)=>{try{var fb=_t[nl](Qo),$g=(Qo=fb.value)instanceof ub,TS=fb.done;Promise.resolve($g?Qo[0]:Qo).then(Lc=>$g?Oi(nl==="return"?nl:"next",Qo[1]?{done:Lc.done,value:Lc.value}:Lc,he,Pc):he({value:Lc,done:TS})).catch(Lc=>Oi("throw",Lc,he,Pc))}catch(Lc){Pc(Lc)}},ra=(nl,Qo,he,Pc)=>wl[nl]=fb=>(Qo=new Promise(($g,TS,Lc)=>(Lc=()=>Oi(nl,fb,$g,TS),ia?ia.then(Lc):Lc())),Pc=()=>ia===he&&(ia=0),ia=he=Qo.then(Pc,Pc),Qo),ia,wl={};return _t=_t.apply(Pn,wn),wl[$S("asyncIterator")]=()=>wl,ra("next"),ra("throw"),ra("return"),wl},e6=Pn=>{var wn=Pn[$S("asyncIterator")],_t=!1,Oi,ra={};return wn==null?(wn=Pn[$S("iterator")](),Oi=ia=>ra[ia]=wl=>wn[ia](wl)):(wn=wn.call(Pn),Oi=ia=>ra[ia]=wl=>{if(_t){if(_t=!1,ia==="throw")throw wl;return wl}return _t=!0,{done:!1,value:new ub(new Promise(nl=>{var Qo=wn[ia](wl);Qo instanceof Object||ZZ("Object expected"),nl(Qo)}),1)}}),ra[$S("iterator")]=()=>ra,Oi("next"),"throw"in wn?Oi("throw"):ra.throw=ia=>{throw ia},"return"in wn&&Oi("return"),ra},ZMe=(Pn,wn,_t)=>(wn=Pn[$S("asyncIterator")])?wn.call(Pn):(Pn=Pn[$S("iterator")](),wn={},_t=(Oi,ra)=>(ra=Pn[Oi])&&(wn[Oi]=ia=>new Promise((wl,nl,Qo)=>(ia=ra.call(Pn,ia),Qo=ia.done,Promise.resolve(ia.value).then(he=>wl({value:he,done:Qo}),nl)))),_t("next"),_t("return"),wn);var o1,r0,Jw,RMe,i0,WX,NMe,eC,o0,tC,PMe,a1,LMe,nC,s1,rC,Ff,l1,qs,x$,c1,$u,JMe,Og,FMe,Yc,bi,w$,vc,u1,iC,Kp,a0,C$,oC,aC,f1,d1,s0,sC,eo,_T,tJ,nJ,rJ,iJ,oJ,aJ,sJ,e4e,kMe,S$,ah,Vl,A1,sh,iv,DMe,Wp,Nd,E$,HMe,Gp,l0,Xc,qp,Yp,t6,lJ,UMe,lh,jMe,Ha,c0,u0,lC,cC,f0,uC,fC,zMe,GX,c5,qX,QMe,_u,AC,u5,VMe,KMe,WMe,GMe;function Pn(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var wn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oi={exports:{}},ra={};var ia;function wl(){if(ia)return ra;ia=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var s in i)s!=="key"&&(o[s]=i[s])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return ra.Fragment=t,ra.jsx=n,ra.jsxs=n,ra}var nl;function Qo(){return nl||(nl=1,Oi.exports=wl()),Oi.exports}var he=Qo(),Pc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fb=(RMe=class extends Pc{constructor(){super();rr(this,o1);rr(this,r0);rr(this,Jw);Bn(this,Jw,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ve(this,r0)||this.setEventListener(Ve(this,Jw))}onUnsubscribe(){var t;this.hasListeners()||((t=Ve(this,r0))==null||t.call(this),Bn(this,r0,void 0))}setEventListener(t){var n;Bn(this,Jw,t),(n=Ve(this,r0))==null||n.call(this),Bn(this,r0,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ve(this,o1)!==t&&(Bn(this,o1,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ve(this,o1)=="boolean"?Ve(this,o1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},o1=new WeakMap,r0=new WeakMap,Jw=new WeakMap,RMe),$g=new fb,TS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Lc=(NMe=class{constructor(){rr(this,i0,TS);rr(this,WX,!1)}setTimeoutProvider(e){Bn(this,i0,e)}setTimeout(e,t){return Ve(this,i0).setTimeout(e,t)}clearTimeout(e){Ve(this,i0).clearTimeout(e)}setInterval(e,t){return Ve(this,i0).setInterval(e,t)}clearInterval(e){Ve(this,i0).clearInterval(e)}},i0=new WeakMap,WX=new WeakMap,NMe),av=new Lc;function x4e(e){setTimeout(e,0)}var w4e=typeof window=="undefined"||"Deno"in globalThis;function oc(){}function C4e(e,t){return typeof e=="function"?e(t):e}function n6(e){return typeof e=="number"&&e>=0&&e!==1/0}function fJ(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _g(e,t){return typeof e=="function"?e(t):e}function lu(e,t){return typeof e=="function"?e(t):e}function dJ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==r6(a,t.options))return!1}else if(!MS(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function AJ(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(sv(t.options.mutationKey)!==sv(o))return!1}else if(!MS(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function r6(e,t){return((t==null?void 0:t.queryKeyHashFn)||sv)(e)}function sv(e){return JSON.stringify(e,(t,n)=>i6(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function MS(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>MS(e[n],t[n])):!1}var S4e=Object.prototype.hasOwnProperty;function hJ(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=pJ(e)&&pJ(t);if(!r&&!(i6(e)&&i6(t)))return t;const o=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),s=a.length,l=r?new Array(s):{};let c=0;for(let u=0;u{av.setTimeout(t,e)})}function o6(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?hJ(e,t):t}function B4e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function O4e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var a6=Symbol();function mJ(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===a6?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function s6(e,t){return typeof e=="function"?e(...t):!!e}function $4e(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i!=null||(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var IS=(()=>{let e=()=>w4e;return{isServer(){return e()},setIsServer(t){e=t}}})();function l6(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var _4e=x4e;function T4e(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=_4e;const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Es=T4e(),M4e=(PMe=class extends Pc{constructor(){super();rr(this,eC,!0);rr(this,o0);rr(this,tC);Bn(this,tC,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Ve(this,o0)||this.setEventListener(Ve(this,tC))}onUnsubscribe(){var t;this.hasListeners()||((t=Ve(this,o0))==null||t.call(this),Bn(this,o0,void 0))}setEventListener(t){var n;Bn(this,tC,t),(n=Ve(this,o0))==null||n.call(this),Bn(this,o0,t(this.setOnline.bind(this)))}setOnline(t){Ve(this,eC)!==t&&(Bn(this,eC,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ve(this,eC)}},eC=new WeakMap,o0=new WeakMap,tC=new WeakMap,PMe),MT=new M4e;function I4e(e){return Math.min(1e3*na(2,e),3e4)}function vJ(e){return(e!=null?e:"online")==="online"?MT.isOnline():!0}var c6=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yJ(e){let t=!1,n=0,r;const i=l6(),o=()=>i.status!=="pending",a=p=>{var v;if(!o()){const y=new c6(p);d(y),(v=e.onCancel)==null||v.call(e,y)}},s=()=>{t=!0},l=()=>{t=!1},c=()=>$g.isFocused()&&(e.networkMode==="always"||MT.isOnline())&&e.canRun(),u=()=>vJ(e.networkMode)&&e.canRun(),f=p=>{o()||(r==null||r(),i.resolve(p))},d=p=>{o()||(r==null||r(),i.reject(p))},A=()=>new Promise(p=>{var v;r=y=>{(o()||c())&&p(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=void 0,o()||(p=e.onContinue)==null||p.call(e)}),h=()=>{if(o())return;let p;const v=n===0?e.initialPromise:void 0;try{p=v!=null?v:e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(f).catch(y=>{var B,E,_;if(o())return;const b=(B=e.retry)!=null?B:IS.isServer()?0:3,x=(E=e.retryDelay)!=null?E:I4e,C=typeof x=="function"?x(n,y):x,S=b===!0||typeof b=="number"&&nc()?void 0:A()).then(()=>{t?d(y):h()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?h():A().then(h),i)}}var bJ=(LMe=class{constructor(){rr(this,a1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),n6(this.gcTime)&&Bn(this,a1,av.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:IS.isServer()?1/0:300*1e3)}clearGcTimeout(){Ve(this,a1)!==void 0&&(av.clearTimeout(Ve(this,a1)),Bn(this,a1,void 0))}},a1=new WeakMap,LMe);function R4e(e){return{onFetch:(t,n)=>{var u,f,d,A,h;const r=t.options,i=(d=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,o=((A=t.state.data)==null?void 0:A.pages)||[],a=((h=t.state.data)==null?void 0:h.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=()=>Er(null,null,function*(){var x;let p=!1;const v=C=>{$4e(C,()=>t.signal,()=>p=!0)},y=mJ(t.options,t.fetchOptions),b=(C,S,B)=>Er(null,null,function*(){if(p)return Promise.reject(t.signal.reason);if(S==null&&C.pages.length)return Promise.resolve(C);const _=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:S,direction:B?"backward":"forward",meta:t.options.meta};return v(L),L})(),M=yield y(_),{maxPages:R}=t.options,T=B?O4e:B4e;return{pages:T(C.pages,M,R),pageParams:T(C.pageParams,S,R)}});if(i&&o.length){const C=i==="backward",S=C?N4e:xJ,B={pages:o,pageParams:a},E=S(r,B);s=yield b(B,E,C)}else{const C=e!=null?e:o.length;do{const S=l===0?(x=a[0])!=null?x:r.initialPageParam:xJ(r,s);if(l>0&&S==null)break;s=yield b(s,S),l++}while(l{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function xJ(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function N4e(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var P4e=(FMe=class extends bJ{constructor(t){var n;super();rr(this,$u);rr(this,nC);rr(this,s1);rr(this,rC);rr(this,Ff);rr(this,l1);rr(this,qs);rr(this,x$);rr(this,c1);Bn(this,c1,!1),Bn(this,x$,t.defaultOptions),this.setOptions(t.options),this.observers=[],Bn(this,l1,t.client),Bn(this,Ff,Ve(this,l1).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bn(this,s1,SJ(this.options)),this.state=(n=t.state)!=null?n:Ve(this,s1),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return Ve(this,nC)}get promise(){var t;return(t=Ve(this,qs))==null?void 0:t.promise}setOptions(t){if(this.options=I(I({},Ve(this,x$)),t),t!=null&&t._type&&Bn(this,nC,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=SJ(this.options);n.data!==void 0&&(this.setState(CJ(n.data,n.dataUpdatedAt)),Bn(this,s1,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ve(this,Ff).remove(this)}setData(t,n){const r=o6(this.state.data,t,this.options);return Yr(this,$u,Og).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Yr(this,$u,Og).call(this,{type:"setState",state:t})}cancel(t){var r,i;const n=(r=Ve(this,qs))==null?void 0:r.promise;return(i=Ve(this,qs))==null||i.cancel(t),n?n.then(oc).catch(oc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return Ve(this,s1)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>lu(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===a6||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_g(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!fJ(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ve(this,qs))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ve(this,qs))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ve(this,Ff).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ve(this,qs)&&(Ve(this,c1)||Yr(this,$u,JMe).call(this)?Ve(this,qs).cancel({revert:!0}):Ve(this,qs).cancelRetry()),this.scheduleGc()),Ve(this,Ff).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Yr(this,$u,Og).call(this,{type:"invalidate"})}fetch(t,n){return Er(this,null,function*(){var c,u,f,d,A,h,p,v,y,b,x;if(this.state.fetchStatus!=="idle"&&((c=Ve(this,qs))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Ve(this,qs))return Ve(this,qs).continueRetry(),Ve(this,qs).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(S=>S.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Bn(this,c1,!0),r.signal)})},o=()=>{const C=mJ(this.options,n),B=(()=>{const E={client:Ve(this,l1),queryKey:this.queryKey,meta:this.meta};return i(E),E})();return Bn(this,c1,!1),this.options.persister?this.options.persister(C,B,this):C(B)},s=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Ve(this,l1),state:this.state,fetchFn:o};return i(C),C})(),l=Ve(this,nC)==="infinite"?R4e(this.options.pages):this.options.behavior;l==null||l.onFetch(s,this),Bn(this,rC,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&Yr(this,$u,Og).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta}),Bn(this,qs,yJ({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:C=>{C instanceof c6&&C.revert&&this.setState(te(I({},Ve(this,rC)),{fetchStatus:"idle"})),r.abort()},onFail:(C,S)=>{Yr(this,$u,Og).call(this,{type:"failed",failureCount:C,error:S})},onPause:()=>{Yr(this,$u,Og).call(this,{type:"pause"})},onContinue:()=>{Yr(this,$u,Og).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const C=yield Ve(this,qs).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(A=(d=Ve(this,Ff).config).onSuccess)==null||A.call(d,C,this),(p=(h=Ve(this,Ff).config).onSettled)==null||p.call(h,C,this.state.error,this),C}catch(C){if(C instanceof c6){if(C.silent)return Ve(this,qs).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Yr(this,$u,Og).call(this,{type:"error",error:C}),(y=(v=Ve(this,Ff).config).onError)==null||y.call(v,C,this),(x=(b=Ve(this,Ff).config).onSettled)==null||x.call(b,this.state.data,C,this),C}finally{this.scheduleGc()}})}},nC=new WeakMap,s1=new WeakMap,rC=new WeakMap,Ff=new WeakMap,l1=new WeakMap,qs=new WeakMap,x$=new WeakMap,c1=new WeakMap,$u=new WeakSet,JMe=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Og=function(t){const n=r=>{var i;switch(t.type){case"failed":return te(I({},r),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return te(I({},r),{fetchStatus:"paused"});case"continue":return te(I({},r),{fetchStatus:"fetching"});case"fetch":return te(I(I({},r),wJ(r.data,this.options)),{fetchMeta:(i=t.meta)!=null?i:null});case"success":const o=I(te(I(I({},r),CJ(t.data,t.dataUpdatedAt)),{dataUpdateCount:r.dataUpdateCount+1}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return Bn(this,rC,t.manual?o:void 0),o;case"error":const a=t.error;return te(I({},r),{error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0});case"invalidate":return te(I({},r),{isInvalidated:!0});case"setState":return I(I({},r),t.state)}};this.state=n(this.state),Es.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ve(this,Ff).notify({query:this,type:"updated",action:t})})},FMe);function wJ(e,t){return I({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vJ(t.networkMode)?"fetching":"paused"},e===void 0&&{error:null,status:"pending"})}function CJ(e,t){return{data:e,dataUpdatedAt:t!=null?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function SJ(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var L4e=(kMe=class extends Pc{constructor(t,n){super();rr(this,eo);rr(this,Yc);rr(this,bi);rr(this,w$);rr(this,vc);rr(this,u1);rr(this,iC);rr(this,Kp);rr(this,a0);rr(this,C$);rr(this,oC);rr(this,aC);rr(this,f1);rr(this,d1);rr(this,s0);rr(this,sC,new Set);this.options=n,Bn(this,Yc,t),Bn(this,a0,null),Bn(this,Kp,l6()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ve(this,bi).addObserver(this),EJ(Ve(this,bi),this.options)?Yr(this,eo,_T).call(this):this.updateResult(),Yr(this,eo,iJ).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u6(Ve(this,bi),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u6(Ve(this,bi),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Yr(this,eo,oJ).call(this),Yr(this,eo,aJ).call(this),Ve(this,bi).removeObserver(this)}setOptions(t){const n=this.options,r=Ve(this,bi);if(this.options=Ve(this,Yc).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof lu(this.options.enabled,Ve(this,bi))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Yr(this,eo,sJ).call(this),Ve(this,bi).setOptions(this.options),n._defaulted&&!TT(this.options,n)&&Ve(this,Yc).getQueryCache().notify({type:"observerOptionsUpdated",query:Ve(this,bi),observer:this});const i=this.hasListeners();i&&BJ(Ve(this,bi),r,this.options,n)&&Yr(this,eo,_T).call(this),this.updateResult(),i&&(Ve(this,bi)!==r||lu(this.options.enabled,Ve(this,bi))!==lu(n.enabled,Ve(this,bi))||_g(this.options.staleTime,Ve(this,bi))!==_g(n.staleTime,Ve(this,bi)))&&Yr(this,eo,tJ).call(this);const o=Yr(this,eo,nJ).call(this);i&&(Ve(this,bi)!==r||lu(this.options.enabled,Ve(this,bi))!==lu(n.enabled,Ve(this,bi))||o!==Ve(this,s0))&&Yr(this,eo,rJ).call(this,o)}getOptimisticResult(t){const n=Ve(this,Yc).getQueryCache().build(Ve(this,Yc),t),r=this.createResult(n,t);return k4e(this,r)&&(Bn(this,vc,r),Bn(this,iC,this.options),Bn(this,u1,Ve(this,bi).state)),r}getCurrentResult(){return Ve(this,vc)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&Ve(this,Kp).status==="pending"&&Ve(this,Kp).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){Ve(this,sC).add(t)}getCurrentQuery(){return Ve(this,bi)}refetch(n={}){var t=Ze(n,[]);return this.fetch(I({},t))}fetchOptimistic(t){const n=Ve(this,Yc).defaultQueryOptions(t),r=Ve(this,Yc).getQueryCache().build(Ve(this,Yc),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return Yr(this,eo,_T).call(this,te(I({},t),{cancelRefetch:(n=t.cancelRefetch)!=null?n:!0})).then(()=>(this.updateResult(),Ve(this,vc)))}createResult(t,n){var M;const r=Ve(this,bi),i=this.options,o=Ve(this,vc),a=Ve(this,u1),s=Ve(this,iC),c=t!==r?t.state:Ve(this,w$),{state:u}=t;let f=I({},u),d=!1,A;if(n._optimisticResults){const R=this.hasListeners(),T=!R&&EJ(t,n),L=R&&BJ(t,r,n,i);(T||L)&&(f=I(I({},f),wJ(u.data,t.options))),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:p,status:v}=f;A=f.data;let y=!1;if(n.placeholderData!==void 0&&A===void 0&&v==="pending"){let R;o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(R=o.data,y=!0):R=typeof n.placeholderData=="function"?n.placeholderData((M=Ve(this,aC))==null?void 0:M.state.data,Ve(this,aC)):n.placeholderData,R!==void 0&&(v="success",A=o6(o==null?void 0:o.data,R,n),d=!0)}if(n.select&&A!==void 0&&!y)if(o&&A===(a==null?void 0:a.data)&&n.select===Ve(this,C$))A=Ve(this,oC);else try{Bn(this,C$,n.select),A=n.select(A),A=o6(o==null?void 0:o.data,A,n),Bn(this,oC,A),Bn(this,a0,null)}catch(R){Bn(this,a0,R)}Ve(this,a0)&&(h=Ve(this,a0),A=Ve(this,oC),p=Date.now(),v="error");const b=f.fetchStatus==="fetching",x=v==="pending",C=v==="error",S=x&&b,B=A!==void 0,_={status:v,fetchStatus:f.fetchStatus,isPending:x,isSuccess:v==="success",isError:C,isInitialLoading:S,isLoading:S,data:A,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:C&&!B,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:C&&B,isStale:f6(t,n),refetch:this.refetch,promise:Ve(this,Kp),isEnabled:lu(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const R=_.data!==void 0,T=_.status==="error"&&!R,L=H=>{T?H.reject(_.error):R&&H.resolve(_.data)},P=()=>{const H=Bn(this,Kp,_.promise=l6());L(H)},k=Ve(this,Kp);switch(k.status){case"pending":t.queryHash===r.queryHash&&L(k);break;case"fulfilled":(T||_.data!==k.value)&&P();break;case"rejected":(!T||_.error!==k.reason)&&P();break}}return _}updateResult(){const t=Ve(this,vc),n=this.createResult(Ve(this,bi),this.options);if(Bn(this,u1,Ve(this,bi).state),Bn(this,iC,this.options),Ve(this,u1).data!==void 0&&Bn(this,aC,Ve(this,bi)),TT(n,t))return;Bn(this,vc,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!Ve(this,sC).size)return!0;const a=new Set(o!=null?o:Ve(this,sC));return this.options.throwOnError&&a.add("error"),Object.keys(Ve(this,vc)).some(s=>{const l=s;return Ve(this,vc)[l]!==t[l]&&a.has(l)})};Yr(this,eo,e4e).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Yr(this,eo,iJ).call(this)}},Yc=new WeakMap,bi=new WeakMap,w$=new WeakMap,vc=new WeakMap,u1=new WeakMap,iC=new WeakMap,Kp=new WeakMap,a0=new WeakMap,C$=new WeakMap,oC=new WeakMap,aC=new WeakMap,f1=new WeakMap,d1=new WeakMap,s0=new WeakMap,sC=new WeakMap,eo=new WeakSet,_T=function(t){Yr(this,eo,sJ).call(this);let n=Ve(this,bi).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(oc)),n},tJ=function(){Yr(this,eo,oJ).call(this);const t=_g(this.options.staleTime,Ve(this,bi));if(IS.isServer()||Ve(this,vc).isStale||!n6(t))return;const r=fJ(Ve(this,vc).dataUpdatedAt,t)+1;Bn(this,f1,av.setTimeout(()=>{Ve(this,vc).isStale||this.updateResult()},r))},nJ=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ve(this,bi)):this.options.refetchInterval)!=null?t:!1},rJ=function(t){Yr(this,eo,aJ).call(this),Bn(this,s0,t),!(IS.isServer()||lu(this.options.enabled,Ve(this,bi))===!1||!n6(Ve(this,s0))||Ve(this,s0)===0)&&Bn(this,d1,av.setInterval(()=>{(this.options.refetchIntervalInBackground||$g.isFocused())&&Yr(this,eo,_T).call(this)},Ve(this,s0)))},iJ=function(){Yr(this,eo,tJ).call(this),Yr(this,eo,rJ).call(this,Yr(this,eo,nJ).call(this))},oJ=function(){Ve(this,f1)!==void 0&&(av.clearTimeout(Ve(this,f1)),Bn(this,f1,void 0))},aJ=function(){Ve(this,d1)!==void 0&&(av.clearInterval(Ve(this,d1)),Bn(this,d1,void 0))},sJ=function(){const t=Ve(this,Yc).getQueryCache().build(Ve(this,Yc),this.options);if(t===Ve(this,bi))return;const n=Ve(this,bi);Bn(this,bi,t),Bn(this,w$,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},e4e=function(t){Es.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Ve(this,vc))}),Ve(this,Yc).getQueryCache().notify({query:Ve(this,bi),type:"observerResultsUpdated"})})},kMe);function F4e(e,t){return lu(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&lu(t.retryOnMount,e)===!1)}function EJ(e,t){return F4e(e,t)||e.state.data!==void 0&&u6(e,t,t.refetchOnMount)}function u6(e,t,n){if(lu(t.enabled,e)!==!1&&_g(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&f6(e,t)}return!1}function BJ(e,t,n,r){return(e!==t||lu(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&f6(e,n)}function f6(e,t){return lu(t.enabled,e)!==!1&&e.isStaleByTime(_g(t.staleTime,e))}function k4e(e,t){return!TT(e.getCurrentResult(),t)}var D4e=(DMe=class extends bJ{constructor(t){super();rr(this,sh);rr(this,S$);rr(this,ah);rr(this,Vl);rr(this,A1);Bn(this,S$,t.client),this.mutationId=t.mutationId,Bn(this,Vl,t.mutationCache),Bn(this,ah,[]),this.state=t.state||OJ(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ve(this,ah).includes(t)||(Ve(this,ah).push(t),this.clearGcTimeout(),Ve(this,Vl).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bn(this,ah,Ve(this,ah).filter(n=>n!==t)),this.scheduleGc(),Ve(this,Vl).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ve(this,ah).length||(this.state.status==="pending"?this.scheduleGc():Ve(this,Vl).remove(this))}continue(){var t,n;return(n=(t=Ve(this,A1))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}execute(t){return Er(this,null,function*(){var a,s,l,c,u,f,d,A,h,p,v,y,b,x,C,S,B,E,_;const n=()=>{Yr(this,sh,iv).call(this,{type:"continue"})},r={client:Ve(this,S$),meta:this.options.meta,mutationKey:this.options.mutationKey};Bn(this,A1,yJ({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(M,R)=>{Yr(this,sh,iv).call(this,{type:"failed",failureCount:M,error:R})},onPause:()=>{Yr(this,sh,iv).call(this,{type:"pause"})},onContinue:n,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ve(this,Vl).canRun(this)}));const i=this.state.status==="pending",o=!Ve(this,A1).canStart();try{if(i)n();else{Yr(this,sh,iv).call(this,{type:"pending",variables:t,isPaused:o}),Ve(this,Vl).config.onMutate&&(yield Ve(this,Vl).config.onMutate(t,this,r));const R=yield(l=(s=this.options).onMutate)==null?void 0:l.call(s,t,r);R!==this.state.context&&Yr(this,sh,iv).call(this,{type:"pending",context:R,variables:t,isPaused:o})}const M=yield Ve(this,A1).start();return yield(u=(c=Ve(this,Vl).config).onSuccess)==null?void 0:u.call(c,M,t,this.state.context,this,r),yield(d=(f=this.options).onSuccess)==null?void 0:d.call(f,M,t,this.state.context,r),yield(h=(A=Ve(this,Vl).config).onSettled)==null?void 0:h.call(A,M,null,this.state.variables,this.state.context,this,r),yield(v=(p=this.options).onSettled)==null?void 0:v.call(p,M,null,t,this.state.context,r),Yr(this,sh,iv).call(this,{type:"success",data:M}),M}catch(M){try{yield(b=(y=Ve(this,Vl).config).onError)==null?void 0:b.call(y,M,t,this.state.context,this,r)}catch(R){Promise.reject(R)}try{yield(C=(x=this.options).onError)==null?void 0:C.call(x,M,t,this.state.context,r)}catch(R){Promise.reject(R)}try{yield(B=(S=Ve(this,Vl).config).onSettled)==null?void 0:B.call(S,void 0,M,this.state.variables,this.state.context,this,r)}catch(R){Promise.reject(R)}try{yield(_=(E=this.options).onSettled)==null?void 0:_.call(E,void 0,M,t,this.state.context,r)}catch(R){Promise.reject(R)}throw Yr(this,sh,iv).call(this,{type:"error",error:M}),M}finally{Ve(this,Vl).runNext(this)}})}},S$=new WeakMap,ah=new WeakMap,Vl=new WeakMap,A1=new WeakMap,sh=new WeakSet,iv=function(t){const n=r=>{switch(t.type){case"failed":return te(I({},r),{failureCount:t.failureCount,failureReason:t.error});case"pause":return te(I({},r),{isPaused:!0});case"continue":return te(I({},r),{isPaused:!1});case"pending":return te(I({},r),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return te(I({},r),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return te(I({},r),{data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}};this.state=n(this.state),Es.batch(()=>{Ve(this,ah).forEach(r=>{r.onMutationUpdate(t)}),Ve(this,Vl).notify({mutation:this,type:"updated",action:t})})},DMe);function OJ(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var H4e=(HMe=class extends Pc{constructor(t={}){super();rr(this,Wp);rr(this,Nd);rr(this,E$);this.config=t,Bn(this,Wp,new Set),Bn(this,Nd,new Map),Bn(this,E$,0)}build(t,n,r){const i=new D4e({client:t,mutationCache:this,mutationId:++Jk(this,E$)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Ve(this,Wp).add(t);const n=IT(t);if(typeof n=="string"){const r=Ve(this,Nd).get(n);r?r.push(t):Ve(this,Nd).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Ve(this,Wp).delete(t)){const n=IT(t);if(typeof n=="string"){const r=Ve(this,Nd).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&Ve(this,Nd).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=IT(t);if(typeof n=="string"){const r=Ve(this,Nd).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r,i;const n=IT(t);if(typeof n=="string"){const o=(r=Ve(this,Nd).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i=o==null?void 0:o.continue())!=null?i:Promise.resolve()}else return Promise.resolve()}clear(){Es.batch(()=>{Ve(this,Wp).forEach(t=>{this.notify({type:"removed",mutation:t})}),Ve(this,Wp).clear(),Ve(this,Nd).clear()})}getAll(){return Array.from(Ve(this,Wp))}find(t){const n=I({exact:!0},t);return this.getAll().find(r=>AJ(n,r))}findAll(t={}){return this.getAll().filter(n=>AJ(t,n))}notify(t){Es.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Es.batch(()=>Promise.all(t.map(n=>n.continue().catch(oc))))}},Wp=new WeakMap,Nd=new WeakMap,E$=new WeakMap,HMe);function IT(e){var t;return(t=e.options.scope)==null?void 0:t.id}var U4e=(UMe=class extends Pc{constructor(n,r){super();rr(this,Yp);rr(this,Gp);rr(this,l0);rr(this,Xc);rr(this,qp);Bn(this,Gp,n),this.setOptions(r),this.bindMethods(),Yr(this,Yp,t6).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Ve(this,Gp).defaultMutationOptions(n),TT(this.options,r)||Ve(this,Gp).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ve(this,Xc),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&sv(r.mutationKey)!==sv(this.options.mutationKey)?this.reset():((i=Ve(this,Xc))==null?void 0:i.state.status)==="pending"&&Ve(this,Xc).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Ve(this,Xc))==null||n.removeObserver(this)}onMutationUpdate(n){Yr(this,Yp,t6).call(this),Yr(this,Yp,lJ).call(this,n)}getCurrentResult(){return Ve(this,l0)}reset(){var n;(n=Ve(this,Xc))==null||n.removeObserver(this),Bn(this,Xc,void 0),Yr(this,Yp,t6).call(this),Yr(this,Yp,lJ).call(this)}mutate(n,r){var i;return Bn(this,qp,r),(i=Ve(this,Xc))==null||i.removeObserver(this),Bn(this,Xc,Ve(this,Gp).getMutationCache().build(Ve(this,Gp),this.options)),Ve(this,Xc).addObserver(this),Ve(this,Xc).execute(n)}},Gp=new WeakMap,l0=new WeakMap,Xc=new WeakMap,qp=new WeakMap,Yp=new WeakSet,t6=function(){var r,i;const n=(i=(r=Ve(this,Xc))==null?void 0:r.state)!=null?i:OJ();Bn(this,l0,te(I({},n),{isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}))},lJ=function(n){Es.batch(()=>{var r,i,o,a,s,l,c,u;if(Ve(this,qp)&&this.hasListeners()){const f=Ve(this,l0).variables,d=Ve(this,l0).context,A={client:Ve(this,Gp),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=Ve(this,qp)).onSuccess)==null||i.call(r,n.data,f,d,A)}catch(h){Promise.reject(h)}try{(a=(o=Ve(this,qp)).onSettled)==null||a.call(o,n.data,null,f,d,A)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(l=(s=Ve(this,qp)).onError)==null||l.call(s,n.error,f,d,A)}catch(h){Promise.reject(h)}try{(u=(c=Ve(this,qp)).onSettled)==null||u.call(c,void 0,n.error,f,d,A)}catch(h){Promise.reject(h)}}}this.listeners.forEach(f=>{f(Ve(this,l0))})})},UMe),j4e=(jMe=class extends Pc{constructor(t={}){super();rr(this,lh);this.config=t,Bn(this,lh,new Map)}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:r6(i,n);let a=this.get(o);return a||(a=new P4e({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){Ve(this,lh).has(t.queryHash)||(Ve(this,lh).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ve(this,lh).get(t.queryHash);n&&(t.destroy(),n===t&&Ve(this,lh).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Es.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ve(this,lh).get(t)}getAll(){return[...Ve(this,lh).values()]}find(t){const n=I({exact:!0},t);return this.getAll().find(r=>dJ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>dJ(t,r)):n}notify(t){Es.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Es.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Es.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lh=new WeakMap,jMe),z4e=(zMe=class{constructor(e={}){rr(this,Ha);rr(this,c0);rr(this,u0);rr(this,lC);rr(this,cC);rr(this,f0);rr(this,uC);rr(this,fC);Bn(this,Ha,e.queryCache||new j4e),Bn(this,c0,e.mutationCache||new H4e),Bn(this,u0,e.defaultOptions||{}),Bn(this,lC,new Map),Bn(this,cC,new Map),Bn(this,f0,0)}mount(){Jk(this,f0)._++,Ve(this,f0)===1&&(Bn(this,uC,$g.subscribe(e=>Er(this,null,function*(){e&&(yield this.resumePausedMutations(),Ve(this,Ha).onFocus())}))),Bn(this,fC,MT.subscribe(e=>Er(this,null,function*(){e&&(yield this.resumePausedMutations(),Ve(this,Ha).onOnline())}))))}unmount(){var e,t;Jk(this,f0)._--,Ve(this,f0)===0&&((e=Ve(this,uC))==null||e.call(this),Bn(this,uC,void 0),(t=Ve(this,fC))==null||t.call(this),Bn(this,fC,void 0))}isFetching(e){return Ve(this,Ha).findAll(te(I({},e),{fetchStatus:"fetching"})).length}isMutating(e){return Ve(this,c0).findAll(te(I({},e),{status:"pending"})).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ve(this,Ha).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Ve(this,Ha).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_g(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Ve(this,Ha).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Ve(this,Ha).get(r.queryHash),o=i==null?void 0:i.state.data,a=C4e(t,o);if(a!==void 0)return Ve(this,Ha).build(this,r).setData(a,te(I({},n),{manual:!0}))}setQueriesData(e,t,n){return Es.batch(()=>Ve(this,Ha).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ve(this,Ha).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ve(this,Ha);Es.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ve(this,Ha);return Es.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(I({type:"active"},e),t)))}cancelQueries(e,t={}){const n=I({revert:!0},t),r=Es.batch(()=>Ve(this,Ha).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(oc).catch(oc)}invalidateQueries(e,t={}){return Es.batch(()=>{var n,r;return Ve(this,Ha).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries(te(I({},e),{type:(r=(n=e==null?void 0:e.refetchType)!=null?n:e==null?void 0:e.type)!=null?r:"active"}),t)})}refetchQueries(e,t={}){var i;const n=te(I({},t),{cancelRefetch:(i=t.cancelRefetch)!=null?i:!0}),r=Es.batch(()=>Ve(this,Ha).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(oc)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(oc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ve(this,Ha).build(this,t);return n.isStaleByTime(_g(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(oc).catch(oc)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(oc).catch(oc)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return MT.isOnline()?Ve(this,c0).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ve(this,Ha)}getMutationCache(){return Ve(this,c0)}getDefaultOptions(){return Ve(this,u0)}setDefaultOptions(e){Bn(this,u0,e)}setQueryDefaults(e,t){Ve(this,lC).set(sv(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ve(this,lC).values()],n={};return t.forEach(r=>{MS(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Ve(this,cC).set(sv(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ve(this,cC).values()],n={};return t.forEach(r=>{MS(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=te(I(I(I({},Ve(this,u0).queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:!0});return t.queryHash||(t.queryHash=r6(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===a6&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:te(I(I(I({},Ve(this,u0).mutations),(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:!0})}clear(){Ve(this,Ha).clear(),Ve(this,c0).clear()}},Ha=new WeakMap,c0=new WeakMap,u0=new WeakMap,lC=new WeakMap,cC=new WeakMap,f0=new WeakMap,uC=new WeakMap,fC=new WeakMap,zMe),d6={exports:{}},Lr={};var $J;function Q4e(){if($J)return Lr;$J=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),d=Symbol.iterator;function A(z){return z===null||typeof z!="object"?null:(z=d&&z[d]||z["@@iterator"],typeof z=="function"?z:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,v={};function y(z,V,Y){this.props=z,this.context=V,this.refs=v,this.updater=Y||h}y.prototype.isReactComponent={},y.prototype.setState=function(z,V){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,V,"setState")},y.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function b(){}b.prototype=y.prototype;function x(z,V,Y){this.props=z,this.context=V,this.refs=v,this.updater=Y||h}var C=x.prototype=new b;C.constructor=x,p(C,y.prototype),C.isPureReactComponent=!0;var S=Array.isArray;function B(){}var E={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function M(z,V,Y){var Z=Y.ref;return{$$typeof:e,type:z,key:V,ref:Z!==void 0?Z:null,props:Y}}function R(z,V){return M(z.type,V,z.props)}function T(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function L(z){var V={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(Y){return V[Y]})}var P=/\/+/g;function k(z,V){return typeof z=="object"&&z!==null&&z.key!=null?L(""+z.key):V.toString(36)}function H(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(B,B):(z.status="pending",z.then(function(V){z.status==="pending"&&(z.status="fulfilled",z.value=V)},function(V){z.status==="pending"&&(z.status="rejected",z.reason=V)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function D(z,V,Y,Z,W){var J=typeof z;(J==="undefined"||J==="boolean")&&(z=null);var ee=!1;if(z===null)ee=!0;else switch(J){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(z.$$typeof){case e:case t:ee=!0;break;case u:return ee=z._init,D(ee(z._payload),V,Y,Z,W)}}if(ee)return W=W(z),ee=Z===""?"."+k(z,0):Z,S(W)?(Y="",ee!=null&&(Y=ee.replace(P,"$&/")+"/"),D(W,V,Y,"",function(ue){return ue})):W!=null&&(T(W)&&(W=R(W,Y+(W.key==null||z&&z.key===W.key?"":(""+W.key).replace(P,"$&/")+"/")+ee)),V.push(W)),1;ee=0;var ne=Z===""?".":Z+":";if(S(z))for(var re=0;re{const t=g.useContext(TJ);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},K4e=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),he.jsx(TJ.Provider,{value:e,children:t})),MJ=g.createContext(!1),W4e=()=>g.useContext(MJ);MJ.Provider;function G4e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var q4e=g.createContext(G4e()),Y4e=()=>g.useContext(q4e),X4e=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?s6(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Z4e=e=>{g.useEffect(()=>{e.clearReset()},[e])},J4e=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||s6(n,[e.error,r])),eIe=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i!=null?i:1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},tIe=(e,t)=>e.isLoading&&e.isFetching&&!t,nIe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,IJ=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function rIe(e,t,n){var A,h,p,v;const r=W4e(),i=Y4e(),o=RT(),a=o.defaultQueryOptions(e);(h=(A=o.getDefaultOptions().queries)==null?void 0:A._experimental_beforeQuery)==null||h.call(A,a);const s=o.getQueryCache().get(a.queryHash),l=e.subscribed!==!1;a._optimisticResults=r?"isRestoring":l?"optimistic":void 0,eIe(a),X4e(a,i,s),Z4e(i);const c=!o.getQueryCache().get(a.queryHash),[u]=g.useState(()=>new t(o,a)),f=u.getOptimisticResult(a),d=!r&&l;if(g.useSyncExternalStore(g.useCallback(y=>{const b=d?u.subscribe(Es.batchCalls(y)):oc;return u.updateResult(),b},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),g.useEffect(()=>{u.setOptions(a)},[a,u]),nIe(a,f))throw IJ(a,u,i);if(J4e({result:f,errorResetBoundary:i,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw f.error;if((v=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||v.call(p,a,f),a.experimental_prefetchInRender&&!IS.isServer()&&tIe(f,r)){const y=c?IJ(a,u,i):s==null?void 0:s.promise;y==null||y.catch(oc).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?f:u.trackResult(f)}function aA(e,t){return rIe(e,L4e)}function Cl(e,t){const n=RT(),[r]=g.useState(()=>new U4e(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const i=g.useSyncExternalStore(g.useCallback(a=>r.subscribe(Es.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=g.useCallback((a,s)=>{r.mutate(a,s).catch(oc)},[r]);if(i.error&&s6(r.options.throwOnError,[i.error]))throw i.error;return te(I({},i),{mutate:o,mutateAsync:i.mutate})}const RJ={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},iIe=te(I({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),NJ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},NT={lang:I({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},iIe),timePickerLocale:I({},NJ)},cu="${label} is not a valid ${type}",Sl={locale:"en",Pagination:RJ,DatePicker:NT,TimePicker:NJ,Calendar:NT,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:cu,method:cu,array:cu,object:cu,number:cu,date:cu,boolean:cu,integer:cu,float:cu,regexp:cu,email:cu,url:cu,hex:cu},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Tr=e=>typeof e=="string",NS=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},PJ=e=>e==null?"":""+e,oIe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},aIe=/###/g,LJ=e=>e&&e.indexOf("###")>-1?e.replace(aIe,"."):e,FJ=e=>!e||Tr(e),PS=(e,t,n)=>{const r=Tr(t)?t.split("."):t;let i=0;for(;i{const{obj:r,k:i}=PS(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=PS(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=PS(e,a,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${o}`]!="undefined"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},sIe=(e,t,n,r)=>{const{obj:i,k:o}=PS(e,t,Object);i[o]=i[o]||[],i[o].push(n)},PT=(e,t)=>{const{obj:n,k:r}=PS(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},lIe=(e,t,n)=>{const r=PT(e,n);return r!==void 0?r:PT(t,n)},DJ=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Tr(e[r])||e[r]instanceof String||Tr(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):DJ(e[r],t[r],n):e[r]=t[r]);return e},lv=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var cIe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const uIe=e=>Tr(e)?e.replace(/[&<>"'\/]/g,t=>cIe[t]):e;class fIe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const dIe=[" ",",","?","!",";"],AIe=new fIe(20),hIe=(e,t,n)=>{t=t||"",n=n||"";const r=dIe.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=AIe.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},A6=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let o=0;o-1&&le==null?void 0:e.replace(/_/g,"-"),pIe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class LT{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||pIe,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(Tr(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new LT(this.logger,I({prefix:`${this.prefix}:${t}:`},this.options))}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new LT(this.logger,t)}}var sA=new LT;let FT=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,o])=>{for(let a=0;a{for(let a=0;a-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var c,u;const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):Tr(r)&&o?s.push(...r.split(o)):s.push(r)));const l=PT(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!Tr(r)?l:A6((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[n],r,o)}addResource(t,n,r,i,o={silent:!1}){const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),kJ(this.data,s,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const o in r)(Tr(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o,a={silent:!1,skipCopy:!1}){let s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=PT(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?DJ(l,r,o):l=I(I({},l),r),kJ(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var UJ={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{var a,s;t=(s=(a=this.processors[o])==null?void 0:a.process(t,n,r,i))!=null?s:t}),t}};const jJ=Symbol("i18next/PATH_KEY");function gIe(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var o;return(o=n==null?void 0:n.revoke)==null||o.call(n),i===jJ?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function db(e,t){var o,a;const{[jJ]:n}=e(gIe()),r=(o=t==null?void 0:t.keySeparator)!=null?o:".",i=(a=t==null?void 0:t.nsSeparator)!=null?a:":";if(n.length>1&&i){const s=t==null?void 0:t.ns,l=Array.isArray(s)?s:null;if(l&&l.length>1&&l.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const zJ={},h6=e=>!Tr(e)&&typeof e!="boolean"&&typeof e!="number";class kT extends FT{constructor(t,n={}){super(),oIe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=sA.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r=I({},n);if(t==null)return!1;const i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;const o=h6(i.res);return!(r.returnObjects===!1&&o)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hIe(t,r,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Tr(o)?[o]:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return{key:t,namespaces:Tr(o)?[o]:o}}translate(t,n,r){let i=typeof n=="object"?I({},n):n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i=I({},i)),i||(i={}),t==null)return"";typeof t=="function"&&(t=db(t,I(I({},this.options),i))),Array.isArray(t)||(t=[String(t)]),t=t.map(P=>typeof P=="function"?db(P,I(I({},this.options),i)):String(P));const o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],i),c=l[l.length-1];let u=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const f=i.lng||this.language,d=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return d?o?{res:`${c}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:`${c}${u}${s}`:o?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:s;const A=this.resolve(t,i);let h=A==null?void 0:A.res;const p=(A==null?void 0:A.usedKey)||s,v=(A==null?void 0:A.exactUsedKey)||s,y=["[object Number]","[object Function]","[object RegExp]"],b=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,C=i.count!==void 0&&!Tr(i.count),S=kT.hasDefaultValue(i),B=C?this.pluralResolver.getSuffix(f,i.count,i):"",E=i.ordinal&&C?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):"",_=C&&!i.ordinal&&i.count===0,M=_&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${B}`]||i[`defaultValue${E}`]||i.defaultValue;let R=h;x&&!h&&S&&(R=M);const T=h6(R),L=Object.prototype.toString.apply(R);if(x&&R&&T&&y.indexOf(L)<0&&!(Tr(b)&&Array.isArray(R))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,R,te(I({},i),{ns:l})):`key '${s} (${this.language})' returned an object instead of string.`;return o?(A.res=P,A.usedParams=this.getUsedParamsDetails(i),A):P}if(a){const P=Array.isArray(R),k=P?[]:{},H=P?v:p;for(const D in R)if(Object.prototype.hasOwnProperty.call(R,D)){const U=`${H}${a}${D}`;S&&!h?k[D]=this.translate(U,te(I({},i),{defaultValue:h6(M)?M[D]:void 0,joinArrays:!1,ns:l})):k[D]=this.translate(U,te(I({},i),{joinArrays:!1,ns:l})),k[D]===U&&(k[D]=R[D])}h=k}}else if(x&&Tr(b)&&Array.isArray(h))h=h.join(b),h&&(h=this.extendTranslation(h,t,i,r));else{let P=!1,k=!1;!this.isValidLookup(h)&&S&&(P=!0,h=M),this.isValidLookup(h)||(k=!0,h=s);const D=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:h,U=S&&M!==h&&this.options.updateMissing;if(k||P||U){if(this.logger.log(U?"updateKey":"missingKey",f,c,s,U?M:h),a){const z=this.resolve(s,te(I({},i),{keySeparator:!1}));z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let z=0;z{var W;const Z=S&&Y!==h?Y:D;this.options.missingKeyHandler?this.options.missingKeyHandler(z,c,V,Z,U,i):(W=this.backendConnector)!=null&&W.saveMissing&&this.backendConnector.saveMissing(z,c,V,Z,U,i),this.emit("missingKey",z,c,V,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?j.forEach(z=>{const V=this.pluralResolver.getSuffixes(z,i);_&&i[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(Y=>{K([z],s+Y,i[`defaultValue${Y}`]||M)})}):K(j,s,M))}h=this.extendTranslation(h,t,i,A,r),k&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${c}${u}${s}`),(k||P)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${s}`:s,P?h:void 0,i))}return o?(A.res=h,A.usedParams=this.getUsedParamsDetails(i),A):h}extendTranslation(t,n,r,i,o){var l,c;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,I(I({},this.options.interpolation.defaultVariables),r),r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(te(I({},r),{interpolation:I(I({},this.options.interpolation),r.interpolation)}));const u=Tr(t)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const A=t.match(this.interpolator.nestingRegexp);f=A&&A.length}let d=r.replace&&!Tr(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d=I(I({},this.options.interpolation.defaultVariables),d)),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),u){const A=t.match(this.interpolator.nestingRegexp),h=A&&A.length;f(o==null?void 0:o[0])===A[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):this.translate(...A,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s=Tr(a)?[a]:a;return t!=null&&(s!=null&&s.length)&&r.applyPostProcessor!==!1&&(t=UJ.handle(s,t,n,this.options&&this.options.postProcessPassResolved?I({i18nResolved:te(I({},i),{usedParams:this.getUsedParamsDetails(r)})},r):r,this)),t}resolve(t,n={}){let r,i,o,a,s;return Tr(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?db(l,I(I({},this.options),n)):l)),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&!Tr(n.count),A=d&&!n.ordinal&&n.count===0,h=n.context!==void 0&&(Tr(n.context)||typeof n.context=="number")&&n.context!=="",p=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var y,b;this.isValidLookup(r)||(s=v,!zJ[`${p[0]}-${v}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((b=this.utils)!=null&&b.hasLoadedNamespace(s))&&(zJ[`${p[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(x=>{var B;if(this.isValidLookup(r))return;a=x;const C=[u];if((B=this.i18nFormat)!=null&&B.addLookupKeys)this.i18nFormat.addLookupKeys(C,u,x,v,n);else{let E;d&&(E=this.pluralResolver.getSuffix(x,n.count,n));const _=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&E.indexOf(M)===0&&C.push(u+E.replace(M,this.options.pluralSeparator)),C.push(u+E),A&&C.push(u+_)),h){const R=`${u}${this.options.contextSeparator||"_"}${n.context}`;C.push(R),d&&(n.ordinal&&E.indexOf(M)===0&&C.push(R+E.replace(M,this.options.pluralSeparator)),C.push(R+E),A&&C.push(R+_))}}let S;for(;S=C.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(x,v,S,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var o;return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Tr(t.replace);let i=r?t.replace:t;if(r&&typeof t.count!="undefined"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i=I(I({},this.options.interpolation.defaultVariables),i)),!r){i=I({},i);for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class QJ{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=sA.create("languageUtils")}getScriptPartFromCode(t){if(t=LS(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=LS(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Tr(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch(r){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Tr(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Tr(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):Tr(t)&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}const VJ={zero:0,one:1,two:2,few:3,many:4,other:5},KJ={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class mIe{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=sA.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=LS(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(r,{type:i})}catch(s){if(typeof Intl=="undefined")return this.logger.error("No Intl support, please use an Intl polyfill!"),KJ;if(!t.match(/-|_/))return KJ;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,n)}return this.pluralRulesCache[o]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>VJ[i]-VJ[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const WJ=(e,t,n,r=".",i=!0)=>{let o=lIe(e,t,n);return!o&&i&&Tr(n)&&(o=A6(e,n,r),o===void 0&&(o=A6(t,n,r))),o},p6=e=>e.replace(/\$/g,"$$$$");class GJ{constructor(t={}){var n;this.logger=sA.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:A,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:uIe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?lv(o):a||"{{",this.suffix=s?lv(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?lv(d):A||lv("$t("),this.nestingSuffix=h?lv(h):p||lv(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var A;let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const b=WJ(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,te(I(I({},i),n),{interpolationkey:h})):b}const p=h.split(this.formatSeparator),v=p.shift().trim(),y=p.join(this.formatSeparator).trim();return this.format(WJ(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,te(I(I({},i),n),{interpolationkey:v}))};this.resetRegExp();const u=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((A=i==null?void 0:i.interpolation)==null?void 0:A.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>p6(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?p6(this.escape(h)):p6(h)}].forEach(h=>{for(s=0;o=h.regex.exec(t);){const p=o[1].trim();if(a=c(p),a===void 0)if(typeof u=="function"){const y=u(t,o,i);a=Tr(y)?y:""}else if(i&&Object.prototype.hasOwnProperty.call(i,p))a="";else if(f){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),a="";else!Tr(a)&&!this.useRawValueToEscape&&(a=PJ(a));const v=h.safeValue(a);if(t=t.replace(o[0],v),f?(h.regex.lastIndex+=a.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,o,a;const s=(l,c)=>{var p,v;const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${lv(u)}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,a);const A=d.match(/'/g),h=d.match(/"/g);(((p=A==null?void 0:A.length)!=null?p:0)%2===0&&!h||((v=h==null?void 0:h.length)!=null?v:0)%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),c&&(a=I(I({},c),a))}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${d}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a=I({},r),a=a.replace&&!Tr(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const c=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(c!==-1&&(l=i[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&!Tr(o))return o;Tr(o)||(o=PJ(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),l.length&&(o=l.reduce((u,f)=>this.format(u,f,r.lng,te(I({},r),{interpolationkey:i[1].trim()})),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const vIe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},qJ=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o=te(I({},o),{[i.interpolationkey]:void 0}));const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(LS(r),i),t[a]=s),s(n)}},yIe=e=>(t,n,r)=>e(LS(n),r)(t);class bIe{constructor(t={}){this.logger=sA.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?qJ:yIe;this.formats={number:r((i,o)=>{const a=new Intl.NumberFormat(i,I({},o));return s=>a.format(s)}),currency:r((i,o)=>{const a=new Intl.NumberFormat(i,te(I({},o),{style:"currency"}));return s=>a.format(s)}),datetime:r((i,o)=>{const a=new Intl.DateTimeFormat(i,I({},o));return s=>a.format(s)}),relativetime:r((i,o)=>{const a=new Intl.RelativeTimeFormat(i,I({},o));return s=>a.format(s,o.range||"day")}),list:r((i,o)=>{const a=new Intl.ListFormat(i,I({},o));return s=>a.format(s)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=qJ(n)}format(t,n,r,i={}){const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{var f;const{formatName:c,formatOptions:u}=vIe(l);if(this.formats[c]){let d=s;try{const A=((f=i==null?void 0:i.formatParams)==null?void 0:f[i.interpolationkey])||{},h=A.locale||A.lng||i.locale||i.lng||r;d=this.formats[c](s,h,I(I(I({},u),i),A))}catch(A){this.logger.warn(A)}return d}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const xIe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};let wIe=class extends FT{constructor(t,n,r,i={}){var o,a;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=sA.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(a=(o=this.backend)==null?void 0:o.init)==null||a.call(o,r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(f=>{const d=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,u=!1,a[d]===void 0&&(a[d]=!0),o[d]===void 0&&(o[d]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{sIe(l.loaded,[o],a),xIe(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,i=0,o=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&i{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Tr(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Tr(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,i,o,a={},s=()=>{}){var l,c,u,f,d;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((f=(u=this.services)==null?void 0:u.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((d=this.backend)!=null&&d.create){const A=te(I({},a),{isUpdate:o}),h=this.backend.create.bind(this.backend);if(h.length<6)try{let p;h.length===5?p=h(t,n,r,i,A):p=h(t,n,r,i),p&&typeof p.then=="function"?p.then(v=>s(null,v)).catch(s):s(null,p)}catch(p){s(p)}else h(t,n,r,i,s,A)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}};const g6=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Tr(e[1])&&(t.defaultValue=e[1]),Tr(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),YJ=e=>{var t,n;return Tr(e.ns)&&(e.ns=[e.ns]),Tr(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Tr(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},DT=()=>{},CIe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},XJ="__i18next_supportNoticeShown",SIe=()=>!!(typeof globalThis!="undefined"&&globalThis[XJ]||typeof process!="undefined"&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process!="undefined"&&process.env),EIe=()=>{typeof globalThis!="undefined"&&(globalThis[XJ]=!0)},BIe=e=>{var t,n,r,i,o,a,s,l,c,u,f,d,A;return!!(((r=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:r.indexOf("Locize"))>0||((s=(a=(o=(i=e==null?void 0:e.modules)==null?void 0:i.backend)==null?void 0:o.constructor)==null?void 0:a.name)==null?void 0:s.indexOf("Locize"))>0||(c=(l=e==null?void 0:e.options)==null?void 0:l.backend)!=null&&c.backends&&e.options.backend.backends.some(h=>{var p,v,y;return((p=h==null?void 0:h.name)==null?void 0:p.indexOf("Locize"))>0||((y=(v=h==null?void 0:h.constructor)==null?void 0:v.name)==null?void 0:y.indexOf("Locize"))>0})||(f=(u=e==null?void 0:e.options)==null?void 0:u.backend)!=null&&f.projectId||(A=(d=e==null?void 0:e.options)==null?void 0:d.backend)!=null&&A.backendOptions&&e.options.backend.backendOptions.some(h=>h==null?void 0:h.projectId))};class FS extends FT{constructor(t={},n){if(super(),this.options=YJ(t),this.services={},this.logger=sA,this.modules={external:[]},CIe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Tr(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=g6();this.options=I(I(I({},r),this.options),YJ(t)),this.options.interpolation=I(I({},r.interpolation),this.options.interpolation),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!BIe(this)&&!SIe()&&(typeof console!="undefined"&&typeof console.info!="undefined"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),EIe());const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?sA.init(i(this.modules.logger),this.options):sA.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=bIe;const u=new QJ(this.options);this.store=new HJ(this.options.resources,this.options);const f=this.services;f.logger=sA,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new mIe(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=i(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new GJ(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new wIe(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(A,...h)=>{this.emit(A,...h)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new kT(this.services,this.options),this.translator.on("*",(A,...h)=>{this.emit(A,...h)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,n||(n=DT),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});const s=NS(),l=()=>{const c=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(f),n(u,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,n=DT){var o,a;let r=n;const i=Tr(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(a=(o=this.options.preload)==null?void 0:o.forEach)==null||a.call(o,c=>l(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const i=NS();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=DT),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&UJ.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=NS();this.emit("languageChanging",t);const i=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},o=(s,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(s,(...c)=>this.t(...c))},a=s=>{var u,f;!t&&!s&&this.services.languageDetector&&(s=[]);const l=Tr(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Tr(s)?[s]:s);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),(f=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||f.call(u,c)),this.loadResources(c,d=>{o(d,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){const i=(o,a,...s)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([o,a].concat(s)):l=I({},a),l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const c=I(I({},this.options),l);typeof l.keyPrefix=="function"&&(l.keyPrefix=db(l.keyPrefix,c));const u=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(o)?f=o.map(d=>(typeof d=="function"&&(d=db(d,c)),`${l.keyPrefix}${u}${d}`)):(typeof o=="function"&&(o=db(o,c)),f=l.keyPrefix?`${l.keyPrefix}${u}${o}`:o),this.t(f,l)};return Tr(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=NS();return this.options.ns?(Tr(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=NS();Tr(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){var i,o;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const s=a.getTextInfo();if(s&&s.direction)return s.direction}}catch(a){}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((o=this.services)==null?void 0:o.languageUtils)||new QJ(g6());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new FS(t,n);return r.createInstance=FS.createInstance,r}cloneInstance(t={},n=DT){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i=te(I(I({},this.options),t),{isClone:!0}),o=new FS(i);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services=I({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const s=Object.keys(this.store.data).reduce((l,c)=>(l[c]=I({},this.store.data[c]),l[c]=Object.keys(l[c]).reduce((u,f)=>(u[f]=I({},l[c][f]),u),l[c]),l),{});o.store=new HJ(s,i),o.services.resourceStore=o.store}if(t.interpolation){const s=g6(),l=I(I(I({},s.interpolation),this.options.interpolation),t.interpolation),c=te(I({},i),{interpolation:l});o.services.interpolator=new GJ(c)}return o.translator=new kT(o.services,i),o.translator.on("*",(s,...l)=>{o.emit(s,...l)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const rl=FS.createInstance();rl.createInstance,rl.dir,rl.init,rl.loadResources,rl.reloadResources,rl.use,rl.changeLanguage,rl.getFixedT,rl.t,rl.exists,rl.setDefaultNamespace,rl.hasLoadedNamespace,rl.loadNamespaces,rl.loadLanguages;var m6={exports:{}},kS={},v6={exports:{}},y6={};var ZJ;function OIe(){return ZJ||(ZJ=1,(function(e){function t(D,U){var j=D.length;D.push(U);e:for(;0>>1,K=D[Q];if(0>>1;Qi(Y,j))Zi(W,Y)?(D[Q]=W,D[Z]=j,Q=Z):(D[Q]=Y,D[V]=j,Q=V);else if(Zi(W,j))D[Q]=W,D[Z]=j,Q=Z;else break e}}return U}function i(D,U){var j=D.sortIndex-U.sortIndex;return j!==0?j:D.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,d=3,A=!1,h=!1,p=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate!="undefined"?setImmediate:null;function C(D){for(var U=n(c);U!==null;){if(U.callback===null)r(c);else if(U.startTime<=D)r(c),U.sortIndex=U.expirationTime,t(l,U);else break;U=n(c)}}function S(D){if(p=!1,C(D),!h)if(n(l)!==null)h=!0,B||(B=!0,L());else{var U=n(c);U!==null&&H(S,U.startTime-D)}}var B=!1,E=-1,_=5,M=-1;function R(){return v?!0:!(e.unstable_now()-M<_)}function T(){if(v=!1,B){var D=e.unstable_now();M=D;var U=!0;try{e:{h=!1,p&&(p=!1,b(E),E=-1),A=!0;var j=d;try{t:{for(C(D),f=n(l);f!==null&&!(f.expirationTime>D&&R());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,d=f.priorityLevel;var K=Q(f.expirationTime<=D);if(D=e.unstable_now(),typeof K=="function"){f.callback=K,C(D),U=!0;break t}f===n(l)&&r(l),C(D)}else r(l);f=n(l)}if(f!==null)U=!0;else{var z=n(c);z!==null&&H(S,z.startTime-D),U=!1}}break e}finally{f=null,d=j,A=!1}U=void 0}}finally{U?L():B=!1}}}var L;if(typeof x=="function")L=function(){x(T)};else if(typeof MessageChannel!="undefined"){var P=new MessageChannel,k=P.port2;P.port1.onmessage=T,L=function(){k.postMessage(null)}}else L=function(){y(T,0)};function H(D,U){E=y(function(){D(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125Q?(D.sortIndex=j,t(c,D),n(l)===null&&D===n(c)&&(p?(b(E),E=-1):p=!0,H(S,j-Q))):(D.sortIndex=K,t(l,D),h||A||(h=!0,B||(B=!0,L()))),D},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(D){var U=d;return function(){var j=d;d=U;try{return D.apply(this,arguments)}finally{d=j}}}})(y6)),y6}var JJ;function $Ie(){return JJ||(JJ=1,v6.exports=OIe()),v6.exports}var b6={exports:{}},El={};var eee;function _Ie(){if(eee)return El;eee=1;var e=RS();function t(l){var c="https://react.dev/errors/"+l;if(1K||(m.current=Q[K],Q[K]=null,K--)}function Y(m,w){K++,Q[K]=m.current,m.current=w}var Z=z(null),W=z(null),J=z(null),ee=z(null);function ne(m,w){switch(Y(J,w),Y(W,m),Y(Z,null),w.nodeType){case 9:case 11:m=(m=w.documentElement)&&(m=m.namespaceURI)?dT(m):0;break;default:if(m=w.tagName,w=w.namespaceURI)w=dT(w),m=tb(w,m);else switch(m){case"svg":m=1;break;case"math":m=2;break;default:m=0}}V(Z),Y(Z,m)}function re(){V(Z),V(W),V(J)}function ue(m){m.memoizedState!==null&&Y(ee,m);var w=Z.current,O=tb(w,m.type);w!==O&&(Y(W,m),Y(Z,O))}function de(m){W.current===m&&(V(Z),V(W)),ee.current===m&&(V(ee),ev._currentValue=j)}var se,ce;function ge(m){if(se===void 0)try{throw Error()}catch(O){var w=O.stack.trim().match(/\n( *(at )?)/);se=w&&w[1]||"",ce=-1)":-1G||Qe[N]!==gt[G]){var Nt=` -`+Qe[N].replace(" at new "," at ");return m.displayName&&Nt.includes("")&&(Nt=Nt.replace("",m.displayName)),Nt}while(1<=N&&0<=G);break}}}finally{ie=!1,Error.prepareStackTrace=O}return(O=m?m.displayName||m.name:"")?ge(O):""}function ve(m,w){switch(m.tag){case 26:case 27:case 5:return ge(m.type);case 16:return ge("Lazy");case 13:return m.child!==w&&w!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return le(m.type,!1);case 11:return le(m.type.render,!1);case 1:return le(m.type,!0);case 31:return ge("Activity");default:return""}}function we(m){try{var w="",O=null;do w+=ve(m,O),O=m,m=m.return;while(m);return w}catch(N){return` -Error generating stack: `+N.message+` -`+N.stack}}var me=Object.prototype.hasOwnProperty,Ee=e.unstable_scheduleCallback,Ce=e.unstable_cancelCallback,pe=e.unstable_shouldYield,Oe=e.unstable_requestPaint,xe=e.unstable_now,Me=e.unstable_getCurrentPriorityLevel,Se=e.unstable_ImmediatePriority,Pe=e.unstable_UserBlockingPriority,Le=e.unstable_NormalPriority,He=e.unstable_LowPriority,Ne=e.unstable_IdlePriority,at=e.log,Ue=e.unstable_setDisableYieldValue,et=null,We=null;function Je(m){if(typeof at=="function"&&Ue(m),We&&typeof We.setStrictMode=="function")try{We.setStrictMode(et,m)}catch(w){}}var dt=Math.clz32?Math.clz32:qt,wt=Math.log,Bt=Math.LN2;function qt(m){return m>>>=0,m===0?32:31-(wt(m)/Bt|0)|0}var jt=256,nn=262144,Jt=4194304;function Ot(m){var w=m&42;if(w!==0)return w;switch(m&-m){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return m&261888;case 262144:case 524288:case 1048576:case 2097152:return m&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return m&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return m}}function sn(m,w,O){var N=m.pendingLanes;if(N===0)return 0;var G=0,X=m.suspendedLanes,fe=m.pingedLanes;m=m.warmLanes;var $e=N&134217727;return $e!==0?(N=$e&~X,N!==0?G=Ot(N):(fe&=$e,fe!==0?G=Ot(fe):O||(O=$e&~m,O!==0&&(G=Ot(O))))):($e=N&~X,$e!==0?G=Ot($e):fe!==0?G=Ot(fe):O||(O=N&~m,O!==0&&(G=Ot(O)))),G===0?0:w!==0&&w!==G&&(w&X)===0&&(X=G&-G,O=w&-w,X>=O||X===32&&(O&4194048)!==0)?w:G}function Vt(m,w){return(m.pendingLanes&~(m.suspendedLanes&~m.pingedLanes)&w)===0}function xt(m,w){switch(m){case 1:case 2:case 4:case 8:case 64:return w+250;case 16:case 32: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 w+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var m=Jt;return Jt<<=1,(Jt&62914560)===0&&(Jt=4194304),m}function it(m){for(var w=[],O=0;31>O;O++)w.push(m);return w}function Pt(m,w){m.pendingLanes|=w,w!==268435456&&(m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0)}function De(m,w,O,N,G,X){var fe=m.pendingLanes;m.pendingLanes=O,m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0,m.expiredLanes&=O,m.entangledLanes&=O,m.errorRecoveryDisabledLanes&=O,m.shellSuspendCounter=0;var $e=m.entanglements,Qe=m.expirationTimes,gt=m.hiddenUpdates;for(O=fe&~O;0=g0),M$=" ",h5=!1;function vC(m,w){switch(m){case"keyup":return tZ.indexOf(w.keyCode)!==-1;case"keydown":return w.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yC(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var m0=!1;function p5(m,w){switch(m){case"compositionend":return yC(w);case"keypress":return w.which!==32?null:(h5=!0,M$);case"textInput":return m=w.data,m===M$&&h5?null:m;default:return null}}function Cc(m,w){if(m0)return m==="compositionend"||!gC&&vC(m,w)?(m=Fi(),fh=Ld=bc=null,m0=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(w.ctrlKey||w.altKey||w.metaKey)||w.ctrlKey&&w.altKey){if(w.char&&1=w)return{node:O,offset:w-m};m=N}e:{for(;O;){if(O.nextSibling){O=O.nextSibling;break e}O=O.parentNode}O=void 0}O=L$(O)}}function b5(m,w){return m&&w?m===w?!0:m&&m.nodeType===3?!1:w&&w.nodeType===3?b5(m,w.parentNode):"contains"in m?m.contains(w):m.compareDocumentPosition?!!(m.compareDocumentPosition(w)&16):!1:!1}function x5(m){m=m!=null&&m.ownerDocument!=null&&m.ownerDocument.defaultView!=null?m.ownerDocument.defaultView:window;for(var w=ir(m.document);w instanceof m.HTMLIFrameElement;){try{var O=typeof w.contentWindow.location.href=="string"}catch(N){O=!1}if(O)m=w.contentWindow;else break;w=ir(m.document)}return w}function F$(m){var w=m&&m.nodeName&&m.nodeName.toLowerCase();return w&&(w==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||w==="textarea"||m.contentEditable==="true")}var aZ=Ps&&"documentMode"in document&&11>=document.documentMode,Ru=null,ot=null,It=null,Ct=!1;function Mn(m,w,O){var N=O.window===O?O.document:O.nodeType===9?O:O.ownerDocument;Ct||Ru==null||Ru!==ir(N)||(N=Ru,"selectionStart"in N&&F$(N)?N={start:N.selectionStart,end:N.selectionEnd}:(N=(N.ownerDocument&&N.ownerDocument.defaultView||window).getSelection(),N={anchorNode:N.anchorNode,anchorOffset:N.anchorOffset,focusNode:N.focusNode,focusOffset:N.focusOffset}),It&&gl(It,N)||(It=N,N=au(ot,"onSelect"),0>=fe,G-=fe,Pu=1<<32-dt(w)+G|O<jr?(di=Vn,Vn=null):di=Vn.sibling;var Bi=mt(st,Vn,pt[jr],Ht);if(Bi===null){Vn===null&&(Vn=di);break}m&&Vn&&Bi.alternate===null&&w(st,Vn),Xe=X(Bi,Xe,jr),Ei===null?nr=Bi:Ei.sibling=Bi,Ei=Bi,Vn=di}if(jr===pt.length)return O(st,Vn),Gr&&Lu(st,jr),nr;if(Vn===null){for(;jrjr?(di=Vn,Vn=null):di=Vn.sibling;var Qh=mt(st,Vn,Bi.value,Ht);if(Qh===null){Vn===null&&(Vn=di);break}m&&Vn&&Qh.alternate===null&&w(st,Vn),Xe=X(Qh,Xe,jr),Ei===null?nr=Qh:Ei.sibling=Qh,Ei=Qh,Vn=di}if(Bi.done)return O(st,Vn),Gr&&Lu(st,jr),nr;if(Vn===null){for(;!Bi.done;jr++,Bi=pt.next())Bi=Ut(st,Bi.value,Ht),Bi!==null&&(Xe=X(Bi,Xe,jr),Ei===null?nr=Bi:Ei.sibling=Bi,Ei=Bi);return Gr&&Lu(st,jr),nr}for(Vn=N(Vn);!Bi.done;jr++,Bi=pt.next())Bi=St(Vn,st,jr,Bi.value,Ht),Bi!==null&&(m&&Bi.alternate!==null&&Vn.delete(Bi.key===null?jr:Bi.key),Xe=X(Bi,Xe,jr),Ei===null?nr=Bi:Ei.sibling=Bi,Ei=Bi);return m&&Vn.forEach(function(YZ){return w(st,YZ)}),Gr&&Lu(st,jr),nr}function oo(st,Xe,pt,Ht){if(typeof pt=="object"&&pt!==null&&pt.type===p&&pt.key===null&&(pt=pt.props.children),typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case A:e:{for(var nr=pt.key;Xe!==null;){if(Xe.key===nr){if(nr=pt.type,nr===p){if(Xe.tag===7){O(st,Xe.sibling),Ht=G(Xe,pt.props.children),Ht.return=st,st=Ht;break e}}else if(Xe.elementType===nr||typeof nr=="object"&&nr!==null&&nr.$$typeof===_&&Hd(nr)===Xe.type){O(st,Xe.sibling),Ht=G(Xe,pt.props),sg(Ht,pt),Ht.return=st,st=Ht;break e}O(st,Xe);break}else w(st,Xe);Xe=Xe.sibling}pt.type===p?(Ht=rg(pt.props.children,st.mode,Ht,pt.key),Ht.return=st,st=Ht):(Ht=EC(pt.type,pt.key,pt.props,null,st.mode,Ht),sg(Ht,pt),Ht.return=st,st=Ht)}return fe(st);case h:e:{for(nr=pt.key;Xe!==null;){if(Xe.key===nr)if(Xe.tag===4&&Xe.stateNode.containerInfo===pt.containerInfo&&Xe.stateNode.implementation===pt.implementation){O(st,Xe.sibling),Ht=G(Xe,pt.children||[]),Ht.return=st,st=Ht;break e}else{O(st,Xe);break}else w(st,Xe);Xe=Xe.sibling}Ht=C0(pt,st.mode,Ht),Ht.return=st,st=Ht}return fe(st);case _:return pt=Hd(pt),oo(st,Xe,pt,Ht)}if(H(pt))return kn(st,Xe,pt,Ht);if(L(pt)){if(nr=L(pt),typeof nr!="function")throw Error(r(150));return pt=nr.call(pt),fr(st,Xe,pt,Ht)}if(typeof pt.then=="function")return oo(st,Xe,Bc(pt),Ht);if(pt.$$typeof===x)return oo(st,Xe,_C(st,pt),Ht);Wf(st,pt)}return typeof pt=="string"&&pt!==""||typeof pt=="number"||typeof pt=="bigint"?(pt=""+pt,Xe!==null&&Xe.tag===6?(O(st,Xe.sibling),Ht=G(Xe,pt),Ht.return=st,st=Ht):(O(st,Xe),Ht=H$(pt,st.mode,Ht),Ht.return=st,st=Ht),fe(st)):O(st,Xe)}return function(st,Xe,pt,Ht){try{$1=0;var nr=oo(st,Xe,pt,Ht);return ag=null,nr}catch(Vn){if(Vn===M0||Vn===E1)throw Vn;var Ei=ql(29,Vn,null,st.mode);return Ei.lanes=Ht,Ei.return=st,Ei}}}var lg=Oc(!0),W$=Oc(!1),Ud=!1;function cg(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gf(m,w){m=m.updateQueue,w.updateQueue===m&&(w.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,callbacks:null})}function jd(m){return{lane:m,tag:0,payload:null,callback:null,next:null}}function Sh(m,w,O){var N=m.updateQueue;if(N===null)return null;if(N=N.shared,(Mi&2)!==0){var G=N.pending;return G===null?w.next=w:(w.next=G.next,G.next=w),N.pending=w,w=y1(m),v1(m,null,O),w}return Nu(m,N,w,O),y1(m)}function Eh(m,w,O){if(w=w.updateQueue,w!==null&&(w=w.shared,(O&4194048)!==0)){var N=w.lanes;N&=m.pendingLanes,O|=N,w.lanes=O,bt(m,O)}}function G$(m,w){var O=m.updateQueue,N=m.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var G=null,X=null;if(O=O.firstBaseUpdate,O!==null){do{var fe={lane:O.lane,tag:O.tag,payload:O.payload,callback:null,next:null};X===null?G=X=fe:X=X.next=fe,O=O.next}while(O!==null);X===null?G=X=w:X=X.next=w}else G=X=w;O={baseState:N.baseState,firstBaseUpdate:G,lastBaseUpdate:X,shared:N.shared,callbacks:N.callbacks},m.updateQueue=O;return}m=O.lastBaseUpdate,m===null?O.firstBaseUpdate=w:m.next=w,O.lastBaseUpdate=w}var MC=!1;function Ia(){if(MC){var m=T0;if(m!==null)throw m}}function ug(m,w,O,N){MC=!1;var G=m.updateQueue;Ud=!1;var X=G.firstBaseUpdate,fe=G.lastBaseUpdate,$e=G.shared.pending;if($e!==null){G.shared.pending=null;var Qe=$e,gt=Qe.next;Qe.next=null,fe===null?X=gt:fe.next=gt,fe=Qe;var Nt=m.alternate;Nt!==null&&(Nt=Nt.updateQueue,$e=Nt.lastBaseUpdate,$e!==fe&&($e===null?Nt.firstBaseUpdate=gt:$e.next=gt,Nt.lastBaseUpdate=Qe))}if(X!==null){var Ut=G.baseState;fe=0,Nt=gt=Qe=null,$e=X;do{var mt=$e.lane&-536870913,St=mt!==$e.lane;if(St?(fi&mt)===mt:(N&mt)===mt){mt!==0&&mt===_0&&(MC=!0),Nt!==null&&(Nt=Nt.next={lane:0,tag:$e.tag,payload:$e.payload,callback:null,next:null});e:{var kn=m,fr=$e;mt=w;var oo=O;switch(fr.tag){case 1:if(kn=fr.payload,typeof kn=="function"){Ut=kn.call(oo,Ut,mt);break e}Ut=kn;break e;case 3:kn.flags=kn.flags&-65537|128;case 0:if(kn=fr.payload,mt=typeof kn=="function"?kn.call(oo,Ut,mt):kn,mt==null)break e;Ut=f({},Ut,mt);break e;case 2:Ud=!0}}mt=$e.callback,mt!==null&&(m.flags|=64,St&&(m.flags|=8192),St=G.callbacks,St===null?G.callbacks=[mt]:St.push(mt))}else St={lane:mt,tag:$e.tag,payload:$e.payload,callback:$e.callback,next:null},Nt===null?(gt=Nt=St,Qe=Ut):Nt=Nt.next=St,fe|=mt;if($e=$e.next,$e===null){if($e=G.shared.pending,$e===null)break;St=$e,$e=St.next,St.next=null,G.lastBaseUpdate=St,G.shared.pending=null}}while(!0);Nt===null&&(Qe=Ut),G.baseState=Qe,G.firstBaseUpdate=gt,G.lastBaseUpdate=Nt,X===null&&(G.shared.lanes=0),Jd|=fe,m.lanes=fe,m.memoizedState=Ut}}function q$(m,w){if(typeof m!="function")throw Error(r(191,m));m.call(w)}function ku(m,w){var O=m.callbacks;if(O!==null)for(m.callbacks=null,m=0;mX?X:8;var fe=D.T,$e={};D.T=$e,WC(m,!1,w,O);try{var Qe=G(),gt=D.S;if(gt!==null&>($e,Qe),Qe!==null&&typeof Qe=="object"&&typeof Qe.then=="function"){var Nt=dZ(Qe,N);F0(m,w,Nt,Rc(m))}else F0(m,w,N,Rc(m))}catch(Ut){F0(m,w,{then:function(){},status:"rejected",reason:Ut},Rc())}finally{U.p=X,fe!==null&&$e.types!==null&&(fe.types=$e.types),D.T=fe}}function AZ(){}function P0(m,w,O,N){if(m.tag!==5)throw Error(r(476));var G=gg(m).queue;L5(m,G,w,j,O===null?AZ:function(){return g_(m),O(N)})}function gg(m){var w=m.memoizedState;if(w!==null)return w;w={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qd,lastRenderedState:j},next:null};var O={};return w.next={memoizedState:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qd,lastRenderedState:O},next:null},m.memoizedState=w,m=m.alternate,m!==null&&(m.memoizedState=w),w}function g_(m){var w=gg(m);w.next===null&&(w=m.alternate.memoizedState),F0(m,w.next.queue,{},Rc())}function KC(){return Ls(ev)}function F5(){return da().memoizedState}function m_(){return da().memoizedState}function L0(m){for(var w=m.return;w!==null;){switch(w.tag){case 24:case 3:var O=Rc();m=jd(O);var N=Sh(w,m,O);N!==null&&(ec(N,w,O),Eh(N,w,O)),w={cache:z$()},m.payload=w;return}w=w.return}}function P1(m,w,O){var N=Rc();O={lane:N,revertLane:0,gesture:null,action:O,hasEagerState:!1,eagerState:null,next:null},mg(m)?v_(w,O):(O=w0(m,w,O,N),O!==null&&(ec(O,m,N),L1(O,w,N)))}function k5(m,w,O){var N=Rc();F0(m,w,O,N)}function F0(m,w,O,N){var G={lane:N,revertLane:0,gesture:null,action:O,hasEagerState:!1,eagerState:null,next:null};if(mg(m))v_(w,G);else{var X=m.alternate;if(m.lanes===0&&(X===null||X.lanes===0)&&(X=w.lastRenderedReducer,X!==null))try{var fe=w.lastRenderedState,$e=X(fe,O);if(G.hasEagerState=!0,G.eagerState=$e,xs($e,fe))return Nu(m,w,G,0),po===null&&eg(),!1}catch(Qe){}if(O=w0(m,w,G,N),O!==null)return ec(O,m,N),L1(O,w,N),!0}return!1}function WC(m,w,O,N){if(N={lane:2,revertLane:sT(),gesture:null,action:N,hasEagerState:!1,eagerState:null,next:null},mg(m)){if(w)throw Error(r(479))}else w=w0(m,O,N,2),w!==null&&ec(w,m,2)}function mg(m){var w=m.alternate;return m===$r||w!==null&&w===$r}function v_(m,w){dg=I0=!0;var O=m.pending;O===null?w.next=w:(w.next=O.next,O.next=w),m.pending=w}function L1(m,w,O){if((O&4194048)!==0){var N=w.lanes;N&=m.pendingLanes,O|=N,w.lanes=O,bt(m,O)}}var vg={readContext:Ls,use:M1,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useLayoutEffect:fa,useInsertionEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useSyncExternalStore:fa,useId:fa,useHostTransitionStatus:fa,useFormState:fa,useActionState:fa,useOptimistic:fa,useMemoCache:fa,useCacheRefresh:fa};vg.useEffectEvent=fa;var F1={readContext:Ls,use:M1,useCallback:function(m,w){return yl().memoizedState=[m,w===void 0?null:w],m},useContext:Ls,useEffect:c_,useImperativeHandle:function(m,w,O){O=O!=null?O.concat([m]):null,QC(4194308,4,f_.bind(null,w,m),O)},useLayoutEffect:function(m,w){return QC(4194308,4,m,w)},useInsertionEffect:function(m,w){QC(4,2,m,w)},useMemo:function(m,w){var O=yl();w=w===void 0?null:w;var N=m();if(Ag){Je(!0);try{m()}finally{Je(!1)}}return O.memoizedState=[N,w],N},useReducer:function(m,w,O){var N=yl();if(O!==void 0){var G=O(w);if(Ag){Je(!0);try{O(w)}finally{Je(!1)}}}else G=w;return N.memoizedState=N.baseState=G,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:G},N.queue=m,m=m.dispatch=P1.bind(null,$r,m),[N.memoizedState,m]},useRef:function(m){var w=yl();return m={current:m},w.memoizedState=m},useState:function(m){m=r_(m);var w=m.queue,O=k5.bind(null,$r,w);return w.dispatch=O,[m.memoizedState,O]},useDebugValue:A_,useDeferredValue:function(m,w){var O=yl();return Zs(O,m,w)},useTransition:function(){var m=r_(!1);return m=L5.bind(null,$r,m.queue,!0,!1),yl().memoizedState=m,[!1,m]},useSyncExternalStore:function(m,w,O){var N=$r,G=yl();if(Gr){if(O===void 0)throw Error(r(407));O=O()}else{if(O=w(),po===null)throw Error(r(349));(fi&127)!==0||N0(N,w,O)}G.memoizedState=O;var X={value:O,getSnapshot:w};return G.queue=X,c_(T5.bind(null,N,X,m),[m]),N.flags|=2048,Th(9,{destroy:void 0},n_.bind(null,N,X,O,w),null),O},useId:function(){var m=yl(),w=po.identifierPrefix;if(Gr){var O=zf,N=Pu;O=(N&~(1<<32-dt(N)-1)).toString(32)+O,w="_"+w+"R_"+O,O=PC++,0<\/script>",X=X.removeChild(X.firstChild);break;case"select":X=typeof N.is=="string"?fe.createElement("select",{is:N.is}):fe.createElement("select"),N.multiple?X.multiple=!0:N.size&&(X.size=N.size);break;default:X=typeof N.is=="string"?fe.createElement(G,{is:N.is}):fe.createElement(G)}}X[pn]=w,X[bn]=N;e:for(fe=w.child;fe!==null;){if(fe.tag===5||fe.tag===6)X.appendChild(fe.stateNode);else if(fe.tag!==4&&fe.tag!==27&&fe.child!==null){fe.child.return=fe,fe=fe.child;continue}if(fe===w)break e;for(;fe.sibling===null;){if(fe.return===null||fe.return===w)break e;fe=fe.return}fe.sibling.return=fe.return,fe=fe.sibling}w.stateNode=X;e:switch(Us(X,G,N),G){case"button":case"input":case"select":case"textarea":N=!!N.autoFocus;break e;case"img":N=!0;break e;default:N=!1}N&&Kd(w)}}return Mo(w),P_(w,w.type,m===null?null:m.memoizedProps,w.pendingProps,O),null;case 6:if(m&&w.stateNode!=null)m.memoizedProps!==N&&Kd(w);else{if(typeof N!="string"&&w.stateNode===null)throw Error(r(166));if(m=J.current,Qf(w)){if(m=w.stateNode,O=w.memoizedProps,N=null,G=Ma,G!==null)switch(G.tag){case 27:case 5:N=G.memoizedProps}m[pn]=w,m=!!(m.nodeValue===O||N!==null&&N.suppressHydrationWarning===!0||Sk(m.nodeValue,O)),m||bh(w,!0)}else m=gS(m).createTextNode(N),m[pn]=w,w.stateNode=m}return Mo(w),null;case 31:if(O=w.memoizedState,m===null||m.memoizedState!==null){if(N=Qf(w),O!==null){if(m===null){if(!N)throw Error(r(318));if(m=w.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(557));m[pn]=w}else xh(),(w.flags&128)===0&&(w.memoizedState=null),w.flags|=4;Mo(w),m=!1}else O=_e(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=O),m=!0;if(!m)return w.flags&256?(Ds(w),w):(Ds(w),null);if((w.flags&128)!==0)throw Error(r(558))}return Mo(w),null;case 13:if(N=w.memoizedState,m===null||m.memoizedState!==null&&m.memoizedState.dehydrated!==null){if(G=Qf(w),N!==null&&N.dehydrated!==null){if(m===null){if(!G)throw Error(r(318));if(G=w.memoizedState,G=G!==null?G.dehydrated:null,!G)throw Error(r(317));G[pn]=w}else xh(),(w.flags&128)===0&&(w.memoizedState=null),w.flags|=4;Mo(w),G=!1}else G=_e(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=G),G=!0;if(!G)return w.flags&256?(Ds(w),w):(Ds(w),null)}return Ds(w),(w.flags&128)!==0?(w.lanes=O,w):(O=N!==null,m=m!==null&&m.memoizedState!==null,O&&(N=w.child,G=null,N.alternate!==null&&N.alternate.memoizedState!==null&&N.alternate.memoizedState.cachePool!==null&&(G=N.alternate.memoizedState.cachePool.pool),X=null,N.memoizedState!==null&&N.memoizedState.cachePool!==null&&(X=N.memoizedState.cachePool.pool),X!==G&&(N.flags|=2048)),O!==m&&O&&(w.child.flags|=8192),H1(w,w.updateQueue),Mo(w),null);case 4:return re(),m===null&&cT(w.stateNode.containerInfo),Mo(w),null;case 10:return kd(w.type),Mo(w),null;case 19:if(V(ua),N=w.memoizedState,N===null)return Mo(w),null;if(G=(w.flags&128)!==0,X=N.rendering,X===null)if(G)U0(N,!1);else{if(zo!==0||m!==null&&(m.flags&128)!==0)for(m=w.child;m!==null;){if(X=NC(m),X!==null){for(w.flags|=128,U0(N,!1),m=X.updateQueue,w.updateQueue=m,H1(w,m),w.subtreeFlags=0,m=O,O=w.child;O!==null;)b1(O,m),O=O.sibling;return Y(ua,ua.current&1|2),Gr&&Lu(w,N.treeForkCount),w.child}m=m.sibling}N.tail!==null&&xe()>aS&&(w.flags|=128,G=!0,U0(N,!1),w.lanes=4194304)}else{if(!G)if(m=NC(X),m!==null){if(w.flags|=128,G=!0,m=m.updateQueue,w.updateQueue=m,H1(w,m),U0(N,!0),N.tail===null&&N.tailMode==="hidden"&&!X.alternate&&!Gr)return Mo(w),null}else 2*xe()-N.renderingStartTime>aS&&O!==536870912&&(w.flags|=128,G=!0,U0(N,!1),w.lanes=4194304);N.isBackwards?(X.sibling=w.child,w.child=X):(m=N.last,m!==null?m.sibling=X:w.child=X,N.last=X)}return N.tail!==null?(m=N.tail,N.rendering=m,N.tail=m.sibling,N.renderingStartTime=xe(),m.sibling=null,O=ua.current,Y(ua,G?O&1|2:O&1),Gr&&Lu(w,N.treeForkCount),m):(Mo(w),null);case 22:case 23:return Ds(w),ks(),N=w.memoizedState!==null,m!==null?m.memoizedState!==null!==N&&(w.flags|=8192):N&&(w.flags|=8192),N?(O&536870912)!==0&&(w.flags&128)===0&&(Mo(w),w.subtreeFlags&6&&(w.flags|=8192)):Mo(w),O=w.updateQueue,O!==null&&H1(w,O.retryQueue),O=null,m!==null&&m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(O=m.memoizedState.cachePool.pool),N=null,w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(N=w.memoizedState.cachePool.pool),N!==O&&(w.flags|=2048),m!==null&&V(Fs),null;case 24:return O=null,m!==null&&(O=m.memoizedState.cache),w.memoizedState.cache!==O&&(w.flags|=2048),kd(ja),Mo(w),null;case 25:return null;case 30:return null}throw Error(r(156,w.tag))}function W5(m,w){switch(vh(w),w.tag){case 1:return m=w.flags,m&65536?(w.flags=m&-65537|128,w):null;case 3:return kd(ja),re(),m=w.flags,(m&65536)!==0&&(m&128)===0?(w.flags=m&-65537|128,w):null;case 26:case 27:case 5:return de(w),null;case 31:if(w.memoizedState!==null){if(Ds(w),w.alternate===null)throw Error(r(340));xh()}return m=w.flags,m&65536?(w.flags=m&-65537|128,w):null;case 13:if(Ds(w),m=w.memoizedState,m!==null&&m.dehydrated!==null){if(w.alternate===null)throw Error(r(340));xh()}return m=w.flags,m&65536?(w.flags=m&-65537|128,w):null;case 19:return V(ua),null;case 4:return re(),null;case 10:return kd(w.type),null;case 22:case 23:return Ds(w),ks(),m!==null&&V(Fs),m=w.flags,m&65536?(w.flags=m&-65537|128,w):null;case 24:return kd(ja),null;case 25:return null;default:return null}}function j0(m,w){switch(vh(w),w.tag){case 3:kd(ja),re();break;case 26:case 27:case 5:de(w);break;case 4:re();break;case 31:w.memoizedState!==null&&Ds(w);break;case 13:Ds(w);break;case 19:V(ua);break;case 10:kd(w.type);break;case 22:case 23:Ds(w),ks(),m!==null&&V(Fs);break;case 24:kd(ja)}}function bg(m,w){try{var O=w.updateQueue,N=O!==null?O.lastEffect:null;if(N!==null){var G=N.next;O=G;do{if((O.tag&m)===m){N=void 0;var X=O.create,fe=O.inst;N=X(),fe.destroy=N}O=O.next}while(O!==G)}}catch($e){Di(w,w.return,$e)}}function Wd(m,w,O){try{var N=w.updateQueue,G=N!==null?N.lastEffect:null;if(G!==null){var X=G.next;N=X;do{if((N.tag&m)===m){var fe=N.inst,$e=fe.destroy;if($e!==void 0){fe.destroy=void 0,G=w;var Qe=O,gt=$e;try{gt()}catch(Nt){Di(G,Qe,Nt)}}}N=N.next}while(N!==X)}}catch(Nt){Di(w,w.return,Nt)}}function F_(m){var w=m.updateQueue;if(w!==null){var O=m.stateNode;try{ku(w,O)}catch(N){Di(m,m.return,N)}}}function U1(m,w,O){O.props=Mh(m.type,m.memoizedProps),O.state=m.memoizedState;try{O.componentWillUnmount()}catch(N){Di(m,w,N)}}function z0(m,w){try{var O=m.ref;if(O!==null){switch(m.tag){case 26:case 27:case 5:var N=m.stateNode;break;case 30:N=m.stateNode;break;default:N=m.stateNode}typeof O=="function"?m.refCleanup=O(N):O.current=N}}catch(G){Di(m,w,G)}}function Va(m,w){var O=m.ref,N=m.refCleanup;if(O!==null)if(typeof N=="function")try{N()}catch(G){Di(m,w,G)}finally{m.refCleanup=null,m=m.alternate,m!=null&&(m.refCleanup=null)}else if(typeof O=="function")try{O(null)}catch(G){Di(m,w,G)}else O.current=null}function Ih(m){var w=m.type,O=m.memoizedProps,N=m.stateNode;try{e:switch(w){case"button":case"input":case"select":case"textarea":O.autoFocus&&N.focus();break e;case"img":O.src?N.src=O.src:O.srcSet&&(N.srcset=O.srcSet)}}catch(G){Di(m,m.return,G)}}function k_(m,w,O){try{var N=m.stateNode;_Z(N,m.type,O,w),N[bn]=w}catch(G){Di(m,m.return,G)}}function D_(m){return m.tag===5||m.tag===3||m.tag===26||m.tag===27&&el(m.type)||m.tag===4}function H_(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||D_(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.tag===27&&el(m.type)||m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function U_(m,w,O){var N=m.tag;if(N===5||N===6)m=m.stateNode,w?(O.nodeType===9?O.body:O.nodeName==="HTML"?O.ownerDocument.body:O).insertBefore(m,w):(w=O.nodeType===9?O.body:O.nodeName==="HTML"?O.ownerDocument.body:O,w.appendChild(m),O=O._reactRootContainer,O!=null||w.onclick!==null||(w.onclick=bs));else if(N!==4&&(N===27&&el(m.type)&&(O=m.stateNode,w=null),m=m.child,m!==null))for(U_(m,w,O),m=m.sibling;m!==null;)U_(m,w,O),m=m.sibling}function tS(m,w,O){var N=m.tag;if(N===5||N===6)m=m.stateNode,w?O.insertBefore(m,w):O.appendChild(m);else if(N!==4&&(N===27&&el(m.type)&&(O=m.stateNode),m=m.child,m!==null))for(tS(m,w,O),m=m.sibling;m!==null;)tS(m,w,O),m=m.sibling}function G5(m){var w=m.stateNode,O=m.memoizedProps;try{for(var N=m.type,G=w.attributes;G.length;)w.removeAttributeNode(G[0]);Us(w,N,O),w[pn]=m,w[bn]=O}catch(X){Di(m,m.return,X)}}var Gd=!1,Ka=!1,j_=!1,q5=typeof WeakSet=="function"?WeakSet:Set,Cs=null;function hZ(m,w){if(m=m.containerInfo,Eg=SS,m=x5(m),F$(m)){if("selectionStart"in m)var O={start:m.selectionStart,end:m.selectionEnd};else e:{O=(O=m.ownerDocument)&&O.defaultView||window;var N=O.getSelection&&O.getSelection();if(N&&N.rangeCount!==0){O=N.anchorNode;var G=N.anchorOffset,X=N.focusNode;N=N.focusOffset;try{O.nodeType,X.nodeType}catch(fr){O=null;break e}var fe=0,$e=-1,Qe=-1,gt=0,Nt=0,Ut=m,mt=null;t:for(;;){for(var St;Ut!==O||G!==0&&Ut.nodeType!==3||($e=fe+G),Ut!==X||N!==0&&Ut.nodeType!==3||(Qe=fe+N),Ut.nodeType===3&&(fe+=Ut.nodeValue.length),(St=Ut.firstChild)!==null;)mt=Ut,Ut=St;for(;;){if(Ut===m)break t;if(mt===O&&++gt===G&&($e=fe),mt===X&&++Nt===N&&(Qe=fe),(St=Ut.nextSibling)!==null)break;Ut=mt,mt=Ut.parentNode}Ut=St}O=$e===-1||Qe===-1?null:{start:$e,end:Qe}}else O=null}O=O||{start:0,end:0}}else O=null;for(eb={focusedElem:m,selectionRange:O},SS=!1,Cs=w;Cs!==null;)if(w=Cs,m=w.child,(w.subtreeFlags&1028)!==0&&m!==null)m.return=w,Cs=m;else for(;Cs!==null;){switch(w=Cs,X=w.alternate,m=w.flags,w.tag){case 0:if((m&4)!==0&&(m=w.updateQueue,m=m!==null?m.events:null,m!==null))for(O=0;O title"))),Us(X,N,O),X[pn]=m,kt(X),N=X;break e;case"link":var fe=xT("link","href",G).get(N+(O.href||""));if(fe){for(var $e=0;$eoo&&(fe=oo,oo=fr,fr=fe);var st=y5($e,fr),Xe=y5($e,oo);if(st&&Xe&&(St.rangeCount!==1||St.anchorNode!==st.node||St.anchorOffset!==st.offset||St.focusNode!==Xe.node||St.focusOffset!==Xe.offset)){var pt=Ut.createRange();pt.setStart(st.node,st.offset),St.removeAllRanges(),fr>oo?(St.addRange(pt),St.extend(Xe.node,Xe.offset)):(pt.setEnd(Xe.node,Xe.offset),St.addRange(pt))}}}}for(Ut=[],St=$e;St=St.parentNode;)St.nodeType===1&&Ut.push({element:St,left:St.scrollLeft,top:St.scrollTop});for(typeof $e.focus=="function"&&$e.focus(),$e=0;$eO?32:O,D.T=null,O=X_,X_=null;var X=Ph,fe=eA;if(ss=0,G0=Ph=null,eA=0,(Mi&6)!==0)throw Error(r(331));var $e=Mi;if(Mi|=4,rk(X.current),ek(X,X.current,fe,O),Mi=$e,Y1(0,!1),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(et,X)}catch(Qe){}return!0}finally{U.p=G,D.T=N,cS(m,w)}}function iT(m,w,O){w=tu(O,w),w=S_(m.stateNode,w,2),m=Sh(m,w,2),m!==null&&(Pt(m,2),Jf(m))}function Di(m,w,O){if(m.tag===3)iT(m,m,O);else for(;w!==null;){if(w.tag===3){iT(w,m,O);break}else if(w.tag===1){var N=w.stateNode;if(typeof w.type.getDerivedStateFromError=="function"||typeof N.componentDidCatch=="function"&&(Nh===null||!Nh.has(N))){m=tu(O,m),O=H5(2),N=Sh(w,O,2),N!==null&&(Xf(O,N,w,m),Pt(N,2),Jf(N));break}}w=w.return}}function oT(m,w,O){var N=m.pingCache;if(N===null){N=m.pingCache=new mZ;var G=new Set;N.set(w,G)}else G=N.get(w),G===void 0&&(G=new Set,N.set(w,G));G.has(O)||(K_=!0,G.add(O),m=wZ.bind(null,m,w,O),w.then(m,m))}function wZ(m,w,O){var N=m.pingCache;N!==null&&N.delete(w),m.pingedLanes|=m.suspendedLanes&O,m.warmLanes&=~O,po===m&&(fi&O)===O&&(zo===4||zo===3&&(fi&62914560)===fi&&300>xe()-oS?(Mi&2)===0&&q0(m,0):W_|=O,W0===fi&&(W0=0)),Jf(m)}function gk(m,w){w===0&&(w=qe()),m=gh(m,w),m!==null&&(Pt(m,w),Jf(m))}function uS(m){var w=m.memoizedState,O=0;w!==null&&(O=w.retryLane),gk(m,O)}function fS(m,w){var O=0;switch(m.tag){case 31:case 13:var N=m.stateNode,G=m.memoizedState;G!==null&&(O=G.retryLane);break;case 19:N=m.stateNode;break;case 22:N=m.stateNode._retryCache;break;default:throw Error(r(314))}N!==null&&N.delete(w),gk(m,O)}function CZ(m,w){return Ee(m,w)}var dS=null,Lh=null,AS=!1,hS=!1,aT=!1,Fh=0;function Jf(m){m!==Lh&&m.next===null&&(Lh===null?dS=Lh=m:Lh=Lh.next=m),hS=!0,AS||(AS=!0,EZ())}function Y1(m,w){if(!aT&&hS){aT=!0;do for(var O=!1,N=dS;N!==null;){if(m!==0){var G=N.pendingLanes;if(G===0)var X=0;else{var fe=N.suspendedLanes,$e=N.pingedLanes;X=(1<<31-dt(42|m)+1)-1,X&=G&~(fe&~$e),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&(O=!0,bk(N,X))}else X=fi,X=sn(N,N===po?X:0,N.cancelPendingCommit!==null||N.timeoutHandle!==-1),(X&3)===0||Vt(N,X)||(O=!0,bk(N,X));N=N.next}while(O);aT=!1}}function SZ(){mk()}function mk(){hS=AS=!1;var m=0;Fh!==0&&TZ()&&(m=Fh);for(var w=xe(),O=null,N=dS;N!==null;){var G=N.next,X=vk(N,w);X===0?(N.next=null,O===null?dS=G:O.next=G,G===null&&(Lh=O)):(O=N,(m!==0||(X&3)!==0)&&(hS=!0)),N=G}ss!==0&&ss!==5||Y1(m),Fh!==0&&(Fh=0)}function vk(m,w){for(var O=m.suspendedLanes,N=m.pingedLanes,G=m.expirationTimes,X=m.pendingLanes&-62914561;0$e)break;var Nt=Qe.transferSize,Ut=Qe.initiatorType;Nt&&Ek(Ut)&&(Qe=Qe.responseEnd,fe+=Nt*(Qe<$e?1:($e-gt)/(Qe-gt)))}if(--N,w+=8*(X+fe)/(G.duration/1e3),m++,10 title"):null)}function UZ(m,w,O){if(O===1||w.itemProp!=null)return!1;switch(m){case"meta":case"title":return!0;case"style":if(typeof w.precedence!="string"||typeof w.href!="string"||w.href==="")break;return!0;case"link":if(typeof w.rel!="string"||typeof w.href!="string"||w.href===""||w.onLoad||w.onError)break;return w.rel==="stylesheet"?(m=w.disabled,typeof w.precedence=="string"&&m==null):!0;case"script":if(w.async&&typeof w.async!="function"&&typeof w.async!="symbol"&&!w.onLoad&&!w.onError&&w.src&&typeof w.src=="string")return!0}return!1}function kk(m){return!(m.type==="stylesheet"&&(m.state.loading&3)===0)}function jZ(m,w,O,N){if(O.type==="stylesheet"&&(typeof N.media!="string"||matchMedia(N.media).matches!==!1)&&(O.state.loading&4)===0){if(O.instance===null){var G=Z0(N.href),X=w.querySelector(rb(G));if(X){w=X._p,w!==null&&typeof w=="object"&&typeof w.then=="function"&&(m.count++,m=xS.bind(m),w.then(m,m)),O.state.loading|=4,O.instance=X,kt(X);return}X=w.ownerDocument||w,N=mT(N),(G=su.get(G))&&yT(N,G),X=X.createElement("link"),kt(X);var fe=X;fe._p=new Promise(function($e,Qe){fe.onload=$e,fe.onerror=Qe}),Us(X,"link",N),O.instance=X}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(O,w),(w=O.state.preload)&&(O.state.loading&3)===0&&(m.count++,O=xS.bind(m),w.addEventListener("load",O),w.addEventListener("error",O))}}var Dh=0;function zZ(m,w){return m.stylesheets&&m.count===0&&CS(m,m.stylesheets),0Dh?50:800)+w);return m.unsuspend=O,function(){m.unsuspend=null,clearTimeout(N),clearTimeout(G)}}:null}function xS(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)CS(this,this.stylesheets);else if(this.unsuspend){var m=this.unsuspend;this.unsuspend=null,m()}}}var wS=null;function CS(m,w){m.stylesheets=null,m.unsuspend!==null&&(m.count++,wS=new Map,w.forEach(QZ,m),wS=null,xS.call(m))}function QZ(m,w){if(!(w.state.loading&4)){var O=wS.get(m);if(O)var N=O.get(null);else{O=new Map,wS.set(m,O);for(var G=m.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X{const t=g.useRef(e);return t.current=e,g.useCallback((...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[])};function ac(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}const aee=ac()?g.useLayoutEffect:g.useEffect,ar=(e,t)=>{const n=g.useRef(!0);aee(()=>e(n.current),t),aee(()=>(n.current=!1,()=>{n.current=!0}),[])},DS=(e,t)=>{ar(n=>{if(!n)return e()},t)},w6=e=>{const t=g.useRef(!1),[n,r]=g.useState(e);g.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(o,a){a&&t.current||r(o)}return[n,i]};function Fr(e,t){const[n,r]=g.useState(e),i=t!==void 0?t:n;return ar(o=>{o||r(t)},[t]),[i,r]}function RIe(){return I({},V4e).useId}let see=0;function lee(e,t){const r=String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-");return`${e}-${r}`}const cee=RIe(),lA=cee?(function(t){const n=cee();return t||n}):(function(t){const[n,r]=g.useState("ssr-id");return g.useEffect(()=>{const i=see;see+=1,r(`rc_unique_${i}`)},[]),t||n});function cv(e,t,n){const r=g.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function NIe(e){const[,t]=g.useReducer(o=>o+1,0),n=g.useRef(e),r=yn(()=>n.current),i=yn(o=>{n.current=typeof o=="function"?o(n.current):o,t()});return[r,i]}var C6={exports:{}},Gi={};var uee;function PIe(){if(uee)return Gi;uee=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case n:case i:case r:case c:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case l:case d:case f:case o:return v;default:return y}}case t:return y}}}return Gi.ContextConsumer=a,Gi.ContextProvider=o,Gi.Element=e,Gi.ForwardRef=l,Gi.Fragment=n,Gi.Lazy=d,Gi.Memo=f,Gi.Portal=t,Gi.Profiler=i,Gi.StrictMode=r,Gi.Suspense=c,Gi.SuspenseList=u,Gi.isAsyncMode=function(){return!1},Gi.isConcurrentMode=function(){return!1},Gi.isContextConsumer=function(v){return p(v)===a},Gi.isContextProvider=function(v){return p(v)===o},Gi.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Gi.isForwardRef=function(v){return p(v)===l},Gi.isFragment=function(v){return p(v)===n},Gi.isLazy=function(v){return p(v)===d},Gi.isMemo=function(v){return p(v)===f},Gi.isPortal=function(v){return p(v)===t},Gi.isProfiler=function(v){return p(v)===i},Gi.isStrictMode=function(v){return p(v)===r},Gi.isSuspense=function(v){return p(v)===c},Gi.isSuspenseList=function(v){return p(v)===u},Gi.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===i||v===r||v===c||v===u||v===A||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===o||v.$$typeof===a||v.$$typeof===l||v.$$typeof===h||v.getModuleId!==void 0)},Gi.typeOf=p,Gi}var fee;function LIe(){return fee||(fee=1,C6.exports=PIe()),C6.exports}var S6=LIe();const FIe=Symbol.for("react.element"),kIe=Symbol.for("react.transitional.element"),DIe=Symbol.for("react.fragment");function dee(e){return e&&typeof e=="object"&&(e.$$typeof===FIe||e.$$typeof===kIe)&&e.type===DIe}const HIe=Number(g.version.split(".")[0]),E6=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},il=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{E6(r,n)})}},ed=(...e)=>cv(()=>il(...e),e,(t,n)=>t.length!==n.length||t.every((r,i)=>r!==n[i])),Vh=e=>{var n,r;if(!e)return!1;if(B6(e)&&HIe>=19)return!0;const t=S6.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==S6.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==S6.ForwardRef)};function B6(e){return g.isValidElement(e)&&!dee(e)}const Aee=e=>B6(e)&&Vh(e),cA=e=>{if(e&&B6(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function O6(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const hee="data-rc-order",pee="data-rc-priority",UIe="rc-util-key",$6=new Map;function gee({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:UIe}function HT(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function jIe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _6(e){return Array.from(($6.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function mee(e,t={}){if(!ac())return null;const{csp:n,prepend:r,priority:i=0}=t,o=jIe(r),a=o==="prependQueue",s=document.createElement("style");s.setAttribute(hee,o),a&&i&&s.setAttribute(pee,`${i}`),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;const l=HT(t),{firstChild:c}=l;if(r){if(a){const u=(t.styles||_6(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(hee)))return!1;const d=Number(f.getAttribute(pee)||0);return i>=d});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function vee(e,t={}){let{styles:n}=t;return n||(n=_6(HT(t))),n.find(r=>r.getAttribute(gee(t))===e)}function HS(e,t={}){const n=vee(e,t);n&&HT(t).removeChild(n)}function zIe(e,t){const n=$6.get(e);if(!n||!O6(document,n)){const r=mee("",t),{parentNode:i}=r;$6.set(e,i),e.removeChild(r)}}function uv(e,t,n={}){var l,c,u;const r=HT(n),i=_6(r),o=te(I({},n),{styles:i});zIe(r,o);const a=vee(t,o);if(a)return(l=o.csp)!=null&&l.nonce&&a.nonce!==((c=o.csp)==null?void 0:c.nonce)&&(a.nonce=(u=o.csp)==null?void 0:u.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=mee(e,o);return s.setAttribute(gee(o),t),s}function Ab(e){return e instanceof HTMLElement||e instanceof SVGElement}function td(e){return e&&typeof e=="object"&&Ab(e.nativeElement)?e.nativeElement:Ab(e)?e:null}const hb=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function yee(e,t=!1){if(hb(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i);let a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function T6(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>yee(r,t));return yee(e,t)&&n.unshift(e),n}function M6(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let pb=null,Tg=[];const I6=new Map,R6=new Map;function N6(){return Tg[Tg.length-1]}function QIe(e){const t=N6();if(e&&t){let n;for(const[i,o]of I6.entries())if(o===t){n=i;break}const r=R6.get(n);return!!r&&(r===e||r.contains(e))}return!1}function VIe(e){const{activeElement:t}=document;return e===t||e.contains(t)}function P6(){const e=N6(),{activeElement:t}=document;if(!QIe(t))if(e&&!VIe(e)){const n=T6(e),r=n.includes(pb)?pb:n[0];r==null||r.focus({preventScroll:!0})}else pb=t}function bee(e){if(e.key==="Tab"){const{activeElement:t}=document,n=N6(),r=T6(n),i=r[r.length-1];e.shiftKey&&t===r[0]?pb=i:!e.shiftKey&&t===i&&(pb=r[0])}}function KIe(e,t){return e&&(I6.set(t,e),Tg=Tg.filter(n=>n!==e),Tg.push(e),window.addEventListener("focusin",P6),window.addEventListener("keydown",bee,!0),P6()),()=>{pb=null,Tg=Tg.filter(n=>n!==e),I6.delete(t),R6.delete(t),Tg.length===0&&(window.removeEventListener("focusin",P6),window.removeEventListener("keydown",bee,!0))}}function WIe(e,t){const n=g.useRef(0),[r,i]=g.useState(0);g.useEffect(()=>{n.current=0},t),g.useEffect(()=>{const[o,a]=e(n.current);return a||(n.current+=1,i(s=>s+1)),o},[...t,r])}function xee(e,t){const n=lA(),r=g.useRef(t);return r.current=t,WIe(a=>{if(!e)return[void 0,!0];const s=r.current();return s?[KIe(s,n),!0]:[void 0,a>=1]},[n,e]),[a=>{a&&R6.set(n,a)}]}function wee(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function GIe(e){return wee(e)instanceof ShadowRoot}function L6(e){return GIe(e)?wee(e):null}const qIe=e=>{if(ac()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1};function Cee(e,t){return qIe(e)}const dn={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};let F6;function See(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let i,o;if(e){const l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;const c=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(c.width,10),f=parseInt(c.height,10);try{const d=u?`width: ${c.width};`:"",A=f?`height: ${c.height};`:"";uv(` +(function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};function f(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function p(e,t,n){f(e,t),t.set(e,n)}function m(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function h(e,t,n){return e.set(m(e,t),n),n}function g(e,t){return e.get(m(e,t))}var _,v,y,b=new(_=new WeakMap,v=new WeakMap,y=new WeakMap,class extends d{constructor(){super(),p(this,_,void 0),p(this,v,void 0),p(this,y,void 0),h(y,this,e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}})}onSubscribe(){g(v,this)||this.setEventListener(g(y,this))}onUnsubscribe(){if(!this.hasListeners()){var e;(e=g(v,this))==null||e.call(this),h(v,this,void 0)}}setEventListener(e){var t;h(y,this,e),(t=g(v,this))==null||t.call(this),h(v,this,e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()}))}setFocused(e){g(_,this)!==e&&(h(_,this,e),this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof g(_,this)==`boolean`?g(_,this):((e=globalThis.document)==null?void 0:e.visibilityState)!==`hidden`}}),x,S,C={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},w=new(x=new WeakMap,S=new WeakMap,class{constructor(){p(this,x,C),p(this,S,!1)}setTimeoutProvider(e){h(x,this,e)}setTimeout(e,t){return g(x,this).setTimeout(e,t)}clearTimeout(e){g(x,this).clearTimeout(e)}setInterval(e,t){return g(x,this).setInterval(e,t)}clearInterval(e){g(x,this).clearInterval(e)}});function T(e){setTimeout(e,0)}var E=typeof window>`u`||`Deno`in globalThis;function D(){}function O(e,t){return typeof e==`function`?e(t):e}function k(e){return typeof e==`number`&&e>=0&&e!==1/0}function A(e,t){return Math.max(e+(t||0)-Date.now(),0)}function j(e,t){return typeof e==`function`?e(t):e}function M(e,t){return typeof e==`function`?e(t):e}function N(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==F(o,t.options))return!1}else if(!L(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function P(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(I(t.options.mutationKey)!==I(a))return!1}else if(!L(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function F(e,t){return((t==null?void 0:t.queryKeyHashFn)||I)(e)}function I(e){return JSON.stringify(e,(e,t)=>H(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function L(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>L(e[n],t[n])):!1}var R=Object.prototype.hasOwnProperty;function z(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=V(e)&&V(t);if(!r&&!(H(e)&&H(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{w.setTimeout(t,e)})}function te(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:z(e,t)}function ne(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function re(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ie=Symbol();function ae(e,t){return!e.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ie?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oe(e,t){return typeof e==`function`?e(...t):!!e}function se(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i!=null||(i=t()),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ce=(()=>{let e=()=>E;return{isServer(){return e()},setIsServer(t){e=t}}})();function le(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function ue(e){"@babel/helpers - typeof";return ue=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ue(e)}var de=o((()=>{}));function fe(e,t){if(ue(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ue(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pe=o((()=>{de()}));function me(e){var t=fe(e,`string`);return ue(t)==`symbol`?t:t+``}var he=o((()=>{de(),pe()}));function W(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge=o((()=>{he()}));function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t{ge()}));K();function ve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function q(e,t){if(e==null)return{};var n,r,i=ve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r{e()},r=e=>{e()},i=ye,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var xe=be(),Se,Ce,we,Te=new(Se=new WeakMap,Ce=new WeakMap,we=new WeakMap,class extends d{constructor(){super(),p(this,Se,!0),p(this,Ce,void 0),p(this,we,void 0),h(we,this,e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}})}onSubscribe(){g(Ce,this)||this.setEventListener(g(we,this))}onUnsubscribe(){if(!this.hasListeners()){var e;(e=g(Ce,this))==null||e.call(this),h(Ce,this,void 0)}}setEventListener(e){var t;h(we,this,e),(t=g(Ce,this))==null||t.call(this),h(Ce,this,e(this.setOnline.bind(this)))}setOnline(e){g(Se,this)!==e&&(h(Se,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return g(Se,this)}});function Ee(e){return Math.min(1e3*Math.pow(2,e),3e4)}function De(e){return(e==null?`online`:e)!==`online`||Te.isOnline()}var Oe=class extends Error{constructor(e){super(`CancelledError`),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ke(e){let t=!1,n=0,r,i=le(),a=()=>i.status!==`pending`,o=t=>{if(!a()){var n;let r=new Oe(t);f(r),(n=e.onCancel)==null||n.call(e,r)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>b.isFocused()&&(e.networkMode===`always`||Te.isOnline())&&e.canRun(),u=()=>De(e.networkMode)&&e.canRun(),d=e=>{a()||(r==null||r(),i.resolve(e))},f=e=>{a()||(r==null||r(),i.reject(e))},p=()=>new Promise(t=>{var n;r=e=>{(a()||l())&&t(e)},(n=e.onPause)==null||n.call(e)}).then(()=>{if(r=void 0,!a()){var t;(t=e.onContinue)==null||t.call(e)}}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i==null?e.fn():i}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{var i,o,s;if(a())return;let c=(i=e.retry)==null?ce.isServer()?0:3:i,u=(o=e.retryDelay)==null?Ee:o,d=typeof u==`function`?u(n,r):u,h=c===!0||typeof c==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Ae,je=(Ae=new WeakMap,class{constructor(){p(this,Ae,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),k(this.gcTime)&&h(Ae,this,w.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e==null?ce.isServer()?1/0:300*1e3:e)}clearGcTimeout(){g(Ae,this)!==void 0&&(w.clearTimeout(g(Ae,this)),h(Ae,this,void 0))}});function Me(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Ne(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Me(a,r,i,o,s,`next`,e)}function s(e){Me(a,r,i,o,s,`throw`,e)}o(void 0)})}}var Pe=o((()=>{}));Pe();function Fe(e){return{onFetch:(t,n)=>{var r,i,a;let o=t.options,s=(r=t.fetchOptions)==null||(r=r.meta)==null||(r=r.fetchMore)==null?void 0:r.direction,c=((i=t.state.data)==null?void 0:i.pages)||[],l=((a=t.state.data)==null?void 0:a.pageParams)||[],u={pages:[],pageParams:[]},d=0,f=function(){var n=Ne(function*(){let n=!1,r=e=>{se(e,()=>t.signal,()=>n=!0)},i=ae(t.options,t.fetchOptions),a=function(){var e=Ne(function*(e,a,o){if(n)return Promise.reject(t.signal.reason);if(a==null&&e.pages.length)return Promise.resolve(e);let s=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:a,direction:o?`backward`:`forward`,meta:t.options.meta};return r(e),e})(),c=yield i(s),{maxPages:l}=t.options,u=o?re:ne;return{pages:u(e.pages,c,l),pageParams:u(e.pageParams,a,l)}});return function(t,n,r){return e.apply(this,arguments)}}();if(s&&c.length){let e=s===`backward`,t=e?Le:Ie,n={pages:c,pageParams:l};u=yield a(n,t(o,n),e)}else{let t=e==null?c.length:e;do{var f;let e=d===0?(f=l[0])==null?o.initialPageParam:f:Ie(o,u);if(d>0&&e==null)break;u=yield a(u,e),d++}while(d{var e,r;return(e=(r=t.options).persister)==null?void 0:e.call(r,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Ie(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Le(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function Re(e,t){f(e,t),t.add(e)}Pe();var ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je=(ze=new WeakMap,Be=new WeakMap,Ve=new WeakMap,He=new WeakMap,Ue=new WeakMap,We=new WeakMap,Ge=new WeakMap,Ke=new WeakMap,qe=new WeakSet,class extends je{constructor(e){var t;super(),Re(this,qe),p(this,ze,void 0),p(this,Be,void 0),p(this,Ve,void 0),p(this,He,void 0),p(this,Ue,void 0),p(this,We,void 0),p(this,Ge,void 0),p(this,Ke,void 0),h(Ke,this,!1),h(Ge,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],h(Ue,this,e.client),h(He,this,g(Ue,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,h(Be,this,$e(this.options)),this.state=(t=e.state)==null?g(Be,this):t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return g(ze,this)}get promise(){var e;return(e=g(We,this))==null?void 0:e.promise}setOptions(e){if(this.options=G(G({},g(Ge,this)),e),e!=null&&e._type&&h(ze,this,e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=$e(this.options);e.data!==void 0&&(this.setState(Qe(e.data,e.dataUpdatedAt)),h(Be,this,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&g(He,this).remove(this)}setData(e,t){let n=te(this.state.data,e,this.options);return m(qe,this,Xe).call(this,{data:n,type:`success`,dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e){m(qe,this,Xe).call(this,{type:`setState`,state:e})}cancel(e){var t,n;let r=(t=g(We,this))==null?void 0:t.promise;return(n=g(We,this))==null||n.cancel(e),r?r.then(D).catch(D):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return g(Be,this)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>M(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ie||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>j(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!A(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=g(We,this))==null||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=g(We,this))==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),g(He,this).notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(g(We,this)&&(g(Ke,this)||m(qe,this,Ye).call(this)?g(We,this).cancel({revert:!0}):g(We,this).cancelRetry()),this.scheduleGc()),g(He,this).notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||m(qe,this,Xe).call(this,{type:`invalidate`})}fetch(e,t){var n=this;return Ne(function*(){var r,i;if(n.state.fetchStatus!==`idle`&&((r=g(We,n))==null?void 0:r.status())!==`rejected`){if(n.state.data!==void 0&&t!=null&&t.cancelRefetch)n.cancel({silent:!0});else if(g(We,n))return g(We,n).continueRetry(),g(We,n).promise}if(e&&n.setOptions(e),!n.options.queryFn){let e=n.observers.find(e=>e.options.queryFn);e&&n.setOptions(e.options)}let a=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(h(Ke,n,!0),a.signal)})},s=()=>{let e=ae(n.options,t),r=(()=>{let e={client:g(Ue,n),queryKey:n.queryKey,meta:n.meta};return o(e),e})();return h(Ke,n,!1),n.options.persister?n.options.persister(e,r,n):e(r)},c=(()=>{let e={fetchOptions:t,options:n.options,queryKey:n.queryKey,client:g(Ue,n),state:n.state,fetchFn:s};return o(e),e})(),l=g(ze,n)===`infinite`?Fe(n.options.pages):n.options.behavior;if(l==null||l.onFetch(c,n),h(Ve,n,n.state),n.state.fetchStatus===`idle`||n.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var u;m(qe,n,Xe).call(n,{type:`fetch`,meta:(u=c.fetchOptions)==null?void 0:u.meta})}h(We,n,ke({initialPromise:t==null?void 0:t.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof Oe&&e.revert&&n.setState(G(G({},g(Ve,n)),{},{fetchStatus:`idle`})),a.abort()},onFail:(e,t)=>{m(qe,n,Xe).call(n,{type:`failed`,failureCount:e,error:t})},onPause:()=>{m(qe,n,Xe).call(n,{type:`pause`})},onContinue:()=>{m(qe,n,Xe).call(n,{type:`continue`})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{var d,f,p,_;let e=yield g(We,n).start();if(e===void 0)throw Error(`${n.queryHash} data is undefined`);return n.setData(e),(d=(f=g(He,n).config).onSuccess)==null||d.call(f,e,n),(p=(_=g(He,n).config).onSettled)==null||p.call(_,e,n.state.error,n),e}catch(e){var v,y,b,x;if(e instanceof Oe){if(e.silent)return g(We,n).promise;if(e.revert){if(n.state.data===void 0)throw e;return n.state.data}}throw m(qe,n,Xe).call(n,{type:`error`,error:e}),(v=(y=g(He,n).config).onError)==null||v.call(y,e,n),(b=(x=g(He,n).config).onSettled)==null||b.call(x,n.state.data,e,n),e}finally{n.scheduleGc()}})()}});function Ye(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}function Xe(e){let t=t=>{switch(e.type){case`failed`:return G(G({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case`pause`:return G(G({},t),{},{fetchStatus:`paused`});case`continue`:return G(G({},t),{},{fetchStatus:`fetching`});case`fetch`:var n;return G(G(G({},t),Ze(t.data,this.options)),{},{fetchMeta:(n=e.meta)==null?null:n});case`success`:let r=G(G(G({},t),Qe(e.data,e.dataUpdatedAt)),{},{dataUpdateCount:t.dataUpdateCount+1},!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null});return h(Ve,this,e.manual?r:void 0),r;case`error`:let i=e.error;return G(G({},t),{},{error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:`idle`,status:`error`,isInvalidated:!0});case`invalidate`:return G(G({},t),{},{isInvalidated:!0});case`setState`:return G(G({},t),e.state)}};this.state=t(this.state),xe.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),g(He,this).notify({query:this,type:`updated`,action:e})})}function Ze(e,t){return G({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:De(t.networkMode)?`fetching`:`paused`},e===void 0&&{error:null,status:`pending`})}function Qe(e,t){return{data:e,dataUpdatedAt:t==null?Date.now():t,error:null,isInvalidated:!1,status:`success`}}function $e(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r==null?Date.now():r:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}function et(e){if(e==null)throw TypeError(`Cannot destructure `+e)}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t(this.trackProp(n),t==null||t(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&g(ct,this).status===`pending`&&g(ct,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){g(gt,this).add(e)}getCurrentQuery(){return g(rt,this)}refetch(e={}){let t=tt({},(et(e),e));return this.fetch(G({},t))}fetchOptimistic(e){let t=g(nt,this).defaultQueryOptions(e),n=g(nt,this).getQueryCache().build(g(nt,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return m(_t,this,yt).call(this,G(G({},e),{},{cancelRefetch:(t=e.cancelRefetch)==null||t})).then(()=>(this.updateResult(),g(at,this)))}createResult(e,t){let n=g(rt,this),r=this.options,i=g(at,this),a=g(ot,this),o=g(st,this),s=e===n?g(it,this):e.state,{state:c}=e,l=G({},c),u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&kt(e,t),o=i&&jt(e,n,t,r);(a||o)&&(l=G(G({},l),Ze(c.data,e.options))),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let _=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;if(i!=null&&i.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))e=i.data,_=!0;else{var v;e=typeof t.placeholderData==`function`?t.placeholderData((v=g(ft,this))==null?void 0:v.state.data,g(ft,this)):t.placeholderData}e!==void 0&&(m=`success`,d=te(i==null?void 0:i.data,e,t),u=!0)}if(t.select&&d!==void 0&&!_)if(i&&d===(a==null?void 0:a.data)&&t.select===g(ut,this))d=g(dt,this);else try{h(ut,this,t.select),d=t.select(d),d=te(i==null?void 0:i.data,d,t),h(dt,this,d),h(lt,this,null)}catch(e){h(lt,this,e)}g(lt,this)&&(f=g(lt,this),d=g(dt,this),p=Date.now(),m=`error`);let y=l.fetchStatus===`fetching`,b=m===`pending`,x=m===`error`,S=b&&y,C=d!==void 0,w={status:m,fetchStatus:l.fetchStatus,isPending:b,isSuccess:m===`success`,isError:x,isInitialLoading:S,isLoading:S,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:y,isRefetching:y&&!b,isLoadingError:x&&!C,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:x&&C,isStale:Mt(e,t),refetch:this.refetch,promise:g(ct,this),isEnabled:M(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=w.data!==void 0,r=w.status===`error`&&!t,i=e=>{r?e.reject(w.error):t&&e.resolve(w.data)},a=()=>{let e=h(ct,this,w.promise=le());i(e)},o=g(ct,this);switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||w.data!==o.value)&&a();break;case`rejected`:(!r||w.error!==o.reason)&&a();break}}return w}updateResult(){let e=g(at,this),t=this.createResult(g(rt,this),this.options);h(ot,this,g(rt,this).state),h(st,this,this.options),g(ot,this).data!==void 0&&h(ft,this,g(rt,this)),!B(t,e)&&(h(at,this,t),m(_t,this,Dt).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!g(gt,this).size)return!0;let r=new Set(n==null?g(gt,this):n);return this.options.throwOnError&&r.add(`error`),Object.keys(g(at,this)).some(t=>{let n=t;return g(at,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&m(_t,this,Ct).call(this)}});function yt(e){m(_t,this,Et).call(this);let t=g(rt,this).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(D)),t}function bt(){m(_t,this,wt).call(this);let e=j(this.options.staleTime,g(rt,this));if(ce.isServer()||g(at,this).isStale||!k(e))return;let t=A(g(at,this).dataUpdatedAt,e)+1;h(pt,this,w.setTimeout(()=>{g(at,this).isStale||this.updateResult()},t))}function xt(){var e;return(e=typeof this.options.refetchInterval==`function`?this.options.refetchInterval(g(rt,this)):this.options.refetchInterval)!=null&&e}function St(e){m(_t,this,Tt).call(this),h(ht,this,e),!(ce.isServer()||M(this.options.enabled,g(rt,this))===!1||!k(g(ht,this))||g(ht,this)===0)&&h(mt,this,w.setInterval(()=>{(this.options.refetchIntervalInBackground||b.isFocused())&&m(_t,this,yt).call(this)},g(ht,this)))}function Ct(){m(_t,this,bt).call(this),m(_t,this,St).call(this,m(_t,this,xt).call(this))}function wt(){g(pt,this)!==void 0&&(w.clearTimeout(g(pt,this)),h(pt,this,void 0))}function Tt(){g(mt,this)!==void 0&&(w.clearInterval(g(mt,this)),h(mt,this,void 0))}function Et(){let e=g(nt,this).getQueryCache().build(g(nt,this),this.options);if(e===g(rt,this))return;let t=g(rt,this);h(rt,this,e),h(it,this,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}function Dt(e){xe.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(g(at,this))}),g(nt,this).getQueryCache().notify({query:g(rt,this),type:`observerResultsUpdated`})})}function Ot(e,t){return M(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&M(t.retryOnMount,e)===!1)}function kt(e,t){return Ot(e,t)||e.state.data!==void 0&&At(e,t,t.refetchOnMount)}function At(e,t,n){if(M(t.enabled,e)!==!1&&j(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Mt(e,t)}return!1}function jt(e,t,n,r){return(e!==t||M(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Mt(e,n)}function Mt(e,t){return M(t.enabled,e)!==!1&&e.isStaleByTime(j(t.staleTime,e))}function Nt(e,t){return!B(e.getCurrentResult(),t)}Pe(),K();var Pt,Ft,It,Lt,Rt,zt=(Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap,Rt=new WeakSet,class extends je{constructor(e){super(),Re(this,Rt),p(this,Pt,void 0),p(this,Ft,void 0),p(this,It,void 0),p(this,Lt,void 0),h(Pt,this,e.client),this.mutationId=e.mutationId,h(It,this,e.mutationCache),h(Ft,this,[]),this.state=e.state||Vt(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){g(Ft,this).includes(e)||(g(Ft,this).push(e),this.clearGcTimeout(),g(It,this).notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){h(Ft,this,g(Ft,this).filter(t=>t!==e)),this.scheduleGc(),g(It,this).notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){g(Ft,this).length||(this.state.status===`pending`?this.scheduleGc():g(It,this).remove(this))}continue(){var e,t;return(e=(t=g(Lt,this))==null?void 0:t.continue())==null?this.execute(this.state.variables):e}execute(e){var t=this;return Ne(function*(){var n;let r=()=>{m(Rt,t,Bt).call(t,{type:`continue`})},i={client:g(Pt,t),meta:t.options.meta,mutationKey:t.options.mutationKey};h(Lt,t,ke({fn:()=>t.options.mutationFn?t.options.mutationFn(e,i):Promise.reject(Error(`No mutationFn found`)),onFail:(e,n)=>{m(Rt,t,Bt).call(t,{type:`failed`,failureCount:e,error:n})},onPause:()=>{m(Rt,t,Bt).call(t,{type:`pause`})},onContinue:r,retry:(n=t.options.retry)==null?0:n,retryDelay:t.options.retryDelay,networkMode:t.options.networkMode,canRun:()=>g(It,t).canRun(t)}));let a=t.state.status===`pending`,o=!g(Lt,t).canStart();try{var s,c,l,u,d,f,p,_;if(a)r();else{var v,y;m(Rt,t,Bt).call(t,{type:`pending`,variables:e,isPaused:o}),g(It,t).config.onMutate&&(yield g(It,t).config.onMutate(e,t,i));let n=yield(v=(y=t.options).onMutate)==null?void 0:v.call(y,e,i);n!==t.state.context&&m(Rt,t,Bt).call(t,{type:`pending`,context:n,variables:e,isPaused:o})}let n=yield g(Lt,t).start();return yield(s=(c=g(It,t).config).onSuccess)==null?void 0:s.call(c,n,e,t.state.context,t,i),yield(l=(u=t.options).onSuccess)==null?void 0:l.call(u,n,e,t.state.context,i),yield(d=(f=g(It,t).config).onSettled)==null?void 0:d.call(f,n,null,t.state.variables,t.state.context,t,i),yield(p=(_=t.options).onSettled)==null?void 0:p.call(_,n,null,e,t.state.context,i),m(Rt,t,Bt).call(t,{type:`success`,data:n}),n}catch(n){try{var b,x;yield(b=(x=g(It,t).config).onError)==null?void 0:b.call(x,n,e,t.state.context,t,i)}catch(e){Promise.reject(e)}try{var S,C;yield(S=(C=t.options).onError)==null?void 0:S.call(C,n,e,t.state.context,i)}catch(e){Promise.reject(e)}try{var w,T;yield(w=(T=g(It,t).config).onSettled)==null?void 0:w.call(T,void 0,n,t.state.variables,t.state.context,t,i)}catch(e){Promise.reject(e)}try{var E,D;yield(E=(D=t.options).onSettled)==null?void 0:E.call(D,void 0,n,e,t.state.context,i)}catch(e){Promise.reject(e)}throw m(Rt,t,Bt).call(t,{type:`error`,error:n}),n}finally{g(It,t).runNext(t)}})()}});function Bt(e){let t=t=>{switch(e.type){case`failed`:return G(G({},t),{},{failureCount:e.failureCount,failureReason:e.error});case`pause`:return G(G({},t),{},{isPaused:!0});case`continue`:return G(G({},t),{},{isPaused:!1});case`pending`:return G(G({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()});case`success`:return G(G({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1});case`error`:return G(G({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`})}};this.state=t(this.state),xe.batch(()=>{g(Ft,this).forEach(t=>{t.onMutationUpdate(e)}),g(It,this).notify({mutation:this,type:`updated`,action:e})})}function Vt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}K();var Ht,Ut,Wt,Gt=(Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,class extends d{constructor(e={}){super(),p(this,Ht,void 0),p(this,Ut,void 0),p(this,Wt,void 0),this.config=e,h(Ht,this,new Set),h(Ut,this,new Map),h(Wt,this,0)}build(e,t,n){var r;let i=new zt({client:e,mutationCache:this,mutationId:h(Wt,this,(r=g(Wt,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){g(Ht,this).add(e);let t=Kt(e);if(typeof t==`string`){let n=g(Ut,this).get(t);n?n.push(e):g(Ut,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(g(Ht,this).delete(e)){let t=Kt(e);if(typeof t==`string`){let n=g(Ut,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&g(Ut,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Kt(e);if(typeof t==`string`){let n=g(Ut,this).get(t),r=n==null?void 0:n.find(e=>e.state.status===`pending`);return!r||r===e}else return!0}runNext(e){let t=Kt(e);if(typeof t==`string`){var n,r;let i=(n=g(Ut,this).get(t))==null?void 0:n.find(t=>t!==e&&t.state.isPaused);return(r=i==null?void 0:i.continue())==null?Promise.resolve():r}else return Promise.resolve()}clear(){xe.batch(()=>{g(Ht,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),g(Ht,this).clear(),g(Ut,this).clear()})}getAll(){return Array.from(g(Ht,this))}find(e){let t=G({exact:!0},e);return this.getAll().find(e=>P(t,e))}findAll(e={}){return this.getAll().filter(t=>P(e,t))}notify(e){xe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return xe.batch(()=>Promise.all(e.map(e=>e.continue().catch(D))))}});function Kt(e){var t;return(t=e.options.scope)==null?void 0:t.id}K();var qt,Jt,Yt,Xt,Zt,Qt=(qt=new WeakMap,Jt=new WeakMap,Yt=new WeakMap,Xt=new WeakMap,Zt=new WeakSet,class extends d{constructor(e,t){super(),Re(this,Zt),p(this,qt,void 0),p(this,Jt,void 0),p(this,Yt,void 0),p(this,Xt,void 0),h(qt,this,e),this.setOptions(t),this.bindMethods(),m(Zt,this,$t).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=g(qt,this).defaultMutationOptions(e),B(this.options,n)||g(qt,this).getMutationCache().notify({type:`observerOptionsUpdated`,mutation:g(Yt,this),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&I(n.mutationKey)!==I(this.options.mutationKey)?this.reset():((t=g(Yt,this))==null?void 0:t.state.status)===`pending`&&g(Yt,this).setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=g(Yt,this))==null||e.removeObserver(this)}}onMutationUpdate(e){m(Zt,this,$t).call(this),m(Zt,this,en).call(this,e)}getCurrentResult(){return g(Jt,this)}reset(){var e;(e=g(Yt,this))==null||e.removeObserver(this),h(Yt,this,void 0),m(Zt,this,$t).call(this),m(Zt,this,en).call(this)}mutate(e,t){var n;return h(Xt,this,t),(n=g(Yt,this))==null||n.removeObserver(this),h(Yt,this,g(qt,this).getMutationCache().build(g(qt,this),this.options)),g(Yt,this).addObserver(this),g(Yt,this).execute(e)}});function $t(){var e,t;let n=(e=(t=g(Yt,this))==null?void 0:t.state)==null?Vt():e;h(Jt,this,G(G({},n),{},{isPending:n.status===`pending`,isSuccess:n.status===`success`,isError:n.status===`error`,isIdle:n.status===`idle`,mutate:this.mutate,reset:this.reset}))}function en(e){xe.batch(()=>{if(g(Xt,this)&&this.hasListeners()){let l=g(Jt,this).variables,u=g(Jt,this).context,d={client:g(qt,this),meta:this.options.meta,mutationKey:this.options.mutationKey};if((e==null?void 0:e.type)===`success`){try{var t,n;(t=(n=g(Xt,this)).onSuccess)==null||t.call(n,e.data,l,u,d)}catch(e){Promise.reject(e)}try{var r,i;(r=(i=g(Xt,this)).onSettled)==null||r.call(i,e.data,null,l,u,d)}catch(e){Promise.reject(e)}}else if((e==null?void 0:e.type)===`error`){try{var a,o;(a=(o=g(Xt,this)).onError)==null||a.call(o,e.error,l,u,d)}catch(e){Promise.reject(e)}try{var s,c;(s=(c=g(Xt,this)).onSettled)==null||s.call(c,void 0,e.error,l,u,d)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(g(Jt,this))})})}K();var tn,nn=(tn=new WeakMap,class extends d{constructor(e={}){super(),p(this,tn,void 0),this.config=e,h(tn,this,new Map)}build(e,t,n){var r;let i=t.queryKey,a=(r=t.queryHash)==null?F(i,t):r,o=this.get(a);return o||(o=new Je({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){g(tn,this).has(e.queryHash)||(g(tn,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=g(tn,this).get(e.queryHash);t&&(e.destroy(),t===e&&g(tn,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){xe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return g(tn,this).get(e)}getAll(){return[...g(tn,this).values()]}find(e){let t=G({exact:!0},e);return this.getAll().find(e=>N(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>N(e,t)):t}notify(e){xe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){xe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){xe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}});Pe(),K();var rn,an,on,sn,cn,ln,un,dn,fn=(rn=new WeakMap,an=new WeakMap,on=new WeakMap,sn=new WeakMap,cn=new WeakMap,ln=new WeakMap,un=new WeakMap,dn=new WeakMap,class{constructor(e={}){p(this,rn,void 0),p(this,an,void 0),p(this,on,void 0),p(this,sn,void 0),p(this,cn,void 0),p(this,ln,void 0),p(this,un,void 0),p(this,dn,void 0),h(rn,this,e.queryCache||new nn),h(an,this,e.mutationCache||new Gt),h(on,this,e.defaultOptions||{}),h(sn,this,new Map),h(cn,this,new Map),h(ln,this,0)}mount(){var e=this,t;h(ln,this,(t=g(ln,this),t++,t)),g(ln,this)===1&&(h(un,this,b.subscribe(function(){var t=Ne(function*(t){t&&(yield e.resumePausedMutations(),g(rn,e).onFocus())});return function(e){return t.apply(this,arguments)}}())),h(dn,this,Te.subscribe(function(){var t=Ne(function*(t){t&&(yield e.resumePausedMutations(),g(rn,e).onOnline())});return function(e){return t.apply(this,arguments)}}())))}unmount(){var e,t,n;h(ln,this,(e=g(ln,this),e--,e)),g(ln,this)===0&&((t=g(un,this))==null||t.call(this),h(un,this,void 0),(n=g(dn,this))==null||n.call(this),h(dn,this,void 0))}isFetching(e){return g(rn,this).findAll(G(G({},e),{},{fetchStatus:`fetching`})).length}isMutating(e){return g(an,this).findAll(G(G({},e),{},{status:`pending`})).length}getQueryData(e){var t;let n=this.defaultQueryOptions({queryKey:e});return(t=g(rn,this).get(n.queryHash))==null?void 0:t.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=g(rn,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(j(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return g(rn,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=g(rn,this).get(r.queryHash),a=O(t,i==null?void 0:i.state.data);if(a!==void 0)return g(rn,this).build(this,r).setData(a,G(G({},n),{},{manual:!0}))}setQueriesData(e,t,n){return xe.batch(()=>g(rn,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){var t;let n=this.defaultQueryOptions({queryKey:e});return(t=g(rn,this).get(n.queryHash))==null?void 0:t.state}removeQueries(e){let t=g(rn,this);xe.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=g(rn,this);return xe.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(G({type:`active`},e),t)))}cancelQueries(e,t={}){let n=G({revert:!0},t),r=xe.batch(()=>g(rn,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(D).catch(D)}invalidateQueries(e,t={}){return xe.batch(()=>{var n,r;return g(rn,this).findAll(e).forEach(e=>{e.invalidate()}),(e==null?void 0:e.refetchType)===`none`?Promise.resolve():this.refetchQueries(G(G({},e),{},{type:(n=(r=e==null?void 0:e.refetchType)==null?e==null?void 0:e.type:r)==null?`active`:n}),t)})}refetchQueries(e,t={}){var n;let r=G(G({},t),{},{cancelRefetch:(n=t.cancelRefetch)==null||n}),i=xe.batch(()=>g(rn,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(D)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(i).then(D)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=g(rn,this).build(this,t);return n.isStaleByTime(j(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(D).catch(D)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(D).catch(D)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Te.isOnline()?g(an,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return g(rn,this)}getMutationCache(){return g(an,this)}getDefaultOptions(){return g(on,this)}setDefaultOptions(e){h(on,this,e)}setQueryDefaults(e,t){g(sn,this).set(I(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...g(sn,this).values()],n={};return t.forEach(t=>{L(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){g(cn,this).set(I(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...g(cn,this).values()],n={};return t.forEach(t=>{L(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t=G(G(G(G({},g(on,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=F(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ie&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:G(G(G(G({},g(on,this).mutations),(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){g(rn,this).clear(),g(an,this).clear()}});function pn(e){var t,n,r,i=2;for(typeof Symbol<`u`&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&(t=e[n])!=null)return t.call(e);if(r&&(t=e[r])!=null)return new mn(t.call(e));n=`@@asyncIterator`,r=`@@iterator`}throw TypeError(`Object is not async iterable`)}function mn(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+` is not an object.`));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return mn=function(e){this.s=e,this.n=e.next},mn.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):t(n.apply(this.s,arguments))}},new mn(e)}var hn=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=hn()})),_n=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),vn=s(((e,t)=>{t.exports=_n()})),J=u(gn(),1),Y=vn(),yn=J.createContext(void 0),bn=e=>{let t=J.useContext(yn);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},xn=({client:e,children:t})=>(J.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Y.jsx)(yn.Provider,{value:e,children:t})),Sn=J.createContext(!1),Cn=()=>J.useContext(Sn);Sn.Provider;function wn(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Tn=J.createContext(wn()),En=()=>J.useContext(Tn),Dn=(e,t,n)=>{let r=n!=null&&n.state.error&&typeof e.throwOnError==`function`?oe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},On=e=>{J.useEffect(()=>{e.clearReset()},[e])},kn=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||oe(n,[e.error,r])),An=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e==null?t:e,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},jn=(e,t)=>e.isLoading&&e.isFetching&&!t,Mn=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Nn=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Pn(e,t,n){var r,i,a,o;let s=Cn(),c=En(),l=bn(n),u=l.defaultQueryOptions(e);(r=l.getDefaultOptions().queries)==null||(i=r._experimental_beforeQuery)==null||i.call(r,u);let d=l.getQueryCache().get(u.queryHash),f=e.subscribed!==!1;u._optimisticResults=s?`isRestoring`:f?`optimistic`:void 0,An(u),Dn(u,c,d),On(c);let p=!l.getQueryCache().get(u.queryHash),[m]=J.useState(()=>new t(l,u)),h=m.getOptimisticResult(u),g=!s&&f;if(J.useSyncExternalStore(J.useCallback(e=>{let t=g?m.subscribe(xe.batchCalls(e)):D;return m.updateResult(),t},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),J.useEffect(()=>{m.setOptions(u)},[u,m]),Mn(u,h))throw Nn(u,m,c);if(kn({result:h,errorResetBoundary:c,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw h.error;if((a=l.getDefaultOptions().queries)==null||(o=a._experimental_afterQuery)==null||o.call(a,u,h),u.experimental_prefetchInRender&&!ce.isServer()&&jn(h,s)){let e=p?Nn(u,m,c):d==null?void 0:d.promise;e==null||e.catch(D).finally(()=>{m.updateResult()})}return u.notifyOnChangeProps?h:m.trackResult(h)}function Fn(e,t){return Pn(e,vt,t)}K();function In(e,t){let n=bn(t),[r]=J.useState(()=>new Qt(n,e));J.useEffect(()=>{r.setOptions(e)},[r,e]);let i=J.useSyncExternalStore(J.useCallback(e=>r.subscribe(xe.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=J.useCallback((e,t)=>{r.mutate(e,t).catch(D)},[r]);if(i.error&&oe(r.options.throwOnError,[i.error]))throw i.error;return G(G({},i),{},{mutate:a,mutateAsync:i.mutate})}var Ln={items_per_page:`/ page`,jump_to:`Go to`,jump_to_confirm:`confirm`,page:`Page`,prev_page:`Previous Page`,next_page:`Next Page`,prev_5:`Previous 5 Pages`,next_5:`Next 5 Pages`,prev_3:`Previous 3 Pages`,next_3:`Next 3 Pages`,page_size:`Page Size`},Rn={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0};K();var zn=G(G({},Rn),{},{locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`OK`,clear:`Clear`,week:`Week`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,previousMonth:`Previous month (PageUp)`,nextMonth:`Next month (PageDown)`,previousYear:`Last year (Control + left)`,nextYear:`Next year (Control + right)`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`}),Bn={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]};K();var Vn={lang:G({placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`]},zn),timePickerLocale:G({},Bn)},Hn=Vn,Un="${label} is not a valid ${type}",Wn={locale:`en`,Pagination:Ln,DatePicker:Vn,TimePicker:Bn,Calendar:Hn,global:{placeholder:`Please select`,close:`Close`,sortable:`sortable`,show:`Show`,hide:`Hide`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckAll:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Tour:{Next:`Next`,Previous:`Previous`,Finish:`Finish`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,deselectAll:`Deselect all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`,collapse:`Collapse`},Form:{optional:`(optional)`,defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Un,method:Un,array:Un,object:Un,number:Un,date:Un,boolean:Un,integer:Un,float:Un,regexp:Un,email:Un,url:Un,hex:Un},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`},ColorPicker:{presetEmpty:`Empty`,transparent:`Transparent`,singleColor:`Single`,gradientColor:`Gradient`}};K();var Gn=e=>typeof e==`string`,Kn=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},qn=e=>e==null?``:String(e),Jn=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Yn=/###/g,Xn=e=>e&&e.includes(`###`)?e.replace(Yn,`.`):e,Zn=e=>!e||Gn(e),Qn=(e,t,n)=>{let r=Gn(t)?t.split(`.`):t,i=0;for(;i{let{obj:r,k:i}=Qn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Qn(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Qn(e,o,Object),s!=null&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},er=(e,t,n,r)=>{let{obj:i,k:a}=Qn(e,t,Object);i[a]=i[a]||[],i[a].push(n)},tr=(e,t)=>{let{obj:n,k:r}=Qn(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},nr=(e,t,n)=>{let r=tr(e,n);return r===void 0?tr(t,n):r},rr=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?Gn(e[r])||e[r]instanceof String||Gn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):rr(e[r],t[r],n):e[r]=t[r]);return e},ir=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),ar={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},or=e=>Gn(e)?e.replace(/[&<>"'\/]/g,e=>ar[e]):e,sr=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},X=[` `,`,`,`?`,`!`,`;`],cr=new sr(20),lr=(e,t,n)=>{t=t||``,n=n||``;let r=X.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=cr.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},ur=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;ee==null?void 0:e.replace(/_/g,`-`),fr={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){var n,r;(n=console)==null||(n=n[e])==null||(r=n.apply)==null||r.call(n,console,t)}},pr=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||fr,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>Gn(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),Gn(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,G(G({},{prefix:`${this.prefix}:${t}:`}),this.options))}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},mr=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r{for(let i=0;i-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){var i;let a=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,o=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,s;e.includes(`.`)?s=e.split(`.`):(s=[e,t],n&&(Array.isArray(n)?s.push(...n):Gn(n)&&a?s.push(...n.split(a)):s.push(n)));let c=tr(this.data,s);return!c&&!t&&!n&&e.includes(`.`)&&(e=s[0],t=s[1],n=s.slice(2).join(`.`)),c||!o||!Gn(n)?c:ur((i=this.data)==null||(i=i[e])==null?void 0:i[t],n,a)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),$n(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(Gn(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=tr(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?rr(s,n,i):s=G(G({},s),n),$n(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},gr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{var a,o;t=(a=(o=this.processors[e])==null?void 0:o.process(t,n,r,i))==null?t:a}),t}},_r=Symbol(`i18next/PATH_KEY`);function vr(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>{var a;return n==null||(a=n.revoke)==null||a.call(n),i===_r?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function yr(e,t){var n,r;let{[_r]:i}=e(vr()),a=(n=t==null?void 0:t.keySeparator)==null?`.`:n,o=(r=t==null?void 0:t.nsSeparator)==null?`:`:r,s=(t==null?void 0:t.enableSelector)===`strict`;if(i.length>1&&o){let e=t==null?void 0:t.ns,n=s?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(s?n:n.length>1?n.slice(1):[]).includes(i[0]))return`${i[0]}${o}${i.slice(1).join(a)}`}return i.join(a)}var br=e=>!Gn(e)&&typeof e!=`boolean`&&typeof e!=`number`,xr=class e extends mr{constructor(e,t={}){super(),Jn([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=pr.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n=G({},t);if(e==null)return!1;let r=this.resolve(e,n);if((r==null?void 0:r.res)===void 0)return!1;let i=br(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!lr(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Gn(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Gn(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?G({},n):n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i=G({},i)),i||(i={}),t==null)return``;typeof t==`function`&&(t=yr(t,G(G({},this.options),i))),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?yr(e,G(G({},this.options),i)):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((d==null?void 0:d.toLowerCase())===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p==null?void 0:p.res,h=(p==null?void 0:p.usedKey)||s,g=(p==null?void 0:p.exactUsedKey)||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!Gn(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=br(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(Gn(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,G(G({},i),{},{ns:c})):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,G(G({},i),{},{defaultValue:br(T)?T[e]:void 0},{joinArrays:!1,ns:c})):t[e]=this.translate(r,G(G({},i),{joinArrays:!1,ns:c})),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&Gn(v)&&Array.isArray(m))m=m.join(v),m&&(m=this.extendTranslation(m,t,i,r));else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,G(G({},i),{},{keySeparator:!1}));e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n{var r;let o=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,c,i):(r=this.backendConnector)!=null&&r.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){var a;if((a=this.i18nFormat)!=null&&a.parse)e=this.i18nFormat.parse(e,G(G({},this.options.interpolation.defaultVariables),n),n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){var o;n.interpolation&&this.interpolator.init(G(G({},n),{interpolation:G(G({},this.options.interpolation),n.interpolation)}));let a=Gn(e)&&((n==null||(o=n.interpolation)==null?void 0:o.skipOnVariables)===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),s;if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!Gn(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=G(G({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s(i==null?void 0:i[0])===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let s=n.postProcess||this.options.postProcess,c=Gn(s)?[s]:s;return e!=null&&c!=null&&c.length&&n.applyPostProcessor!==!1&&(e=gr.handle(c,e,t,this.options&&this.options.postProcessPassResolved?G({i18nResolved:G(G({},r),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e,t={}){let n,r,i,a,o;return Gn(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?yr(e,G(G({},this.options),t)):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!Gn(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(Gn(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{var s,l;this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&(s=this.utils)!=null&&s.hasLoadedNamespace&&!((l=this.utils)!=null&&l.hasLoadedNamespace(o))&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{var o;if(this.isValidLookup(n))return;a=r;let s=[c];if((o=this.i18nFormat)!=null&&o.addLookupKeys)this.i18nFormat.addLookupKeys(s,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&s.push(c+e.replace(i,this.options.pluralSeparator)),s.push(c+e),d&&s.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;s.push(r),u&&(t.ordinal&&e.startsWith(i)&&s.push(r+e.replace(i,this.options.pluralSeparator)),s.push(r+e),d&&s.push(r+n))}}let l;for(;l=s.pop();)this.isValidLookup(n)||(i=l,n=this.getResource(r,e,l,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!Gn(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r=G(G({},r),{},{count:e.count})),this.options.interpolation.defaultVariables&&(r=G(G({},this.options.interpolation.defaultVariables),r)),!n){r=G({},r);for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},Sr=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pr.create(`languageUtils`)}getScriptPartFromCode(e){if(e=dr(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=dr(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Gn(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),Gn(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Gn(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):Gn(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},Cr={zero:0,one:1,two:2,few:3,many:4,other:5},wr={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Tr=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=pr.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=dr(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch(n){if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),wr;if(!e.match(/-|_/))return wr;let r=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(r,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule(`dev`,t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Cr[e]-Cr[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},Er=(e,t,n,r=`.`,i=!0)=>{let a=nr(e,t,n);return!a&&i&&Gn(n)&&(a=ur(e,n,r),a===void 0&&(a=ur(t,n,r))),a},Dr=e=>e.replace(/\$/g,`$$$$`),Or=class{constructor(e={}){var t;this.logger=pr.create(`interpolator`),this.options=e,this.format=(e==null||(t=e.interpolation)==null?void 0:t.format)||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?or:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?ir(i):a||`{{`,this.suffix=o?ir(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?ir(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?ir(l):``,this.nestingPrefix=d?ir(d):f||ir(`$t(`),this.nestingSuffix=p?ir(p):m||ir(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>(e==null?void 0:e.source)===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){var i;let a,o,s,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let i=Er(t,c,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,G(G(G({},r),t),{},{interpolationkey:e})):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Er(t,c,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,G(G(G({},r),t),{},{interpolationkey:a}))};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let u=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=(r==null||(i=r.interpolation)==null?void 0:i.skipOnVariables)===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(s=0;a=t.regex.exec(e);){let n=a[1].trim();if(o=l(n),o===void 0)if(typeof u==`function`){let t=u(e,a,r);o=Gn(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o=``;else if(d){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=``;else!Gn(o)&&!this.useRawValueToEscape&&(o=qn(o));let i=t.safeValue(o);if(e=e.replace(a[0],Dr(i)),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{var n,r;let i=this.nestingOptionsSeparator;if(!e.includes(i))return e;let o=e.split(RegExp(`${ir(i)}[ ]*{`)),s=`{${o[1]}`;e=o[0],s=this.interpolate(s,a);let c=s.match(/'/g),l=s.match(/"/g);(((n=c==null?void 0:c.length)==null?0:n)%2==0&&!l||((r=l==null?void 0:l.length)==null?0:r)%2!=0)&&(s=s.replace(/'/g,`"`));try{a=JSON.parse(s),t&&(a=G(G({},t),a))}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${s}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a=G({},n),a=a.replace&&!Gn(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=RegExp(`{.*}`,`s`).test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Gn(i))return i;Gn(i)||(i=qn(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,G(G({},n),{},{interpolationkey:r[1].trim()})),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},kr=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||(n.currency=i.trim()):t===`relativetime`&&!i.includes(`:`)?n.range||(n.range=i.trim()):i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Ar=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a=G(G({},a),{},{[i.interpolationkey]:void 0}));let o=r+JSON.stringify(a),s=t[o];return s||(s=e(dr(r),i),t[o]=s),s(n)}},jr=e=>(t,n,r)=>e(dr(n),r)(t),Mr=class{constructor(e={}){this.logger=pr.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ar:jr;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,G({},t));return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,G(G({},t),{},{style:`currency`}));return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,G({},t));return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,G({},t));return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,G({},t));return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ar(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e-1&&!t.includes(`)`)&&e+1{let{formatName:i,formatOptions:a}=kr(t);if(this.formats[i]){let t=e;try{var o;let s=(r==null||(o=r.formatParams)==null?void 0:o[r.interpolationkey])||{},c=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[i](e,c,G(G(G({},a),r),s))}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Nr=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Pr=class extends mr{constructor(e,t,n,r={}){var i,a;super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=pr.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(i=this.backend)==null||(a=i.init)==null||a.call(i,n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{er(n.loaded,[i],a),Nr(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();Gn(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Gn(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){var s,c,l;if(!((s=this.services)==null||(s=s.utils)==null)&&s.hasLoadedNamespace&&!(!((c=this.services)==null||(c=c.utils)==null)&&c.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if((l=this.backend)!=null&&l.create){let s=G(G({},a),{},{isUpdate:i}),c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Fr=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),Gn(e[1])&&(t.defaultValue=e[1]),Gn(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ir=e=>(Gn(e.ns)&&(e.ns=[e.ns]),Gn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Gn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Lr=()=>{},Rr=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},zr=class e extends mr{constructor(e={},t){if(super(),this.options=Ir(e),this.services={},this.logger=pr,this.modules={external:[]},Rr(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(Gn(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Fr();this.options=G(G(G({},n),this.options),Ir(e)),this.options.interpolation=G(G({},n.interpolation),this.options.interpolation),e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?pr.init(r(this.modules.logger),this.options):pr.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Mr;let t=new Sr(this.options);this.store=new hr(this.options.resources,this.options);let n=this.services;n.logger=pr,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Tr(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Or(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Pr(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new xr(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Lr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Kn(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Lr){let n=t,r=Gn(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){var i,a;if((r==null?void 0:r.toLowerCase())===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),(i=this.options.preload)==null||(a=i.forEach)==null||a.call(i,e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Kn();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Lr),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&gr.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=Gn(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(Gn(t)?[t]:t);if(a){var o,s;this.language||r(a),this.translator.language||this.translator.changeLanguage(a),(o=this.services.languageDetector)==null||(s=o.cacheUserLanguage)==null||s.call(o,a)}this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r==null?void 0:r.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?G({},t):this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c=G(G({},this.options),o);Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=yr(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=yr(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=yr(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return Gn(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){var t;return(t=this.translator)==null?void 0:t.translate(...e)}exists(...e){var t;return(t=this.translator)==null?void 0:t.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Kn();return this.options.ns?(Gn(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Kn();Gn(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){var t,n;if(e||(e=this.resolvedLanguage||(((t=this.languages)==null?void 0:t.length)>0?this.languages[0]:this.language)),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let r=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),i=((n=this.services)==null?void 0:n.languageUtils)||new Sr(Fr());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:r.includes(i.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Lr){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i=G(G(G({},this.options),t),{isClone:!0}),a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services=G({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new hr(Object.keys(this.store.data).reduce((e,t)=>(e[t]=G({},this.store.data[t]),e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]=G({},e[t][r]),n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e=G(G(G({},Fr().interpolation),this.options.interpolation),t.interpolation),n=G(G({},i),{},{interpolation:e});a.services.interpolator=new Or(n)}return a.translator=new xr(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();zr.createInstance,zr.dir,zr.init,zr.loadResources,zr.reloadResources,zr.use,zr.changeLanguage,zr.getFixedT,zr.t,zr.exists,zr.setDefaultNamespace,zr.hasLoadedNamespace,zr.loadNamespaces,zr.loadLanguages;var Br=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Vr=s(((e,t)=>{t.exports=Br()})),Hr=s((e=>{var t=gn();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Hr()})),Wr=s((e=>{var t=Vr(),n=gn(),r=Ur();function i(e){var t=`https://react.dev/errors/`+e;if(1L||(e.current=I[L],I[L]=null,L--)}function B(e,t){L++,I[L]=e.current,e.current=t}var V=R(null),H=R(null),U=R(null),ee=R(null);function te(e,t){switch(B(U,t),B(H,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(V),B(V,e)}function ne(){z(V),z(H),z(U)}function re(e){e.memoizedState!==null&&B(ee,e);var t=V.current,n=Ud(t,e.type);t!==n&&(B(H,e),B(V,n))}function ie(e){H.current===e&&(z(V),z(H)),ee.current===e&&(z(ee),$f._currentValue=F)}var ae,oe;function se(e){if(ae===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ae=t&&t[1]||``,oe=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?se(n):``}function ue(e,t){switch(e.tag){case 26:case 27:case 5:return se(e.type);case 16:return se(`Lazy`);case 13:return e.child!==t&&t!==null?se(`Suspense Fallback`):se(`Suspense`);case 19:return se(`SuspenseList`);case 0:case 15:return le(e.type,!1);case 11:return le(e.type.render,!1);case 1:return le(e.type,!0);case 31:return se(`Activity`);default:return``}}function de(e){try{var t=``,n=null;do t+=ue(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var fe=Object.prototype.hasOwnProperty,pe=t.unstable_scheduleCallback,me=t.unstable_cancelCallback,he=t.unstable_shouldYield,W=t.unstable_requestPaint,ge=t.unstable_now,_e=t.unstable_getCurrentPriorityLevel,G=t.unstable_ImmediatePriority,K=t.unstable_UserBlockingPriority,ve=t.unstable_NormalPriority,q=t.unstable_LowPriority,ye=t.unstable_IdlePriority,be=t.log,xe=t.unstable_setDisableYieldValue,Se=null,Ce=null;function we(e){if(typeof be==`function`&&xe(e),Ce&&typeof Ce.setStrictMode==`function`)try{Ce.setStrictMode(Se,e)}catch(e){}}var Te=Math.clz32?Math.clz32:Oe,Ee=Math.log,De=Math.LN2;function Oe(e){return e>>>=0,e===0?32:31-(Ee(e)/De|0)|0}var ke=256,Ae=262144,je=4194304;function Me(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ne(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Me(n))):i=Me(o):i=Me(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Me(n))):i=Me(o)):i=Me(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Pe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ie(){var e=je;return je<<=1,!(je&62914560)&&(je=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),Zt=!1;if(Xt)try{var Qt={};Object.defineProperty(Qt,"passive",{get:function(){Zt=!0}}),window.addEventListener(`test`,Qt,Qt),window.removeEventListener(`test`,Qt,Qt)}catch(e){Zt=!1}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t=en,n=t.length,r,i=`value`in $t?$t.value:$t.textContent,a=i.length;for(e=0;e=Pn),Ln=` `,Rn=!1;function zn(e,t){switch(e){case`keyup`:return Mn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Bn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Vn=!1;function Hn(e,t){switch(e){case`compositionend`:return Bn(t);case`keypress`:return t.which===32?(Rn=!0,Ln):null;case`textInput`:return e=t.data,e===Ln&&Rn?null:e;default:return null}}function Un(e,t){if(Vn)return e===`compositionend`||!Nn&&zn(e,t)?(e=nn(),tn=en=$t=null,Vn=!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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=ur(n)}}function fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=wt(e.document)}return t}function mr(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`)}var hr=Xt&&`documentMode`in document&&11>=document.documentMode,gr=null,_r=null,vr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yr||gr==null||gr!==wt(r)||(r=gr,`selectionStart`in r&&mr(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}),vr&&lr(vr,r)||(vr=r,r=Ed(_r,`onSelect`),0>=o,i-=o,mi=1<<32-Te(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Ci&&gi(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Ci&&gi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Ci&&gi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Ci&&gi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&_a(l)===r.type){n(e,r.sibling),c=a(r,o.props),wa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=ti(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ei(o.type,o.key,o.props,null,e.mode,c),wa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ii(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=_a(o),x(e,r,o,c)}if(M(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ca(o),c);if(o.$$typeof===b)return x(e,r,Gi(e,o),c);Ta(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Sa=0;var i=x(e,t,n,r);return xa=null,i}catch(t){if(t===da||t===pa)throw t;var a=Xr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Da=Ea(!0),Oa=Ea(!1),ka=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ml&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=qr(e),Kr(e,null,n),t}return Hr(e,r,t,n),qr(e)}function Pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}function Fa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ia=!1;function La(){if(Ia){var e=na;if(e!==null)throw e}}function Ra(e,t,n,r){Ia=!1;var i=e.updateQueue;ka=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Fl&p)===p:(r&p)===p){p!==0&&p===ta&&(Ia=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:ka=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function za(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ba(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,Ts(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ws(e,t,aa(c,r),du(e)):ws(e,t,r,du(e))}catch(n){ws(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function ms(){}function hs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=gs(e).queue;ps(e,a,t,F,n===null?ms:function(){return _s(e),n(r)})}function gs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:F},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _s(e){var t=gs(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},du())}function vs(){return Wi($f)}function ys(){return So().memoizedState}function bs(){return So().memoizedState}function xs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Ma(n);var r=Na(t,e,n);r!==null&&(pu(r,t,n),Pa(r,t,n)),t={cache:Zi()},e.payload=t;return}t=t.return}}function Ss(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Ds(t,n):(n=Wr(e,t,n,r),n!==null&&(pu(n,e,r),Os(n,t,r)))}function Cs(e,t,n){ws(e,t,n,du())}function ws(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Ds(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,cr(s,o))return Hr(e,t,i,0),Nl===null&&Br(),!1}catch(e){}if(n=Wr(e,t,i,r),n!==null)return pu(n,e,r),Os(n,t,r),!0}return!1}function Ts(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(i(479))}else t=Wr(e,n,r,2),t!==null&&pu(t,e,2)}function Es(e){var t=e.alternate;return e===no||t!==null&&t===no}function Ds(e,t){oo=ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Os(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}var ks={readContext:Wi,use:To,useCallback:po,useContext:po,useEffect:po,useImperativeHandle:po,useLayoutEffect:po,useInsertionEffect:po,useMemo:po,useReducer:po,useRef:po,useState:po,useDebugValue:po,useDeferredValue:po,useTransition:po,useSyncExternalStore:po,useId:po,useHostTransitionStatus:po,useFormState:po,useActionState:po,useOptimistic:po,useMemoCache:po,useCacheRefresh:po};ks.useEffectEvent=po;var As={readContext:Wi,use:To,useCallback:function(e,t){return xo().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:es,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Q(4194308,4,os.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Q(4194308,4,e,t)},useInsertionEffect:function(e,t){Q(4,2,e,t)},useMemo:function(e,t){var n=xo();t=t===void 0?null:t;var r=e();if(so){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=xo();if(n!==void 0){var i=n(t);if(so){we(!0);try{n(t)}finally{we(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ss.bind(null,no,e),[r.memoizedState,e]},useRef:function(e){var t=xo();return e={current:e},t.memoizedState=e},useState:function(e){e=Lo(e);var t=e.queue,n=Cs.bind(null,no,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:cs,useDeferredValue:function(e,t){return ds(xo(),e,t)},useTransition:function(){var e=Lo(!1);return e=ps.bind(null,no,e.queue,!0,!1),xo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=no,a=xo();if(Ci){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Nl===null)throw Error(i(349));Fl&127||Mo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,es(Po.bind(null,r,o,e),[e]),r.flags|=2048,Zo(9,{destroy:void 0},No.bind(null,r,o,n,t),null),n},useId:function(){var e=xo(),t=Nl.identifierPrefix;if(Ci){var n=hi,r=mi;n=(r&~(1<<32-Te(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=co++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Je]=t,o[Ye]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&wc(t)}}return kc(t),Tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=U.current,Ai(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Je]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Di(t,!0)}else e=Vd(e).createTextNode(r),e[Je]=t,t.stateNode=e}return kc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ai(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Je]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),e=!1}else n=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qa(t),t):(Qa(t),null);if(t.flags&128)throw Error(i(558))}return kc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Je]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),a=!1}else a=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Qa(t),t):(Qa(t),null)}return Qa(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Dc(t,t.updateQueue),kc(t),null);case 4:return ne(),e===null&&Sd(t.stateNode.containerInfo),kc(t),null;case 10:return Ri(t.type),kc(t),null;case 19:if(z($a),r=t.memoizedState,r===null)return kc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Oc(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=eo(e),o!==null){for(t.flags|=128,Oc(r,!1),e=o.updateQueue,t.updateQueue=e,Dc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)$r(n,e),n=n.sibling;return B($a,$a.current&1|2),Ci&&gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ge()>$l&&(t.flags|=128,a=!0,Oc(r,!1),t.lanes=4194304)}else{if(!a)if(e=eo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Dc(t,e),Oc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ci)return kc(t),null}else 2*ge()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,Oc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(kc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ge(),e.sibling=null,n=$a.current,B($a,a?n&1|2:n&1),Ci&&gi(t,r.treeForkCount),e);case 22:case 23:return Qa(t),Ga(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(kc(t),t.subtreeFlags&6&&(t.flags|=8192)):kc(t),n=t.updateQueue,n!==null&&Dc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&z(sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ri(Xi),kc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function jc(e,t){switch(yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(Xi),ne(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ie(t),null;case 31:if(t.memoizedState!==null){if(Qa(t),t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z($a),null;case 4:return ne(),null;case 10:return Ri(t.type),null;case 22:case 23:return Qa(t),Ga(),e!==null&&z(sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ri(Xi),null;case 25:return null;default:return null}}function Mc(e,t){switch(yi(t),t.tag){case 3:Ri(Xi),ne();break;case 26:case 27:case 5:ie(t);break;case 4:ne();break;case 31:t.memoizedState!==null&&Qa(t);break;case 13:Qa(t);break;case 19:z($a);break;case 10:Ri(t.type);break;case 22:case 23:Qa(t),Ga(),e!==null&&z(sa);break;case 24:Ri(Xi)}}function Nc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Pc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Fc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ba(t,n)}catch(t){Uu(e,e.return,t)}}}function Ic(e,t,n){n.props=Ls(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function Lc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Rc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}function zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Bc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[Ye]=t}catch(t){Uu(e,e.return,t)}}function Vc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Hc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Vc(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.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vt));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function Wc(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&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}function Gc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[Je]=e,t[Ye]=n}catch(t){Uu(e,e.return,t)}}var Kc=!1,qc=!1,Jc=!1,Yc=typeof WeakSet==`function`?WeakSet:Set,Xc=null;function Zc(e,t){if(e=e.containerInfo,zd=cp,e=pr(e),mr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,Xc=t;Xc!==null;)if(t=Xc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Xc=e;else for(;Xc!==null;){switch(t=Xc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Fd(o,r,n),o[Je]=e,st(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=dr(s,h),v=dr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,N.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Ml&6)throw Error(i(331));var c=Ml;if(Ml|=4,Dl(o.current),yl(o,o.current,s,n),Ml=c,rd(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot==`function`)try{Ce.onPostCommitFiberRoot(Se,o)}catch(e){}return!0}finally{P.p=a,N.T=r,zu(e,t)}}function Hu(e,t,n){t=oi(n,t),t=Us(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(Re(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=oi(n,e),n=Ws(2),r=Na(t,n,2),r!==null&&(Gs(n,r,t,e),Re(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Nl===e&&(Fl&n)===n&&(Hl===4||Hl===3&&(Fl&62914560)===Fl&&300>ge()-Zl?!(Ml&2)&&bu(e,0):Gl|=n,ql===Fl&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=Ie()),e=Gr(e,t),e!==null&&(Re(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return pe(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Te(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Fl,a=Ne(r,r===Nl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Pe(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Kd()&&(e=td);for(var t=ge(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Et(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),st(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Et(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Et(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Et(n.imageSizes)+`"]`)):i+=`[href="`+Et(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),st(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Et(r)+`"][href="`+Et(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),st(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=ot(r).hoistableStyles,a=jf(e);t=t||`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);st(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=U.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Et(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),st(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Et(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Et(n.href)+`"]`);if(r)return t.instance=r,st(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),st(r),Fd(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,st(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),st(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,st(a),a):(r=n,(a=hf.get(o))&&(r=f({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),st(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,st(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),st(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Wr()})),Kr=u(Gr()),qr=e=>{let t=J.useRef(e);return t.current=e,J.useCallback((...e)=>{var n;return(n=t.current)==null?void 0:n.call(t,...e)},[])};function Jr(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var Yr=Jr()?J.useLayoutEffect:J.useEffect,Xr=(e,t)=>{let n=J.useRef(!0);Yr(()=>e(n.current),t),Yr(()=>(n.current=!1,()=>{n.current=!0}),[])},Zr=(e,t)=>{Xr(t=>{if(!t)return e()},t)},Qr=e=>{let t=J.useRef(!1),[n,r]=J.useState(e);J.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(e,n){n&&t.current||r(e)}return[n,i]};function $r(e,t){let[n,r]=(0,J.useState)(e),i=t===void 0?n:t;return Xr(e=>{e||r(t)},[t]),[i,r]}K();function ei(){return G({},J).useId}var ti=0;function ni(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,`-`)}`}var ri=ei(),ii=ri?function(e){let t=ri();return e||t}:function(e){let[t,n]=J.useState(`ssr-id`);return J.useEffect(()=>{let e=ti;ti+=1,n(`rc_unique_${e}`)},[]),e||t};function ai(e,t,n){let r=J.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function oi(e){let[,t]=J.useReducer(e=>e+1,0),n=J.useRef(e);return[qr(()=>n.current),qr(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var si=s((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ForwardRef=l,e.isMemo=function(e){return m(e)===f}})),ci=s(((e,t)=>{t.exports=si()}))(),li=Symbol.for(`react.element`),ui=Symbol.for(`react.transitional.element`),di=Symbol.for(`react.fragment`);function fi(e){return e&&typeof e==`object`&&(e.$$typeof===li||e.$$typeof===ui)&&e.type===di}var pi=Number(J.version.split(`.`)[0]),mi=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},hi=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{mi(e,t)})}},gi=(...e)=>ai(()=>hi(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),_i=e=>{var t,n;if(!e)return!1;if(vi(e)&&pi>=19)return!0;let r=(0,ci.isMemo)(e)?e.type.type:e.type;return!(typeof r==`function`&&!((t=r.prototype)!=null&&t.render)&&r.$$typeof!==ci.ForwardRef||typeof e==`function`&&!((n=e.prototype)!=null&&n.render)&&e.$$typeof!==ci.ForwardRef)};function vi(e){return(0,J.isValidElement)(e)&&!fi(e)}var yi=e=>vi(e)&&_i(e),bi=e=>{if(e&&vi(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function xi(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}K();var Si=`data-rc-order`,Ci=`data-rc-priority`,wi=`rc-util-key`,Ti=new Map;function Ei({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:wi}function Di(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Oi(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function ki(e){return Array.from((Ti.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function Ai(e,t={}){if(!Jr())return null;let{csp:n,prepend:r,priority:i=0}=t,a=Oi(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(Si,a),o&&i&&s.setAttribute(Ci,`${i}`),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;let c=Di(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||ki(c)).filter(e=>{if(![`prepend`,`prependQueue`].includes(e.getAttribute(Si)))return!1;let t=Number(e.getAttribute(Ci)||0);return i>=t});if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function ji(e,t={}){let{styles:n}=t;return n||(n=ki(Di(t))),n.find(n=>n.getAttribute(Ei(t))===e)}function Mi(e,t={}){let n=ji(e,t);n&&Di(t).removeChild(n)}function Ni(e,t){let n=Ti.get(e);if(!n||!xi(document,n)){let n=Ai(``,t),{parentNode:r}=n;Ti.set(e,r),e.removeChild(n)}}function Pi(e,t,n={}){let r=Di(n),i=ki(r),a=G(G({},n),{},{styles:i});Ni(r,a);let o=ji(t,a);if(o){var s,c;if((s=a.csp)!=null&&s.nonce&&o.nonce!==((c=a.csp)==null?void 0:c.nonce)){var l;o.nonce=(l=a.csp)==null?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}let u=Ai(e,a);return u.setAttribute(Ei(a),t),u}function Fi(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ii(e){return e&&typeof e==`object`&&Fi(e.nativeElement)?e.nativeElement:Fi(e)?e:null}var Li=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function Ri(e,t=!1){if(Li(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function zi(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>Ri(e,t));return Ri(e,t)&&n.unshift(e),n}function Bi(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var Vi=null,Hi=[],Ui=new Map,Wi=new Map;function Gi(){return Hi[Hi.length-1]}function Ki(e){let t=Gi();if(e&&t){let n;for(let[e,r]of Ui.entries())if(r===t){n=e;break}let r=Wi.get(n);return!!r&&(r===e||r.contains(e))}return!1}function qi(e){let{activeElement:t}=document;return e===t||e.contains(t)}function Ji(){let e=Gi(),{activeElement:t}=document;if(!Ki(t))if(e&&!qi(e)){let t=zi(e),n=t.includes(Vi)?Vi:t[0];n==null||n.focus({preventScroll:!0})}else Vi=t}function Yi(e){if(e.key===`Tab`){let{activeElement:t}=document,n=zi(Gi()),r=n[n.length-1];e.shiftKey&&t===n[0]?Vi=r:!e.shiftKey&&t===r&&(Vi=n[0])}}function Xi(e,t){return e&&(Ui.set(t,e),Hi=Hi.filter(t=>t!==e),Hi.push(e),window.addEventListener(`focusin`,Ji),window.addEventListener(`keydown`,Yi,!0),Ji()),()=>{Vi=null,Hi=Hi.filter(t=>t!==e),Ui.delete(t),Wi.delete(t),Hi.length===0&&(window.removeEventListener(`focusin`,Ji),window.removeEventListener(`keydown`,Yi,!0))}}function Zi(e,t){let n=(0,J.useRef)(0),[r,i]=(0,J.useState)(0);(0,J.useEffect)(()=>{n.current=0},t),(0,J.useEffect)(()=>{let[t,r]=e(n.current);return r||(n.current+=1,i(e=>e+1)),t},[...t,r])}function Qi(e,t){let n=ii(),r=(0,J.useRef)(t);return r.current=t,Zi(t=>{if(!e)return[void 0,!0];let i=r.current();return i?[Xi(i,n),!0]:[void 0,t>=1]},[n,e]),[e=>{e&&Wi.set(n,e)}]}function $i(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}function ea(e){return $i(e)instanceof ShadowRoot}function ta(e){return ea(e)?$i(e):null}var na=e=>{if(Jr()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},ra=(e,t)=>{if(!na(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function ia(e,t){return!Array.isArray(e)&&t!==void 0?ra(e,t):na(e)}var aa={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=aa.F1&&t<=aa.F12)return!1;switch(t){case aa.ALT:case aa.CAPS_LOCK:case aa.CONTEXT_MENU:case aa.CTRL:case aa.DOWN:case aa.END:case aa.ESC:case aa.HOME:case aa.INSERT:case aa.LEFT:case aa.MAC_FF_META:case aa.META:case aa.NUMLOCK:case aa.NUM_CENTER:case aa.PAGE_DOWN:case aa.PAGE_UP:case aa.PAUSE:case aa.PRINT_SCREEN:case aa.RIGHT:case aa.SHIFT:case aa.UP:case aa.WIN_KEY:case aa.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=aa.ZERO&&e<=aa.NINE||e>=aa.NUM_ZERO&&e<=aa.NUM_MULTIPLY||e>=aa.A&&e<=aa.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case aa.SPACE:case aa.QUESTION_MARK:case aa.NUM_PLUS:case aa.NUM_MINUS:case aa.NUM_PERIOD:case aa.NUM_DIVISION:case aa.SEMICOLON:case aa.DASH:case aa.EQUALS:case aa.COMMA:case aa.PERIOD:case aa.SLASH:case aa.APOSTROPHE:case aa.SINGLE_QUOTE:case aa.OPEN_SQUARE_BRACKET:case aa.BACKSLASH:case aa.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;let n=t.tagName;return!!(n===`INPUT`||n===`TEXTAREA`||n===`SELECT`||t.isContentEditable)}},oa;function sa(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;let r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;let i,a;if(e){let n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;let o=getComputedStyle(e,`::-webkit-scrollbar`),s=parseInt(o.width,10),c=parseInt(o.height,10);try{Pi(` #${t}::-webkit-scrollbar { -${d} -${A} -}`,t)}catch(d){console.error(d),i=u,o=f}}document.body.appendChild(n);const a=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&o&&!Number.isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),HS(t),{width:a,height:s}}function Eee(e){return typeof document=="undefined"?0:(F6===void 0&&(F6=See()),F6.width)}function k6(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:See(e)}let D6={};const YIe=e=>{};function XIe(e,t){}function ZIe(e,t){}function JIe(){D6={}}function Bee(e,t,n){!t&&!D6[n]&&(e(!1,n),D6[n]=!0)}function ao(e,t){Bee(XIe,e,t)}function eRe(e,t){Bee(ZIe,e,t)}ao.preMessage=YIe,ao.resetWarned=JIe,ao.noteOnce=eRe;function uu(e,t,n=!1){const r=new Set;function i(o,a,s=1){const l=r.has(o);if(ao(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);const c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(let u=0;ui(o[f],a[f],c))}return!1}return i(e,t)}var US={exports:{}},Oee;function tRe(){if(Oee)return US.exports;Oee=1,US.exports=r,US.exports.isMobile=r,US.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(i){i||(i={});let o=i.ua;if(!o&&typeof navigator!="undefined"&&(o=navigator.userAgent),o&&o.headers&&typeof o.headers["user-agent"]=="string"&&(o=o.headers["user-agent"]),typeof o!="string")return!1;let a=e.test(o)&&!t.test(o)||!!i.tablet&&n.test(o);return!a&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&o.indexOf("Macintosh")!==-1&&o.indexOf("Safari")!==-1&&(a=!0),a}return US.exports}var nRe=tRe();const rRe=_t(nRe);let H6;const iRe=()=>(typeof H6=="undefined"&&(H6=rRe()),H6);function ti(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}const oRe=`accept acceptCharset accessKey action allowFullScreen allowTransparency +${s?`width: ${o.width};`:``} +${c?`height: ${o.height};`:``} +}`,t)}catch(e){console.error(e),i=s,a=c}}document.body.appendChild(n);let o=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Mi(t),{width:o,height:s}}function ca(e){return typeof document>`u`?0:((e||oa===void 0)&&(oa=sa()),oa.width)}function la(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:sa(e)}var ua={},da=[],fa=e=>{da.push(e)};function pa(e,t){}function ma(e,t){}function ha(){ua={}}function ga(e,t,n){!t&&!ua[n]&&(e(!1,n),ua[n]=!0)}function _a(e,t){ga(pa,e,t)}function va(e,t){ga(ma,e,t)}_a.preMessage=fa,_a.resetWarned=ha,_a.noteOnce=va;function ya(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(_a(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;ni(e[n],t[n],s))}return!1}return i(e,t)}var ba=u(s(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),xa,Sa=()=>(xa===void 0&&(xa=(0,ba.default)()),xa);function Ca(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}K();var wa=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -27,13 +27,12 @@ ${A} onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),aRe="aria-",sRe="data-";function $ee(e,t){return e.indexOf(t)===0}function Co(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=I({},t);const r={};return Object.keys(e).forEach(i=>{(n.aria&&(i==="role"||$ee(i,aRe))||n.data&&$ee(i,sRe)||n.attr&&oRe.includes(i))&&(r[i]=e[i])}),r}function lRe(e,t){return typeof Proxy!="undefined"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const i=n[r];return typeof i=="function"?i.bind(n):i}}):e}let _ee=e=>+setTimeout(e,16),Tee=e=>clearTimeout(e);typeof window!="undefined"&&"requestAnimationFrame"in window&&(_ee=e=>window.requestAnimationFrame(e),Tee=e=>window.cancelAnimationFrame(e));let Mee=0;const U6=new Map;function Iee(e){U6.delete(e)}const Kn=(e,t=1)=>{Mee+=1;const n=Mee;function r(i){if(i===0)Iee(n),e();else{const o=_ee(()=>{r(i-1)});U6.set(n,o)}}return r(t),n};Kn.cancel=e=>{const t=U6.get(e);return Iee(e),Tee(t)};function pa(e,t={}){let n=[];return Be.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(pa(r)):dee(r)&&r.props?n=n.concat(pa(r.props.children,t)):n.push(r))}),n}function gb(...e){const t={};for(const n of e)if(n)for(const r of Object.keys(n))n[r]!==void 0&&(t[r]=n[r]);return t}function ol(e,t){let n=e;for(let r=0;r[]);let i=Nee(e[0]);return e.forEach(o=>{function a(s,l){const c=new Set(l),u=ol(o,s),f=Array.isArray(u);if(f||cRe(u)){if(!c.has(u)){c.add(u);const d=ol(i,s);f?i=Fc(i,s,r(d,u)):(!d||typeof d!="object")&&(i=Fc(i,s,Nee(u))),uRe(u).forEach(A=>{Object.getOwnPropertyDescriptor(u,A).enumerable&&a([...s,A],c)})}}else i=Fc(i,s,u)}a([])}),i}function Mg(...e){return fRe(e)}const UT="__rc_react_root__";function j6(e,t){const n=t[UT]||x6.createRoot(t);n.render(e),t[UT]=n}function Pee(e){return Er(this,null,function*(){return Promise.resolve().then(()=>{var t;(t=e[UT])==null||t.unmount(),delete e[UT]})})}var fu=nee();const dRe=Pn({__proto__:null,default:_t(fu)},[fu]);function ARe(){}const hRe=g.createContext({}),Ig=()=>{const e=()=>{};return e.deprecated=ARe,e},z6=g.createContext(null);function pRe({children:e,onBatchResize:t}){const n=g.useRef(0),r=g.useRef([]),i=g.useContext(z6),o=g.useCallback((a,s,l)=>{n.current+=1;const c=n.current;r.current.push({size:a,element:s,data:l}),Promise.resolve().then(()=>{c===n.current&&(t==null||t(r.current),r.current=[])}),i==null||i(a,s,l)},[t,i]);return g.createElement(z6.Provider,{value:o},e)}const Rg=new Map;function gRe(e){e.forEach(t=>{var r;const{target:n}=t;(r=Rg.get(n))==null||r.forEach(i=>i(n))})}let Q6;function Lee(){return Q6||(Q6=new ResizeObserver(gRe)),Q6}function mRe(e,t){Rg.has(e)||(Rg.set(e,new Set),Lee().observe(e)),Rg.get(e).add(t)}function vRe(e,t){Rg.has(e)&&(Rg.get(e).delete(t),Rg.get(e).size||(Lee().unobserve(e),Rg.delete(e)))}function Fee(e,t,n,r){const i=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),o=yn(l=>{const{width:c,height:u}=l.getBoundingClientRect(),{offsetWidth:f,offsetHeight:d}=l,A=Math.floor(c),h=Math.floor(u);if(i.current.width!==A||i.current.height!==h||i.current.offsetWidth!==f||i.current.offsetHeight!==d){const p={width:A,height:h,offsetWidth:f,offsetHeight:d};i.current=p;const v=f===Math.round(c)?c:f,y=d===Math.round(u)?u:d,b=te(I({},p),{offsetWidth:v,offsetHeight:y});r==null||r(b,l),Promise.resolve().then(()=>{n==null||n(b,l)})}}),a=typeof t=="function",s=g.useRef(0);g.useEffect(()=>{const l=a?t():t;return l&&e?mRe(l,o):e&&a&&(s.current+=1),()=>{l&&vRe(l,o)}},[e,a?s.current:t])}function yRe(e,t){const{children:n,disabled:r,onResize:i,data:o}=e,a=g.useRef(null),s=g.useContext(z6),l=typeof n=="function",c=l?n(a):n,u=!l&&g.isValidElement(c)&&Vh(c),f=u?cA(c):null,d=ed(f,a),A=()=>td(a.current);return g.useImperativeHandle(t,()=>A()),Fee(!r,A,i,(h,p)=>{s==null||s(h,p,o)}),u?g.cloneElement(c,{ref:d}):c}const bRe=g.forwardRef(yRe);function V6(){return V6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=(i==null?void 0:i.key)||`${xRe}-${o}`;return g.createElement(bRe,V6({},e,{key:a,ref:o===0?t:void 0}),i)})}const Bl=g.forwardRef(wRe);Bl.Collection=pRe;function kee(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);nt||(e?`${jS}-${e}`:jS),Un=g.createContext({getPrefixCls:ORe,iconPrefixCls:zT}),{Consumer:UUt}=Un,Dee={};function or(e){const t=g.useContext(Un),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:o}=t,a=t[e];return te(I({classNames:Dee,styles:Dee},a),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:o})}function zS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const $Re="%";function W6(e){return e.join($Re)}let Hee=0;class _Re{constructor(t){ke(this,"instanceId");ke(this,"cache",new Map);ke(this,"updateTimes",new Map);ke(this,"extracted",new Set);this.instanceId=t}get(t){return this.opGet(W6(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(W6(t),n)}opUpdate(t,n){const r=this.cache.get(t),i=n(r);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,Hee),Hee+=1)}}const G6="data-token-hash",Kh="data-css-hash",Wh="__cssinjs_instance__";function TRe(){const e=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Kh}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(i=>{i[Wh]||(i[Wh]=e),i[Wh]===e&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${Kh}]`)).forEach(i=>{var a;const o=i.getAttribute(Kh);r[o]?i[Wh]===e&&((a=i.parentNode)==null||a.removeChild(i)):r[o]=!0})}return new _Re(e)}const QS=g.createContext({hashPriority:"low",cache:TRe(),defaultCache:!0,autoPrefix:!1});function MRe(e,t){if(e.length!==t.length)return!1;for(let n=0;n{var o;r?r=(o=r==null?void 0:r.map)==null?void 0:o.get(i):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>dC.MAX_CACHE_SIZE+dC.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((o,a)=>{const[,s]=o;return this.internalGet(a)[1]{if(o===t.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const a=r.get(i);a?a.map||(a.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)==null?void 0:o[0];const i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!MRe(n,t)),this.deleteByPath(this.cache,t)}};ke(dC,"MAX_CACHE_SIZE",20),ke(dC,"MAX_CACHE_OFFSET",5);let q6=dC,Uee=0,jee=class{constructor(t){ke(this,"derivatives");ke(this,"id");this.derivatives=Array.isArray(t)?t:[t],this.id=Uee,t.length===0&&(t.length>0,void 0),Uee+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}};const Y6=new q6;function QT(e){const t=Array.isArray(e)?e:[e];return Y6.has(t)||Y6.set(t,new jee(t)),Y6.get(t)}const IRe=new WeakMap,X6={};function RRe(e,t){let n=IRe;for(let r=0;r{const r=e[n];t+=n,r instanceof jee?t+=r.id:r&&typeof r=="object"?t+=VS(r):t+=r}),t=zS(t),zee.set(e,t)),t}function NRe(e,t){return zS(`${t}_${VS(e)}`)}const Z6=ac();function be(e){return typeof e=="number"?`${e}px`:e}function Qee(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const PRe=e=>e!=null;function J6(e,t){const n=typeof t=="function"?t():t;return n?te(I({},e),{csp:te(I({},e.csp),{nonce:n})}):e}const VT=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),LRe=(e,t,n)=>{const{hashCls:r,hashPriority:i="low",scope:o}=n||{};if(!Object.keys(e).length)return"";const a=`${Qee({hashCls:r,hashPriority:i})}.${t}`,s=[o].flat().filter(Boolean);return`${s.length?s.map(c=>`${a}.${c}`).join(", "):a}{${Object.entries(e).map(([c,u])=>`${c}:${u};`).join("")}}`},Vee=(e,t,n)=>{const{hashCls:r,hashPriority:i="low",prefix:o,unitless:a,ignore:s,preserve:l}=n||{},c={},u={};return Object.entries(e).forEach(([f,d])=>{if(l!=null&&l[f])u[f]=d;else if((typeof d=="string"||typeof d=="number")&&!(s!=null&&s[f])){const A=VT(f,o);c[A]=typeof d=="number"&&!(a!=null&&a[f])?`${d}px`:String(d),u[f]=`var(${A})`}}),[u,LRe(c,t,{scope:n==null?void 0:n.scope,hashCls:r,hashPriority:i})]},KT=new Map;function eD(e,t,n,r,i){const{cache:o}=g.useContext(QS),a=[e,...t],s=W6(a),l=f=>{o.opUpdate(s,d=>{const[A=0,h]=d||[void 0,void 0],v=h||n(),y=[A,v];return f?f(y):y})};g.useMemo(()=>{l()},[s]);const u=o.opGet(s)[1];return g.useInsertionEffect(()=>(l(([f,d])=>[f+1,d]),KT.has(s)||(i==null||i(u),KT.set(s,!0),Promise.resolve().then(()=>{KT.delete(s)})),()=>{o.opUpdate(s,f=>{const[d=0,A]=f||[];return d-1===0?(r==null||r(A,!1),KT.delete(s),null):[d-1,A]})}),[s]),u}const FRe={},kRe="css",fv=new Map;function DRe(e){fv.set(e,(fv.get(e)||0)+1)}function HRe(e,t){typeof document!="undefined"&&document.querySelectorAll(`style[${G6}="${e}"]`).forEach(r=>{var i;r[Wh]===t&&((i=r.parentNode)==null||i.removeChild(r))})}const URe=-1;function jRe(e,t){fv.set(e,(fv.get(e)||0)-1);const n=new Set;fv.forEach((r,i)=>{r<=0&&n.add(i)}),fv.size-n.size>URe&&n.forEach(r=>{HRe(r,t),fv.delete(r)})}const Kee=(e,t,n,r)=>{const i=n.getDerivativeToken(e);let o=I(I({},i),t);return r&&(o=r(o)),o},zRe="token";function QRe(e,t,n){const{cache:{instanceId:r},container:i,hashPriority:o}=g.useContext(QS),{salt:a="",override:s=FRe,formatToken:l,getComputedToken:c,cssVar:u,nonce:f}=n,d=RRe(()=>Object.assign({},...t),t),A=VS(d),h=VS(s),p=VS(u);return eD(zRe,[a,e.id,A,h,p],()=>{const y=c?c(d,s,e):Kee(d,s,e,l),b=I({},y),x=`${a}_${u.prefix}`,C=zS(x),S=`${kRe}-${C}`;b._tokenKey=NRe(b,x);const[B,E]=Vee(y,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:o,hashCls:u.hashed?S:void 0});return B._hashId=C,DRe(u.key),[B,S,b,E,u.key]},([,,,,y])=>{jRe(y,r)},([,,,y,b])=>{if(!y)return;let x={mark:Kh,prepend:"queue",attachTo:i,priority:-999};x=J6(x,f);const C=uv(y,zS(`css-var-${b}`),x);C[Wh]=r,C.setAttribute(G6,b)})}var VRe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vo="-ms-",KS="-moz-",Hi="-webkit-",Wee="comm",tD="rule",nD="decl",KRe="@import",WRe="@namespace",Gee="@keyframes",GRe="@layer",qRe=Math.abs,WS=String.fromCharCode,rD=Object.assign;function YRe(e,t){return Bs(e,0)^45?(((t<<2^Bs(e,0))<<2^Bs(e,1))<<2^Bs(e,2))<<2^Bs(e,3):0}function qee(e){return e.trim()}function Gh(e,t){return(e=t.exec(e))?e[0]:e}function ni(e,t,n){return e.replace(t,n)}function iD(e,t){return e.indexOf(t)}function Bs(e,t){return e.charCodeAt(t)|0}function dv(e,t,n){return e.slice(t,n)}function nd(e){return e.length}function Yee(e){return e.length}function GS(e,t){return t.push(e),e}function XRe(e,t){return e.map(t).join("")}function Xee(e,t){return e.filter(function(n){return!Gh(n,t)})}var WT=1,mb=1,Zee=0,Ku=0,cs=0,vb="";function GT(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:WT,column:mb,length:a,return:"",siblings:s}}function Ng(e,t){return rD(GT("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function yb(e){for(;e.root;)e=Ng(e.root,{children:[e]});GS(e,e.siblings)}function ZRe(){return cs}function JRe(){return cs=Ku>0?Bs(vb,--Ku):0,mb--,cs===10&&(mb=1,WT--),cs}function rd(){return cs=Ku2||qS(cs)>3?"":" "}function r3e(e,t){for(;--t&&rd()&&!(cs<48||cs>102||cs>57&&cs<65||cs>70&&cs<97););return YT(e,qT()+(t<6&&Pg()==32&&rd()==32))}function aD(e){for(;rd();)switch(cs){case e:return Ku;case 34:case 39:e!==34&&e!==39&&aD(cs);break;case 40:e===41&&aD(e);break;case 92:rd();break}return Ku}function i3e(e,t){for(;rd()&&e+cs!==57;)if(e+cs===84&&Pg()===47)break;return"/*"+YT(t,Ku-1)+"*"+WS(e===47?e:rd())}function o3e(e){for(;!qS(Pg());)rd();return YT(e,Ku)}function Jee(e){return t3e(XT("",null,null,null,[""],e=e3e(e),0,[0],e))}function XT(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,f=a,d=0,A=0,h=0,p=1,v=1,y=1,b=0,x=0,C="",S=i,B=o,E=r,_=C;v;)switch(h=x,x=rd()){case 40:h!=108&&Bs(_,f-1)==58?(b++,_+="("):_+=oD(x);break;case 41:b--,_+=")";break;case 34:case 39:case 91:_+=oD(x);break;case 9:case 10:case 13:case 32:if(b>0){_+=WS(x);break}_+=n3e(h);break;case 92:_+=r3e(qT()-1,7);continue;case 47:switch(Pg()){case 42:case 47:GS(a3e(i3e(rd(),qT()),t,n,l),l),(qS(h||1)==5||qS(Pg()||1)==5)&&nd(_)&&dv(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*p:s[c++]=nd(_)*y;case 125*p:case 59:case 0:if(b>0&&x){_+=WS(x);break}switch(x){case 0:case 125:v=0;case 59+u:y==-1&&(_=ni(_,/\f/g,"")),A>0&&(nd(_)-f||p===0)&&GS(A>32?tte(_+";",r,n,f-1,l):tte(ni(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(GS(E=ete(_,t,n,c,u,i,s,C,S=[],B=[],f,o),o),x===123)if(u===0)XT(_,t,E,E,S,o,f,s,B);else{switch(d){case 99:if(Bs(_,3)===110)break;case 108:if(Bs(_,2)===97)break;default:u=0;case 100:case 109:case 115:}u?XT(e,E,E,r&&GS(ete(e,E,E,0,0,i,s,C,i,S=[],f,B),B),i,B,f,s,r?S:B):XT(_,E,E,E,[""],B,0,s,B)}}c=u=A=0,p=y=1,C=_="",f=a;break;case 58:f=1+nd(_),A=h;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&JRe()==125)continue}switch(_+=WS(x),x*p){case 38:y=u>0?1:(_+="\f",-1);break;case 44:if(b>0)break;s[c++]=(nd(_)-1)*y,y=1;break;case 64:Pg()===45&&(_+=oD(rd())),d=Pg(),u=f=nd(C=_+=o3e(qT())),x++;break;case 45:h===45&&nd(_)==2&&(p=0)}}return o}function ete(e,t,n,r,i,o,a,s,l,c,u,f){for(var d=i-1,A=i===0?o:[""],h=Yee(A),p=0,v=0,y=0;p0?A[b]+" "+x:ni(x,/&\f/g,A[b])))&&(l[y++]=C);return GT(e,t,n,i===0?tD:s,l,c,u,f)}function a3e(e,t,n,r){return GT(e,t,n,Wee,WS(ZRe()),dv(e,2,-2),0,r)}function tte(e,t,n,r,i){return GT(e,t,n,nD,dv(e,0,r),dv(e,r+1,-1),r,i)}function nte(e,t,n){switch(YRe(e,t)){case 5103:return Hi+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Hi+e+e;case 4855:return Hi+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return KS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hi+e+KS+e+Vo+e+e;case 5936:switch(Bs(e,t+11)){case 114:return Hi+e+Vo+ni(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hi+e+Vo+ni(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hi+e+Vo+ni(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Hi+e+Vo+e+e;case 6165:return Hi+e+Vo+"flex-"+e+e;case 5187:return Hi+e+ni(e,/(\w+).+(:[^]+)/,Hi+"box-$1$2"+Vo+"flex-$1$2")+e;case 5443:return Hi+e+Vo+"flex-item-"+ni(e,/flex-|-self/g,"")+(Gh(e,/flex-|baseline/)?"":Vo+"grid-row-"+ni(e,/flex-|-self/g,""))+e;case 4675:return Hi+e+Vo+"flex-line-pack"+ni(e,/align-content|flex-|-self/g,"")+e;case 5548:return Hi+e+Vo+ni(e,"shrink","negative")+e;case 5292:return Hi+e+Vo+ni(e,"basis","preferred-size")+e;case 6060:return Hi+"box-"+ni(e,"-grow","")+Hi+e+Vo+ni(e,"grow","positive")+e;case 4554:return Hi+ni(e,/([^-])(transform)/g,"$1"+Hi+"$2")+e;case 6187:return ni(ni(ni(e,/(zoom-|grab)/,Hi+"$1"),/(image-set)/,Hi+"$1"),e,"")+e;case 5495:case 3959:return ni(e,/(image-set\([^]*)/,Hi+"$1$`$1");case 4968:return ni(ni(e,/(.+:)(flex-)?(.*)/,Hi+"box-pack:$3"+Vo+"flex-pack:$3"),/space-between/,"justify")+Hi+e+e;case 4200:if(!Gh(e,/flex-|baseline/))return Vo+"grid-column-align"+dv(e,t)+e;break;case 2592:case 3360:return Vo+ni(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Gh(r.props,/grid-\w+-end/)})?~iD(e+(n=n[t].value),"span")?e:Vo+ni(e,"-start","")+e+Vo+"grid-row-span:"+(~iD(n,"span")?Gh(n,/\d+/):+Gh(n,/\d+/)-+Gh(e,/\d+/))+";":Vo+ni(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Gh(r.props,/grid-\w+-start/)})?e:Vo+ni(ni(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ni(e,/(.+)-inline(.+)/,Hi+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nd(e)-1-t>6)switch(Bs(e,t+1)){case 109:if(Bs(e,t+4)!==45)break;case 102:return ni(e,/(.+:)(.+)-([^]+)/,"$1"+Hi+"$2-$3$1"+KS+(Bs(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iD(e,"stretch")?nte(ni(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ni(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return Vo+i+":"+o+c+(a?Vo+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(Bs(e,t+6)===121)return ni(e,":",":"+Hi)+e;break;case 6444:switch(Bs(e,Bs(e,14)===45?18:11)){case 120:return ni(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Hi+(Bs(e,14)===45?"inline-":"")+"box$3$1"+Hi+"$2$3$1"+Vo+"$2box$3")+e;case 100:return ni(e,":",":"+Vo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ni(e,"scroll-","scroll-snap-")+e}return e}function YS(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case nD:e.return=nte(e.value,e.length,n);return;case Gee:return YS([Ng(e,{value:ni(e.value,"@","@"+Hi)})],r);case tD:if(e.length)return XRe(n=e.props,function(i){switch(Gh(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":yb(Ng(e,{props:[ni(i,/:(read-\w+)/,":"+KS+"$1")]})),yb(Ng(e,{props:[i]})),rD(e,{props:Xee(n,r)});break;case"::placeholder":yb(Ng(e,{props:[ni(i,/:(plac\w+)/,":"+Hi+"input-$1")]})),yb(Ng(e,{props:[ni(i,/:(plac\w+)/,":"+KS+"$1")]})),yb(Ng(e,{props:[ni(i,/:(plac\w+)/,Vo+"input-$1")]})),yb(Ng(e,{props:[i]})),rD(e,{props:Xee(n,r)});break}return""})}}const ite="data-ant-cssinjs-cache-path",ote="_FILE_STYLE__";let Av,ate=!0;function c3e(){var e;if(!Av&&(Av={},ac())){const t=document.createElement("div");t.className=ite,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(i=>{const[o,a]=i.split(":");Av[o]=a});const r=document.querySelector(`style[${ite}]`);r&&(ate=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function u3e(e){return c3e(),!!Av[e]}function f3e(e){const t=Av[e];let n=null;if(t&&ac())if(ate)n=ote;else{const r=document.querySelector(`style[${Kh}="${Av[e]}"]`);r?n=r.innerHTML:delete Av[e]}return[n,t]}const d3e="_skip_check_",ste="_multi_value_";function sD(e,t){return(t?YS(Jee(e),s3e([l3e,rte])):YS(Jee(e),rte)).replace(/\{%%%\:[^;];}/g,";")}function A3e(e){return typeof e=="object"&&e&&(d3e in e||ste in e)}function lte(e,t,n="high"){if(!t)return e;const r=Qee({hashCls:t,hashPriority:n});return e.split(",").map(o=>{var c;const a=o.trim().split(/\s+/);let s=a[0]||"";const l=((c=s.match(/^\w+/))==null?void 0:c[0])||"";return s=`${l}${r}${s.slice(l.length)}`,[s,...a.slice(1)].join(" ")}).join(",")}const lD=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:o,layer:a,path:s,hashPriority:l,transformers:c=[],linters:u=[]}=t;let f="",d={};function A(v){const y=v.getName(o);if(!d[y]){const[b]=lD(v.style,t,{root:!1,parentSelectors:i});d[y]=`@keyframes ${v.getName(o)}${b}`}}function h(v,y=[]){return v.forEach(b=>{Array.isArray(b)?h(b,y):b&&y.push(b)}),y}return h(Array.isArray(e)?e:[e]).forEach(v=>{const y=typeof v=="string"&&!n?{}:v;if(typeof y=="string")f+=`${y} -`;else if(y._keyframe)A(y);else{const b=c.reduce((x,C)=>{var S;return((S=C==null?void 0:C.visit)==null?void 0:S.call(C,x))||x},y);Object.keys(b).forEach(x=>{var S;const C=b[x];if(typeof C=="object"&&C&&(x!=="animationName"||!C._keyframe)&&!A3e(C)){let B=!1,E=x.trim(),_=!1;(n||r)&&o?E.startsWith("@")?B=!0:E==="&"?E=lte("",o,l):E=lte(x,o,l):n&&!o&&(E==="&"||E==="")&&(E="",_=!0);const[M,R]=lD(C,t,{root:_,injectHash:B,parentSelectors:[...i,E]});d=I(I({},d),R),f+=`${E}${M}`}else{let B=function(_,M){const R=_.replace(/[A-Z]/g,L=>`-${L.toLowerCase()}`);let T=M;!VRe[_]&&typeof T=="number"&&T!==0&&(T=`${T}px`),_==="animationName"&&(M!=null&&M._keyframe)&&(A(M),T=M.getName(o)),f+=`${R}:${T};`};const E=(S=C==null?void 0:C.value)!=null?S:C;typeof C=="object"&&(C!=null&&C[ste])&&Array.isArray(E)?E.forEach(_=>{B(x,_)}):PRe(E)&&B(x,E)}})}}),n?a&&(f&&(f=`@layer ${a.name} {${f}}`),a.dependencies&&(d[`@layer ${a.name}`]=a.dependencies.map(v=>`@layer ${v}, ${a.name};`).join(` -`))):f=`{${f}}`,[f,d]};function cte(e,t){return zS(`${e.join("%")}${t}`)}const h3e="style";function cD(e,t){const{path:n,hashId:r,layer:i,nonce:o,clientOnly:a,order:s=0}=e,{mock:l,hashPriority:c,container:u,transformers:f,linters:d,cache:A,layer:h,autoPrefix:p}=g.useContext(QS),v=[r||""];h&&v.push("layer"),v.push(...n);let y=Z6;eD(h3e,v,()=>{const b=v.join("|");if(u3e(b)){const[_,M]=f3e(b);if(_)return[_,M,{},a,s]}const x=t(),[C,S]=lD(x,{hashId:r,hashPriority:c,layer:h?i:void 0,path:n.join("-"),transformers:f,linters:d}),B=sD(C,p||!1),E=cte(v,B);return[B,E,S,a,s]},(b,x)=>{const[,C]=b;x&&Z6&&HS(C,{mark:Kh,attachTo:u})},b=>{const[x,C,S,,B]=b;if(y&&x!==ote){let E={mark:Kh,prepend:h?!1:"queue",attachTo:u,priority:B};E=J6(E,o);const _=[],M=[];Object.keys(S).forEach(T=>{T.startsWith("@layer")?_.push(T):M.push(T)}),_.forEach(T=>{uv(sD(S[T],p||!1),`_layer-${T}`,te(I({},E),{prepend:!0}))});const R=uv(x,C,E);R[Wh]=A.instanceId,M.forEach(T=>{uv(sD(S[T],p||!1),`_effect-${T}`,E)})}})}const p3e="cssVar",g3e=(e,t)=>{const{key:n,prefix:r,unitless:i,ignore:o,token:a,hashId:s,scope:l,nonce:c}=e,{cache:{instanceId:u},container:f,hashPriority:d}=g.useContext(QS),{_tokenKey:A}=a,h=Array.isArray(l)?l.join("@@"):l,p=[...e.path,n,h,A];return eD(p3e,p,()=>{const y=t(),[b,x]=Vee(y,n,{prefix:r,unitless:i,ignore:o,scope:l,hashPriority:d,hashCls:s}),C=cte(p,x);return[b,x,C,n]},([,,y])=>{Z6&&HS(y,{mark:Kh,attachTo:f})},([,y,b])=>{if(!y)return;let x={mark:Kh,prepend:"queue",attachTo:f,priority:-999};x=J6(x,c);const C=uv(y,b,x);C[Wh]=u,C.setAttribute(G6,n)})};class Xr{constructor(t,n){ke(this,"name");ke(this,"style");ke(this,"_keyframe",!0);this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function bb(e){return e.notSplit=!0,e}bb(["borderTop","borderBottom"]),bb(["borderTop"]),bb(["borderBottom"]),bb(["borderLeft","borderRight"]),bb(["borderLeft"]),bb(["borderRight"]);function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function m3e(e){if(Array.isArray(e))return e}function v3e(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function y3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mr(e,t){return m3e(e)||v3e(e,t)||K6(e,t)||y3e()}function b3e(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ute(e){var t=b3e(e,"string");return Wu(t)=="symbol"?t:t+""}function ln(e,t,n){return(t=ute(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>_3e&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),bte=new T3e;function M3e(e,t){return Be.useMemo(function(){var n=bte.get(t);if(n)return n;var r=e();return bte.set(t,r),r},t)}var I3e=function(){return{}};function R3e(e){var t=e.useCSP,n=t===void 0?I3e:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,A,h,p){var v=Array.isArray(d)?d[0]:d;function y(_){return"".concat(String(v)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var b=(p==null?void 0:p.unitless)||{},x=typeof s=="function"?s(d):{},C=jn(jn({},x),{},ln({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(_){C[y(_)]=b[_]});var S=jn(jn({},p),{},{unitless:C,prefixToken:y}),B=u(d,A,h,S),E=c(v,h,S);return function(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,R=B(_,M),T=p==null?void 0:p.extraCssVarPrefixCls,L=typeof T=="function"?T({prefixCls:_,rootCls:M}):T,P=E(L!=null&&L.length?[M].concat(en(L)):M);return[R,P]}}function c(d,A,h){var p=h.unitless,v=h.prefixToken,y=h.ignore;return function(b){var x=r(),C=x.cssVar,S=x.realToken,B=n();return g3e({path:[d],prefix:C.prefix,key:C.key,unitless:p,ignore:y,token:S,scope:b,nonce:function(){return B.nonce}},function(){var E=yte(d,S,A),_=gte(d,S,E,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return E&&Object.keys(E).forEach(function(M){_[v(M)]=_[M],delete _[M]}),_}),C==null?void 0:C.key}}function u(d,A,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(d)?d:[d,d],y=mr(v,1),b=y[0],x=v.join("-"),C=e.layer||{name:"antd"};return function(S){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,E=r(),_=E.theme,M=E.realToken,R=E.hashId,T=E.token,L=E.cssVar,P=E.zeroRuntime,k=g.useMemo(function(){return P},[]);if(k)return R;var H=i(),D=H.rootPrefixCls,U=H.iconPrefixCls,j=n(),Q="css",K=M3e(function(){var W=new Set;return Object.keys(p.unitless||{}).forEach(function(J){W.add(VT(J,L.prefix)),W.add(VT(J,pte(b,L.prefix)))}),E3e(Q,W)},[Q,b,L==null?void 0:L.prefix]),z=$3e(),V=z.max,Y=z.min,Z={theme:_,token:T,hashId:R,nonce:function(){return j.nonce},clientOnly:p.clientOnly,layer:C,order:p.order||-999};return typeof o=="function"&&cD(jn(jn({},Z),{},{clientOnly:!1,path:["Shared",D]}),function(){return o(T,{prefix:{rootPrefixCls:D,iconPrefixCls:U},csp:j})}),cD(jn(jn({},Z),{},{path:[x,S,U]}),function(){if(p.injectStyle===!1)return[];var W=O3e(T),J=W.token,ee=W.flush,ne=yte(b,M,h),re=".".concat(S),ue=gte(b,M,ne,{deprecatedTokens:p.deprecatedTokens});ne&&Wu(ne)==="object"&&Object.keys(ne).forEach(function(ge){ne[ge]="var(".concat(VT(ge,pte(b,L.prefix)),")")});var de=dr(J,{componentCls:re,prefixCls:S,iconCls:".".concat(U),antCls:".".concat(D),calc:K,max:V,min:Y},ne),se=A(de,{hashId:R,prefixCls:S,rootPrefixCls:D,iconPrefixCls:U});ee(b,ue);var ce=typeof a=="function"?a(de,S,B,p.resetFont):null;return[p.resetStyle===!1?null:ce,se]}),R}}function f(d,A,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(d,A,h,jn({resetStyle:!1,order:-998},p)),y=function(x){var C=x.prefixCls,S=x.rootCls,B=S===void 0?C:S;return v(C,B),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const uA=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function JT(e){return(e+8)/e}function N3e(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,o=e*na(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:JT(n)}))}const xte="6.5.0",hD={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},xb=te(I({},hD),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),Ta=`aria-`,Ea=`data-`;function Da(e,t){return e.indexOf(t)===0}function Oa(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:G({},t);let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||Da(t,Ta))||n.data&&Da(t,Ea)||n.attr&&wa.includes(t))&&(r[t]=e[t])}),r}function ka(e,t){return typeof Proxy<`u`&&e?new Proxy(e,{get(e,n){if(t[n])return t[n];let r=e[n];return typeof r==`function`?r.bind(e):r}}):e}var Aa=e=>+setTimeout(e,16),ja=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Aa=e=>window.requestAnimationFrame(e),ja=e=>window.cancelAnimationFrame(e));var Ma=0,Na=new Map;function Pa(e){Na.delete(e)}var Fa=(e,t=1)=>{Ma+=1;let n=Ma;function r(t){if(t===0)Pa(n),e();else{let e=Aa(()=>{r(t-1)});Na.set(n,e)}}return r(t),n};Fa.cancel=e=>{let t=Na.get(e);return Pa(e),ja(t)};function Ia(e,t={}){let n=[];return J.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(Ia(e)):fi(e)&&e.props?n=n.concat(Ia(e.props.children,t)):n.push(e))}),n}function La(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n))n[e]!==void 0&&(t[e]=n[e]);return t}function Ra(e,t){let n=e;for(let e=0;e`u`?Object.keys:Reflect.ownKeys;function Wa(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=Ha(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=Ra(e,n),c=Array.isArray(s);if(c||Va(s)){if(!o.has(s)){o.add(s);let e=Ra(i,n);c?i=Ba(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=Ba(i,n,Ha(s))),Ua(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=Ba(i,n,s)}t([])}),i}function Ga(...e){return Wa(e)}Pe();var Ka=`__rc_react_root__`;function qa(e,t){let n=t[Ka]||(0,Kr.createRoot)(t);n.render(e),t[Ka]=n}function Ja(e){return Ya.apply(this,arguments)}function Ya(){return Ya=Ne(function*(e){return Promise.resolve().then(()=>{var t;(t=e[Ka])==null||t.unmount(),delete e[Ka]})}),Ya.apply(this,arguments)}var Xa=u(Ur());function Za(){}var{resetWarned:Qa}=_a,$a=J.createContext({}),eo=()=>{let e=()=>{};return e.deprecated=Za,e},to=J.createContext(null);function no({children:e,onBatchResize:t}){let n=J.useRef(0),r=J.useRef([]),i=J.useContext(to),a=J.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t==null||t(r.current),r.current=[])}),i==null||i(e,a,o)},[t,i]);return J.createElement(to.Provider,{value:a},e)}var ro=new Map;function io(e){e.forEach(e=>{var t;let{target:n}=e;(t=ro.get(n))==null||t.forEach(e=>e(n))})}var ao;function oo(){return ao||(ao=new ResizeObserver(io)),ao}function so(e,t){ro.has(e)||(ro.set(e,new Set),oo().observe(e)),ro.get(e).add(t)}function co(e,t){ro.has(e)&&(ro.get(e).delete(t),ro.get(e).size||(oo().unobserve(e),ro.delete(e)))}K();function lo(e,t,n,r){let i=J.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=qr(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p=G(G({},u),{},{offsetWidth:d,offsetHeight:f});r==null||r(p,e),Promise.resolve().then(()=>{n==null||n(p,e)})}}),o=typeof t==`function`,s=J.useRef(0);J.useEffect(()=>{let n=o?t():t;return n&&e?so(n,a):e&&o&&(s.current+=1),()=>{n&&co(n,a)}},[e,o?s.current:t])}function uo(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=J.useRef(null),s=J.useContext(to),c=typeof n==`function`,l=c?n(o):n,u=!c&&J.isValidElement(l)&&_i(l),d=gi(u?bi(l):null,o),f=()=>Ii(o.current);return J.useImperativeHandle(t,()=>f()),lo(!r,f,i,(e,t)=>{s==null||s(e,t,a)}),u?J.cloneElement(l,{ref:d}):l}var fo=J.forwardRef(uo);function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let i=(n==null?void 0:n.key)||`${mo}-${r}`;return J.createElement(fo,po({},e,{key:i,ref:r===0?t:void 0}),n)})}var go=J.forwardRef(ho);go.Collection=no;function _o(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);nt||(e?`ant-${e}`:`ant`),iconPrefixCls:wo}),{Consumer:Do}=Eo,Oo={};function ko(e){let t=J.useContext(Eo),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t,o=t[e];return G(G({classNames:Oo,styles:Oo},o),{},{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a})}function Ao(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}ge();var jo=`%`;function Mo(e){return e.join(jo)}var No=0,Po=class{constructor(e){W(this,`instanceId`,void 0),W(this,`cache`,new Map),W(this,`updateTimes`,new Map),W(this,`extracted`,new Set),this.instanceId=e}get(e){return this.opGet(Mo(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Mo(e),t)}opUpdate(e,t){let n=t(this.cache.get(e));n===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,No),No+=1)}},Fo=`data-token-hash`,Io=`data-css-hash`,Lo=`__cssinjs_instance__`;function Ro(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t.__cssinjs_instance__||(t.__cssinjs_instance__=e),t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${Io}]`)).forEach(t=>{let n=t.getAttribute(Io);if(r[n]){if(t.__cssinjs_instance__===e){var i;(i=t.parentNode)==null||i.removeChild(t)}}else r[n]=!0})}return new Po(e)}var zo=J.createContext({hashPriority:`low`,cache:Ro(),defaultCache:!0,autoPrefix:!1});ge();function Bo(e,t){if(e.length!==t.length)return!1;for(let n=0;n{if(!n)n=void 0;else{var t;n=n==null||(t=n.map)==null?void 0:t.get(e)}}),n!=null&&n.value&&t&&(n.value[1]=this.cacheCallTimes++),n==null?void 0:n.value}get(e){var t;return(t=this.internalGet(e,!0))==null?void 0:t[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||(t.map=new Map):r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1){var r;return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),(r=n.value)==null?void 0:r[0]}let i=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!Bo(t,e)),this.deleteByPath(this.cache,e)}};W(Vo,`MAX_CACHE_SIZE`,20),W(Vo,`MAX_CACHE_OFFSET`,5),ge();var Ho=0,Uo=class{constructor(e){W(this,`derivatives`,void 0),W(this,`id`,void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=Ho,e.length===0&&e.length,Ho+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},Wo=new Vo;function Go(e){let t=Array.isArray(e)?e:[e];return Wo.has(t)||Wo.set(t,new Uo(t)),Wo.get(t)}K();var Ko=new WeakMap,qo={};function Jo(e,t){let n=Ko;for(let e=0;e{let r=e[n];t+=n,r instanceof Uo?t+=r.id:r&&typeof r==`object`?t+=Xo(r):t+=r}),t=Ao(t),Yo.set(e,t)),t}function Zo(e,t){return Ao(`${t}_${Xo(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var Qo=Jr();function Q(e){return typeof e==`number`?`${e}px`:e}function $o(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var es=e=>e!=null;function ts(e,t){let n=typeof t==`function`?t():t;return n?G(G({},e),{},{csp:G(G({},e.csp),{},{nonce:n})}):e}var ns=(e,t=``)=>`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase(),rs=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${$o({hashCls:r,hashPriority:i})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${o}.${e}`).join(`, `):o}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``)}}`},is=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,prefix:a,unitless:o,ignore:s,preserve:c}=n||{},l={},u={};return Object.entries(e).forEach(([e,t])=>{if(c!=null&&c[e])u[e]=t;else if((typeof t==`string`||typeof t==`number`)&&!(s!=null&&s[e])){let n=ns(e,a);l[n]=typeof t==`number`&&!(o!=null&&o[e])?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,rs(l,t,{scope:n==null?void 0:n.scope,hashCls:r,hashPriority:i})]},as=new Map;function os(e,t,n,r,i){let{cache:a}=J.useContext(zo),o=Mo([e,...t]),s=e=>{a.opUpdate(o,t=>{let[r=0,i]=t||[void 0,void 0],a=[r,i||n()];return e?e(a):a})};J.useMemo(()=>{s()},[o]);let c=a.opGet(o)[1];return(0,J.useInsertionEffect)(()=>(s(([e,t])=>[e+1,t]),as.has(o)||(i==null||i(c),as.set(o,!0),Promise.resolve().then(()=>{as.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r==null||r(n,!1),as.delete(o),null):[t-1,n]})}),[o]),c}K();var ss={},cs=`css`,ls=new Map;function us(e){ls.set(e,(ls.get(e)||0)+1)}function ds(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Fo}="${e}"]`).forEach(e=>{if(e.__cssinjs_instance__===t){var n;(n=e.parentNode)==null||n.removeChild(e)}})}var fs=-1;function ps(e,t){ls.set(e,(ls.get(e)||0)-1);let n=new Set;ls.forEach((e,t)=>{e<=0&&n.add(t)}),ls.size-n.size>fs&&n.forEach(e=>{ds(e,t),ls.delete(e)})}var ms=(e,t,n,r)=>{let i=G(G({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i},hs=`token`;function gs(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,J.useContext)(zo),{salt:o=``,override:s=ss,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=Jo(()=>Object.assign({},...t),t),p=Xo(f),m=Xo(s),h=Xo(u);return os(hs,[o,e.id,p,m,h],()=>{let t=l?l(f,s,e):ms(f,s,e,c),n=G({},t),r=`${o}_${u.prefix}`,i=Ao(r),d=`${cs}-${i}`;n._tokenKey=Zo(n,r);let[p,m]=is(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?d:void 0});return p._hashId=i,us(u.key),[p,d,n,m,u.key]},([,,,,e])=>{ps(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:Io,prepend:`queue`,attachTo:i,priority:-999};n=ts(n,d);let a=Pi(e,Ao(`css-var-${t}`),n);a[Lo]=r,a.setAttribute(Fo,t)})}var _s={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vs=`-ms-`,ys=`-moz-`,bs=`-webkit-`,xs=`comm`,Ss=`rule`,Cs=`decl`,ws=`@import`,Ts=`@namespace`,Es=`@keyframes`,Ds=`@layer`,Os=Math.abs,ks=String.fromCharCode,As=Object.assign;function js(e,t){return Is(e,0)^45?(((t<<2^Is(e,0))<<2^Is(e,1))<<2^Is(e,2))<<2^Is(e,3):0}function Ms(e){return e.trim()}function Ns(e,t){return(e=t.exec(e))?e[0]:e}function Ps(e,t,n){return e.replace(t,n)}function Fs(e,t){return e.indexOf(t)}function Is(e,t){return e.charCodeAt(t)|0}function Ls(e,t,n){return e.slice(t,n)}function Rs(e){return e.length}function zs(e){return e.length}function Bs(e,t){return t.push(e),e}function Vs(e,t){return e.map(t).join(``)}function Hs(e,t){return e.filter(function(e){return!Ns(e,t)})}var Us=1,Ws=1,Gs=0,Ks=0,qs=0,Js=``;function Ys(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Us,column:Ws,length:o,return:``,siblings:s}}function Xs(e,t){return As(Ys(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function Zs(e){for(;e.root;)e=Xs(e.root,{children:[e]});Bs(e,e.siblings)}function Qs(){return qs}function $s(){return qs=Ks>0?Is(Js,--Ks):0,Ws--,qs===10&&(Ws=1,Us--),qs}function ec(){return qs=Ks2||ic(qs)>3?``:` `}function lc(e,t){for(;--t&&ec()&&!(qs<48||qs>102||qs>57&&qs<65||qs>70&&qs<97););return rc(e,nc()+(t<6&&tc()==32&&ec()==32))}function uc(e){for(;ec();)switch(qs){case e:return Ks;case 34:case 39:e!==34&&e!==39&&uc(qs);break;case 40:e===41&&uc(e);break;case 92:ec();break}return Ks}function dc(e,t){for(;ec()&&e+qs!==57&&!(e+qs===84&&tc()===47););return`/*`+rc(t,Ks-1)+`*`+ks(e===47?e:ec())}function fc(e){for(;!ic(tc());)ec();return rc(e,Ks)}function pc(e){return oc(mc(``,null,null,null,[``],e=ac(e),0,[0],e))}function mc(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=ec()){case 40:m!=108&&Is(w,d-1)==58?(v++,w+=`(`):w+=sc(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=sc(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=ks(y);break}w+=cc(m);break;case 92:w+=lc(nc()-1,7);continue;case 47:switch(tc()){case 42:case 47:Bs(gc(dc(ec(),nc()),t,n,c),c),(ic(m||1)==5||ic(tc()||1)==5)&&Rs(w)&&Ls(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=Rs(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=ks(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Ps(w,/\f/g,``)),p>0&&(Rs(w)-d||h===0)&&Bs(p>32?_c(w+`;`,r,n,d-1,c):_c(Ps(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Bs(C=hc(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)mc(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Is(w,3)===110)break;case 108:if(Is(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?mc(e,C,C,r&&Bs(hc(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):mc(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+Rs(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&$s()==125)continue}switch(w+=ks(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(Rs(w)-1)*_,_=1;break;case 64:tc()===45&&(w+=sc(ec())),f=tc(),u=d=Rs(b=w+=fc(nc())),y++;break;case 45:m===45&&Rs(w)==2&&(h=0)}}return a}function hc(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=zs(p),h=0,g=0,_=0;h0?p[v]+` `+y:Ps(y,/&\f/g,p[v])))&&(c[_++]=b);return Ys(e,t,n,i===0?Ss:s,c,l,u,d)}function gc(e,t,n,r){return Ys(e,t,n,xs,ks(Qs()),Ls(e,2,-2),0,r)}function _c(e,t,n,r,i){return Ys(e,t,n,Cs,Ls(e,0,r),Ls(e,r+1,-1),r,i)}function vc(e,t,n){switch(js(e,t)){case 5103:return bs+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return bs+e+e;case 4855:return bs+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return ys+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bs+e+ys+e+vs+e+e;case 5936:switch(Is(e,t+11)){case 114:return bs+e+vs+Ps(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return bs+e+vs+Ps(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return bs+e+vs+Ps(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return bs+e+vs+e+e;case 6165:return bs+e+vs+`flex-`+e+e;case 5187:return bs+e+Ps(e,/(\w+).+(:[^]+)/,bs+`box-$1$2`+vs+`flex-$1$2`)+e;case 5443:return bs+e+vs+`flex-item-`+Ps(e,/flex-|-self/g,``)+(Ns(e,/flex-|baseline/)?``:vs+`grid-row-`+Ps(e,/flex-|-self/g,``))+e;case 4675:return bs+e+vs+`flex-line-pack`+Ps(e,/align-content|flex-|-self/g,``)+e;case 5548:return bs+e+vs+Ps(e,`shrink`,`negative`)+e;case 5292:return bs+e+vs+Ps(e,`basis`,`preferred-size`)+e;case 6060:return bs+`box-`+Ps(e,`-grow`,``)+bs+e+vs+Ps(e,`grow`,`positive`)+e;case 4554:return bs+Ps(e,/([^-])(transform)/g,`$1`+bs+`$2`)+e;case 6187:return Ps(Ps(Ps(e,/(zoom-|grab)/,bs+`$1`),/(image-set)/,bs+`$1`),e,``)+e;case 5495:case 3959:return Ps(e,/(image-set\([^]*)/,bs+"$1$`$1");case 4968:return Ps(Ps(e,/(.+:)(flex-)?(.*)/,bs+`box-pack:$3`+vs+`flex-pack:$3`),/space-between/,`justify`)+bs+e+e;case 4200:if(!Ns(e,/flex-|baseline/))return vs+`grid-column-align`+Ls(e,t)+e;break;case 2592:case 3360:return vs+Ps(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Ns(e.props,/grid-\w+-end/)})?~Fs(e+(n=n[t].value),`span`)?e:vs+Ps(e,`-start`,``)+e+vs+`grid-row-span:`+(~Fs(n,`span`)?Ns(n,/\d+/):Ns(n,/\d+/)-+Ns(e,/\d+/))+`;`:vs+Ps(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return Ns(e.props,/grid-\w+-start/)})?e:vs+Ps(Ps(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Ps(e,/(.+)-inline(.+)/,bs+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Rs(e)-1-t>6)switch(Is(e,t+1)){case 109:if(Is(e,t+4)!==45)break;case 102:return Ps(e,/(.+:)(.+)-([^]+)/,`$1`+bs+`$2-$3$1`+ys+(Is(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Fs(e,`stretch`)?vc(Ps(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Ps(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return vs+n+`:`+r+s+(i?vs+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Is(e,t+6)===121)return Ps(e,`:`,`:`+bs)+e;break;case 6444:switch(Is(e,Is(e,14)===45?18:11)){case 120:return Ps(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+bs+(Is(e,14)===45?`inline-`:``)+`box$3$1`+bs+`$2$3$1`+vs+`$2box$3`)+e;case 100:return Ps(e,`:`,`:`+vs)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ps(e,`scroll-`,`scroll-snap-`)+e}return e}function yc(e,t){for(var n=``,r=0;r-1&&!e.return)switch(e.type){case Cs:e.return=vc(e.value,e.length,n);return;case Es:return yc([Xs(e,{value:Ps(e.value,`@`,`@`+bs)})],r);case Ss:if(e.length)return Vs(n=e.props,function(t){switch(Ns(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:Zs(Xs(e,{props:[Ps(t,/:(read-\w+)/,`:`+ys+`$1`)]})),Zs(Xs(e,{props:[t]})),As(e,{props:Hs(n,r)});break;case`::placeholder`:Zs(Xs(e,{props:[Ps(t,/:(plac\w+)/,`:`+bs+`input-$1`)]})),Zs(Xs(e,{props:[Ps(t,/:(plac\w+)/,`:`+ys+`$1`)]})),Zs(Xs(e,{props:[Ps(t,/:(plac\w+)/,vs+`input-$1`)]})),Zs(Xs(e,{props:[t]})),As(e,{props:Hs(n,r)});break}return``})}}var Cc=`data-ant-cssinjs-cache-path`,wc=`_FILE_STYLE__`,Tc,Ec=!0;function Dc(){if(!Tc&&(Tc={},Jr())){let t=document.createElement(`div`);t.className=Cc,t.style.position=`fixed`,t.style.visibility=`hidden`,t.style.top=`-9999px`,document.body.appendChild(t);let n=getComputedStyle(t).content||``;n=n.replace(/^"/,``).replace(/"$/,``),n.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);Tc[t]=n});let r=document.querySelector(`style[${Cc}]`);if(r){var e;Ec=!1,(e=r.parentNode)==null||e.removeChild(r)}document.body.removeChild(t)}}function Oc(e){return Dc(),!!Tc[e]}function kc(e){let t=Tc[e],n=null;if(t&&Jr())if(Ec)n=wc;else{let t=document.querySelector(`style[${Io}="${Tc[e]}"]`);t?n=t.innerHTML:delete Tc[e]}return[n,t]}K();var Ac=`_skip_check_`,jc=`_multi_value_`;function Mc(e,t){return(t?yc(pc(e),xc([Sc,bc])):yc(pc(e),bc)).replace(/\{%%%\:[^;];}/g,`;`)}function Nc(e){return typeof e==`object`&&e&&(Ac in e||jc in e)}function Pc(e,t,n=`high`){if(!t)return e;let r=$o({hashCls:t,hashPriority:n});return e.split(`,`).map(e=>{var t;let n=e.trim().split(/\s+/),i=n[0]||``,a=((t=i.match(/^\w+/))==null?void 0:t[0])||``;return i=`${a}${r}${i.slice(a.length)}`,[i,...n.slice(1)].join(` `)}).join(`,`)}var Fc=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=Fc(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e,t=[]){return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}return m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>{var n;return(t==null||(n=t.visit)==null?void 0:n.call(t,e))||e},o);Object.keys(e).forEach(o=>{let s=e[o];if(typeof s==`object`&&s&&(o!==`animationName`||!s._keyframe)&&!Nc(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=Pc(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=Fc(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f=G(G({},f),m),d+=`${l}${p}`}else{var l;function u(e,t){let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!_s[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t!=null&&t._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let e=(l=s==null?void 0:s.value)==null?s:l;typeof s==`object`&&s&&s[jc]&&Array.isArray(e)?e.forEach(e=>{u(o,e)}):es(e)&&u(o,e)}})}}),n?o&&(d&&(d=`@layer ${o.name} {${d}}`),o.dependencies&&(f[`@layer ${o.name}`]=o.dependencies.map(e=>`@layer ${e}, ${o.name};`).join(` +`))):d=`{${d}}`,[d,f]};function Ic(e,t){return Ao(`${e.join(`%`)}${t}`)}var Lc=`style`;function Rc(e,t){let{path:n,hashId:r,layer:i,nonce:a,clientOnly:o,order:s=0}=e,{mock:c,hashPriority:l,container:u,transformers:d,linters:f,cache:p,layer:m,autoPrefix:h}=J.useContext(zo),g=[r||``];m&&g.push(`layer`),g.push(...n);let _=Qo;os(Lc,g,()=>{let e=g.join(`|`);if(Oc(e)){let[t,n]=kc(e);if(t)return[t,n,{},o,s]}let[a,c]=Fc(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=Mc(a,h||!1);return[u,Ic(g,u),c,o,s]},(e,t)=>{let[,n]=e;t&&Qo&&Mi(n,{mark:Io,attachTo:u})},e=>{let[t,n,r,,i]=e;if(_&&t!==`_FILE_STYLE__`){let e={mark:Io,prepend:!m&&`queue`,attachTo:u,priority:i};e=ts(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{Pi(Mc(r[t],h||!1),`_layer-${t}`,G(G({},e),{},{prepend:!0}))});let c=Pi(t,n,e);c[Lo]=p.instanceId,s.forEach(t=>{Pi(Mc(r[t],h||!1),`_effect-${t}`,e)})}})}var zc=`cssVar`,Bc=(e,t)=>{let{key:n,prefix:r,unitless:i,ignore:a,token:o,hashId:s,scope:c,nonce:l}=e,{cache:{instanceId:u},container:d,hashPriority:f}=(0,J.useContext)(zo),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,h=[...e.path,n,m,p];return os(zc,h,()=>{let[e,o]=is(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Ic(h,o),n]},([,,e])=>{Qo&&Mi(e,{mark:Io,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:Io,prepend:`queue`,attachTo:d,priority:-999};r=ts(r,l);let i=Pi(e,t,r);i[Lo]=u,i.setAttribute(Fo,n)})};ge();var Vc=class{constructor(e,t){W(this,`name`,void 0),W(this,`style`,void 0),W(this,`_keyframe`,!0),this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}};function Hc(e){return e.notSplit=!0,e}Hc([`borderTop`,`borderBottom`]),Hc([`borderTop`]),Hc([`borderBottom`]),Hc([`borderLeft`,`borderRight`]),Hc([`borderLeft`]),Hc([`borderRight`]);function Uc(e){"@babel/helpers - typeof";return Uc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Uc(e)}function Wc(e){if(Array.isArray(e))return e}function Gc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Kc(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qc(e,t){return Wc(e)||Gc(e,t)||xo(e,t)||Kc()}function Jc(e,t){if(Uc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Uc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yc(e){var t=Jc(e,`string`);return Uc(t)==`symbol`?t:t+``}function Xc(e,t,n){return(t=Yc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>El&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function Ol(e,t){return J.useMemo(function(){var n=Dl.get(t);if(n)return n;var r=e();return Dl.set(t,r),r},t)}var kl=function(){return{}};function Al(e){var t=e.useCSP,n=t===void 0?kl:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=(r==null?void 0:r.unitless)||{},c=Qc(Qc({},typeof s==`function`?s(e):{}),{},Xc({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=Qc(Qc({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r==null?void 0:r.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(Co(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return Bc({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=wl(e,d,t),r=_l(e,d,n,{deprecatedTokens:i==null?void 0:i.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u==null?void 0:u.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=qc(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,h=u.realToken,g=u.hashId,_=u.token,v=u.cssVar,y=u.zeroRuntime;if((0,J.useMemo)(function(){return y},[]))return g;var b=i(),x=b.rootPrefixCls,S=b.iconPrefixCls,C=n(),w=`css`,T=Ol(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(ns(t,v.prefix)),e.add(ns(t,gl(d,v.prefix)))}),hl(w,e)},[w,d,v==null?void 0:v.prefix]),E=Tl(w),D=E.max,O=E.min,k={theme:m,token:_,hashId:g,nonce:function(){return C.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&Rc(Qc(Qc({},k),{},{clientOnly:!1,path:[`Shared`,x]}),function(){return a(_,{prefix:{rootPrefixCls:x,iconPrefixCls:S},csp:C})}),Rc(Qc(Qc({},k),{},{path:[f,e,S]}),function(){if(l.injectStyle===!1)return[];var n=Cl(_),r=n.token,i=n.flush,a=wl(d,h,c),u=`.${e}`,f=_l(d,h,a,{deprecatedTokens:l.deprecatedTokens});a&&Uc(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${ns(e,gl(d,v.prefix))})`});var p=bl(r,{componentCls:u,prefixCls:e,iconCls:`.${S}`,antCls:`.${x}`,calc:T,max:D,min:O},a),m=s(p,{hashId:g,prefixCls:e,rootPrefixCls:x,iconPrefixCls:S});i(d,f);var y=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:y,m]}),g}}function d(e,t,n){var r=u(e,t,n,Qc({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var jl=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function Ml(e){return(e+8)/e}function Nl(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.pow(Math.E,r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:Ml(e)}))}var Pl=`6.5.1`;K();var Fl={blue:`#1677FF`,purple:`#722ED1`,cyan:`#13C2C2`,green:`#52C41A`,magenta:`#EB2F96`,pink:`#EB2F96`,red:`#F5222D`,orange:`#FA8C16`,yellow:`#FADB14`,volcano:`#FA541C`,geekblue:`#2F54EB`,gold:`#FAAD14`,lime:`#A0D911`},Il=G(G({},Fl),{},{colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),P3e={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},js=Math.round;function pD(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const wte=(e,t,n)=>n===0?e:e/100;function XS(e,t){const n=t||255;return e>n?n:e<0?0:e}class Rr{constructor(t){ke(this,"isValid",!0);ke(this,"r",0);ke(this,"g",0);ke(this,"b",0);ke(this,"a",1);ke(this,"_h");ke(this,"_hsl_s");ke(this,"_hsv_s");ke(this,"_l");ke(this,"_v");ke(this,"_max");ke(this,"_min");ke(this,"_brightness");function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(i("rgb"))this.fromRgbString(r);else if(i("hsl"))this.fromHslString(r);else if(i("hsv")||i("hsb"))this.fromHsvString(r);else{const o=P3e[r.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(t instanceof Rr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=XS(t.r),this.g=XS(t.g),this.b=XS(t.b),this.a=typeof t.a=="number"?XS(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=js(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:js(o("r")),g:js(o("g")),b:js(o("b")),a:js(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>js((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=js(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=js(this.getHSLSaturation()*100),r=js(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=XS(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){const o=(t%360+360)%360;if(this._h=o,this._hsl_s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const A=js(r*255);this.r=A,this.g=A,this.b=A;return}let a=0,s=0,l=0;const c=o/60,u=(1-Math.abs(2*r-1))*n,f=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,s=f):c>=1&&c<2?(a=f,s=u):c>=2&&c<3?(s=u,l=f):c>=3&&c<4?(s=f,l=u):c>=4&&c<5?(a=f,l=u):c>=5&&c<6&&(a=u,l=f);const d=r-u/2;this.r=js((a+d)*255),this.g=js((s+d)*255),this.b=js((l+d)*255)}fromHsv({h:t,s:n,v:r,a:i}){const o=(t%360+360)%360;this._h=o,this._hsv_s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=js(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const s=o/60,l=Math.floor(s),c=s-l,u=js(r*(1-n)*255),f=js(r*(1-n*c)*255),d=js(r*(1-n*(1-c))*255);switch(l){case 0:this.g=d,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=f;break;case 4:this.r=d,this.g=u;break;default:this.g=u,this.b=f;break}}fromHsvString(t){const n=pD(t,wte);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=pD(t,wte);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=pD(t,(r,i)=>i.includes("%")?js(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const eM=2,Cte=.16,L3e=.05,F3e=.05,k3e=.15,Ste=5,Ete=4,D3e=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Bte(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-eM*t:Math.round(e.h)+eM*t:r=n?Math.round(e.h)+eM*t:Math.round(e.h)-eM*t,r<0?r+=360:r>=360&&(r-=360),r}function Ote(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Cte*t:t===Ete?r=e.s+Cte:r=e.s+L3e*t,r>1&&(r=1),n&&t===Ste&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function $te(e,t,n){let r;return n?r=e.v+F3e*t:r=e.v-k3e*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function tM(e,t={}){const n=[],r=new Rr(e),i=r.toHsv();for(let o=Ste;o>0;o-=1){const a=new Rr({h:Bte(i,o,!0),s:Ote(i,o,!0),v:$te(i,o,!0)});n.push(a)}n.push(r);for(let o=1;o<=Ete;o+=1){const a=new Rr({h:Bte(i,o),s:Ote(i,o),v:$te(i,o)});n.push(a)}return t.theme==="dark"?D3e.map(({index:o,amount:a})=>new Rr(t.backgroundColor||"#141414").mix(n[o],a).toHexString()):n.map(o=>o.toHexString())}const wb={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},gD=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];gD.primary=gD[5];const mD=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mD.primary=mD[5];const vD=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vD.primary=vD[5];const nM=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];nM.primary=nM[5];const yD=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];yD.primary=yD[5];const bD=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];bD.primary=bD[5];const xD=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];xD.primary=xD[5];const wD=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];wD.primary=wD[5];const CD=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];CD.primary=CD[5];const SD=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];SD.primary=SD[5];const ED=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ED.primary=ED[5];const BD=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];BD.primary=BD[5];const OD=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];OD.primary=OD[5];const $D={red:gD,volcano:mD,orange:vD,gold:nM,yellow:yD,lime:bD,green:xD,cyan:wD,blue:CD,geekblue:SD,purple:ED,magenta:BD,grey:OD};function _te(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),d=t(i),A=t(o),h=t(a),p=n(l,c),v=e.colorLink||e.colorInfo,y=t(v),b=new Rr(A[1]).mix(new Rr(A[3]),50).toHexString(),x={};return uA.forEach(C=>{const S=e[C];if(S){const B=t(S);x[`${C}Hover`]=B[5],x[`${C}Active`]=B[7]}}),te(I(te(I({},p),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:A[1],colorErrorBgHover:A[2],colorErrorBgFilledHover:b,colorErrorBgActive:A[3],colorErrorBorder:A[3],colorErrorBorderHover:A[4],colorErrorHover:A[5],colorError:A[6],colorErrorActive:A[7],colorErrorTextHover:A[8],colorErrorText:A[9],colorErrorTextActive:A[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7]}),x),{colorBgMask:new Rr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const H3e=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function U3e(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return I({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},H3e(r))}const Tte=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Mte=e=>{const t=N3e(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function j3e(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Gu=(e,t)=>new Rr(e).setA(t).toRgbString(),Cb=(e,t)=>new Rr(e).darken(t).toHexString(),z3e=e=>{const t=tM(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Q3e=(e,t,n)=>{const r=e||"#fff",i=t||"#000";return{colorBgBase:r,colorTextBase:i,colorShadow:n||"#000",colorText:Gu(i,.88),colorTextSecondary:Gu(i,.65),colorTextTertiary:Gu(i,.45),colorTextQuaternary:Gu(i,.25),colorFill:Gu(i,.15),colorFillSecondary:Gu(i,.06),colorFillTertiary:Gu(i,.04),colorFillQuaternary:Gu(i,.02),colorBgSolid:Gu(i,1),colorBgSolidHover:Gu(i,.75),colorBgSolidActive:Gu(i,.95),colorBgLayout:Cb(r,4),colorBgContainer:Cb(r,0),colorBgElevated:Cb(r,0),colorBgSpotlight:Gu(i,.85),colorBgBlur:"transparent",colorBorder:Cb(r,15),colorBorderDisabled:Cb(r,15),colorBorderSecondary:Cb(r,6)}};function rM(e){wb.pink=wb.magenta,$D.pink=$D.magenta;const t=Object.keys(hD).map(n=>{const r=e[n]===wb[n]?$D[n]:tM(e[n]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=I(I({},n),r),n),{});return I(I(I(I(I(I(I({},e),t),_te(e,{generateColorPalettes:z3e,generateNeutralColorPalettes:Q3e})),Mte(e.fontSize)),j3e(e)),Tte(e)),U3e(e))}const _D=QT(rM),ZS={token:xb,override:{override:xb},hashed:!0},TD=Be.createContext(ZS);function MD(e){return e>=0&&e<=255}function JS(e,t){const{r:n,g:r,b:i,a:o}=new Rr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Rr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),d=Math.round((i-l*(1-c))/c);if(MD(u)&&MD(f)&&MD(d))return new Rr({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new Rr({r:n,g:r,b:i,a:1}).toRgbString()}function Ite(e){const v=e,{override:t}=v,n=Ze(v,["override"]),r=I({},t);Object.keys(xb).forEach(y=>{delete r[y]});const i=I(I({},n),r),o=new Rr(i.colorShadow),a=o.a,s=y=>o.clone().setA(a*y).toRgbString(),l=480,c=576,u=768,f=992,d=1200,A=1600,h=1920;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),I(te(I({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:JS(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:JS(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:JS(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:JS(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` +'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Ll={aliceblue:`9ehhb`,antiquewhite:`9sgk7`,aqua:`1ekf`,aquamarine:`4zsno`,azure:`9eiv3`,beige:`9lhp8`,bisque:`9zg04`,black:`0`,blanchedalmond:`9zhe5`,blue:`73`,blueviolet:`5e31e`,brown:`6g016`,burlywood:`8ouiv`,cadetblue:`3qba8`,chartreuse:`4zshs`,chocolate:`87k0u`,coral:`9yvyo`,cornflowerblue:`3xael`,cornsilk:`9zjz0`,crimson:`8l4xo`,cyan:`1ekf`,darkblue:`3v`,darkcyan:`rkb`,darkgoldenrod:`776yz`,darkgray:`6mbhl`,darkgreen:`jr4`,darkgrey:`6mbhl`,darkkhaki:`7ehkb`,darkmagenta:`5f91n`,darkolivegreen:`3bzfz`,darkorange:`9yygw`,darkorchid:`5z6x8`,darkred:`5f8xs`,darksalmon:`9441m`,darkseagreen:`5lwgf`,darkslateblue:`2th1n`,darkslategray:`1ugcv`,darkslategrey:`1ugcv`,darkturquoise:`14up`,darkviolet:`5rw7n`,deeppink:`9yavn`,deepskyblue:`11xb`,dimgray:`442g9`,dimgrey:`442g9`,dodgerblue:`16xof`,firebrick:`6y7tu`,floralwhite:`9zkds`,forestgreen:`1cisi`,fuchsia:`9y70f`,gainsboro:`8m8kc`,ghostwhite:`9pq0v`,goldenrod:`8j4f4`,gold:`9zda8`,gray:`50i2o`,green:`pa8`,greenyellow:`6senj`,grey:`50i2o`,honeydew:`9eiuo`,hotpink:`9yrp0`,indianred:`80gnw`,indigo:`2xcoy`,ivory:`9zldc`,khaki:`9edu4`,lavenderblush:`9ziet`,lavender:`90c8q`,lawngreen:`4vk74`,lemonchiffon:`9zkct`,lightblue:`6s73a`,lightcoral:`9dtog`,lightcyan:`8s1rz`,lightgoldenrodyellow:`9sjiq`,lightgray:`89jo3`,lightgreen:`5nkwg`,lightgrey:`89jo3`,lightpink:`9z6wx`,lightsalmon:`9z2ii`,lightseagreen:`19xgq`,lightskyblue:`5arju`,lightslategray:`4nwk9`,lightslategrey:`4nwk9`,lightsteelblue:`6wau6`,lightyellow:`9zlcw`,lime:`1edc`,limegreen:`1zcxe`,linen:`9shk6`,magenta:`9y70f`,maroon:`4zsow`,mediumaquamarine:`40eju`,mediumblue:`5p`,mediumorchid:`79qkz`,mediumpurple:`5r3rv`,mediumseagreen:`2d9ip`,mediumslateblue:`4tcku`,mediumspringgreen:`1di2`,mediumturquoise:`2uabw`,mediumvioletred:`7rn9h`,midnightblue:`z980`,mintcream:`9ljp6`,mistyrose:`9zg0x`,moccasin:`9zfzp`,navajowhite:`9zest`,navy:`3k`,oldlace:`9wq92`,olive:`50hz4`,olivedrab:`472ub`,orange:`9z3eo`,orangered:`9ykg0`,orchid:`8iu3a`,palegoldenrod:`9bl4a`,palegreen:`5yw0o`,paleturquoise:`6v4ku`,palevioletred:`8k8lv`,papayawhip:`9zi6t`,peachpuff:`9ze0p`,peru:`80oqn`,pink:`9z8wb`,plum:`8nba5`,powderblue:`6wgdi`,purple:`4zssg`,rebeccapurple:`3zk49`,red:`9y6tc`,rosybrown:`7cv4f`,royalblue:`2jvtt`,saddlebrown:`5fmkz`,salmon:`9rvci`,sandybrown:`9jn1c`,seagreen:`1tdnb`,seashell:`9zje6`,sienna:`6973h`,silver:`7ir40`,skyblue:`5arjf`,slateblue:`45e4t`,slategray:`4e100`,slategrey:`4e100`,snow:`9zke2`,springgreen:`1egv`,steelblue:`2r1kk`,tan:`87yx8`,teal:`pds`,thistle:`8ggk8`,tomato:`9yqfb`,turquoise:`2j4r4`,violet:`9b10u`,wheat:`9ld4j`,white:`9zldr`,whitesmoke:`9lhpx`,yellow:`9zl6o`,yellowgreen:`61fzm`};ge();var Rl=Math.round;function zl(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var Bl=(e,t,n)=>n===0?e:e/100;function Vl(e,t){let n=t||255;return e>n?n:e<0?0:e}var Hl=class e{constructor(t){W(this,`isValid`,!0),W(this,`r`,0),W(this,`g`,0),W(this,`b`,0),W(this,`a`,1),W(this,`_h`,void 0),W(this,`_hsl_s`,void 0),W(this,`_hsv_s`,void 0),W(this,`_l`,void 0),W(this,`_v`,void 0),W(this,`_max`,void 0),W(this,`_min`,void 0),W(this,`_brightness`,void 0);function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=Ll[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=Vl(t.r),this.g=Vl(t.g),this.b=Vl(t.b),this.a=typeof t.a==`number`?Vl(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Rl(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:Rl(i(`r`)),g:Rl(i(`g`)),b:Rl(i(`b`)),a:Rl(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Rl((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=Rl(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=Rl(this.getHSLSaturation()*100),n=Rl(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=Vl(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=Rl(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=Rl((a+d)*255),this.g=Rl((o+d)*255),this.b=Rl((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=Rl(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=Rl(n*(1-t)*255),u=Rl(n*(1-t*c)*255),d=Rl(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u;break}}fromHsvString(e){let t=zl(e,Bl);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=zl(e,Bl);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=zl(e,(e,t)=>t.includes(`%`)?Rl(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},Ul=2,Wl=.16,Gl=.05,Kl=.05,ql=.15,Jl=5,Yl=4,Xl=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Zl(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Ul*t:Math.round(e.h)+Ul*t:n?Math.round(e.h)+Ul*t:Math.round(e.h)-Ul*t,r<0?r+=360:r>=360&&(r-=360),r}function Ql(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-Wl*t:t===Yl?e.s+Wl:e.s+Gl*t,r>1&&(r=1),n&&t===Jl&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function $l(e,t,n){let r;return r=n?e.v+Kl*t:e.v-ql*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function eu(e,t={}){let n=[],r=new Hl(e),i=r.toHsv();for(let e=Jl;e>0;--e){let t=new Hl({h:Zl(i,e,!0),s:Ql(i,e,!0),v:$l(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=Yl;e+=1){let t=new Hl({h:Zl(i,e),s:Ql(i,e),v:$l(i,e)});n.push(t)}return t.theme===`dark`?Xl.map(({index:e,amount:r})=>new Hl(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var tu={red:`#F5222D`,volcano:`#FA541C`,orange:`#FA8C16`,gold:`#FAAD14`,yellow:`#FADB14`,lime:`#A0D911`,green:`#52C41A`,cyan:`#13C2C2`,blue:`#1677FF`,geekblue:`#2F54EB`,purple:`#722ED1`,magenta:`#EB2F96`,grey:`#666666`},nu=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];nu.primary=nu[5];var ru=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];ru.primary=ru[5];var iu=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];iu.primary=iu[5];var au=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];au.primary=au[5];var ou=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];ou.primary=ou[5];var su=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];su.primary=su[5];var cu=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];cu.primary=cu[5];var lu=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];lu.primary=lu[5];var uu=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];uu.primary=uu[5];var du=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];du.primary=du[5];var fu=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];fu.primary=fu[5];var pu=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];pu.primary=pu[5];var mu=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];mu.primary=mu[5];var hu={red:nu,volcano:ru,orange:iu,gold:au,yellow:ou,lime:su,green:cu,cyan:lu,blue:uu,geekblue:du,purple:fu,magenta:pu,grey:mu},gu=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];gu.primary=gu[5];var _u=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];_u.primary=_u[5];var vu=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];vu.primary=vu[5];var yu=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];yu.primary=yu[5];var bu=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];bu.primary=bu[5];var xu=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];xu.primary=xu[5];var Su=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];Su.primary=Su[5];var Cu=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];Cu.primary=Cu[5];var wu=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];wu.primary=wu[5];var Tu=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];Tu.primary=Tu[5];var Eu=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];Eu.primary=Eu[5];var Du=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];Du.primary=Du[5];var Ou=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];Ou.primary=Ou[5],K();function ku(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new Hl(p[1]).mix(new Hl(p[3]),50).toHexString(),v={};return jl.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),G(G(G({},h),{},{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7]},v),{},{colorBgMask:new Hl(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`})}var Au=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};K();function ju(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return G({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},Au(r))}var Mu=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Nu=e=>{let t=Nl(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Pu(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var Fu=(e,t)=>new Hl(e).setA(t).toRgbString(),Iu=(e,t)=>new Hl(e).darken(t).toHexString(),Lu=e=>{let t=eu(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Ru=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:Fu(i,.88),colorTextSecondary:Fu(i,.65),colorTextTertiary:Fu(i,.45),colorTextQuaternary:Fu(i,.25),colorFill:Fu(i,.15),colorFillSecondary:Fu(i,.06),colorFillTertiary:Fu(i,.04),colorFillQuaternary:Fu(i,.02),colorBgSolid:Fu(i,1),colorBgSolidHover:Fu(i,.75),colorBgSolidActive:Fu(i,.95),colorBgLayout:Iu(r,4),colorBgContainer:Iu(r,0),colorBgElevated:Iu(r,0),colorBgSpotlight:Fu(i,.85),colorBgBlur:`transparent`,colorBorder:Iu(r,15),colorBorderDisabled:Iu(r,15),colorBorderSecondary:Iu(r,6)}};K();function zu(e){tu.pink=tu.magenta,hu.pink=hu.magenta;let t=Object.keys(Fl).map(t=>{let n=e[t]===tu[t]?hu[t]:eu(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e=G(G({},e),t),e),{});return G(G(G(G(G(G(G({},e),t),ku(e,{generateColorPalettes:Lu,generateNeutralColorPalettes:Ru})),Nu(e.fontSize)),Pu(e)),Mu(e)),ju(e))}var Bu=Go(zu),Vu={token:Il,override:{override:Il},hashed:!0},Hu=J.createContext(Vu);function Uu(e){return e>=0&&e<=255}function Wu(e,t){let{r:n,g:r,b:i,a}=new Hl(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new Hl(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(Uu(t)&&Uu(a)&&Uu(l))return new Hl({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new Hl({r:n,g:r,b:i,a:1}).toRgbString()}K();var Gu=[`override`];function Ku(e){let{override:t}=e,n=q(e,Gu),r=G({},t);Object.keys(Il).forEach(e=>{delete r[e]});let i=G(G({},n),r),a=new Hl(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),G(G({},i),{},{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Wu(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Wu(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Wu(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Wu(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 6px 16px 0 ${s(.08)}, 0 3px 6px -4px ${s(.12)}, 0 9px 28px 8px ${s(.05)} @@ -45,7 +44,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 1px 2px 0 ${s(.05)}, 0 1px 6px -1px ${s(.03)}, 0 2px 4px 0 ${s(.03)} - `,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:A-1,screenXXL:A,screenXXLMin:A,screenXXLMax:h-1,screenXXXL:h,screenXXXLMin:h,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:` + `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:` 0 1px 2px -2px ${s(.16)}, 0 3px 6px 0 ${s(.12)}, 0 5px 12px 4px ${s(.09)} @@ -65,7 +64,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 ${s(.08)}, 0 -3px 6px -4px ${s(.12)}, 0 -9px 28px 8px ${s(.05)} - `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`}),r)}const Rte={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},V3e={motionBase:!0,motionUnit:!0},K3e={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Nte=(e,t,n)=>{const r=n.getDerivativeToken(e),s=t,{override:i}=s,o=Ze(s,["override"]);let a=te(I({},r),{override:i});return a=Ite(a),o&&Object.entries(o).forEach(([l,c])=>{const A=c,{theme:u}=A,f=Ze(A,["theme"]);let d=f;u&&(d=Nte(I(I({},a),f),{override:f},u)),a[l]=d}),a};function al(){var h,p;const{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:o}=Be.useContext(TD),{csp:a,getPrefixCls:s}=Be.useContext(Un),l={prefix:(h=i==null?void 0:i.prefix)!=null?h:s(),key:(p=i==null?void 0:i.key)!=null?p:"css-var-root"},c=`${xte}-${t||""}`,u=n||_D,[f,d,A]=QRe(u,[xb,e],{salt:c,override:r,getComputedToken:Nte,cssVar:te(I({},l),{unitless:Rte,ignore:V3e,preserve:K3e}),nonce:a==null?void 0:a.nonce});return[u,A,t?d:"",f,l,!!o]}const Wa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Fg=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),W3e=new Xr("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),fA=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),sc=(e,t)=>({outline:`${be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t!=null?t:1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),lc=(e,t)=>({"&:focus-visible":sc(e,t)}),G3e=e=>({a:te(I({color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0}},lc(e)),{"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}})}),q3e=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:te(I(I({},s),a),{[i]:a})}},Pte=e=>({[`.${e}`]:te(I({},Fg()),{[`.${e} .${e}-icon`]:{display:"block"}}),[`.${e}-spin`]:{animationName:W3e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),iM=e=>te(I({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},lc(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Br,genComponentStyleHook:Y3e,genSubStyleComponent:kg}=R3e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=g.useContext(Un);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i,o]=al();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:o}},useCSP:()=>{const{csp:e}=g.useContext(Un);return e!=null?e:{}},getResetStyles:(e,t)=>{var r;const n=G3e(e);return[n,{"&":n},Pte((r=t==null?void 0:t.prefix.iconPrefixCls)!=null?r:zT)]},getCommonStyle:q3e,getCompUnitless:()=>Rte}),go=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[o=>`${n}${o}`,(o,a)=>a?`var(${n}${o}, ${a})`:`var(${n}${o})`]};function Lte(e,t){return uA.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return I(I({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const X3e=(e,t)=>(al(),cD({hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Pte(e)));var oM={},Fte;function Z3e(){if(Fte)return oM;Fte=1,Object.defineProperty(oM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return oM.default=e,oM}var J3e=Z3e();const eNe=_t(J3e),ID=g.createContext({}),kte="data-rc-order",Dte="data-rc-priority",tNe="rc-util-key",RD=new Map;function Hte(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function nNe(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function Ute({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:tNe}function ND(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rNe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function PD(e){return Array.from((RD.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function jte(e,t={}){if(!Hte())return null;const{csp:n,prepend:r,priority:i=0}=t,o=rNe(r),a=o==="prependQueue",s=document.createElement("style");s.setAttribute(kte,o),a&&i&&s.setAttribute(Dte,`${i}`),n!=null&&n.nonce&&(s.nonce=n.nonce),s.innerHTML=e;const l=ND(t),{firstChild:c}=l;if(r){if(a){const u=(t.styles||PD(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(kte)))return!1;const d=Number(f.getAttribute(Dte)||0);return i>=d});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function iNe(e,t={}){let{styles:n}=t;return n||(n=PD(ND(t))),n.find(r=>r.getAttribute(Ute(t))===e)}function oNe(e,t){const n=RD.get(e);if(!n||!nNe(document,n)){const r=jte("",t);if(!r)return;const{parentNode:i}=r;RD.set(e,i),e.removeChild(r)}}function aNe(e,t,n={}){var l;if(!Hte())return null;const r=ND(n),i=PD(r),o=te(I({},n),{styles:i});oNe(r,o);const a=iNe(t,o);if(a)return(l=o.csp)!=null&&l.nonce&&a.nonce!==o.csp.nonce&&(a.nonce=o.csp.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=jte(e,o);return s==null||s.setAttribute(Ute(o),t),s}function sNe(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function lNe(e){const t=sNe(e);return typeof ShadowRoot!="undefined"&&t instanceof ShadowRoot?t:null}const zte={};function cNe(e,t){e||zte[t]||(zte[t]=!0)}function uNe(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function fNe(e,t){cNe(e,`[@ant-design/icons] ${t}`)}function Qte(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Vte(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];return n==="class"?(t.className=r,delete t.class):(delete t[n],t[uNe(n)]=r),t},{})}function LD(e,t,n){return n?Be.createElement(e.tag,I(I({key:t},Vte(e.attrs)),n),(e.children||[]).map((r,i)=>LD(r,`${t}-${e.tag}-${i}`))):Be.createElement(e.tag,I({key:t},Vte(e.attrs)),(e.children||[]).map((r,i)=>LD(r,`${t}-${e.tag}-${i}`)))}const dNe=` + `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`},r)}K();var qu=[`override`],Ju=[`theme`],Yu={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Xu={motionBase:!0,motionUnit:!0},Zu={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Qu=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i}=t,a=q(t,qu),o=G(G({},r),{},{override:i});return o=Ku(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n}=t,r=q(t,Ju),i=r;n&&(i=Qu(G(G({},o),r),{override:r},n)),o[e]=i}),o};function $u(){var e,t;let{token:n,hashed:r,theme:i,override:a,cssVar:o,zeroRuntime:s}=J.useContext(Hu),{csp:c,getPrefixCls:l}=J.useContext(Eo),u={prefix:(e=o==null?void 0:o.prefix)==null?l():e,key:(t=o==null?void 0:o.key)==null?`css-var-root`:t},d=`${Pl}-${r||``}`,f=i||Bu,[p,m,h]=gs(f,[Il,n],{salt:d,override:a,getComputedToken:Qu,cssVar:G(G({},u),{},{unitless:Yu,ignore:Xu,preserve:Zu}),nonce:c==null?void 0:c.nonce});return[f,h,r?m:``,p,u,!!s]}K();var ed={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},td=(e,t=!1)=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:t?`inherit`:e.fontFamily}),nd=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),rd=new Vc(`loadingCircle`,{"100%":{transform:`rotate(360deg)`}}),id=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),ad=(e,t)=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t==null?1:t,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),od=(e,t)=>({"&:focus-visible":ad(e,t)}),sd=e=>({a:G(G({color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0}},od(e)),{},{"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}})}),cd=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:G(G(G({},s),o),{},{[i]:o})}},ld=e=>({[`.${e}`]:G(G({},nd()),{},{[`.${e} .${e}-icon`]:{display:`block`}}),[`.${e}-spin`]:{animationName:rd,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}}),ud=e=>G(G({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`},od(e)),{},{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:dd,genComponentStyleHook:fd,genSubStyleComponent:pd}=Al({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,J.useContext)(Eo);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=$u();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,J.useContext)(Eo);return e==null?{}:e},getResetStyles:(e,t)=>{var n;let r=sd(e);return[r,{"&":r},ld((n=t==null?void 0:t.prefix.iconPrefixCls)==null?wo:n)]},getCommonStyle:cd,getCompUnitless:()=>Yu}),md=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};K();function hd(e,t){return jl.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return G(G({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var gd=(e,t)=>{let[n,r]=$u();return Rc({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t==null?void 0:t.nonce,layer:{name:`antd`}},()=>ld(e))},_d=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z`}}]},name:`check-circle`,theme:`filled`}})),vd=(0,J.createContext)({}),yd=u(_d());K();var bd=`data-rc-order`,xd=`data-rc-priority`,Sd=`rc-util-key`,Cd=new Map;function wd(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Td(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function Ed({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:Sd}function Dd(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Od(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function kd(e){return Array.from((Cd.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function Ad(e,t={}){if(!wd())return null;let{csp:n,prepend:r,priority:i=0}=t,a=Od(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(bd,a),o&&i&&s.setAttribute(xd,`${i}`),n!=null&&n.nonce&&(s.nonce=n.nonce),s.innerHTML=e;let c=Dd(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||kd(c)).filter(e=>{if(![`prepend`,`prependQueue`].includes(e.getAttribute(bd)))return!1;let t=Number(e.getAttribute(xd)||0);return i>=t});if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function jd(e,t={}){let{styles:n}=t;return n||(n=kd(Dd(t))),n.find(n=>n.getAttribute(Ed(t))===e)}function Md(e,t){let n=Cd.get(e);if(!n||!Td(document,n)){let n=Ad(``,t);if(!n)return;let{parentNode:r}=n;Cd.set(e,r),e.removeChild(n)}}function Nd(e,t,n={}){if(!wd())return null;let r=Dd(n),i=kd(r),a=G(G({},n),{},{styles:i});Md(r,a);let o=jd(t,a);if(o){var s;return(s=a.csp)!=null&&s.nonce&&o.nonce!==a.csp.nonce&&(o.nonce=a.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o}let c=Ad(e,a);return c==null||c.setAttribute(Ed(a),t),c}function Pd(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}function Fd(e){let t=Pd(e);return typeof ShadowRoot<`u`&&t instanceof ShadowRoot?t:null}var Id={};function Ld(e,t){e||Id[t]||(Id[t]=!0)}K();function Rd(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function zd(e,t){Ld(e,`[@ant-design/icons] ${t}`)}function Bd(e){return typeof e==`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(typeof e.icon==`object`||typeof e.icon==`function`)}function Vd(e={}){return Object.keys(e).reduce((t,n)=>{let r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[Rd(n)]=r}return t},{})}function Hd(e,t,n){return n?J.createElement(e.tag,G(G({key:t},Vd(e.attrs)),n),(e.children||[]).map((n,r)=>Hd(n,`${t}-${e.tag}-${r}`))):J.createElement(e.tag,G({key:t},Vd(e.attrs)),(e.children||[]).map((n,r)=>Hd(n,`${t}-${e.tag}-${r}`)))}var Ud=` .anticon { display: inline-flex; align-items: center; @@ -119,110 +118,108 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,ANe=e=>{const{csp:t,prefixCls:n,layer:r,zeroRuntime:i}=g.useContext(ID);let o=dNe;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} { -${o} -}`),g.useEffect(()=>{if(i)return;const a=e.current,s=lNe(a);aNe(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:s})},[])},Kte=e=>{const u=e,{icon:t,className:n,onClick:r,style:i,primaryColor:o,secondaryColor:a}=u,s=Ze(u,["icon","className","onClick","style","primaryColor","secondaryColor"]),l=g.useRef(null);if(ANe(l),fNe(Qte(t),`icon should be icon definiton, but got ${t}`),!Qte(t))return null;const c=t;return LD(c.icon,`svg-${c.name}`,te(I({className:n,onClick:r,style:i,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{ref:l}))};Kte.displayName="IconReact";function FD(){return FD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const p=e,{className:n,icon:r,spin:i,rotate:o,tabIndex:a,onClick:s,twoToneColor:l}=p,c=Ze(p,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),{prefixCls:u="anticon",rootClassName:f}=g.useContext(ID),d=Ae(f,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name==="loading"},n);let A=a;A===void 0&&s&&(A=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0;return g.createElement("span",FD({role:"img","aria-label":r.name},c,{ref:t,tabIndex:A,onClick:s,className:d}),g.createElement(Kte,{icon:r,style:h}))});function kD(){return kD=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,kD({},e,{ref:t,icon:eNe})),eE=g.forwardRef(hNe);var aM={},Wte;function pNe(){if(Wte)return aM;Wte=1,Object.defineProperty(aM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};return aM.default=e,aM}var gNe=pNe();const mNe=_t(gNe);function DD(){return DD=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,DD({},e,{ref:t,icon:mNe})),hv=g.forwardRef(vNe);var sM={},Gte;function yNe(){if(Gte)return sM;Gte=1,Object.defineProperty(sM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};return sM.default=e,sM}var bNe=yNe();const xNe=_t(bNe);function HD(){return HD=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,HD({},e,{ref:t,icon:xNe})),Dg=g.forwardRef(wNe);var lM={},qte;function CNe(){if(qte)return lM;qte=1,Object.defineProperty(lM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return lM.default=e,lM}var SNe=CNe();const ENe=_t(SNe);function UD(){return UD=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,UD({},e,{ref:t,icon:ENe})),Sb=g.forwardRef(BNe);var cM={},Yte;function ONe(){if(Yte)return cM;Yte=1,Object.defineProperty(cM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return cM.default=e,cM}var $Ne=ONe();const _Ne=_t($Ne);function jD(){return jD=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,jD({},e,{ref:t,icon:_Ne})),Xte=g.forwardRef(TNe),Zte=g.createContext({}),MNe=e=>{const i=e,{children:t}=i,n=Ze(i,["children"]),r=g.useMemo(()=>({motion:n.motion}),[n.motion]);return g.createElement(Zte.Provider,{value:r},t)},dA="none",uM="appear",fM="enter",dM="leave",Jte="none",id="prepare",pv="start",gv="active",zD="end",ene="prepared";function tne(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function INe(e,t){const n={animationend:tne("Animation","AnimationEnd"),transitionend:tne("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const RNe=INe(ac(),typeof window!="undefined"?window:{});let nne={};ac()&&({style:nne}=document.createElement("div"));const AM={};function rne(e){if(AM[e])return AM[e];const t=RNe[e];if(t){const n=Object.keys(t),r=n.length;for(let i=0;ir[1].toUpperCase());return e[n]}return`${e}-${t}`}const PNe=(e=>{const t=g.useRef();function n(i){i&&(i.removeEventListener(sne,e),i.removeEventListener(ane,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(sne,e),i.addEventListener(ane,e),t.current=i)}return g.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),cne=ac()?g.useLayoutEffect:g.useEffect,LNe=(()=>{const e=g.useRef(null);function t(){Kn.cancel(e.current)}function n(r,i=2){t();const o=Kn(()=>{i<=1?r({isCanceled:()=>o!==e.current}):n(r,i-1)});e.current=o}return g.useEffect(()=>()=>{t()},[]),[n,t]}),FNe=[id,pv,gv,zD],kNe=[id,ene],une=!1,DNe=!0;function fne(e){return e===gv||e===zD}const HNe=((e,t,n)=>{const[r,i]=w6(Jte),[o,a]=LNe();function s(){i(id,!0)}const l=t?kNe:FNe;return cne(()=>{if(r!==Jte&&r!==zD){const c=l.indexOf(r),u=l[c+1],f=n(r);f===une?i(u,!0):u&&o(d=>{function A(){d.isCanceled()||i(u,!0)}f===!0?A():Promise.resolve(f).then(A)})}},[e,r]),g.useEffect(()=>()=>{a()},[]),[s,r]});function UNe(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:o=!0,motionDeadline:a,motionLeaveImmediately:s,onAppearPrepare:l,onEnterPrepare:c,onLeavePrepare:u,onAppearStart:f,onEnterStart:d,onLeaveStart:A,onAppearActive:h,onEnterActive:p,onLeaveActive:v,onAppearEnd:y,onEnterEnd:b,onLeaveEnd:x,onVisibleChanged:C}){const[S,B]=g.useState(),[E,_]=NIe(dA),[M,R]=g.useState([null,null]),T=E(),L=g.useRef(!1),P=g.useRef(null);function k(){return n()}const H=g.useRef(!1);function D(){_(dA),R([null,null])}const U=yn(ne=>{const re=E();if(re===dA)return;const ue=k();if(ne&&!ne.deadline&&ne.target!==ue)return;const de=H.current;let se;re===uM&&de?se=y==null?void 0:y(ue,ne):re===fM&&de?se=b==null?void 0:b(ue,ne):re===dM&&de&&(se=x==null?void 0:x(ue,ne)),de&&se!==!1&&D()}),[j]=PNe(U),Q=ne=>{switch(ne){case uM:return{[id]:l,[pv]:f,[gv]:h};case fM:return{[id]:c,[pv]:d,[gv]:p};case dM:return{[id]:u,[pv]:A,[gv]:v};default:return{}}},K=g.useMemo(()=>Q(T),[T]),[z,V]=HNe(T,!e,ne=>{var re;if(ne===id){const ue=K[id];return ue?ue(k()):une}return ne in K&&R([((re=K[ne])==null?void 0:re.call(K,k(),null))||null,ne]),ne===gv&&T!==dA&&(j(k()),a>0&&(clearTimeout(P.current),P.current=setTimeout(()=>{U({deadline:!0})},a))),ne===ene&&D(),DNe}),Y=fne(V);H.current=Y;const Z=g.useRef(null);cne(()=>{if(L.current&&Z.current===t)return;B(t);const ne=L.current;L.current=!0;let re;!ne&&t&&i&&(re=uM),ne&&t&&r&&(re=fM),(ne&&!t&&o||!ne&&s&&!t&&o)&&(re=dM);const ue=Q(re);re&&(e||ue[id])?(_(re),z()):_(dA),Z.current=t},[t]),g.useEffect(()=>{(T===uM&&!i||T===fM&&!r||T===dM&&!o)&&_(dA)},[i,r,o]),g.useEffect(()=>()=>{L.current=!1,clearTimeout(P.current)},[]);const W=g.useRef(!1);g.useEffect(()=>{S&&(W.current=!0),S!==void 0&&T===dA&&((W.current||S)&&(C==null||C(S)),W.current=!0)},[S,T]);let J=M[0];K[id]&&V===pv&&(J=I({transition:"none"},J));const ee=M[1];return[E,V,J,S!=null?S:t,!L.current&&T===dA&&e&&i?"NONE":V===pv||V===gv?ee===V:!0]}function dne(e){return(e==null?void 0:e.length)<2}function jNe(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(i,o){return!!(i.motionName&&t&&o!==!1)}const r=g.forwardRef((i,o)=>{const{visible:a=!0,removeOnLeave:s=!0,forceRender:l,children:c,motionName:u,leavedClassName:f,eventProps:d}=i,{motion:A}=g.useContext(Zte),h=n(i,A),p=g.useRef();function v(){return td(p.current)}const[y,b,x,C,S]=UNe(h,a,v,i),B=y(),E=g.useRef(C);C&&(E.current=!0);const _=g.useMemo(()=>{const T={};return Object.defineProperties(T,{nativeElement:{enumerable:!0,get:v},inMotion:{enumerable:!0,get:()=>()=>y()!==dA},enableMotion:{enumerable:!0,get:()=>()=>h}}),T},[]);g.useImperativeHandle(o,()=>_,[]);const M=g.useRef(0);S&&(M.current+=1);const R=g.useMemo(()=>{if(S==="NONE")return null;let T;const L=te(I({},d),{visible:a});if(!c)T=null;else if(B===dA)C?T=c(I({},L),p):!s&&E.current&&f?T=c(te(I({},L),{className:f}),p):l||!s&&!f?T=c(te(I({},L),{style:{display:"none"}}),p):T=null;else{let P;b===id?P="prepare":fne(b)?P="active":b===pv&&(P="start");const k=lne(u,`${B}-${P}`);T=c(te(I({},L),{className:Ae(lne(u,B),{[k]:k&&P,[u]:typeof u=="string"}),style:x}),p)}return T},[M.current]);if(dne(c)&&Aee(R)){const T=cA(R);if(T!==p)return g.cloneElement(R,{ref:il(T,p)})}return R});return r.displayName="CSSMotion",r}const sl=jNe(NNe),QD="add",VD="keep",KD="remove",WD="removed";function zNe(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},te(I({},t),{key:String(t.key)})}function GD(e=[]){return e.map(zNe)}function QNe(e=[],t=[]){let n=[],r=0;const i=t.length,o=GD(e),a=GD(t);o.forEach(c=>{let u=!1;for(let f=r;fte(I({},A),{status:QD}))),r=f),n.push(te(I({},d),{status:VD})),r+=1,u=!0;break}}u||n.push(te(I({},c),{status:KD}))}),rte(I({},c),{status:QD}))));const s={};return n.forEach(({key:c})=>{s[c]=(s[c]||0)+1}),Object.keys(s).filter(c=>s[c]>1).forEach(c=>{n=n.filter(({key:u,status:f})=>u!==c||f!==KD),n.forEach(u=>{u.key===c&&(u.status=VD)})}),n}function qD(){return qD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.setState(a=>({keyEntities:a.keyEntities.map(l=>l.key!==o?l:te(I({},l),{status:WD}))}),()=>{const{keyEntities:a}=this.state;a.filter(({status:l})=>l!==WD).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:o},{keyEntities:a}){const s=GD(o);return{keyEntities:QNe(a,s).filter(c=>{const u=a.find(({key:f})=>c.key===f);return!(u&&u.status===WD&&c.status===KD)})}}render(){const{keyEntities:o}=this.state,A=this.props,{component:a,children:s,onVisibleChanged:l,onAllRemoved:c}=A,u=Ze(A,["component","children","onVisibleChanged","onAllRemoved"]),f=a||g.Fragment,d={};return VNe.forEach(h=>{d[h]=u[h],delete u[h]}),delete u.keys,g.createElement(f,u,o.map((y,v)=>{var b=y,{status:h}=b,p=Ze(b,["status"]);const x=h===QD||h===VD;return g.createElement(t,qD({},d,{key:p.key,visible:x,eventProps:p,onVisibleChanged:C=>{l==null||l(C,{key:p.key}),C||this.removeKey(p.key)}}),dne(s)?C=>s(te(I({},C),{index:v})):(C,S)=>s(te(I({},C),{index:v}),S))}))}}return ke(n,"defaultProps",{component:"div"}),n}const YD=KNe(),oa=e=>e!=null,qi=e=>oa(e)&&e!==!1&&e!=="",mo=e=>typeof e=="number"&&!Number.isNaN(e),AA=e=>typeof e=="string",Zn=e=>e!==null&&typeof e=="object",Rn=e=>typeof e=="function",XD=e=>oa(e)&&Rn(e.then),WNe=e=>typeof e!="object"&&!Rn(e)||e===null,Ane=e=>Zn(e)&&"propertyName"in e&&AA(e.propertyName),ZD=(e,t)=>{const n=I({},e);return Object.keys(t).forEach(r=>{t[r]._default?n[r]||(n[r]={}):n[r]=ZD(n[r],t[r])}),n},hne=(e={},...t)=>t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(i=>{const o=e[i],a=r[i];if(o)if(Zn(a))n[i]=hne(o,n[i],a);else{const{_default:s}=o;s&&(n[i]=n[i]||{},n[i][s]=Ae(n[i][s],a))}else n[i]=Ae(n[i],a)}),n),{}),GNe=(e,...t)=>g.useMemo(()=>hne.apply(void 0,[e].concat(t)),[e].concat(t)),qNe=(...e)=>e.filter(t=>!!t).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=I(I({},t[r]),n[r])}),t),{}),YNe=(...e)=>g.useMemo(()=>qNe.apply(void 0,e),[].concat(e)),Ar=e=>g.useMemo(()=>e?{root:e}:void 0,[e]),hM=(e,t)=>Rn(e)?e(t):e,vr=(e,t,n,r)=>{const i=e.map(l=>l?hM(l,n):void 0),o=t.map(l=>l?hM(l,n):void 0),a=GNe.apply(void 0,[r].concat(en(i))),s=YNe.apply(void 0,en(o));return g.useMemo(()=>r?[ZD(a,r),ZD(s,r)]:[a,s],[a,s,r])};function Nr(e,t,n){return t=Lg(t),Ate(e,fD()?Reflect.construct(t,n||[],Lg(e).constructor):t.apply(e,n))}const pne=e=>typeof e=="object"&&e!=null&&e.nodeType===1,gne=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",pM=(e,t)=>{if(e.clientHeight{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!i&&(i.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,XNe=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},mne=(e,t)=>{var n,r,i,o;if(typeof document=="undefined")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:D=>D!==c;if(!pne(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,A=[];let h=e;for(;pne(h)&&f(h);){if(h=XNe(h),h===d){A.push(h);break}h!=null&&h===document.body&&pM(h)&&!pM(document.documentElement)||h!=null&&pM(h,u)&&A.push(h)}const p=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:y,scrollY:b}=window,{height:x,width:C,top:S,right:B,bottom:E,left:_}=e.getBoundingClientRect(),{top:M,right:R,bottom:T,left:L}=(D=>{const U=window.getComputedStyle(D);return{top:parseFloat(U.scrollMarginTop)||0,right:parseFloat(U.scrollMarginRight)||0,bottom:parseFloat(U.scrollMarginBottom)||0,left:parseFloat(U.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?S-M:s==="end"?E+T:S+x/2-M+T,k=l==="center"?_+C/2-L+R:l==="end"?B+R:_-L;const H=[];for(let D=0;D=0&&_>=0&&E<=v&&B<=p&&(U===d&&!pM(U)||S>=K&&E<=V&&_>=Y&&B<=z))return H;const Z=getComputedStyle(U),W=parseInt(Z.borderLeftWidth,10),J=parseInt(Z.borderTopWidth,10),ee=parseInt(Z.borderRightWidth,10),ne=parseInt(Z.borderBottomWidth,10);let re=0,ue=0;const de="offsetWidth"in U?U.offsetWidth-U.clientWidth-W-ee:0,se="offsetHeight"in U?U.offsetHeight-U.clientHeight-J-ne:0,ce="offsetWidth"in U?U.offsetWidth===0?0:Q/U.offsetWidth:0,ge="offsetHeight"in U?U.offsetHeight===0?0:j/U.offsetHeight:0;if(d===U)re=s==="start"?P:s==="end"?P-v:s==="nearest"?gM(b,b+v,v,J,ne,b+P,b+P+x,x):P-v/2,ue=l==="start"?k:l==="center"?k-p/2:l==="end"?k-p:gM(y,y+p,p,W,ee,y+k,y+k+C,C),re=Math.max(0,re+b),ue=Math.max(0,ue+y);else{re=s==="start"?P-K-J:s==="end"?P-V+ne+se:s==="nearest"?gM(K,V,j,J,ne+se,P,P+x,x):P-(K+j/2)+se/2,ue=l==="start"?k-Y-W:l==="center"?k-(Y+Q/2)+de/2:l==="end"?k-z+ee+de:gM(Y,z,Q,W,ee+de,k,k+C,C);const{scrollLeft:ie,scrollTop:le}=U;re=ge===0?0:Math.max(0,Math.min(le+re/ge,U.scrollHeight-j/ge+se)),ue=ce===0?0:Math.max(0,Math.min(ie+ue/ce,U.scrollWidth-Q/ce+de)),P+=le-re,k+=ie-ue}H.push({el:U,top:re,left:ue})}return H},ZNe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function JNe(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(mne(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of mne(e,ZNe(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const JD=e=>oa(e)&&e===e.window,ePe=e=>{var n,r;if(typeof window=="undefined")return 0;let t=0;return JD(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!JD(e)&&!mo(t)&&(t=(r=((n=e.ownerDocument)!=null?n:e).documentElement)==null?void 0:r.scrollTop),t};function tPe(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function nPe(e,t={}){const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),a=ePe(o),s=Date.now();let l;const c=()=>{const f=Date.now()-s,d=tPe(f>i?i:f,a,e,i);JD(o)?o.scrollTo(window.pageXOffset,d):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=d:o.scrollTop=d,f{Kn.cancel(l)}}const So=e=>`${e}-css-var`,vne=g.createContext(void 0);let mM=I({},Sl.Modal),vM=[];const yne=()=>vM.reduce((e,t)=>I(I({},e),t),Sl.Modal);function rPe(e){if(e){const t=I({},e);return vM.push(t),mM=yne(),()=>{vM=vM.filter(n=>n!==t),mM=yne()}}mM=I({},Sl.Modal)}function bne(){return mM}const e8=g.createContext(void 0),zs=(e,t)=>{const n=g.useContext(e8),r=g.useMemo(()=>{var s;const o=t||Sl[e],a=(s=n==null?void 0:n[e])!=null?s:{};return I(I({},Rn(o)?o():o),a||{})},[e,t,n]),i=g.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Sl.locale:o},[n]);return[r,i]},iPe="internalMark",oPe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;g.useEffect(()=>rPe(t==null?void 0:t.Modal),[t]);const i=g.useMemo(()=>te(I({},t),{exist:!0}),[t]);return g.createElement(e8.Provider,{value:i},n)},xne=g.createContext(null);let aPe=!1;function sPe(e){return aPe}const wne=[];function lPe(e,t){const[n]=g.useState(()=>ac()?document.createElement("div"):null),r=g.useRef(!1),i=g.useContext(xne),[o,a]=g.useState(wne),s=i||(r.current?void 0:u=>{a(f=>[u,...f])});function l(){n.parentElement||document.body.appendChild(n),r.current=!0}function c(){var u;(u=n.parentElement)==null||u.removeChild(n),r.current=!1}return ar(()=>(e?i?i(l):l():c(),c),[e]),ar(()=>{o.length&&(o.forEach(u=>u()),a(wne))},[o]),[n,s]}function cPe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const uPe=`rc-util-locker-${Date.now()}`;let Cne=0;function fPe(e){const t=!!e,[n]=g.useState(()=>(Cne+=1,`${uPe}_${Cne}`));ar(()=>{if(t){const r=k6(document.body).width,i=cPe();uv(` +`,Wd=e=>{let{csp:t,prefixCls:n,layer:r,zeroRuntime:i}=(0,J.useContext)(vd),a=Ud;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} {\n${a}\n}`),(0,J.useEffect)(()=>{if(i)return;let n=e.current,o=Fd(n);Nd(a,`@ant-design-icons`,{prepend:!r,csp:t,attachTo:o})},[])};K();var Gd=[`icon`,`className`,`onClick`,`style`,`primaryColor`,`secondaryColor`],Kd=e=>{let{icon:t,className:n,onClick:r,style:i,primaryColor:a,secondaryColor:o}=e,s=q(e,Gd),c=J.useRef(null);if(Wd(c),zd(Bd(t),`icon should be icon definiton, but got ${t}`),!Bd(t))return null;let l=t;return Hd(l.icon,`svg-${l.name}`,G(G({className:n,onClick:r,style:i,"data-icon":l.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`},s),{},{ref:c}))};Kd.displayName=`IconReact`;var qd=[`className`,`icon`,`spin`,`rotate`,`tabIndex`,`onClick`,`twoToneColor`];function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,icon:r,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:c}=e,l=q(e,qd),{prefixCls:u=`anticon`,rootClassName:d}=J.useContext(vd),f=Z(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name===`loading`},n),p=o;p===void 0&&s&&(p=-1);let m=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0;return J.createElement(`span`,Jd({role:`img`,"aria-label":r.name},l,{ref:t,tabIndex:p,onClick:s,className:f}),J.createElement(Kd,{icon:r,style:m}))});function Xd(){return Xd=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Xd({},e,{ref:t,icon:yd.default}))),Qd=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z`}}]},name:`close-circle`,theme:`filled`}}))());function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,$d({},e,{ref:t,icon:Qd.default}))),tf=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`}}))());function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,nf({},e,{ref:t,icon:tf.default}))),af=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`exclamation-circle`,theme:`filled`}}))());function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,of({},e,{ref:t,icon:af.default}))),cf=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`info-circle`,theme:`filled`}}))());function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,lf({},e,{ref:t,icon:cf.default}))),df=[`children`],ff=J.createContext({}),pf=e=>{let{children:t}=e,n=q(e,df),r=J.useMemo(()=>({motion:n.motion}),[n.motion]);return J.createElement(ff.Provider,{value:r},t)},mf=`none`,hf=`appear`,gf=`enter`,_f=`leave`,vf=`none`,yf=`prepare`,bf=`start`,xf=`active`,Sf=`prepared`;function Cf(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function wf(e,t){let n={animationend:Cf(`Animation`,`AnimationEnd`),transitionend:Cf(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var Tf=wf(Jr(),typeof window<`u`?window:{}),Ef={};Jr()&&({style:Ef}=document.createElement(`div`));var Df={};function Of(e){if(Df[e])return Df[e];let t=Tf[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;ie[1].toUpperCase())]:`${e}-${t}`:null}var Ff=(e=>{let t=(0,J.useRef)();function n(t){t&&(t.removeEventListener(Nf,e),t.removeEventListener(Mf,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Nf,e),r.addEventListener(Mf,e),t.current=r)}return J.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),If=Jr()?J.useLayoutEffect:J.useEffect,Lf=(()=>{let e=J.useRef(null);function t(){Fa.cancel(e.current)}function n(r,i=2){t();let a=Fa(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return J.useEffect(()=>()=>{t()},[]),[n,t]}),Rf=[yf,bf,xf,`end`],zf=[yf,Sf];function Bf(e){return e===`active`||e===`end`}var Vf=((e,t,n)=>{let[r,i]=Qr(vf),[a,o]=Lf();function s(){i(yf,!0)}let c=t?zf:Rf;return If(()=>{if(r!==`none`&&r!==`end`){let e=c.indexOf(r),t=c[e+1],o=n(r);o===!1?i(t,!0):t&&a(e=>{function n(){e.isCanceled()||i(t,!0)}o===!0?n():Promise.resolve(o).then(n)})}},[e,r]),J.useEffect(()=>()=>{o()},[]),[s,r]});K();function Hf(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:h,onLeaveActive:g,onAppearEnd:_,onEnterEnd:v,onLeaveEnd:y,onVisibleChanged:b}){let[x,S]=J.useState(),[C,w]=oi(mf),[T,E]=J.useState([null,null]),D=C(),O=(0,J.useRef)(!1),k=(0,J.useRef)(null);function A(){return n()}let j=(0,J.useRef)(!1);function M(){w(mf),E([null,null])}let N=qr(e=>{let t=C();if(t===`none`)return;let n=A();if(e&&!e.deadline&&e.target!==n)return;let r=j.current,i;t===`appear`&&r?i=_==null?void 0:_(n,e):t===`enter`&&r?i=v==null?void 0:v(n,e):t===`leave`&&r&&(i=y==null?void 0:y(n,e)),r&&i!==!1&&M()}),[P]=Ff(N),F=e=>{switch(e){case hf:return{[yf]:c,[bf]:d,[xf]:m};case gf:return{[yf]:l,[bf]:f,[xf]:h};case _f:return{[yf]:u,[bf]:p,[xf]:g};default:return{}}},I=J.useMemo(()=>F(D),[D]),[L,R]=Vf(D,!e,e=>{if(e===`prepare`){let e=I[yf];return e?e(A()):!1}if(e in I){var t;E([((t=I[e])==null?void 0:t.call(I,A(),null))||null,e])}return e===`active`&&D!==`none`&&(P(A()),o>0&&(clearTimeout(k.current),k.current=setTimeout(()=>{N({deadline:!0})},o))),e===`prepared`&&M(),!0});j.current=Bf(R);let z=(0,J.useRef)(null);If(()=>{if(O.current&&z.current===t)return;S(t);let n=O.current;O.current=!0;let o;!n&&t&&i&&(o=hf),n&&t&&r&&(o=gf),(n&&!t&&a||!n&&s&&!t&&a)&&(o=_f);let c=F(o);o&&(e||c.prepare)?(w(o),L()):w(mf),z.current=t},[t]),(0,J.useEffect)(()=>{(D===`appear`&&!i||D===`enter`&&!r||D===`leave`&&!a)&&w(mf)},[i,r,a]),(0,J.useEffect)(()=>()=>{O.current=!1,clearTimeout(k.current)},[]);let B=J.useRef(!1);(0,J.useEffect)(()=>{x&&(B.current=!0),x!==void 0&&D===`none`&&((B.current||x)&&(b==null||b(x)),B.current=!0)},[x,D]);let V=T[0];I.prepare&&R===`start`&&(V=G({transition:`none`},V));let H=T[1];return[C,R,V,x==null?t:x,!O.current&&D===`none`&&e&&i?`NONE`:R===`start`||R===`active`?H===R:!0]}K();function Uf(e){return(e==null?void 0:e.length)<2}function Wf(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=J.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=J.useContext(ff),d=n(e,u),f=(0,J.useRef)();function p(){return Ii(f.current)}let[m,h,g,_,v]=Hf(d,r,p,e),y=m(),b=J.useRef(_);_&&(b.current=!0);let x=J.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>m()!==mf},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);J.useImperativeHandle(t,()=>x,[]);let S=J.useRef(0);v&&(S.current+=1);let C=J.useMemo(()=>{if(v===`NONE`)return null;let e,t=G(G({},l),{},{visible:r});if(!o)e=null;else if(y===`none`)e=_?o(G({},t),f):!i&&b.current&&c?o(G(G({},t),{},{className:c}),f):a||!i&&!c?o(G(G({},t),{},{style:{display:`none`}}),f):null;else{let n;h===`prepare`?n=`prepare`:Bf(h)?n=`active`:h===`start`&&(n=`start`);let r=Pf(s,`${y}-${n}`);e=o(G(G({},t),{},{className:Z(Pf(s,y),{[r]:r&&n,[s]:typeof s==`string`}),style:g}),f)}return e},[S.current]);if(Uf(o)&&yi(C)){let e=bi(C);if(e!==f)return J.cloneElement(C,{ref:hi(e,f)})}return C});return r.displayName=`CSSMotion`,r}var Gf=Wf(jf);K();var Kf=`keep`,qf=`remove`,Jf=`removed`;function Yf(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},G(G({},t),{},{key:String(t.key)})}function Xf(e=[]){return e.map(Yf)}function Zf(e=[],t=[]){let n=[],r=0,i=t.length,a=Xf(e),o=Xf(t);a.forEach(e=>{let t=!1;for(let a=r;aG(G({},e),{},{status:`add`}))),r=a),n.push(G(G({},i),{},{status:Kf})),r+=1,t=!0;break}}t||n.push(G(G({},e),{},{status:qf}))}),rG(G({},e),{},{status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=Kf)})}),n}ge(),K();var Qf=[`component`,`children`,`onVisibleChanged`,`onAllRemoved`],$f=[`status`];function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?G(G({},t),{},{status:Jf}):t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:Zf(t,Xf(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}render(){let{keyEntities:e}=this.state,n=this.props,{component:r,children:i,onVisibleChanged:a,onAllRemoved:o}=n,s=q(n,Qf),c=r||J.Fragment,l={};return tp.forEach(e=>{l[e]=s[e],delete s[e]}),delete s.keys,J.createElement(c,s,e.map((e,n)=>{let{status:r}=e,o=q(e,$f),s=r===`add`||r===`keep`;return J.createElement(t,ep({},l,{key:o.key,visible:s,eventProps:o,onVisibleChanged:e=>{a==null||a(e,{key:o.key}),e||this.removeKey(o.key)}}),Uf(i)?e=>i(G(G({},e),{},{index:n})):(e,t)=>i(G(G({},e),{},{index:n}),t))}))}}return W(n,`defaultProps`,{component:`div`}),n}var rp=np(jf),ip=Gf,ap=e=>e!=null,op=e=>ap(e)&&e!==!1&&e!==``,sp=e=>typeof e==`number`&&!Number.isNaN(e),cp=e=>typeof e==`string`,lp=e=>typeof e==`object`&&!!e,up=e=>typeof e==`function`,dp=e=>ap(e)&&up(e.then),fp=e=>typeof e!=`object`&&!up(e)||e===null,pp=e=>lp(e)&&`propertyName`in e&&cp(e.propertyName);K();var mp=(e,t)=>{let n=G({},e);return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=mp(n[e],t[e])}),n};K();var hp=(e={},...t)=>t.filter(e=>!!e).reduce((t,n)=>(Object.keys(n).forEach(r=>{let i=e[r],a=n[r];if(i)if(lp(a))t[r]=hp(i,t[r],a);else{let{_default:e}=i;e&&(t[r]=t[r]||{},t[r][e]=Z(t[r][e],a))}else t[r]=Z(t[r],a)}),t),{}),gp=(e,...t)=>J.useMemo(()=>hp.apply(void 0,[e].concat(t)),[e].concat(t)),_p=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]=G(G({},e[n]),t[n])}),e),{}),vp=(...e)=>J.useMemo(()=>_p.apply(void 0,e),[].concat(e)),yp=e=>J.useMemo(()=>e?{root:e}:void 0,[e]),bp=(e,t)=>up(e)?e(t):e,xp=(e,t,n,r)=>{let i=e.map(e=>e?bp(e,n):void 0),a=t.map(e=>e?bp(e,n):void 0),o=gp.apply(void 0,[r].concat(Co(i))),s=vp.apply(void 0,Co(a));return J.useMemo(()=>r?[mp(o,r),mp(s,r)]:[o,s],[o,s,r])};function Sp(e,t,n){return t=al(t),sl(e,ol()?Reflect.construct(t,n||[],al(e).constructor):t.apply(e,n))}var Cp=e=>typeof e==`object`&&!!e&&e.nodeType===1,wp=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,Tp=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Dp=e=>{let t=e.parentElement;return t==null?e.getRootNode().host||null:t},Op=(e,t)=>{var n,r,i,a;if(typeof document>`u`)return[];let{scrollMode:o,block:s,inline:c,boundary:l,skipOverflowHiddenElements:u}=t,d=typeof l==`function`?l:e=>e!==l;if(!Cp(e))throw TypeError(`Invalid target`);let f=document.scrollingElement||document.documentElement,p=[],m=e;for(;Cp(m)&&d(m);){if(m=Dp(m),m===f){p.push(m);break}m!=null&&m===document.body&&Tp(m)&&!Tp(document.documentElement)||m!=null&&Tp(m,u)&&p.push(m)}let h=(r=(n=window.visualViewport)==null?void 0:n.width)==null?innerWidth:r,g=(a=(i=window.visualViewport)==null?void 0:i.height)==null?innerHeight:a,{scrollX:_,scrollY:v}=window,{height:y,width:b,top:x,right:S,bottom:C,left:w}=e.getBoundingClientRect(),{top:T,right:E,bottom:D,left:O}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),k=s===`start`||s===`nearest`?x-T:s===`end`?C+D:x+y/2-T+D,A=c===`center`?w+b/2-O+E:c===`end`?S+E:w-O,j=[];for(let e=0;e=0&&w>=0&&C<=g&&S<=h&&(t===f&&!Tp(t)||x>=i&&C<=l&&w>=u&&S<=a))return j;let d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),T=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),D=parseInt(d.borderBottomWidth,10),O=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-m-E:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-T-D:0,F=`offsetWidth`in t?t.offsetWidth===0?0:r/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:n/t.offsetHeight:0;if(f===t)O=s===`start`?k:s===`end`?k-g:s===`nearest`?Ep(v,v+g,g,T,D,v+k,v+k+y,y):k-g/2,M=c===`start`?A:c===`center`?A-h/2:c===`end`?A-h:Ep(_,_+h,h,m,E,_+A,_+A+b,b),O=Math.max(0,O+v),M=Math.max(0,M+_);else{O=s===`start`?k-i-T:s===`end`?k-l+D+P:s===`nearest`?Ep(i,l,n,T,D+P,k,k+y,y):k-(i+n/2)+P/2,M=c===`start`?A-u-m:c===`center`?A-(u+r/2)+N/2:c===`end`?A-a+E+N:Ep(u,a,r,m,E+N,A,A+b,b);let{scrollLeft:e,scrollTop:o}=t;O=I===0?0:Math.max(0,Math.min(o+O/I,t.scrollHeight-n/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-r/F+N)),k+=o-O,A+=e-M}j.push({el:t,top:O,left:M})}return j},kp=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function Ap(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(Op(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of Op(e,kp(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var jp=e=>ap(e)&&e===e.window,Mp=e=>{if(typeof window>`u`)return 0;let t=0;if(jp(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!jp(e)&&!sp(t)){var n,r;t=(n=((r=e.ownerDocument)==null?e:r).documentElement)==null?void 0:n.scrollTop}return t};function Np(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function Pp(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=Mp(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=Np(t>i?i:t,o,e,i);jp(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t{Fa.cancel(c)}}var Fp=e=>`${e}-css-var`,Ip=(0,J.createContext)(void 0);K();var Lp=G({},Wn.Modal),Rp=[],zp=()=>Rp.reduce((e,t)=>G(G({},e),t),Wn.Modal);function Bp(e){if(e){let t=G({},e);return Rp.push(t),Lp=zp(),()=>{Rp=Rp.filter(e=>e!==t),Lp=zp()}}Lp=G({},Wn.Modal)}function eee(){return Lp}var Vp=(0,J.createContext)(void 0);K();var Hp=(e,t)=>{let n=J.useContext(Vp);return[J.useMemo(()=>{var r;let i=t||Wn[e],a=(r=n==null?void 0:n[e])==null?{}:r;return G(G({},up(i)?i():i),a||{})},[e,t,n]),J.useMemo(()=>{let e=n==null?void 0:n.locale;return n!=null&&n.exist&&!e?Wn.locale:e},[n])]};K();var tee=`internalMark`,nee=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;J.useEffect(()=>Bp(t==null?void 0:t.Modal),[t]);let i=J.useMemo(()=>G(G({},t),{},{exist:!0}),[t]);return J.createElement(Vp.Provider,{value:i},n)},Up=J.createContext(null),Wp=!1;function ree(e){return typeof e==`boolean`&&(Wp=e),Wp}var Gp=[];function iee(e,t){let[n]=J.useState(()=>Jr()?document.createElement(`div`):null),r=J.useRef(!1),i=J.useContext(Up),[a,o]=J.useState(Gp),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){var e;(e=n.parentElement)==null||e.removeChild(n),r.current=!1}return Xr(()=>(e?i?i(c):c():l(),l),[e]),Xr(()=>{a.length&&(a.forEach(e=>e()),o(Gp))},[a]),[n,s]}function aee(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var oee=`rc-util-locker-${Date.now()}`,Kp=0;function see(e){let t=!!e,[n]=J.useState(()=>(Kp+=1,`${oee}_${Kp}`));Xr(()=>{if(t){let e=la(document.body).width;Pi(` html body { overflow-y: hidden; - ${i?`width: calc(100% - ${r}px);`:""} -}`,n)}else HS(n);return()=>{HS(n)}},[t,n])}let mv=[];const dPe=200;let Sne=0;const Ene=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Sne=0;r-=1)mv[r].onEsc({top:r===n-1,event:e})}},Bne=()=>{Sne=Date.now()};function APe(){window.addEventListener("keydown",Ene),window.addEventListener("compositionend",Bne)}function hPe(){mv.length===0&&(window.removeEventListener("keydown",Ene),window.removeEventListener("compositionend",Bne))}function pPe(e,t){const n=lA(),r=yn(t),i=()=>{mv.find(a=>a.id===n)||mv.push({id:n,onEsc:r})},o=()=>{mv=mv.filter(a=>a.id!==n)};g.useMemo(()=>{e?i():e||o()},[e]),g.useEffect(()=>{if(e)return i(),APe(),()=>{o(),hPe()}},[e])}const One=e=>e===!1?!1:!ac()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,tE=g.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:i,debug:o,autoDestroy:a=!0,children:s,onEsc:l}=e,[c,u]=g.useState(n),f=c||n;g.useEffect(()=>{(a||n)&&u(n)},[n,a]);const[d,A]=g.useState(()=>One(i));g.useEffect(()=>{const S=One(i);A(()=>S!=null?S:null)});const[h,p]=lPe(f&&!d),v=d!=null?d:h;fPe(r&&n&&ac()&&(v===h||v===document.body)),pPe(n,l);let y=null;s&&Vh(s)&&t&&(y=cA(s));const b=ed(y,t);if(!f||!ac()||d===void 0)return null;const x=v===!1||sPe();let C=s;return t&&(C=g.cloneElement(s,{ref:b})),g.createElement(xne.Provider,{value:p},x?C:fu.createPortal(C,v))});function gPe(e){const{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:o,content:a,style:s}=r||{},{x:l=0,y:c=0}=i,u=g.useRef(null);if(!n||!n.points)return null;const f={position:"absolute"};if(n.autoArrow!==!1){const d=n.points[0],A=n.points[1],h=d[0],p=d[1],v=A[0],y=A[1];h===v||!["t","b"].includes(h)?f.top=c:h==="t"?f.top=0:f.bottom=0,p===y||!["l","r"].includes(p)?f.left=l:p==="l"?f.left=0:f.right=0}return g.createElement("div",{ref:u,className:Ae(`${t}-arrow`,o),style:I(I({},f),s)},a)}function t8(){return t8=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("div",{style:{zIndex:r},className:Ae(`${t}-mask`,a&&`${t}-mobile-mask`,s)})):null}const vPe=g.memo(({children:e})=>e,(e,t)=>t.cache);function $ne(e,t,n,r,i,o,a,s){var u;const l="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:l,bottom:l};if(!e&&(t||!n)){const{points:f}=r,d=r.dynamicInset||((u=r._experimental)==null?void 0:u.dynamicInset),A=d&&f[0][1]==="r",h=d&&f[0][0]==="b";A?(c.right=i,c.left=l):(c.left=a,c.right=l),h?(c.bottom=o,c.top=l):(c.top=s,c.bottom=l)}return c}function n8(){return n8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{onEsc:n,popup:r,className:i,prefixCls:o,style:a,target:s,onVisibleChanged:l,open:c,keepDom:u,fresh:f,onClick:d,mask:A,arrow:h,arrowPos:p,align:v,motion:y,maskMotion:b,mobile:x,forceRender:C,getPopupContainer:S,autoDestroy:B,portal:E,children:_,zIndex:M,onMouseEnter:R,onMouseLeave:T,onPointerEnter:L,onPointerDownCapture:P,ready:k,offsetX:H,offsetY:D,offsetR:U,offsetB:j,onAlign:Q,onPrepare:K,onResize:z,stretch:V,targetWidth:Y,targetHeight:Z}=e,W=typeof r=="function"?r():r,J=c||u,ee=!!x,[ne,re,ue]=g.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[A,b,y],[x,A,b,y]),de=(S==null?void 0:S.length)>0,[se,ce]=g.useState(!S||!de);ar(()=>{!se&&de&&s&&ce(!0)},[se,de,s]);const ge=yn((ve,we)=>{z==null||z(ve,we),Q()}),ie=$ne(ee,k,c,v,U,j,H,D);if(!se)return null;const le={};return V&&(V.includes("height")&&Z?le.height=Z:V.includes("minHeight")&&Z&&(le.minHeight=Z),V.includes("width")&&Y?le.width=Y:V.includes("minWidth")&&Y&&(le.minWidth=Y)),c||(le.pointerEvents="none"),g.createElement(E,{open:C||J,getContainer:S&&(()=>S(s)),autoDestroy:B,onEsc:n},g.createElement(mPe,{prefixCls:o,open:c,zIndex:M,mask:ne,motion:re,mobile:ee}),g.createElement(Bl,{onResize:ge,disabled:!c},ve=>g.createElement(sl,n8({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:`${o}-hidden`},ue,{onAppearPrepare:K,onEnterPrepare:K,visible:c,onVisibleChanged:we=>{var me;(me=y==null?void 0:y.onVisibleChanged)==null||me.call(y,we),l(we)}}),({className:we,style:me},Ee)=>{const Ce=Ae(o,we,i,{[`${o}-mobile`]:ee});return g.createElement("div",{ref:il(ve,t,Ee),className:Ce,style:I(te(I(I(I({"--arrow-x":`${p.x||0}px`,"--arrow-y":`${p.y||0}px`},ie),le),me),{boxSizing:"border-box",zIndex:M}),a),onMouseEnter:R,onMouseLeave:T,onPointerEnter:L,onClick:d,onPointerDownCapture:P},h&&g.createElement(gPe,{prefixCls:o,arrow:h,arrowPos:p,align:v}),g.createElement(vPe,{cache:!c&&!f},W))})),_)}),yM=g.createContext(null),Tne=g.createContext(null);function Mne(e){return e?Array.isArray(e)?e:[e]:[]}function yPe(e,t,n){return g.useMemo(()=>{const r=Mne(t!=null?t:e),i=Mne(n!=null?n:e),o=new Set(r),a=new Set(i);return o.has("hover")&&!o.has("click")&&o.add("touch"),a.has("hover")&&!a.has("click")&&a.add("touch"),[o,a]},[e,t,n])}function bPe(e=[],t=[],n){const r=(i,o)=>i[o]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function Ine(e,t,n,r){var a;const{points:i}=n,o=Object.keys(e);for(let s=0;sr.includes(s))&&t.push(n),n=n.parentElement}return t}function rE(e,t=1){return Number.isNaN(e)?t:e}function iE(e){return rE(parseFloat(e),0)}function Rne(e,t){const n=I({},e);return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:o,borderTopWidth:a,borderBottomWidth:s,borderLeftWidth:l,borderRightWidth:c}=nE(r).getComputedStyle(r),u=r.getBoundingClientRect(),{offsetHeight:f,clientHeight:d,offsetWidth:A,clientWidth:h}=r,p=iE(a),v=iE(s),y=iE(l),b=iE(c),x=rE(Math.round(u.width/A*1e3)/1e3),C=rE(Math.round(u.height/f*1e3)/1e3),S=(A-h-y-b)*x,B=(f-d-p-v)*C,E=p*C,_=v*C,M=y*x,R=b*x;let T=0,L=0;if(i==="clip"){const U=iE(o);T=U*x,L=U*C}const P=u.x+M-T,k=u.y+E-L,H=P+u.width+2*T-M-R-S,D=k+u.height+2*L-E-_-B;n.left=Math.max(n.left,P),n.top=Math.max(n.top,k),n.right=Math.min(n.right,H),n.bottom=Math.min(n.bottom,D)}),n}function Nne(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Pne(e,t){const[n,r]=t||[];return[Nne(e.width,n),Nne(e.height,r)]}function Lne(e=""){return[e[0],e[1]]}function Eb(e,t){const n=t[0],r=t[1];let i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Hg(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function Fne(e){return e.join("")}function kne(e,t,n,r,i,o,a,s){const[l,c]=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=g.useRef(0),f=g.useMemo(()=>!t||s?[]:r8(t),[t]),d=g.useRef({});e||(d.current={});const h=yn(()=>{var y,b,x,C,S,B;if(t&&n&&e&&!s){let Ot=function(on,Nn,Wr=pe){const ir=z.x+on,hr=z.y+Nn,an=ir+de,tr=hr+ue,xi=Math.max(ir,Wr.left),Si=Math.max(hr,Wr.top),Li=Math.min(an,Wr.right),_o=Math.min(tr,Wr.bottom);return Math.max(0,(Li-xi)*(_o-Si))},bn=function(){ft=z.y+Jt,Kt=ft+ue,An=z.x+nn,pn=An+de};const E=t,_=E.ownerDocument,M=nE(E),{position:R}=M.getComputedStyle(E),T=E.style.left,L=E.style.top,P=E.style.right,k=E.style.bottom,H=E.style.overflow,D=E.style.overflowX,U=E.style.overflowY,j=I(I({},i[r]),o),Q=_.createElement("div");(y=E.parentElement)==null||y.appendChild(Q),Q.style.left=`${E.offsetLeft}px`,Q.style.top=`${E.offsetTop}px`,Q.style.position=R,Q.style.height=`${E.offsetHeight}px`,Q.style.width=`${E.offsetWidth}px`,E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";let K;if(Array.isArray(n))K={x:n[0],y:n[1],width:0,height:0};else{const on=n.getBoundingClientRect();on.x=(b=on.x)!=null?b:on.left,on.y=(x=on.y)!=null?x:on.top,K={x:on.x,y:on.y,width:on.width,height:on.height}}const z=E.getBoundingClientRect(),{height:V,width:Y}=M.getComputedStyle(E);z.x=(C=z.x)!=null?C:z.left,z.y=(S=z.y)!=null?S:z.top;const{clientWidth:Z,clientHeight:W,scrollWidth:J,scrollHeight:ee,scrollTop:ne,scrollLeft:re}=_.documentElement,ue=z.height,de=z.width,se=K.height,ce=K.width,ge={left:0,top:0,right:Z,bottom:W},ie={left:-re,top:-ne,right:J-re,bottom:ee-ne};let{htmlRegion:le}=j;const ve="visible",we="visibleFirst";le!=="scroll"&&le!==we&&(le=ve);const me=le===we,Ee=Rne(ie,f),Ce=Rne(ge,f),pe=le===ve?Ce:Ee,Oe=me?Ce:pe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";const xe=E.getBoundingClientRect();E.style.left=T,E.style.top=L,E.style.right=P,E.style.bottom=k,E.style.overflow=H,E.style.overflowX=D,E.style.overflowY=U,(B=E.parentElement)==null||B.removeChild(Q);const Me=rE(Math.round(de/parseFloat(Y)*1e3)/1e3),Se=rE(Math.round(ue/parseFloat(V)*1e3)/1e3);if(Me===0||Se===0||Ab(n)&&!hb(n))return;const{offset:Pe,targetOffset:Le}=j;let[He,Ne]=Pne(z,Pe);const[at,Ue]=Pne(K,Le);K.x-=at,K.y-=Ue;const[et,We]=j.points||[],Je=Lne(We),dt=Lne(et),wt=Eb(K,Je),Bt=Eb(z,dt),qt=I({},j);let jt=[dt,Je],nn=wt.x-Bt.x+He,Jt=wt.y-Bt.y+Ne;const sn=Ot(nn,Jt),Vt=Ot(nn,Jt,Ce),xt=Eb(K,["t","l"]),qe=Eb(z,["t","l"]),it=Eb(K,["b","r"]),Pt=Eb(z,["b","r"]),De=j.overflow||{},{adjustX:ze,adjustY:bt,shiftX:lt,shiftY:At}=De,ut=on=>typeof on=="boolean"?on:on>=0;let ft,Kt,An,pn;bn();const Sn=ut(bt),Tn=dt[0]===Je[0];if(Sn&&dt[0]==="t"&&(Kt>Oe.bottom||d.current.bt)){let on=Jt;Tn?on-=ue-se:on=xt.y-Pt.y-Ne;const Nn=Ot(nn,on),Wr=Ot(nn,on,Ce);Nn>sn||Nn===sn&&(!me||Wr>=Vt)?(d.current.bt=!0,Jt=on,Ne=-Ne,jt=[Hg(jt[0],0),Hg(jt[1],0)]):d.current.bt=!1}if(Sn&&dt[0]==="b"&&(ftsn||Nn===sn&&(!me||Wr>=Vt)?(d.current.tb=!0,Jt=on,Ne=-Ne,jt=[Hg(jt[0],0),Hg(jt[1],0)]):d.current.tb=!1}const lr=ut(ze),$n=dt[1]===Je[1];if(lr&&dt[1]==="l"&&(pn>Oe.right||d.current.rl)){let on=nn;$n?on-=de-ce:on=xt.x-Pt.x-He;const Nn=Ot(on,Jt),Wr=Ot(on,Jt,Ce);Nn>sn||Nn===sn&&(!me||Wr>=Vt)?(d.current.rl=!0,nn=on,He=-He,jt=[Hg(jt[0],1),Hg(jt[1],1)]):d.current.rl=!1}if(lr&&dt[1]==="r"&&(Ansn||Nn===sn&&(!me||Wr>=Vt)?(d.current.lr=!0,nn=on,He=-He,jt=[Hg(jt[0],1),Hg(jt[1],1)]):d.current.lr=!1}qt.points=[Fne(jt[0]),Fne(jt[1])],bn();const Fn=lt===!0?0:lt;typeof Fn=="number"&&(AnCe.right&&(nn-=pn-Ce.right-He,K.x>Ce.right-Fn&&(nn+=K.x-Ce.right+Fn)));const $t=At===!0?0:At;typeof $t=="number"&&(ftCe.bottom&&(Jt-=Kt-Ce.bottom-Ne,K.y>Ce.bottom-$t&&(Jt+=K.y-Ce.bottom+$t)));const Ie=z.x+nn,Ke=Ie+de,nt=z.y+Jt,ht=nt+ue,Xt=K.x,kt=Xt+ce,mn=K.y,Rt=mn+se,tn=Math.max(Ie,Xt),cn=Math.min(Ke,kt),Zt=(tn+cn)/2-Ie,_n=Math.max(nt,mn),Wt=Math.min(ht,Rt),vn=(_n+Wt)/2-nt;a==null||a(t,qt);let In=xe.right-z.x-(nn+z.width),Dt=xe.bottom-z.y-(Jt+z.height);Me===1&&(nn=Math.floor(nn),In=Math.floor(In)),Se===1&&(Jt=Math.floor(Jt),Dt=Math.floor(Dt));const xn={ready:!0,offsetX:nn/Me,offsetY:Jt/Se,offsetR:In/Me,offsetB:Dt/Se,arrowX:Zt/Me,arrowY:vn/Se,scaleX:Me,scaleY:Se,align:qt};c(xn)}}),p=()=>{u.current+=1;const y=u.current;Promise.resolve().then(()=>{u.current===y&&h()})},v=()=>{c(y=>te(I({},y),{ready:!1}))};return ar(v,[r]),ar(()=>{e||v()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,p]}function Dne(){const e=g.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,i)=>{t(),i===0?r():e.current=setTimeout(()=>{r()},i*1e3)};return g.useEffect(()=>()=>{t()},[]),n}function xPe(e,t,n,r,i){ar(()=>{if(e&&t&&n){let f=function(){r(),i()};const o=t,a=n,s=r8(o),l=r8(a),c=nE(a),u=new Set([c,...s,...l]);return u.forEach(d=>{d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),()=>{u.forEach(d=>{d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function wPe(e,t,n,r,i,o,a,s){const l=g.useRef(e);l.current=e;const c=g.useRef(!1);g.useEffect(()=>{if(t&&r&&(!i||o)){const f=()=>{c.current=!1},d=p=>{var v,y;l.current&&!a(((y=(v=p.composedPath)==null?void 0:v.call(p))==null?void 0:y[0])||p.target)&&!c.current&&s(!1)},A=nE(r);A.addEventListener("pointerdown",f,!0),A.addEventListener("mousedown",d,!0),A.addEventListener("contextmenu",d,!0);const h=L6(n);return h&&(h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0)),()=>{A.removeEventListener("pointerdown",f,!0),A.removeEventListener("mousedown",d,!0),A.removeEventListener("contextmenu",d,!0),h&&(h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0))}}},[t,n,r,i,o]);function u(){c.current=!0}return u}function CPe(){const[e,t]=Be.useState(null),[n,r]=Be.useState(!1),[i,o]=Be.useState(!1),a=Be.useRef(null),s=yn(c=>{c===!1?(a.current=null,r(!1)):i&&n?a.current=c:(r(!0),t(c),a.current=null,n||o(!0))}),l=yn(c=>{c?(o(!1),a.current&&(t(a.current),a.current=null)):(o(!1),a.current=null)});return[s,n,e,l]}function i8(){return i8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:t,isMobile:n,ready:r,open:i,align:o,offsetR:a,offsetB:s,offsetX:l,offsetY:c,arrowPos:u,popupSize:f,motion:d,uniqueContainerClassName:A,uniqueContainerStyle:h}=e,p=`${t}-unique-container`,[v,y]=Be.useState(!1),b=$ne(n,r,i,o,a,s,l,c),x=Be.useRef(b);r&&(x.current=b);const C={};return f&&(C.width=f.width,C.height=f.height),Be.createElement(sl,i8({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${p}-hidden`},d,{visible:i,onVisibleChanged:S=>{y(S)}}),({className:S,style:B})=>{const E=Ae(p,S,A,{[`${p}-visible`]:v});return Be.createElement("div",{className:E,style:I(I(I(I({"--arrow-x":`${(u==null?void 0:u.x)||0}px`,"--arrow-y":`${(u==null?void 0:u.y)||0}px`},x.current),C),B),h)})})},EPe=({children:e,postTriggerProps:t})=>{const[n,r,i,o]=CPe(),a=g.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,l]=g.useState(null),[c,u]=g.useState(null),f=g.useRef(null),d=yn(j=>{f.current=j,Ab(j)&&s!==j&&l(j)}),A=g.useRef(null),h=Dne(),p=yn((j,Q)=>{A.current=Q,h(()=>{n(j)},j.delay)}),v=j=>{h(()=>{var Q;(Q=A.current)!=null&&Q.call(A)||n(!1)},j)},y=yn(j=>{o(j)}),[b,x,C,S,B,E,_,,,M,R]=kne(r,s,a==null?void 0:a.target,a==null?void 0:a.popupPlacement,(a==null?void 0:a.builtinPlacements)||{},a==null?void 0:a.popupAlign,void 0,!1),T=g.useMemo(()=>{var Q;if(!a)return"";const j=Ine(a.builtinPlacements||{},a.prefixCls||"",M,!1);return Ae(j,(Q=a.getPopupClassNameFromAlign)==null?void 0:Q.call(a,M))},[M,a==null?void 0:a.getPopupClassNameFromAlign,a==null?void 0:a.builtinPlacements,a==null?void 0:a.prefixCls]),L=g.useMemo(()=>({show:p,hide:v}),[]);g.useEffect(()=>{R()},[a==null?void 0:a.target]);const P=yn(()=>(R(),Promise.resolve())),k=g.useRef({}),H=g.useContext(yM),D=g.useMemo(()=>({registerSubPopup:(j,Q)=>{k.current[j]=Q,H==null||H.registerSubPopup(j,Q)}}),[H]),U=a==null?void 0:a.prefixCls;return g.createElement(Tne.Provider,{value:L},e,a&&g.createElement(yM.Provider,{value:D},g.createElement(_ne,{ref:d,portal:tE,onEsc:a.onEsc,prefixCls:U,popup:a.popup,className:Ae(a.popupClassName,T,`${U}-unique-controlled`),style:a.popupStyle,target:a.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:b,offsetX:x,offsetY:C,offsetR:S,offsetB:B,onAlign:R,onPrepare:P,onResize:j=>u({width:j.offsetWidth,height:j.offsetHeight}),arrowPos:{x:E,y:_},align:M,zIndex:a.zIndex,mask:a.mask,arrow:a.arrow,motion:a.popupMotion,maskMotion:a.maskMotion,getPopupContainer:a.getPopupContainer},g.createElement(SPe,{prefixCls:U,isMobile:!1,ready:b,open:r,align:M,offsetR:S,offsetB:B,offsetX:x,offsetY:C,arrowPos:{x:E,y:_},popupSize:c,motion:a.popupMotion,uniqueContainerClassName:Ae(a.uniqueContainerClassName,T),uniqueContainerStyle:a.uniqueContainerStyle}))))};function BPe(e=tE){return g.forwardRef((n,r)=>{const hr=n,{prefixCls:i="rc-trigger-popup",children:o,action:a="hover",showAction:s,hideAction:l,popupVisible:c,defaultPopupVisible:u,onOpenChange:f,afterOpenChange:d,onPopupVisibleChange:A,afterPopupVisibleChange:h,mouseEnterDelay:p,mouseLeaveDelay:v=.1,focusDelay:y,blurDelay:b,mask:x,maskClosable:C=!0,getPopupContainer:S,forceRender:B,autoDestroy:E,popup:_,popupClassName:M,uniqueContainerClassName:R,uniqueContainerStyle:T,popupStyle:L,popupPlacement:P,builtinPlacements:k={},popupAlign:H,zIndex:D,stretch:U,getPopupClassNameFromAlign:j,fresh:Q,unique:K,alignPoint:z,onPopupClick:V,onPopupAlign:Y,arrow:Z,popupMotion:W,maskMotion:J,mobile:ee}=hr,ne=Ze(hr,["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onOpenChange","afterOpenChange","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","popup","popupClassName","uniqueContainerClassName","uniqueContainerStyle","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","unique","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","mobile"]),re=E||!1,ue=c===void 0,de=!!ee,se=g.useRef({}),ce=g.useContext(yM),ge=g.useMemo(()=>({registerSubPopup:(an,tr)=>{se.current[an]=tr,ce==null||ce.registerSubPopup(an,tr)}}),[ce]),ie=g.useContext(Tne),le=lA(),[ve,we]=g.useState(null),me=g.useRef(null),Ee=yn(an=>{me.current=an,Ab(an)&&ve!==an&&we(an),ce==null||ce.registerSubPopup(le,an)}),[Ce,pe]=g.useState(null),Oe=g.useRef(null),xe=yn(an=>{const tr=td(an);Ab(tr)&&Ce!==tr&&(pe(tr),Oe.current=tr)}),Me={},Se=yn(an=>{var xi,Si;const tr=Ce;return(tr==null?void 0:tr.contains(an))||((xi=L6(tr))==null?void 0:xi.host)===an||an===tr||(ve==null?void 0:ve.contains(an))||((Si=L6(ve))==null?void 0:Si.host)===an||an===ve||Object.values(se.current).some(Li=>(Li==null?void 0:Li.contains(an))||an===Li)}),Pe=Z?I({},Z!==!0?Z:{}):null,[Le,He]=Fr(u||!1,c),Ne=Le||!1,at=g.useMemo(()=>{const an=typeof o=="function"?o({open:Ne}):o;return g.Children.only(an)},[o,Ne]),Ue=(at==null?void 0:at.props)||{},et=yn(()=>Ne),We=yn((an=0)=>({popup:_,target:Ce,delay:an,prefixCls:i,popupClassName:M,uniqueContainerClassName:R,uniqueContainerStyle:T,popupStyle:L,popupPlacement:P,builtinPlacements:k,popupAlign:H,zIndex:D,mask:x,maskClosable:C,popupMotion:W,maskMotion:J,arrow:Pe,getPopupContainer:S,getPopupClassNameFromAlign:j,id:le,onEsc:qt}));ar(()=>{ie&&K&&Ce&&!ue&&!ce&&(Ne?ie.show(We(p),et):ie.hide(v))},[Ne,Ce]);const Je=g.useRef(Ne);Je.current=Ne;const dt=yn(an=>{fu.flushSync(()=>{Ne!==an&&(He(an),f==null||f(an),A==null||A(an))})}),wt=Dne(),Bt=(an,tr=0)=>{if(c!==void 0){wt(()=>{dt(an)},tr);return}if(ie&&K&&ue&&!ce){an?ie.show(We(tr),et):ie.hide(tr);return}wt(()=>{dt(an)},tr)};function qt({top:an}){an&&Bt(!1)}const[jt,nn]=g.useState(!1);ar(an=>{(!an||Ne)&&nn(!0)},[Ne]);const[Jt,Ot]=g.useState(null),[sn,Vt]=g.useState(null),xt=an=>{Vt([an.clientX,an.clientY])},[qe,it,Pt,De,ze,bt,lt,At,ut,ft,Kt]=kne(Ne,ve,z&&sn!==null?sn:Ce,P,k,H,Y,de),[An,pn]=yPe(a,s,l),bn=An.has("click"),Sn=pn.has("click")||pn.has("contextMenu"),Tn=yn(()=>{jt||Kt()});xPe(Ne,Ce,ve,Tn,()=>{Je.current&&z&&Sn&&Bt(!1)}),ar(()=>{Tn()},[sn,P]),ar(()=>{Ne&&!(k!=null&&k[P])&&Tn()},[JSON.stringify(H)]);const $n=g.useMemo(()=>{const an=Ine(k,i,ft,z);return Ae(an,j==null?void 0:j(ft))},[ft,j,k,i,z]);g.useImperativeHandle(r,()=>({nativeElement:Oe.current,popupElement:me.current,forceAlign:Tn}));const[Fn,$t]=g.useState(0),[Ie,Ke]=g.useState(0),nt=()=>{if(U&&Ce){const an=Ce.getBoundingClientRect();$t(an.width),Ke(an.height)}},ht=()=>{nt(),Tn()},Xt=an=>{nn(!1),Kt(),d==null||d(an),h==null||h(an)},kt=()=>new Promise(an=>{nt(),Ot(()=>an)});ar(()=>{Jt&&(Kt(),Jt(),Ot(null))},[Jt]);function mn(an,tr,xi,Si,Li){Me[an]=(_o,...ko)=>{var wo;(!Li||!Li())&&(Si==null||Si(_o),Bt(tr,xi)),(wo=Ue[an])==null||wo.call(Ue,_o,...ko)}}const Rt=An.has("touch"),tn=pn.has("touch"),cn=g.useRef(!1);(Rt||tn)&&(Me.onTouchStart=(...an)=>{var tr;cn.current=!0,Je.current&&tn?Bt(!1):!Je.current&&Rt&&Bt(!0),(tr=Ue.onTouchStart)==null||tr.call(Ue,...an)}),(bn||Sn)&&(Me.onClick=(an,...tr)=>{var xi;Je.current&&Sn?Bt(!1):!Je.current&&bn&&(xt(an),Bt(!0)),(xi=Ue.onClick)==null||xi.call(Ue,an,...tr),cn.current=!1});const gn=wPe(Ne,Sn||tn,Ce,ve,x,C,Se,Bt),Zt=An.has("hover"),_n=pn.has("hover");let Wt,Mt;const vn=()=>cn.current;if(Zt){const an=tr=>{xt(tr)};mn("onMouseEnter",!0,p,an,vn),mn("onPointerEnter",!0,p,an,vn),Wt=tr=>{(Ne||jt)&&(ve!=null&&ve.contains(tr.target))&&Bt(!0,p)},z&&(Me.onMouseMove=tr=>{var xi;(xi=Ue.onMouseMove)==null||xi.call(Ue,tr)})}_n&&(mn("onMouseLeave",!1,v,void 0,vn),mn("onPointerLeave",!1,v,void 0,vn),Mt=()=>{Bt(!1,v)}),An.has("focus")&&mn("onFocus",!0,y),pn.has("focus")&&mn("onBlur",!1,b),An.has("contextMenu")&&(Me.onContextMenu=(an,...tr)=>{var xi;Je.current&&pn.has("contextMenu")?Bt(!1):(xt(an),Bt(!0)),an.preventDefault(),(xi=Ue.onContextMenu)==null||xi.call(Ue,an,...tr)});const In=g.useRef(!1);In.current||(In.current=B||Ne||jt);const Dt=I(I({},Ue),Me),xn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(an=>{ne[an]&&(xn[an]=(...tr)=>{var xi;(xi=Dt[an])==null||xi.call(Dt,...tr),ne[an](...tr)})});const Nn={x:bt,y:lt};Fee(Ne,Ce,ht);const Wr=ed(xe,cA(at)),ir=g.cloneElement(at,te(I(I({},Dt),xn),{ref:Wr}));return g.createElement(g.Fragment,null,ir,In.current&&(!ie||!K)&&g.createElement(yM.Provider,{value:ge},g.createElement(_ne,{portal:e,ref:Ee,prefixCls:i,popup:_,className:Ae(M,!de&&$n),style:L,target:Ce,onMouseEnter:Wt,onMouseLeave:Mt,onPointerEnter:Wt,zIndex:D,open:Ne,keepDom:jt,fresh:Q,onClick:V,onPointerDownCapture:gn,mask:x,motion:W,maskMotion:J,onVisibleChanged:Xt,onPrepare:kt,forceRender:B,autoDestroy:re,getPopupContainer:S,onEsc:qt,align:ft,arrow:Pe,arrowPos:Nn,ready:qe,offsetX:it,offsetY:Pt,offsetR:De,offsetB:ze,onAlign:Tn,stretch:U,targetWidth:Fn/At,targetHeight:Ie/ut,mobile:ee})))})}const oE=BPe(tE);function Hne(e){return e&&Be.isValidElement(e)&&e.type===Be.Fragment}const Une=(e,t,n)=>Be.isValidElement(e)?Be.cloneElement(e,Rn(n)?n(e.props||{}):n):t;function Ga(e,t){return Une(e,e,t)}const OPe=({children:e})=>{const{getPrefixCls:t}=Be.useContext(Un),n=t();return Be.isValidElement(e)?Be.createElement(sl,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:i})=>Ga(e,o=>({className:Ae(o.className,i),style:I(I({},o.style),r)}))):e},bM=[null,null];function $Pe(e){if(bM[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]=te(I({},e[n]),{dynamicInset:!1})}),bM[0]=e,bM[1]=t}return bM[1]}const jne=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:i,popup:o}=n,a=Rn(o)?o():o,s=$Pe(i);return te(I({},n),{getPopupContainer:null,arrow:!1,popup:Be.createElement(OPe,{key:r},a),builtinPlacements:s})};return Be.createElement(EPe,{postTriggerProps:t},e)},qa=g.createContext(!1),o8=({children:e,disabled:t})=>{const n=g.useContext(qa);return g.createElement(qa.Provider,{value:t!=null?t:n},e)},vv=g.createContext(void 0),_Pe=({children:e,size:t})=>{const n=g.useContext(vv);return g.createElement(vv.Provider,{value:t||n},e)};function TPe(){const e=g.useContext(qa),t=g.useContext(vv);return{componentDisabled:e,componentSize:t}}function MPe(e,t,n){var a;Ig();const r=e||{},i=r.inherit===!1||!t?te(I({},ZS),{hashed:(a=t==null?void 0:t.hashed)!=null?a:ZS.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=g.useId();return cv(()=>{var u;if(!e)return t;const s=I({},i.components);Object.keys(e.components||{}).forEach(f=>{s[f]=I(I({},s[f]),e.components[f])});const l=`css-var-${o.replace(/:/g,"")}`,c=te(I(I({prefix:n==null?void 0:n.prefixCls},i.cssVar),r.cssVar),{key:((u=r.cssVar)==null?void 0:u.key)||l});return te(I(I({},i),r),{token:I(I({},i.token),r.token),components:s,cssVar:c})},[r,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!uu(c,f,!0)}))}const zne=g.createContext(!0);function IPe(e){const t=g.useContext(zne),{children:n}=e,[,r]=al(),{motion:i}=r,o=g.useRef(!1);return o.current||(o.current=t!==i),o.current?g.createElement(zne.Provider,{value:i},g.createElement(MNe,{motion:i},n)):n}const RPe=()=>null,NPe=({iconPrefixCls:e,csp:t})=>(X3e(e,t),null),PPe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let xM,Qne,Vne,Kne;function a8(){return xM||jS}function LPe(){return Qne||zT}const FPe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(xM=t),n!==void 0&&(Qne=n),"holderRender"in e&&(Kne=i),r&&(Vne=r)},Wne=()=>({getPrefixCls:(e,t)=>t||(e?`${a8()}-${e}`:a8()),getIconPrefixCls:LPe,getRootPrefixCls:()=>xM||a8(),getTheme:()=>Vne,holderRender:Kne}),kPe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:o,anchor:a,app:s,form:l,locale:c,componentSize:u,direction:f,space:d,splitter:A,virtual:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:v,popupOverflow:y,legacyLocale:b,parentContext:x,iconPrefixCls:C,theme:S,componentDisabled:B,segmented:E,statistic:_,spin:M,calendar:R,carousel:T,cascader:L,collapse:P,typography:k,checkbox:H,descriptions:D,divider:U,drawer:j,skeleton:Q,steps:K,image:z,layout:V,list:Y,mentions:Z,modal:W,progress:J,result:ee,slider:ne,breadcrumb:re,masonry:ue,menu:de,pagination:se,input:ce,inputPassword:ge,inputSearch:ie,textArea:le,otp:ve,empty:we,badge:me,borderBeam:Ee,radio:Ce,rate:pe,ribbon:Oe,switch:xe,transfer:Me,avatar:Se,message:Pe,tag:Le,table:He,card:Ne,cardMeta:at,tabs:Ue,timeline:et,timePicker:We,upload:Je,notification:dt,tree:wt,colorPicker:Bt,datePicker:qt,rangePicker:jt,flex:nn,wave:Jt,dropdown:Ot,warning:sn,tour:Vt,tooltip:xt,popover:qe,popconfirm:it,qrcode:Pt,floatButton:De,floatButtonGroup:ze,variant:bt,inputNumber:lt,treeSelect:At,watermark:ut}=e,ft=g.useMemo(()=>{var nt;return Zn(c)&&Object.prototype.hasOwnProperty.call(c,"default")&&((nt=c.default)!=null&&nt.locale)?c.default:c},[c]),Kt=g.useCallback((nt,ht)=>{const{prefixCls:Xt}=e;if(ht)return ht;const kt=Xt||x.getPrefixCls("");return nt?`${kt}-${nt}`:kt},[x.getPrefixCls,e.prefixCls]),An=C||x.iconPrefixCls||zT,pn=n||x.csp,bn=MPe(S,x.theme,{prefixCls:Kt("")}),Sn={csp:pn,autoInsertSpaceInButton:r,alert:i,affix:o,anchor:a,app:s,locale:ft||b,direction:f,space:d,splitter:A,virtual:h,popupMatchSelectWidth:v!=null?v:p,popupOverflow:y,getPrefixCls:Kt,iconPrefixCls:An,theme:bn,segmented:E,statistic:_,spin:M,calendar:R,carousel:T,cascader:L,collapse:P,typography:k,checkbox:H,descriptions:D,divider:U,drawer:j,skeleton:Q,steps:K,image:z,input:ce,inputPassword:ge,inputSearch:ie,textArea:le,otp:ve,layout:V,list:Y,mentions:Z,modal:W,progress:J,result:ee,slider:ne,breadcrumb:re,masonry:ue,menu:de,pagination:se,empty:we,badge:me,borderBeam:Ee,radio:Ce,rate:pe,ribbon:Oe,switch:xe,transfer:Me,avatar:Se,message:Pe,tag:Le,table:He,card:Ne,cardMeta:at,tabs:Ue,timeline:et,timePicker:We,upload:Je,notification:dt,tree:wt,colorPicker:Bt,datePicker:qt,rangePicker:jt,flex:nn,wave:Jt,dropdown:Ot,warning:sn,tour:Vt,tooltip:xt,popover:qe,popconfirm:it,qrcode:Pt,floatButton:De,floatButtonGroup:ze,variant:bt,inputNumber:lt,treeSelect:At,watermark:ut},Tn=I({},x);Object.keys(Sn).forEach(nt=>{Sn[nt]!==void 0&&(Tn[nt]=Sn[nt])}),PPe.forEach(nt=>{const ht=e[nt];ht&&(Tn[nt]=ht)}),typeof r!="undefined"&&(Tn.button=I({autoInsertSpace:r},Tn.button));const lr=cv(()=>Tn,Tn,(nt,ht)=>{const Xt=Object.keys(nt),kt=Object.keys(ht);return Xt.length!==kt.length||Xt.some(mn=>nt[mn]!==ht[mn])}),{layer:$n}=g.useContext(QS),Fn=g.useMemo(()=>({prefixCls:An,csp:pn,layer:$n?"antd":void 0,zeroRuntime:bn==null?void 0:bn.zeroRuntime}),[An,pn,$n,bn==null?void 0:bn.zeroRuntime]);let $t=g.createElement(g.Fragment,null,g.createElement(NPe,{iconPrefixCls:An,csp:pn}),g.createElement(RPe,{dropdownMatchSelectWidth:p}),t);const Ie=g.useMemo(()=>{var nt,ht,Xt,kt;return Mg(((nt=Sl.Form)==null?void 0:nt.defaultValidateMessages)||{},((Xt=(ht=lr.locale)==null?void 0:ht.Form)==null?void 0:Xt.defaultValidateMessages)||{},((kt=lr.form)==null?void 0:kt.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[lr,l==null?void 0:l.validateMessages]);Object.keys(Ie).length>0&&($t=g.createElement(vne.Provider,{value:Ie},$t)),ft&&($t=g.createElement(oPe,{locale:ft,_ANT_MARK__:iPe},$t)),$t=g.createElement(ID.Provider,{value:Fn},$t),u&&($t=g.createElement(_Pe,{size:u},$t)),$t=g.createElement(IPe,null,$t),xt!=null&&xt.unique&&($t=g.createElement(jne,null,$t));const Ke=g.useMemo(()=>{const gn=bn||{},{algorithm:nt,token:ht,components:Xt,cssVar:kt}=gn,mn=Ze(gn,["algorithm","token","components","cssVar"]),Rt=nt&&(!Array.isArray(nt)||nt.length>0)?QT(nt):_D,tn={};Object.entries(Xt||{}).forEach(([Zt,_n])=>{const Wt=I({},_n);"algorithm"in Wt&&(Wt.algorithm===!0?Wt.theme=Rt:(Array.isArray(Wt.algorithm)||Rn(Wt.algorithm))&&(Wt.theme=QT(Wt.algorithm)),delete Wt.algorithm),tn[Zt]=Wt});const cn=I(I({},xb),ht);return te(I({},mn),{theme:Rt,token:cn,components:tn,override:I({override:cn},tn),cssVar:kt})},[bn]);return S&&($t=g.createElement(TD.Provider,{value:Ke},$t)),lr.warning&&($t=g.createElement(hRe.Provider,{value:lr.warning},$t)),B!==void 0&&($t=g.createElement(o8,{disabled:B},$t)),g.createElement(Un.Provider,{value:lr},$t)},kc=e=>{const t=g.useContext(Un),n=g.useContext(e8);return g.createElement(kPe,I({parentContext:t,legacyLocale:n},e))};kc.ConfigContext=Un,kc.SizeContext=vv,kc.config=FPe,kc.useConfig=TPe,Object.defineProperty(kc,"SizeContext",{get:()=>vv});function DPe(){const[e,t]=g.useState({}),n=g.useCallback((r,i)=>{if(!i){t(a=>{if(!(r in a))return a;const s=I({},a);return delete s[r],s});return}const o={width:i.offsetWidth,height:i.offsetHeight};t(a=>{const s=a[r];return s&&s.width===o.width&&s.height===o.height?a:te(I({},a),{[r]:o})})},[]);return[e,n]}function HPe(e,t,n=0){const[r,i]=DPe(),[o,a,s,l]=g.useMemo(()=>{var p;let c=0,u=0;const f=(p=t==null?void 0:t.threshold)!=null?p:0,d=new Map;let A,h;return e.slice().reverse().forEach((v,y)=>{var S,B,E,_,M;const b=String(v.key),x=(B=(S=r[b])==null?void 0:S.height)!=null?B:0,C=t&&y>0?c+((E=t.offset)!=null?E:0)-x:c;d.set(b,C),y===0&&(A=x,h=(M=(_=r[b])==null?void 0:_.width)!=null?M:0),(!t||y{var n,r;const t={offset:Gne,threshold:qne};return e&&typeof e=="object"&&(t.offset=(n=e.offset)!=null?n:Gne,t.threshold=(r=e.threshold)!=null?r:qne),[!!e,t]};function jPe(e,t,n){const i=Math.max(typeof e=="number"?e:0,0)*1e3,o=yn(t),a=yn(n),[s,l]=g.useState(i>0),c=g.useRef(0),u=g.useRef(null);function f(){const h=Date.now(),p=u.current;p!==null&&(c.current+=h-p),u.current=h}const d=g.useCallback(()=>{f(),l(!1)},[]),A=g.useCallback(()=>{i>0?(u.current=Date.now(),l(!0)):a(0)},[i]);return g.useEffect(()=>{c.current=0,l(i>0)},[i]),g.useEffect(()=>{if(!s)return;let h=null;function p(){f(),c.current>=i?(a(1),o()):(a(Math.min(c.current/i,1)),h=Kn(p))}return p(),()=>{Kn.cancel(h)}},[i,s]),[A,d]}function zPe(e){const t=g.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),n=g.useMemo(()=>{var i;return te(I({},t),{closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:(i=t.disabled)!=null?i:!1})},[t]),r=g.useMemo(()=>Co(n,!0),[n]);return[!!e,n,r]}const QPe=({className:e,style:t,percent:n})=>g.createElement("progress",{className:e,max:"100",value:n,style:t});function wM(){return wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var we,me;const{prefixCls:n,className:r,style:i,classNames:o,styles:a,components:s,title:l,description:c,icon:u,actions:f,role:d,closable:A,offset:h,notificationIndex:p,stackInThreshold:v,props:y,duration:b=4.5,showProgress:x,hovering:C,pauseOnHover:S=!0,onClick:B,onMouseEnter:E,onMouseLeave:_,onClose:M}=e,[R,T]=g.useState(0),L=`${n}-notice`,[P,k,H]=zPe(A),D=yn(()=>{var Ee;(Ee=k.onClose)==null||Ee.call(k),M==null||M()}),[U,j]=g.useState(!1),[Q,K]=jPe(b,D,T),z=100-Math.min(Math.max(R*100,0),100),V=(s==null?void 0:s.progress)||QPe;g.useEffect(()=>{S&&(C?K():U||Q())},[C,U,K,Q,S]);function Y(Ee){j(!0),S&&K(),E==null||E(Ee)}function Z(Ee){j(!1),S&&!C&&Q(),_==null||_(Ee)}function W(Ee){Ee.preventDefault(),Ee.stopPropagation(),D()}const J=g.useRef(h);h!==void 0&&(J.current=h);const ee=g.useRef(p);p!==void 0&&(ee.current=p);const ne=h!=null?h:J.current,re=(we=p!=null?p:ee.current)!=null?we:0,ue=l!=null?g.createElement("div",{className:Ae(`${L}-title`,o==null?void 0:o.title),style:a==null?void 0:a.title},l):null,de=c!=null?g.createElement("div",{className:Ae(`${L}-description`,o==null?void 0:o.description),style:a==null?void 0:a.description},c):null,se=ue!==null,ce=de!==null;let ge=null;se&&ce?ge=g.createElement("div",{className:Ae(`${L}-section`,o==null?void 0:o.section),style:a==null?void 0:a.section},ue,de):ge=ue||de,u!=null&&(ge=g.createElement("div",{className:Ae(`${L}-wrapper`,o==null?void 0:o.wrapper),style:a==null?void 0:a.wrapper},g.createElement("div",{className:Ae(`${L}-icon`,o==null?void 0:o.icon),style:a==null?void 0:a.icon},u),ge));const ie=f?g.createElement("div",{className:Ae(`${L}-actions`,o==null?void 0:o.actions),style:a==null?void 0:a.actions},f):null,le=I(I({"--notification-index":re},a==null?void 0:a.root),i);ne!==void 0&&(le["--notification-y"]=`${ne}px`);const ve=(me=d!=null?d:y==null?void 0:y.role)!=null?me:"alert";return g.createElement("div",wM({},y,{ref:t,role:ve,"data-notification-index":re,className:Ae(L,r,o==null?void 0:o.root,{[`${L}-closable`]:P,[`${L}-stack-in-threshold`]:v}),style:le,onClick:B,onMouseEnter:Y,onMouseLeave:Z}),ge,ie,P&&g.createElement("button",wM({className:Ae(`${L}-close`,o==null?void 0:o.close),"aria-label":"Close"},H,{style:a==null?void 0:a.close,onClick:W}),k.closeIcon),x&&typeof b=="number"&&b>0&&g.createElement(V,{className:Ae(`${L}-progress`,o==null?void 0:o.progress),percent:z,style:a==null?void 0:a.progress}))}),Xne=g.createContext({}),VPe=({children:e,classNames:t})=>{const n=g.useMemo(()=>({classNames:t}),[t]);return g.createElement(Xne.Provider,{value:n},e)};function s8(){return s8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const h=e,{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:o=0,className:a,style:s}=h,l=Ze(h,["listPrefixCls","height","topNoticeHeight","topNoticeWidth","className","style"]),c=`${n}-content`,u=g.useRef(r),f=u.current,d=r(t[n]=Ae(...e.map(r=>r==null?void 0:r[n])),t),{})}function GPe(e){return Zne.reduce((t,n)=>(t[n]=Object.assign({},...e.map(r=>r==null?void 0:r[n])),t),{})}function qPe(e,t){const n=String(t),r=e.findIndex(i=>i.key===n);if(r!==-1)return e.length-r-1}const YPe=e=>{var E;const S=e,{config:t,components:n,contextClassNames:r,classNames:i,styles:o,className:a,style:s,nodeRef:l,listHovering:c,stackEnabled:u,pauseOnHover:f,setNodeSize:d,onNoticeClose:A}=S,h=Ze(S,["config","components","contextClassNames","classNames","styles","className","style","nodeRef","listHovering","stackEnabled","pauseOnHover","setNodeSize","onNoticeClose"]),B=t,{key:p,placement:v}=B,y=Ze(B,["key","placement"]),b=String(p),x=g.useCallback(_=>{d(b,_)},[d,b]),C=ed(l,x);return g.createElement(Yne,CM({},y,h,{ref:C,className:Ae(r==null?void 0:r.notice,t.className,a),style:I(I({},s),t.style),classNames:WPe([i,t.classNames]),styles:GPe([o,t.styles]),components:I(I({},n),t.components),hovering:u&&c,pauseOnHover:(E=t.pauseOnHover)!=null?E:f,onClose:()=>{var _;(_=t.onClose)==null||_.call(t),A==null||A(p)}}))},Jne=e=>{const{configList:t=[],prefixCls:n="rc-notification",pauseOnHover:r,classNames:i,styles:o,components:a,stack:s,motion:l,placement:c,className:u,style:f,onNoticeClose:d,onAllRemoved:A}=e,{classNames:h}=g.useContext(Xne),p=g.useMemo(()=>t.map(j=>({config:j,key:String(j.key)})),[t]),v=typeof l=="function"?l(c):l,[y,{offset:b,threshold:x}]=UPe(s),[C,S]=g.useState(!1),B=y&&(C||p.length<=x),E=g.useMemo(()=>{if(!(!y||B))return{offset:b,threshold:x}},[B,b,y,x]),[_,M]=g.useState(0),R=g.useRef(null),[T,L,P,k,H]=HPe(t,E,_),D=!!t.length;g.useEffect(()=>{const j=R.current;if(!j)return;const{gap:Q,rowGap:K}=window.getComputedStyle(j),z=parseFloat(K||Q)||0;M(V=>V===z?V:z)},[D]);const U=`${n}-list`;return g.createElement("div",{className:Ae(n,U,`${n}-${c}`,h==null?void 0:h.list,u,i==null?void 0:i.list,{[`${n}-stack`]:y,[`${n}-stack-expanded`]:B,[`${U}-hovered`]:C}),onMouseEnter:()=>{S(!0)},onMouseLeave:()=>{S(!1)},style:I(I({},o==null?void 0:o.list),f)},g.createElement(KPe,{listPrefixCls:U,height:P,topNoticeHeight:k,topNoticeWidth:H,className:i==null?void 0:i.listContent,style:o==null?void 0:o.listContent,ref:R},g.createElement(YD,CM({component:!1,keys:p,motionAppear:!0},v,{onAllRemoved:()=>{c&&(A==null||A(c))}}),({config:j,className:Q,style:K},z)=>{const{key:V}=j,Y=String(V),Z=qPe(p,V),W=y&&Z!==void 0&&Z{const{prefixCls:n="rc-notification",container:r,motion:i,maxCount:o,pauseOnHover:a,classNames:s,styles:l,components:c,className:u,style:f,onAllRemoved:d,stack:A,renderNotifications:h}=e,[p,v]=g.useState([]),[y,b]=g.useState({}),x=g.useRef(!1);g.useImperativeHandle(t,()=>({open:B=>{v(E=>{var T,L;let _=[...E];const M=_.findIndex(P=>P.key===B.key),R=I({},B);return M>=0?(R.times=((L=(T=E[M])==null?void 0:T.times)!=null?L:0)+1,_[M]=R):(R.times=0,_.push(R)),o&&o>0&&_.length>o&&(_=_.slice(-o)),_})},close:B=>{v(E=>E.filter(_=>_.key!==B))},destroy:()=>{v([])}})),g.useEffect(()=>{const B={};p.forEach(E=>{var M;const _=(M=E.placement)!=null?M:"topRight";B[_]=B[_]||[],B[_].push(E)}),Object.keys(y).forEach(E=>{B[E]=B[E]||[]}),b(B)},[p]);const C=yn(B=>{b(E=>{const _=I({},E);return(_[B]||[]).length||delete _[B],_})});if(g.useEffect(()=>{Object.keys(y).length>0?x.current=!0:x.current&&(d==null||d(),x.current=!1)},[y,d]),!r)return null;const S=Object.keys(y);return fu.createPortal(g.createElement(g.Fragment,null,S.map(B=>{const E=g.createElement(Jne,{key:B,configList:y[B],placement:B,prefixCls:n,pauseOnHover:a,classNames:s,styles:l,components:c,className:u==null?void 0:u(B),style:f==null?void 0:f(B),motion:i,stack:A,onNoticeClose:_=>{v(M=>M.filter(R=>R.key!==_))},onAllRemoved:C});return h?g.cloneElement(h(E,{prefixCls:n,key:B}),{key:B}):E})),r)}),ZPe=()=>document.body;let ere=0;function JPe(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(t[r]=i)})}),t}function eLe(e={}){const{getContainer:t=ZPe,motion:n,prefixCls:r,placement:i,closable:o,duration:a,showProgress:s,pauseOnHover:l,classNames:c,styles:u,components:f,maxCount:d,className:A,style:h,onAllRemoved:p,stack:v,renderNotifications:y}=e,b={placement:i,closable:o,duration:a,showProgress:s},[x,C]=g.useState(),S=g.useRef(null),[B,E]=g.useState([]),_=g.createElement(XPe,{container:x,ref:S,prefixCls:r,motion:n,maxCount:d,pauseOnHover:l,classNames:c,styles:u,components:f,className:A,style:h,onAllRemoved:p,stack:v,renderNotifications:y}),M=yn(T=>{const L=JPe(b,T);(L.key===null||L.key===void 0)&&(L.key=`rc-notification-${ere}`,ere+=1),E(P=>[...P,{type:"open",config:L}])}),R=g.useMemo(()=>({open:M,close:T=>{E(L=>[...L,{type:"close",key:T}])},destroy:()=>{E(T=>[...T,{type:"destroy"}])}}),[]);return g.useEffect(()=>{C(t())}),g.useEffect(()=>{S.current&&B.length&&(B.forEach(T=>{var L,P,k;switch(T.type){case"open":(L=S.current)==null||L.open(T.config);break;case"close":(P=S.current)==null||P.close(T.key);break;case"destroy":(k=S.current)==null||k.destroy();break}}),E(T=>{const L=T.filter(P=>!B.includes(P));return L.length===T.length?T:L}))},[B]),[R,_]}const tLe=(e,t)=>g.useMemo(()=>{const n=e!=null?e:t;return n?I(I({},Zn(t)?t:{}),Zn(n)?n:{}):!1},[e,t]);function nLe(e,t){return I(I({},oa(e)&&{"--notification-top":be(e)}),oa(t)&&{"--notification-bottom":be(t)})}var SM={},tre;function rLe(){if(tre)return SM;tre=1,Object.defineProperty(SM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return SM.default=e,SM}var iLe=rLe();const oLe=_t(iLe);function l8(){return l8=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,l8({},e,{ref:t,icon:oLe})),qh=g.forwardRef(aLe);function du(...e){return e.find(t=>t!==void 0)}const EM=e=>{const{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:o,componentName:a}=e;return g.useMemo(()=>{var l,c;return((l=t!=null?t:r)!=null?l:o)?{clearIcon:du(Zn(t)?t==null?void 0:t.clearIcon:n,Zn(r)?r==null?void 0:r.clearIcon:i,Be.createElement(hv,null)),disabled:(c=Zn(t)?t==null?void 0:t.disabled:void 0)!=null?c:Zn(r)?r==null?void 0:r.disabled:void 0}:!1},[t,n,r,i,o])},BM=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},nre={},rre=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!oa(e)&&!oa(t))return null;let n={closeIcon:typeof t!="boolean"&&oa(t)?t:void 0};return Zn(e)&&(n=I(I({},n),e)),n},sLe=(e,t,n)=>e===!1?!1:e?gb(n,t,e):t===!1?!1:t?gb(n,t):n.closable?n:!1,lLe=(e,t,n)=>{const{closeIconRender:r}=t,l=e,{closeIcon:i}=l,o=Ze(l,["closeIcon"]);let a=i;const s=Co(o,!0);return oa(a)&&(r&&(a=r(a)),a=Be.isValidElement(a)?Be.cloneElement(a,I(I({"aria-label":n},a.props),s)):Be.createElement("span",I({"aria-label":n},s),a)),[a,s]},cLe=(e,t,n=nre,r="Close")=>{const i=rre(e==null?void 0:e.closable,e==null?void 0:e.closeIcon),o=rre(t==null?void 0:t.closable,t==null?void 0:t.closeIcon),a=I({closeIcon:Be.createElement(Dg,null)},n),s=sLe(i,o,a),l=typeof s!="boolean"?!!(s!=null&&s.disabled):!1;if(s===!1)return[!1,null,l,{}];const[c,u]=lLe(s,a,r);return[!0,c,l,u]},ire=(e,t,n=nre)=>{const[r]=zs("global",Sl.global);return Be.useMemo(()=>cLe(e,t,I({closeIcon:Be.createElement(Dg,null)},n),r.close),[e,t,n,r.close])},c8=()=>Be.useReducer(e=>e+1,0),u8=(e,t)=>{let n={};return Zn(e)&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},ore=(e,t,n,r)=>g.useMemo(()=>{var l,c,u;const i=u8(e,r),o=u8(t),a=te(I(I({blur:!1},o),i),{closable:(u=(c=(l=i.closable)!=null?l:r)!=null?c:o.closable)!=null?u:!0}),s=a.blur?`${n}-mask-blur`:void 0;return[a.enabled!==!1,{mask:s},!!a.closable]},[e,t,n,r]),f8=e=>{const[t,n]=g.useState(null);return[g.useCallback((i,o,a)=>{const s=t!=null?t:i,l=Math.min(s||0,i),c=Math.max(s||0,i),u=o.slice(l,c+1).map(e),f=u.some(A=>!a.has(A)),d=[];return u.forEach(A=>{f?(a.has(A)||d.push(A),a.add(A)):(a.delete(A),d.push(A))}),n(f?c:null),d},[t]),n]},are=e=>e==="horizontal"||e==="vertical",aE=(e,t,n)=>g.useMemo(()=>{const r=are(e);let i;return r?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=are(n)?n:"horizontal",[i,i==="vertical"]},[n,e,t]),uLe=()=>{const[e,t]=g.useState([]),n=g.useCallback(r=>(t(i=>[].concat(en(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]},fLe=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),dLe=(e,t)=>g.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy!="undefined"?new Proxy(r,{get(i,o){return n[o]?n[o]:Reflect.get(i,o)}}):fLe(r,n)}),ALe=e=>{const t=g.useRef(e),[,n]=c8();return[()=>t.current,r=>{t.current=r,n()}]},OM=Be.createContext(void 0),Ug=100,d8=Ug*10,sre={Modal:Ug,Drawer:Ug,Popover:Ug,Popconfirm:Ug,Tooltip:Ug,Tour:Ug,FloatButton:Ug},hLe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},pLe=e=>e in sre,jg=(e,t)=>{const[,n]=al(),r=Be.useContext(OM),i=pLe(e);let o;if(t!==void 0)o=[t,t];else{let a=r!=null?r:0;i?a+=(r?0:n.zIndexPopupBase)+sre[e]:a+=hLe[e],o=[r===void 0?t:a,a]}return o},gLe=e=>{const{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(i=>`${i} ${r}`).join(", ")}},lre=(e,t)=>{const{componentCls:n,antCls:r,colorSuccess:i,colorInfo:o,colorWarning:a,colorError:s,colorTextHeading:l,colorText:c,boxShadow:u,borderRadiusLG:f,fontSize:d,lineHeight:A,notificationBg:h,notificationPadding:p,notificationMarginEdge:v,margin:y,calc:b}=e,x=`${n}-notice`,[C,S]=go(r,"notification");return{[x]:I(te(I(I({position:"absolute",width:t.width,maxWidth:`calc(100vw - ${be(b(v).mul(2).equal())})`,padding:p,pointerEvents:"auto",[C("icon-font-size")]:t.iconFontSize,[C("title-font-size")]:t.titleFontSize,[C("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:h,borderRadius:f,boxShadow:u,fontSize:d,lineHeight:A,wordWrap:"break-word",overflow:"visible"},gLe(e)),t.noticeStyle),{"&::after":{position:"absolute",insetInline:0,top:b(y).mul(-1).equal(),height:y,content:'""'}}),t.typeStyle&&{"&-success":{background:S("color-success-bg",h)},"&-error":{background:S("color-error-bg",h)},"&-info":{background:S("color-info-bg",h)},"&-warning":{background:S("color-warning-bg",h)}}),[`${x}-wrapper`]:I({display:"flex"},t.contentStyle),[`${x}-title`]:{color:l,fontSize:S("title-font-size"),lineHeight:S("title-line-height")},[`${x}-icon`]:{flex:"none",fontSize:S("icon-font-size"),lineHeight:1,[`&${x}-icon-success`]:{color:i},[`&${x}-icon-info, &${x}-icon-loading`]:{color:o},[`&${x}-icon-warning`]:{color:a},[`&${x}-icon-error`]:{color:s}}}},cre=e=>{const{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:o,width:a,notificationIconSize:s,colorText:l,motionDurationMid:c,fontSizeLG:u,lineHeightLG:f,marginSM:d,marginXS:A,paddingLG:h,notificationPaddingVertical:p,notificationPaddingHorizontal:v,notificationCloseButtonSize:y,colorIcon:b,borderRadiusSM:x,colorIconHover:C,colorBgTextHover:S,colorBgTextActive:B}=e,E=`${t}-notice`;return te(I({},lre(e,{width:a,iconFontSize:s,titleFontSize:u,titleLineHeight:f,contentStyle:{alignItems:"flex-start",gap:d},typeStyle:!0})),{[`${E}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:A,minWidth:0},[`${E}-description`]:{color:l,fontSize:i},[`${E}-closable`]:{[`${E}-title, ${E}-description`]:{paddingInlineEnd:h},[`${E}-title + ${E}-description`]:{paddingInlineEnd:0}},[`${E}-close`]:I({position:"absolute",top:p,insetInlineEnd:v,display:"flex",alignItems:"center",justifyContent:"center",width:y,height:y,color:b,background:"none",border:"none",borderRadius:x,outline:"none",transition:["color","background-color"].map(_=>`${_} ${c}`).join(", "),"&:hover":{color:C,backgroundColor:S},"&:active":{backgroundColor:B}},lc(e)),[`${E}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${be(o)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:o,background:n}},[`${E}-actions`]:{float:"right",marginTop:d}})},mLe=e=>{const{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,o=cre(e);return{[`${r}-pure-panel`]:te(I({width:n,maxWidth:"100%"},o),{[r]:te(I({},o[r]),{position:"relative",width:"100%",maxWidth:"100%"}),[i]:te(I({},o[i]),{float:"none",textAlign:"end"})})}},vLe=e=>{const{componentCls:t}=e;return{[t]:cre(e)}},yLe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],bLe="--notification-margin-edge",xLe=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),ure=e=>{var r,i;const t=(r=e==null?void 0:e.x)!=null?r:"0",n=(i=e==null?void 0:e.y)!=null?i:"0";return`translate3d(${t}, ${n}, 0) scale(var(--notification-scale, 1))`},wLe=(e,t)=>{const n=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:i,inlineEnd:o}=xLe(n,r),a=e==="top"||e==="bottom",s=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:o,motionOffset:a?{x:"-50%",y:s}:{x:s},baseMotionOffset:a?{x:"-50%"}:void 0,isCenterPlacement:a}},CLe=e=>e==="bottom"?"column-reverse":"column",SLe=e=>{const t=`var(${bLe}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},ELe=e=>e==="bottom"?"center top":"center bottom",fre=e=>be(e.calc(e.marginXXL).mul(-1).equal()),BLe=e=>{const t=fre(e);return`inset(${t} ${t} ${t} ${t})`},OLe=(e,t)=>{const n=fre(e);return t==="bottom"?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},$Le=(e,t)=>{const{componentCls:n}=e,{placement:r,vertical:i,blockEnd:o,horizontal:a,inlineEnd:s,isCenterPlacement:l}=t,c=`${n}-notice`,u=`${c}${n}-fade`,f=ure(t.motionOffset),d=ure(t.baseMotionOffset),A=ELe(i);return{[`&${n}-${r}`]:te(I({[i]:SLe(i),[o]:"auto",display:"flex",flexDirection:CLe(i)},l?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[a]:0,[s]:"auto"}),{[c]:te(I({[i]:"var(--notification-y, 0)"},l?{left:"50%",transform:d}:{[a]:"var(--notification-x, 0)"}),{transformOrigin:A}),[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:f,transition:"none"},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:f},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:d},[`${u}-leave-start`]:{opacity:1,transform:d},[`${u}-leave-active`]:{opacity:0,transform:f},[`&${n}-stack:not(${n}-stack-expanded)`]:{[c]:{clipPath:OLe(e,i)},[`${c}[data-notification-index='0']`]:{clipPath:BLe(e)}}})}},_Le=(e,t=yLe)=>{const{notificationMotionOffset:n}=e,r=be(n);return I({},t.reduce((i,o)=>I(I({},i),$Le(e,wLe(o,r))),{}))},TLe=e=>{const{componentCls:t}=e;return{[t]:_Le(e)}},MLe=3,dre=e=>({zIndexPopup:e.zIndexPopupBase+d8+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),A8=e=>{const t=e.paddingMD,n=e.paddingLG;return dr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},ILe=e=>`inset(${e} ${e} ${e} ${e})`,RLe=e=>{const{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},NLe=(e,t)=>{var d;const{componentCls:n,notificationMarginEdge:r}=e,i="--notification-margin-edge",o=`${n}-notice`,a=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",l=(d=t.stackVisibleCount)!=null?d:MLe,c=`${o}:nth-last-child(n + ${l+1})`,u=be(e.calc(e.marginXXL).mul(-1).equal()),f=ILe(u);return{[n]:te(I(te(I({},zr(e)),{[i]:be(r),position:"fixed",zIndex:e.zIndexPopup,width:s,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${a}`]:{maxHeight:"100vh",padding:`var(${i})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}}}),RLe(e)),{[`&${n}-stack`]:{[o]:{clipPath:f},[`&:not(${n}-stack-expanded)`]:{[o]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${o}:not(${o}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[c]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${o}-actions`]:{float:"left"}}})}};kg(["Notification","PurePanel"],e=>mLe(A8(e)),dre);const Are=(e,t)=>{var r;const n=(r=t.itemStyle)!=null?r:vLe;return[NLe(e,t),n(e),TLe(e)]};Br("Notification",e=>{const t=A8(e);return Are(t,{listWidthKey:"width"})},dre);const hre=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return dr(A8(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},pre=e=>({zIndexPopup:e.zIndexPopupBase+d8+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),h8=e=>{const{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return lre(e,{width:"max-content",iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},PLe=e=>{const{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,l=h8(e)[n],{"&::after":o}=l,a=Ze(l,["&::after"]),s=te(I({},a),{position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'});return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":te(I({},s),{top:`calc(var(--top-notificiation-height) - ${be(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${be(e.margin)})`}),"&::after":te(I({},s),{zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${be(e.calc(e.margin).mul(2).equal())})`})},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},LLe=e=>{const{componentCls:t}=e,n=`${t}-notice`,r=h8(e);return{[`${n}-pure-panel`]:te(I({width:"max-content",maxWidth:"100%"},r),{[n]:te(I({},r[n]),{position:"relative",width:"max-content",maxWidth:"100%"})})}},FLe=kg(["Message","PurePanel"],e=>LLe(hre(e)),pre),kLe=e=>({[e.componentCls]:h8(e)}),p8=Br("Message",e=>{const t=hre(e);return[Are(t,{stackVisibleCount:1,itemStyle:kLe}),PLe(t)]},pre),DLe={info:g.createElement(Xte,null),success:g.createElement(eE,null),error:g.createElement(hv,null),warning:g.createElement(Sb,null),loading:g.createElement(qh,null)},g8=(e,t)=>t||e&&DLe[e]||null,HLe=e=>{const R=e,{prefixCls:t,className:n,style:r,type:i,icon:o,content:a,classNames:s,styles:l}=R,c=Ze(R,["prefixCls","className","style","type","icon","content","classNames","styles"]),{getPrefixCls:u,className:f,style:d,classNames:A,styles:h}=or("message"),p=t||u("message"),v=`${p}-notice`,y=So(p),[b,x]=p8(p,y),[C,S]=vr([A,s],[h,l],{props:e}),B=g8(i,o),E=i?`${v}-icon-${i}`:void 0,_={wrapper:Ae(i&&`${p}-${i}`,C.wrapper),icon:Ae(E,C.icon),title:C.title},M={wrapper:S.wrapper,icon:S.icon,title:S.title};return g.createElement("div",{className:Ae(`${v}-pure-panel`,b,n,x,y,C.root),style:S.root},g.createElement(FLe,{prefixCls:p}),g.createElement(Yne,te(I({},c),{prefixCls:p,className:f,style:I(I({},d),r),duration:null,icon:B,title:a,classNames:_,styles:M})))};function ULe(e,t){return{motionName:t!=null?t:`${e}-fade`}}function m8(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}const jLe=8,zLe=3,QLe=!1,VLe=({children:e,prefixCls:t})=>{const n=So(t),[r,i]=p8(t,n);return g.createElement(VPe,{classNames:{list:Ae(r,i,n)}},e)},KLe=(e,{prefixCls:t,key:n})=>g.createElement(VLe,{prefixCls:t,key:n},e),WLe=g.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=zLe,rtl:s,classNames:l,styles:c,transitionName:u,pauseOnHover:f=!0,stack:d,onAllRemoved:A}=e,{getPrefixCls:h,direction:p,getPopupContainer:v}=or("message"),{message:y}=g.useContext(Un),b=r||h("message"),[x,C]=vr([y==null?void 0:y.classNames,l],[y==null?void 0:y.styles,c],{props:e}),S=()=>nLe(n!=null?n:jLe),B=()=>Ae({[`${b}-rtl`]:s!=null?s:p==="rtl"}),E=()=>ULe(b,u),_=tLe(d,QLe),[M,R]=eLe({prefixCls:b,style:S,className:B,motion:E,closable:!1,duration:a,getContainer:()=>(i==null?void 0:i())||(v==null?void 0:v())||document.body,maxCount:o,onAllRemoved:A,classNames:x,styles:C,renderNotifications:KLe,pauseOnHover:f,stack:_});return g.useImperativeHandle(t,()=>te(I({},M),{prefixCls:b,message:y})),R});let gre=0;function mre(e){const t=g.useRef(null);return Ig(),[g.useMemo(()=>{const r=l=>{var c;(c=t.current)==null||c.close(l)},i=l=>{if(!t.current){const D=()=>{};return D.then=()=>{},D}const{open:c,prefixCls:u,message:f}=t.current,d=(f==null?void 0:f.className)||{},A=(f==null?void 0:f.style)||{},h=`${u}-notice`,H=l,{content:p,icon:v,type:y,key:b,className:x,style:C,onClose:S,classNames:B={},styles:E={}}=H,_=Ze(H,["content","icon","type","key","className","style","onClose","classNames","styles"]);let M=b;oa(M)||(gre+=1,M=`antd-message-${gre}`);const R=I(I({},e),l),T=hM(B,{props:R}),L=hM(E,{props:R}),P=g8(y,v),k=y?`${h}-icon-${y}`:void 0;return m8(D=>(c(te(I({},_),{key:M,icon:P,title:p,classNames:te(I({},T),{wrapper:Ae(y&&`${u}-${y}`,T.wrapper),icon:Ae(k,T.icon)}),styles:L,placement:"top",className:Ae({[`${h}-${y}`]:y},x,d),style:I(I({},A),C),onClose:()=>{S==null||S(),D()}})),()=>{r(M)}))},a={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)==null||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,d)=>{let A;Zn(u)&&"content"in u?A=u:A={content:u};let h,p;Rn(f)?p=f:(h=f,p=d);const v=te(I({onClose:p,duration:h},A),{type:l});return i(v)};a[l]=c}),a},[]),g.createElement(WLe,te(I({key:"message-holder"},e),{ref:t}))]}function GLe(e){return mre(e)}const v8=()=>({height:0,opacity:0}),vre=e=>{var t;return{height:(t=e==null?void 0:e.scrollHeight)!=null?t:0,opacity:e?1:0}},qLe=e=>{var t;return{height:(t=e==null?void 0:e.offsetHeight)!=null?t:0}},y8=(e,t)=>(t==null?void 0:t.deadline)===!0||Ane(t)&&t.propertyName==="height",Bb=(e=jS)=>({motionName:`${e}-motion-collapse`,onAppearStart:v8,onEnterStart:v8,onAppearActive:vre,onEnterActive:vre,onLeaveStart:qLe,onLeaveActive:v8,onAppearEnd:y8,onEnterEnd:y8,onLeaveEnd:y8,motionDeadline:500}),Yh=(e,t,n)=>n!==void 0?n:`${e}-${t}`,YLe=Y3e("Wave",e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:o,antCls:a}=e,[,s]=go(a,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:s("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(l=>`${l} ${o}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(l=>`${l} ${r} ${i}`).join(",")}}}}}),$M=`${jS}-wave-target`,yre=e=>e?AA(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function XLe(e,t=null){var a;const n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:o}=n;return t&&yre(n[t])?n[t]:(a=[r,i,o].find(yre))!=null?a:null}function b8(e){return Number.isNaN(e)?0:e}const ZLe=e=>{const{className:t,target:n,component:r,colorSource:i}=e,o=g.useRef(null),{getPrefixCls:a}=g.useContext(Un),s=a(),[l]=go(s,"wave"),[c,u]=g.useState(null),[f,d]=g.useState([]),[A,h]=g.useState(0),[p,v]=g.useState(0),[y,b]=g.useState(0),[x,C]=g.useState(0),[S,B]=g.useState(!1),E={left:A,top:p,width:y,height:x,borderRadius:f.map(R=>`${R}px`).join(" ")};c&&(E[l("color")]=c);function _(){const R=getComputedStyle(n);u(XLe(n,i));const T=R.position==="static",{borderLeftWidth:L,borderTopWidth:P}=R;h(T?n.offsetLeft:b8(-Number.parseFloat(L))),v(T?n.offsetTop:b8(-Number.parseFloat(P))),b(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:H,borderBottomLeftRadius:D,borderBottomRightRadius:U}=R;d([k,H,U,D].map(j=>b8(Number.parseFloat(j))))}if(g.useEffect(()=>{if(n){const R=Kn(()=>{_(),B(!0)});let T;return typeof ResizeObserver!="undefined"&&(T=new ResizeObserver(_),T.observe(n)),()=>{Kn.cancel(R),T==null||T.disconnect()}}},[n]),!S)return null;const M=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains($M));return g.createElement(sl,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,T)=>{var L;if(T.deadline||Ane(T)&&T.propertyName==="opacity"){const P=(L=o.current)==null?void 0:L.parentElement;Pee(P).then(()=>{P==null||P.remove()})}return!1}},({className:R},T)=>g.createElement("div",{ref:il(o,T),className:Ae(t,R,{"wave-quick":M}),style:E}))},JLe=(e,t)=>{var i;const{component:n}=t;if(n==="Checkbox"&&!((i=e.querySelector("input"))!=null&&i.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),j6(g.createElement(ZLe,te(I({},t),{target:e})),r)},eFe=(e,t,n,r)=>{const{wave:i}=g.useContext(Un),[,o,a]=al(),s=yn(u=>{const f=e.current;if(i!=null&&i.disabled||!f)return;const d=f.querySelector(`.${$M}`)||f,{showEffect:A}=i||{};(A||JLe)(d,{className:t,token:o,component:n,event:u,hashId:a,colorSource:r})}),l=g.useRef(null);return g.useEffect(()=>()=>{Kn.cancel(l.current)},[]),u=>{Kn.cancel(l.current),l.current=Kn(()=>{s(u)})}},bre={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},sE=e=>{const{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:o,wave:a}=g.useContext(Un),s=g.useRef(null),l=o("wave"),c=YLe(l),u=eFe(s,Ae(l,c),r,i);if(Be.useEffect(()=>{const d=s.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const A=v=>{!hb(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||u(v)},h=a==null?void 0:a.triggerType,p=h&&h in bre?bre[h]:"click";return d.addEventListener(p,A,!0),()=>{d.removeEventListener(p,A,!0)}},[n,a==null?void 0:a.triggerType]),!Be.isValidElement(t))return t!=null?t:null;const f=Vh(t)?il(cA(t),s):s;return Ga(t,{ref:f})},aa=e=>{const t=Be.useContext(vv);return Be.useMemo(()=>e?AA(e)?e!=null?e:t:Rn(e)?e(t):t:t,[e,t])},tFe=Br(["Space","Compact"],e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},()=>({}),{resetStyle:!1}),_M=g.createContext(null),hA=(e,t)=>{const n=g.useContext(_M),r=g.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Ae(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},nFe=e=>{const{children:t}=e;return g.createElement(_M.Provider,{value:null},t)},rFe=e=>{const r=e,{children:t}=r,n=Ze(r,["children"]);return g.createElement(_M.Provider,{value:g.useMemo(()=>n,[n])},t)},x8=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Un),B=e,{size:r,direction:i,orientation:o,block:a,prefixCls:s,className:l,rootClassName:c,children:u,vertical:f}=B,d=Ze(B,["size","direction","orientation","block","prefixCls","className","rootClassName","children","vertical"]),[A,h]=aE(o,f,i),p=aa(E=>r!=null?r:E),v=t("space-compact",s),[y]=tFe(v),b=Ae(v,y,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:a,[`${v}-vertical`]:h},l,c),x=g.useContext(_M),C=pa(u),S=g.useMemo(()=>C.map((E,_)=>{const M=(E==null?void 0:E.key)||`${v}-item-${_}`;return g.createElement(rFe,{key:M,compactSize:p,compactDirection:A,isFirstItem:_===0&&(!x||(x==null?void 0:x.isFirstItem)),isLastItem:_===C.length-1&&(!x||(x==null?void 0:x.isLastItem))},E)}),[C,x,A,p,v]);return C.length===0?null:g.createElement("div",I({className:b},d),S)},xre=g.createContext(void 0),iFe=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Un),f=e,{prefixCls:r,size:i,className:o}=f,a=Ze(f,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=al(),c=g.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),u=Ae(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return g.createElement(xre.Provider,{value:i},g.createElement("div",te(I({},a),{className:u})))},wre=/^[\u4E00-\u9FA5]{2}$/,w8=wre.test.bind(wre);function C8(e){return e==="danger"?{danger:!0}:{type:e}}function S8(e){return e==="text"||e==="link"}function oFe(e,t,n,r){if(!qi(e))return;const i=t?" ":"";return!AA(e)&&!mo(e)&&AA(e.type)&&w8(e.props.children)?Ga(e,o=>{const a=Ae(o.className,r)||void 0,s=I(I({},n),o.style);return te(I({},o),{children:o.children.split("").join(i),className:a,style:s})}):AA(e)?Be.createElement("span",{className:r,style:n},w8(e)?e.split("").join(i):e):Hne(e)?Be.createElement("span",{className:r,style:n},e):Ga(e,o=>te(I({},o),{className:Ae(o.className,r)||void 0,style:I(I({},o.style),n)}))}function aFe(e,t,n,r){let i=!1;const o=[];return Be.Children.forEach(e,a=>{const s=AA(a)||mo(a);if(i&&s){const l=o.length-1,c=o[l];o[l]=`${c}${a}`}else o.push(a);i=s}),Be.Children.map(o,a=>oFe(a,t,n,r))}["default","primary","danger"].concat(en(uA));const Cre=g.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=Ae(`${o}-icon`,n);return Be.createElement("span",{ref:t,className:a,style:r},i)}),Sre=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=Ae(`${n}-loading-icon`,r);return Be.createElement(Cre,{prefixCls:n,className:a,style:i,ref:t},Be.createElement(qh,{className:o}))}),E8=()=>({width:0,opacity:0,transform:"scale(0)"}),B8=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),sFe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,s=!!n;return r?Be.createElement(Sre,{prefixCls:t,className:i,style:o}):Be.createElement(sl,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:E8,onAppearActive:B8,onEnterStart:E8,onEnterActive:B8,onLeaveStart:B8,onLeaveActive:E8},({className:l,style:c},u)=>{const f=I(I({},o),c);return Be.createElement(Sre,{prefixCls:t,className:Ae(i,l),style:f,ref:u})})},lE=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(o=>`${o} ${r} ${i}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(o=>`${o} ${r} ${i}`).join(", ")} !important`}}}},Ere=e=>({animationDuration:e,animationFillMode:"both"}),TM=(e,t,n,r,i=!1)=>{const o=i?"&":"";return{[` - ${o}${e}-enter, - ${o}${e}-appear - `]:te(I({},Ere(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:te(I({},Ere(r)),{animationPlayState:"paused"}),[` - ${o}${e}-enter${e}-enter-active, - ${o}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lFe=new Xr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cFe=new Xr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),O8=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[TM(r,lFe,cFe,e.motionDurationMid,t),{[` + ${aee()?`width: calc(100% - ${e}px);`:``} +}`,n)}else Mi(n);return()=>{Mi(n)}},[t,n])}var qp=[],cee=200,Jp=0,Yp=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-Jp=0;--n)qp[n].onEsc({top:n===t-1,event:e})}},Xp=()=>{Jp=Date.now()};function lee(){window.addEventListener(`keydown`,Yp),window.addEventListener(`compositionend`,Xp)}function uee(){qp.length===0&&(window.removeEventListener(`keydown`,Yp),window.removeEventListener(`compositionend`,Xp))}function dee(e,t){let n=ii(),r=qr(t),i=()=>{qp.find(e=>e.id===n)||qp.push({id:n,onEsc:r})},a=()=>{qp=qp.filter(e=>e.id!==n)};(0,J.useMemo)(()=>{e?i():e||a()},[e]),(0,J.useEffect)(()=>{if(e)return i(),lee(),()=>{a(),uee()}},[e])}var fee=e=>e===!1?!1:!Jr()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,Zp=J.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:c}=e,[l,u]=J.useState(n),d=l||n;J.useEffect(()=>{(o||n)&&u(n)},[n,o]);let[f,p]=J.useState(()=>fee(i));J.useEffect(()=>{let e=fee(i);p(()=>e==null?null:e)});let[m,h]=iee(d&&!f,a),g=f==null?m:f;see(r&&n&&Jr()&&(g===m||g===document.body)),dee(n,c);let _=null;s&&_i(s)&&t&&(_=bi(s));let v=gi(_,t);if(!d||!Jr()||f===void 0)return null;let y=g===!1||ree(),b=s;return t&&(b=J.cloneElement(s,{ref:v})),J.createElement(Up.Provider,{value:h},y?b:(0,Xa.createPortal)(b,g))});K();function pee(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=J.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return J.createElement(`div`,{ref:u,className:Z(`${t}-arrow`,a),style:G(G({},d),s)},o)}function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(`div`,{style:{zIndex:r},className:Z(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var hee=J.memo(({children:e})=>e,(e,t)=>t.cache);function gee(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){var u;let{points:e}=r,t=r.dynamicInset||((u=r._experimental)==null?void 0:u.dynamicInset),n=t&&e[0][1]===`r`,d=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),d?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}K();function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:v,mobile:y,forceRender:b,getPopupContainer:x,autoDestroy:S,portal:C,children:w,zIndex:T,onMouseEnter:E,onMouseLeave:D,onPointerEnter:O,onPointerDownCapture:k,ready:A,offsetX:j,offsetY:M,offsetR:N,offsetB:P,onAlign:F,onPrepare:I,onResize:L,stretch:R,targetWidth:z,targetHeight:B}=e,V=typeof r==`function`?r():r,H=l||u,U=!!y,[ee,te,ne]=J.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[p,v,_],[y,p,v,_]),re=(x==null?void 0:x.length)>0,[ie,ae]=J.useState(!x||!re);Xr(()=>{!ie&&re&&s&&ae(!0)},[ie,re,s]);let oe=qr((e,t)=>{L==null||L(e,t),F()}),se=gee(U,A,l,g,N,P,j,M);if(!ie)return null;let ce={};return R&&(R.includes(`height`)&&B?ce.height=B:R.includes(`minHeight`)&&B&&(ce.minHeight=B),R.includes(`width`)&&z?ce.width=z:R.includes(`minWidth`)&&z&&(ce.minWidth=z)),l||(ce.pointerEvents=`none`),J.createElement(C,{open:b||H,getContainer:x&&(()=>x(s)),autoDestroy:S,onEsc:n},J.createElement(mee,{prefixCls:a,open:l,zIndex:T,mask:ee,motion:te,mobile:U}),J.createElement(go,{onResize:oe,disabled:!l},e=>J.createElement(ip,$p({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:`${a}-hidden`},ne,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:e=>{var t;_==null||(t=_.onVisibleChanged)==null||t.call(_,e),c(e)}}),({className:n,style:r},s)=>{let c=Z(a,n,i,{[`${a}-mobile`]:U});return J.createElement(`div`,{ref:hi(e,t,s),className:c,style:G(G(G(G({"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`},se),ce),r),{},{boxSizing:`border-box`,zIndex:T},o),onMouseEnter:E,onMouseLeave:D,onPointerEnter:O,onClick:f,onPointerDownCapture:k},m&&J.createElement(pee,{prefixCls:a,arrow:m,arrowPos:h,align:g}),J.createElement(hee,{cache:!l&&!d},V))})),w)}),vee=J.createContext(null),yee=J.createContext(null);K();function bee(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function xee(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;nr.includes(e))&&t.push(n),n=n.parentElement}return t}function tm(e,t=1){return Number.isNaN(e)?t:e}function nm(e){return tm(parseFloat(e),0)}function rm(e,t){let n=G({},e);return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=em(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=nm(i),m=nm(a),h=nm(o),g=nm(s),_=tm(Math.round(c.width/d*1e3)/1e3),v=tm(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=nm(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}K();function im(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function am(e,t){let[n,r]=t||[];return[im(e.width,n),im(e.height,r)]}function om(e=``){return[e[0],e[1]]}function sm(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function cm(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function lm(e){return e.join(``)}function Cee(e,t,n,r,i,a,o,s){let[c,l]=J.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=J.useRef(0),d=J.useMemo(()=>!t||s?[]:See(t),[t]),f=J.useRef({});e||(f.current={});let p=qr(()=>{if(t&&n&&e&&!s){var c,u,p,m;let e=t,s=e.ownerDocument,y=em(e),{position:b}=y.getComputedStyle(e),x=e.style.left,S=e.style.top,C=e.style.right,w=e.style.bottom,T=e.style.overflow,E=e.style.overflowX,D=e.style.overflowY,O=G(G({},i[r]),a),k=s.createElement(`div`);(c=e.parentElement)==null||c.appendChild(k),k.style.left=`${e.offsetLeft}px`,k.style.top=`${e.offsetTop}px`,k.style.position=b,k.style.height=`${e.offsetHeight}px`,k.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var h,g;let e=n.getBoundingClientRect();e.x=(h=e.x)==null?e.left:h,e.y=(g=e.y)==null?e.top:g,A={x:e.x,y:e.y,width:e.width,height:e.height}}let j=e.getBoundingClientRect(),{height:M,width:N}=y.getComputedStyle(e);j.x=(u=j.x)==null?j.left:u,j.y=(p=j.y)==null?j.top:p;let{clientWidth:P,clientHeight:F,scrollWidth:I,scrollHeight:L,scrollTop:R,scrollLeft:z}=s.documentElement,B=j.height,V=j.width,H=A.height,U=A.width,ee={left:0,top:0,right:P,bottom:F},te={left:-z,top:-R,right:I-z,bottom:L-R},{htmlRegion:ne}=O,re=`visible`,ie=`visibleFirst`;ne!==`scroll`&&ne!==ie&&(ne=re);let ae=ne===ie,oe=rm(te,d),se=rm(ee,d),ce=ne===re?se:oe,le=ae?se:ce;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let ue=e.getBoundingClientRect();e.style.left=x,e.style.top=S,e.style.right=C,e.style.bottom=w,e.style.overflow=T,e.style.overflowX=E,e.style.overflowY=D,(m=e.parentElement)==null||m.removeChild(k);let de=tm(Math.round(V/parseFloat(N)*1e3)/1e3),fe=tm(Math.round(B/parseFloat(M)*1e3)/1e3);if(de===0||fe===0||Fi(n)&&!Li(n))return;let{offset:pe,targetOffset:me}=O,[he,W]=am(j,pe),[ge,_e]=am(A,me);A.x-=ge,A.y-=_e;let[K,ve]=O.points||[],q=om(ve),ye=om(K),be=sm(A,q),xe=sm(j,ye),Se=G({},O),Ce=[ye,q],we=be.x-xe.x+he,Te=be.y-xe.y+W;function _(e,t,n=ce){let r=j.x+e,i=j.y+t,a=r+V,o=i+B,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let Ee=_(we,Te),De=_(we,Te,se),Oe=sm(A,[`t`,`l`]),ke=sm(j,[`t`,`l`]),Ae=sm(A,[`b`,`r`]),je=sm(j,[`b`,`r`]),{adjustX:Me,adjustY:Ne,shiftX:Pe,shiftY:Fe}=O.overflow||{},Ie=e=>typeof e==`boolean`?e:e>=0,Le,Re,ze,Be;function v(){Le=j.y+Te,Re=Le+B,ze=j.x+we,Be=ze+V}v();let Ve=Ie(Ne),He=ye[0]===q[0];if(Ve&&ye[0]===`t`&&(Re>le.bottom||f.current.bt)){let e=Te;He?e-=B-H:e=Oe.y-je.y-W;let t=_(we,e),n=_(we,e,se);t>Ee||t===Ee&&(!ae||n>=De)?(f.current.bt=!0,Te=e,W=-W,Ce=[cm(Ce[0],0),cm(Ce[1],0)]):f.current.bt=!1}if(Ve&&ye[0]===`b`&&(LeEe||t===Ee&&(!ae||n>=De)?(f.current.tb=!0,Te=e,W=-W,Ce=[cm(Ce[0],0),cm(Ce[1],0)]):f.current.tb=!1}let Ue=Ie(Me),We=ye[1]===q[1];if(Ue&&ye[1]===`l`&&(Be>le.right||f.current.rl)){let e=we;We?e-=V-U:e=Oe.x-je.x-he;let t=_(e,Te),n=_(e,Te,se);t>Ee||t===Ee&&(!ae||n>=De)?(f.current.rl=!0,we=e,he=-he,Ce=[cm(Ce[0],1),cm(Ce[1],1)]):f.current.rl=!1}if(Ue&&ye[1]===`r`&&(zeEe||t===Ee&&(!ae||n>=De)?(f.current.lr=!0,we=e,he=-he,Ce=[cm(Ce[0],1),cm(Ce[1],1)]):f.current.lr=!1}Se.points=[lm(Ce[0]),lm(Ce[1])],v();let Ge=Pe===!0?0:Pe;typeof Ge==`number`&&(zese.right&&(we-=Be-se.right-he,A.x>se.right-Ge&&(we+=A.x-se.right+Ge)));let Ke=Fe===!0?0:Fe;typeof Ke==`number`&&(Lese.bottom&&(Te-=Re-se.bottom-W,A.y>se.bottom-Ke&&(Te+=A.y-se.bottom+Ke)));let qe=j.x+we,Je=qe+V,Ye=j.y+Te,Xe=Ye+B,Ze=A.x,Qe=Ze+U,$e=A.y,et=$e+H,tt=(Math.max(qe,Ze)+Math.min(Je,Qe))/2-qe,nt=(Math.max(Ye,$e)+Math.min(Xe,et))/2-Ye;o==null||o(t,Se);let rt=ue.right-j.x-(we+j.width),it=ue.bottom-j.y-(Te+j.height);de===1&&(we=Math.floor(we),rt=Math.floor(rt)),fe===1&&(Te=Math.floor(Te),it=Math.floor(it));let at={ready:!0,offsetX:we/de,offsetY:Te/fe,offsetR:rt/de,offsetB:it/fe,arrowX:tt/de,arrowY:nt/fe,scaleX:de,scaleY:fe,align:Se};l(at)}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>G(G({},e),{},{ready:!1}))};return Xr(h,[r]),Xr(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function wee(){let e=J.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return J.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function Tee(){let[e,t]=J.useState(null),[n,r]=J.useState(!1),[i,a]=J.useState(!1),o=J.useRef(null);return[qr(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,qr(e=>{e?(a(!1),o.current&&(t(o.current),o.current=null)):(a(!1),o.current=null)})]}K();function um(){return um=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:m}=e,h=`${t}-unique-container`,[g,_]=J.useState(!1),v=gee(n,r,i,a,o,s,c,l),y=J.useRef(v);r&&(y.current=v);let b={};return d&&(b.width=d.width,b.height=d.height),J.createElement(ip,um({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},f,{visible:i,onVisibleChanged:e=>{_(e)}}),({className:e,style:t})=>{let n=Z(h,e,p,{[`${h}-visible`]:g});return J.createElement(`div`,{className:n,style:G(G(G(G({"--arrow-x":`${(u==null?void 0:u.x)||0}px`,"--arrow-y":`${(u==null?void 0:u.y)||0}px`},y.current),b),t),m)})})},Dee=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=Tee(),o=J.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=J.useState(null),[l,u]=J.useState(null),d=J.useRef(null),f=qr(e=>{d.current=e,Fi(e)&&s!==e&&c(e)}),p=J.useRef(null),m=wee(),h=qr((e,t)=>{p.current=t,m(()=>{n(e)},e.delay)}),g=e=>{m(()=>{var e;(e=p.current)!=null&&e.call(p)||n(!1)},e)},_=qr(e=>{a(e)}),[v,y,b,x,S,C,w,,,T,E]=Cee(r,s,o==null?void 0:o.target,o==null?void 0:o.popupPlacement,(o==null?void 0:o.builtinPlacements)||{},o==null?void 0:o.popupAlign,void 0,!1),D=J.useMemo(()=>{var e;return o?Z(xee(o.builtinPlacements||{},o.prefixCls||``,T,!1),(e=o.getPopupClassNameFromAlign)==null?void 0:e.call(o,T)):``},[T,o==null?void 0:o.getPopupClassNameFromAlign,o==null?void 0:o.builtinPlacements,o==null?void 0:o.prefixCls]),O=J.useMemo(()=>({show:h,hide:g}),[]);J.useEffect(()=>{E()},[o==null?void 0:o.target]);let k=qr(()=>(E(),Promise.resolve())),A=J.useRef({}),j=J.useContext(vee),M=J.useMemo(()=>({registerSubPopup:(e,t)=>{A.current[e]=t,j==null||j.registerSubPopup(e,t)}}),[j]),N=o==null?void 0:o.prefixCls;return J.createElement(yee.Provider,{value:O},e,o&&J.createElement(vee.Provider,{value:M},J.createElement(_ee,{ref:f,portal:Zp,onEsc:o.onEsc,prefixCls:N,popup:o.popup,className:Z(o.popupClassName,D,`${N}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:_,ready:v,offsetX:y,offsetY:b,offsetR:x,offsetB:S,onAlign:E,onPrepare:k,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:C,y:w},align:T,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},J.createElement(Eee,{prefixCls:N,isMobile:!1,ready:v,open:r,align:T,offsetR:x,offsetB:S,offsetX:y,offsetY:b,arrowPos:{x:C,y:w},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:Z(o.uniqueContainerClassName,D),uniqueContainerStyle:o.uniqueContainerStyle}))))};K();function dm(e){return e&&J.isValidElement(e)&&e.type===J.Fragment}var fm=(e,t,n)=>J.isValidElement(e)?J.cloneElement(e,up(n)?n(e.props||{}):n):t;function pm(e,t){return fm(e,e,t)}K();var Oee=({children:e})=>{let{getPrefixCls:t}=J.useContext(Eo),n=t();return J.isValidElement(e)?J.createElement(ip,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>pm(e,e=>({className:Z(e.className,n),style:G(G({},e.style),t)}))):e};K();var mm=[null,null];function kee(e){if(mm[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]=G(G({},e[n]),{},{dynamicInset:!1})}),mm[0]=e,mm[1]=t}return mm[1]}var hm=({children:e})=>J.createElement(Dee,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=up(r)?r():r,a=kee(n);return G(G({},e),{},{getPopupContainer:null,arrow:!1,popup:J.createElement(Oee,{key:t},i),builtinPlacements:a})}},e),gm=J.createContext(!1),_m=({children:e,disabled:t})=>{let n=J.useContext(gm);return J.createElement(gm.Provider,{value:t==null?n:t},e)},vm=J.createContext(void 0),Aee=({children:e,size:t})=>{let n=J.useContext(vm);return J.createElement(vm.Provider,{value:t||n},e)};function jee(){return{componentDisabled:(0,J.useContext)(gm),componentSize:(0,J.useContext)(vm)}}K();function Mee(e,t,n){var r;eo(`ConfigProvider`);let i=e||{},a=i.inherit===!1||!t?G(G({},Vu),{},{hashed:(r=t==null?void 0:t.hashed)==null?Vu.hashed:r,cssVar:t==null?void 0:t.cssVar}):t,o=(0,J.useId)();return ai(()=>{var r;if(!e)return t;let s=G({},a.components);Object.keys(e.components||{}).forEach(t=>{s[t]=G(G({},s[t]),e.components[t])});let c=`css-var-${o.replace(/:/g,``)}`,l=G(G(G({prefix:n==null?void 0:n.prefixCls},a.cssVar),i.cssVar),{},{key:((r=i.cssVar)==null?void 0:r.key)||c});return G(G(G({},a),i),{},{token:G(G({},a.token),i.token),components:s,cssVar:l})},[i,a,n==null?void 0:n.prefixCls,o],(e,t)=>e.some((e,n)=>{let r=t[n];return!ya(e,r,!0)}))}var ym=J.createContext(!0);function Nee(e){let t=J.useContext(ym),{children:n}=e,[,r]=$u(),{motion:i}=r,a=J.useRef(!1);return a.current||(a.current=t!==i),a.current?J.createElement(ym.Provider,{value:i},J.createElement(pf,{motion:i},n)):n}var Pee=()=>null;K();var Fee=[`algorithm`,`token`,`components`,`cssVar`],Iee=({iconPrefixCls:e,csp:t})=>(gd(e,t),null),Lee=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],bm,xm,Sm,Cm;function wm(){return bm||`ant`}function Ree(){return xm||`anticon`}var zee=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(bm=t),n!==void 0&&(xm=n),`holderRender`in e&&(Cm=i),r&&(Sm=r)},Tm=()=>({getPrefixCls:(e,t)=>t||(e?`${wm()}-${e}`:wm()),getIconPrefixCls:Ree,getRootPrefixCls:()=>bm||wm(),getTheme:()=>Sm,holderRender:Cm}),Bee=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:_,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:x,componentDisabled:S,segmented:C,statistic:w,spin:T,calendar:E,carousel:D,cascader:O,collapse:k,typography:A,checkbox:j,descriptions:M,divider:N,drawer:P,skeleton:F,steps:I,image:L,layout:R,list:z,mentions:B,modal:V,progress:H,result:U,slider:ee,breadcrumb:te,masonry:ne,menu:re,pagination:ie,input:ae,inputPassword:oe,inputSearch:se,textArea:ce,otp:le,empty:ue,badge:de,borderBeam:fe,radio:pe,rate:me,ribbon:he,switch:W,transfer:ge,avatar:_e,message:K,tag:ve,table:ye,card:be,cardMeta:xe,tabs:Se,timeline:Ce,timePicker:we,upload:Te,notification:Ee,tree:De,colorPicker:Oe,datePicker:ke,rangePicker:Ae,flex:je,wave:Me,dropdown:Ne,warning:Pe,tour:Fe,tooltip:Ie,popover:Le,popconfirm:Re,qrcode:ze,floatButton:Be,floatButtonGroup:Ve,variant:He,inputNumber:Ue,treeSelect:We,watermark:Ge}=e,Ke=J.useMemo(()=>{var e;return lp(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&(e=l.default)!=null&&e.locale?l.default:l},[l]),qe=J.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||y.getPrefixCls(``);return t?`${i}-${t}`:i},[y.getPrefixCls,e.prefixCls]),Je=b||y.iconPrefixCls||`anticon`,Ye=n||y.csp,Xe=Mee(x,y.theme,{prefixCls:qe(``)}),Ze={csp:Ye,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:Ke||v,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:g==null?h:g,popupOverflow:_,getPrefixCls:qe,iconPrefixCls:Je,theme:Xe,segmented:C,statistic:w,spin:T,calendar:E,carousel:D,cascader:O,collapse:k,typography:A,checkbox:j,descriptions:M,divider:N,drawer:P,skeleton:F,steps:I,image:L,input:ae,inputPassword:oe,inputSearch:se,textArea:ce,otp:le,layout:R,list:z,mentions:B,modal:V,progress:H,result:U,slider:ee,breadcrumb:te,masonry:ne,menu:re,pagination:ie,empty:ue,badge:de,borderBeam:fe,radio:pe,rate:me,ribbon:he,switch:W,transfer:ge,avatar:_e,message:K,tag:ve,table:ye,card:be,cardMeta:xe,tabs:Se,timeline:Ce,timePicker:we,upload:Te,notification:Ee,tree:De,colorPicker:Oe,datePicker:ke,rangePicker:Ae,flex:je,wave:Me,dropdown:Ne,warning:Pe,tour:Fe,tooltip:Ie,popover:Le,popconfirm:Re,qrcode:ze,floatButton:Be,floatButtonGroup:Ve,variant:He,inputNumber:Ue,treeSelect:We,watermark:Ge},Qe=G({},y);Object.keys(Ze).forEach(e=>{Ze[e]!==void 0&&(Qe[e]=Ze[e])}),Lee.forEach(t=>{let n=e[t];n&&(Qe[t]=n)}),r!==void 0&&(Qe.button=G({autoInsertSpace:r},Qe.button));let $e=ai(()=>Qe,Qe,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:et}=J.useContext(zo),tt=J.useMemo(()=>({prefixCls:Je,csp:Ye,layer:et?`antd`:void 0,zeroRuntime:!!et||(Xe==null?void 0:Xe.zeroRuntime)}),[Je,Ye,et,Xe==null?void 0:Xe.zeroRuntime]),nt=J.createElement(J.Fragment,null,J.createElement(Iee,{iconPrefixCls:Je,csp:Ye}),J.createElement(Pee,{dropdownMatchSelectWidth:h}),t),rt=J.useMemo(()=>{var e,t,n;return Ga(((e=Wn.Form)==null?void 0:e.defaultValidateMessages)||{},((t=$e.locale)==null||(t=t.Form)==null?void 0:t.defaultValidateMessages)||{},((n=$e.form)==null?void 0:n.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[$e,c==null?void 0:c.validateMessages]);Object.keys(rt).length>0&&(nt=J.createElement(Ip.Provider,{value:rt},nt)),Ke&&(nt=J.createElement(nee,{locale:Ke,_ANT_MARK__:tee},nt)),(Je||Ye)&&(nt=J.createElement(vd.Provider,{value:tt},nt)),u&&(nt=J.createElement(Aee,{size:u},nt)),nt=J.createElement(Nee,null,nt),Ie!=null&&Ie.unique&&(nt=J.createElement(hm,null,nt));let it=J.useMemo(()=>{let e=Xe||{},{algorithm:t,token:n,components:r,cssVar:i}=e,a=q(e,Fee),o=t&&(!Array.isArray(t)||t.length>0)?Go(t):Bu,s={};Object.entries(r||{}).forEach(([e,t])=>{let n=G({},t);`algorithm`in n&&(n.algorithm===!0?n.theme=o:(Array.isArray(n.algorithm)||up(n.algorithm))&&(n.theme=Go(n.algorithm)),delete n.algorithm),s[e]=n});let c=G(G({},Il),n);return G(G({},a),{},{theme:o,token:c,components:s,override:G({override:c},s),cssVar:i})},[Xe]);return x&&(nt=J.createElement(Hu.Provider,{value:it},nt)),$e.warning&&(nt=J.createElement($a.Provider,{value:$e.warning},nt)),S!==void 0&&(nt=J.createElement(_m,{disabled:S},nt)),J.createElement(Eo.Provider,{value:$e},nt)},Em=e=>{let t=J.useContext(Eo),n=J.useContext(Vp);return J.createElement(Bee,G({parentContext:t,legacyLocale:n},e))};Em.ConfigContext=Eo,Em.SizeContext=vm,Em.config=zee,Em.useConfig=jee,Object.defineProperty(Em,"SizeContext",{get:()=>vm}),K();function Vee(){let[e,t]=J.useState({});return[e,J.useCallback((e,n)=>{if(!n){t(t=>{if(!(e in t))return t;let n=G({},t);return delete n[e],n});return}let r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===r.width&&n.height===r.height?t:G(G({},t),{},{[e]:r})})},[])]}function Hee(e,t,n=0){let[r,i]=Vee(),[a,o,s,c]=J.useMemo(()=>{var i;let a=0,o=0,s=(i=t==null?void 0:t.threshold)==null?0:i,c=new Map,l,u;return e.slice().reverse().forEach((e,i)=>{var d,f,p;let m=String(e.key),h=(d=(f=r[m])==null?void 0:f.height)==null?0:d,g=t&&i>0?a+((p=t.offset)==null?0:p)-h:a;if(c.set(m,g),i===0){var _,v;l=h,u=(_=(v=r[m])==null?void 0:v.width)==null?0:_}(!t||i{let t={offset:Dm,threshold:Om};if(e&&typeof e==`object`){var n,r;t.offset=(n=e.offset)==null?Dm:n,t.threshold=(r=e.threshold)==null?Om:r}return[!!e,t]};function Wee(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=qr(t),a=qr(n),[o,s]=J.useState(r>0),c=J.useRef(0),l=J.useRef(null);function u(){let e=Date.now(),t=l.current;t!==null&&(c.current+=e-t),l.current=e}let d=J.useCallback(()=>{u(),s(!1)},[]),f=J.useCallback(()=>{r>0?(l.current=Date.now(),s(!0)):a(0)},[r]);return J.useEffect(()=>{c.current=0,s(r>0)},[r]),J.useEffect(()=>{if(!o)return;let e=null;function t(){u(),c.current>=r?(a(1),i()):(a(Math.min(c.current/r,1)),e=Fa(t))}return t(),()=>{Fa.cancel(e)}},[r,o]),[f,d]}K();function Gee(e){let t=J.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=J.useMemo(()=>{var e;return G(G({},t),{},{closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:(e=t.disabled)!=null&&e})},[t]),r=J.useMemo(()=>Oa(n,!0),[n]);return[!!e,n,r]}var Kee=({className:e,style:t,percent:n})=>J.createElement(`progress`,{className:e,max:`100`,value:n,style:t});K();function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n,r;let{prefixCls:i,className:a,style:o,classNames:s,styles:c,components:l,title:u,description:d,icon:f,actions:p,role:m,closable:h,offset:g,notificationIndex:_,stackInThreshold:v,props:y,duration:b=4.5,showProgress:x,hovering:S,pauseOnHover:C=!0,onClick:w,onMouseEnter:T,onMouseLeave:E,onClose:D}=e,[O,k]=J.useState(0),A=`${i}-notice`,[j,M,N]=Gee(h),P=qr(()=>{var e;(e=M.onClose)==null||e.call(M),D==null||D()}),[F,I]=J.useState(!1),[L,R]=Wee(b,P,k),z=100-Math.min(Math.max(O*100,0),100),B=(l==null?void 0:l.progress)||Kee;J.useEffect(()=>{C&&(S?R():F||L())},[S,F,R,L,C]);function V(e){I(!0),C&&R(),T==null||T(e)}function H(e){I(!1),C&&!S&&L(),E==null||E(e)}function U(e){e.preventDefault(),e.stopPropagation(),P()}let ee=J.useRef(g);g!==void 0&&(ee.current=g);let te=J.useRef(_);_!==void 0&&(te.current=_);let ne=g==null?ee.current:g,re=(n=_==null?te.current:_)==null?0:n,ie=u==null?null:J.createElement(`div`,{className:Z(`${A}-title`,s==null?void 0:s.title),style:c==null?void 0:c.title},u),ae=d==null?null:J.createElement(`div`,{className:Z(`${A}-description`,s==null?void 0:s.description),style:c==null?void 0:c.description},d),oe=ie!==null,se=ae!==null,ce=null;ce=oe&&se?J.createElement(`div`,{className:Z(`${A}-section`,s==null?void 0:s.section),style:c==null?void 0:c.section},ie,ae):ie||ae,f!=null&&(ce=J.createElement(`div`,{className:Z(`${A}-wrapper`,s==null?void 0:s.wrapper),style:c==null?void 0:c.wrapper},J.createElement(`div`,{className:Z(`${A}-icon`,s==null?void 0:s.icon),style:c==null?void 0:c.icon},f),ce));let le=p?J.createElement(`div`,{className:Z(`${A}-actions`,s==null?void 0:s.actions),style:c==null?void 0:c.actions},p):null,ue=G(G({"--notification-index":re},c==null?void 0:c.root),o);ne!==void 0&&(ue[`--notification-y`]=`${ne}px`);let de=(r=m==null?y==null?void 0:y.role:m)==null?`alert`:r;return J.createElement(`div`,km({},y,{ref:t,role:de,"data-notification-index":re,className:Z(A,a,s==null?void 0:s.root,{[`${A}-closable`]:j,[`${A}-stack-in-threshold`]:v}),style:ue,onClick:w,onMouseEnter:V,onMouseLeave:H}),ce,le,j&&J.createElement(`button`,km({className:Z(`${A}-close`,s==null?void 0:s.close),"aria-label":`Close`},N,{style:c==null?void 0:c.close,onClick:U}),M.closeIcon),x&&typeof b==`number`&&b>0&&J.createElement(B,{className:Z(`${A}-progress`,s==null?void 0:s.progress),percent:z,style:c==null?void 0:c.progress}))}),jm=J.createContext({}),qee=({children:e,classNames:t})=>{let n=J.useMemo(()=>({classNames:t}),[t]);return J.createElement(jm.Provider,{value:n},e)};K();var Jee=[`listPrefixCls`,`height`,`topNoticeHeight`,`topNoticeWidth`,`className`,`style`];function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:a=0,className:o,style:s}=e,c=q(e,Jee),l=`${n}-content`,u=J.useRef(r),d=r(t[n]=Z(...e.map(e=>e==null?void 0:e[n])),t),{})}function ete(e){return Qee.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e==null?void 0:e[n])),t),{})}function tte(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var nte=e=>{var t;let{config:n,components:r,contextClassNames:i,classNames:a,styles:o,className:s,style:c,nodeRef:l,listHovering:u,stackEnabled:d,pauseOnHover:f,setNodeSize:p,onNoticeClose:m}=e,h=q(e,Xee),{key:g,placement:_}=n,v=q(n,Zee),y=String(g),b=gi(l,J.useCallback(e=>{p(y,e)},[p,y]));return J.createElement(Am,Nm({},v,h,{ref:b,className:Z(i==null?void 0:i.notice,n.className,s),style:G(G({},c),n.style),classNames:$ee([a,n.classNames]),styles:ete([o,n.styles]),components:G(G({},r),n.components),hovering:d&&u,pauseOnHover:(t=n.pauseOnHover)==null?f:t,onClose:()=>{var e;(e=n.onClose)==null||e.call(n),m==null||m(g)}}))},rte=e=>{let{configList:t=[],prefixCls:n=`rc-notification`,pauseOnHover:r,classNames:i,styles:a,components:o,stack:s,motion:c,placement:l,className:u,style:d,onNoticeClose:f,onAllRemoved:p}=e,{classNames:m}=J.useContext(jm),h=J.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),g=typeof c==`function`?c(l):c,[_,{offset:v,threshold:y}]=Uee(s),[b,x]=J.useState(!1),S=_&&(b||h.length<=y),C=J.useMemo(()=>{if(!(!_||S))return{offset:v,threshold:y}},[S,v,_,y]),[w,T]=J.useState(0),E=J.useRef(null),[D,O,k,A,j]=Hee(t,C,w),M=!!t.length;J.useEffect(()=>{let e=E.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;T(e=>e===r?e:r)},[M]);let N=`${n}-list`;return J.createElement(`div`,{className:Z(n,N,`${n}-${l}`,m==null?void 0:m.list,u,i==null?void 0:i.list,{[`${n}-stack`]:_,[`${n}-stack-expanded`]:S,[`${N}-hovered`]:b}),onMouseEnter:()=>{x(!0)},onMouseLeave:()=>{x(!1)},style:G(G({},a==null?void 0:a.list),d)},J.createElement(Yee,{listPrefixCls:N,height:k,topNoticeHeight:A,topNoticeWidth:j,className:i==null?void 0:i.listContent,style:a==null?void 0:a.listContent,ref:E},J.createElement(rp,Nm({component:!1,keys:h,motionAppear:!0},g,{onAllRemoved:()=>{l&&(p==null||p(l))}}),({config:e,className:t,style:s},c)=>{let{key:l}=e,u=String(l),d=tte(h,l),p=_&&d!==void 0&&d{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,pauseOnHover:o,classNames:s,styles:c,components:l,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:m}=e,[h,g]=J.useState([]),[_,v]=J.useState({}),y=J.useRef(!1);J.useImperativeHandle(t,()=>({open:e=>{g(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i=G({},e);if(r>=0){var o,s;i.times=((o=(s=t[r])==null?void 0:s.times)==null?0:o)+1,n[r]=i}else i.times=0,n.push(i);return a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{g(t=>t.filter(t=>t.key!==e))},destroy:()=>{g([])}})),J.useEffect(()=>{let e={};h.forEach(t=>{var n;let r=(n=t.placement)==null?`topRight`:n;e[r]=e[r]||[],e[r].push(t)}),Object.keys(_).forEach(t=>{e[t]=e[t]||[]}),v(e)},[h]);let b=qr(e=>{v(t=>{let n=G({},t);return(n[e]||[]).length||delete n[e],n})});if(J.useEffect(()=>{Object.keys(_).length>0?y.current=!0:y.current&&(f==null||f(),y.current=!1)},[_,f]),!r)return null;let x=Object.keys(_);return(0,Xa.createPortal)(J.createElement(J.Fragment,null,x.map(e=>{let t=J.createElement(rte,{key:e,configList:_[e],placement:e,prefixCls:n,pauseOnHover:o,classNames:s,styles:c,components:l,className:u==null?void 0:u(e),style:d==null?void 0:d(e),motion:i,stack:p,onNoticeClose:e=>{g(t=>t.filter(t=>t.key!==e))},onAllRemoved:b});return m?J.cloneElement(m(t,{prefixCls:n,key:e}),{key:e}):t})),r)}),ate=()=>document.body,ote=0;function ste(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function cte(e={}){let{getContainer:t=ate,motion:n,prefixCls:r,placement:i,closable:a,duration:o,showProgress:s,pauseOnHover:c,classNames:l,styles:u,components:d,maxCount:f,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}=e,v={placement:i,closable:a,duration:o,showProgress:s},[y,b]=J.useState(),x=J.useRef(null),[S,C]=J.useState([]),w=J.createElement(ite,{container:y,ref:x,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:l,styles:u,components:d,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}),T=qr(e=>{let t=ste(v,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${ote}`,ote+=1),C(e=>[...e,{type:`open`,config:t}])}),E=J.useMemo(()=>({open:T,close:e=>{C(t=>[...t,{type:`close`,key:e}])},destroy:()=>{C(e=>[...e,{type:`destroy`}])}}),[]);return J.useEffect(()=>{b(t())}),J.useEffect(()=>{x.current&&S.length&&(S.forEach(e=>{switch(e.type){case`open`:var t;(t=x.current)==null||t.open(e.config);break;case`close`:var n;(n=x.current)==null||n.close(e.key);break;case`destroy`:var r;(r=x.current)==null||r.destroy();break}}),C(e=>{let t=e.filter(e=>!S.includes(e));return t.length===e.length?e:t}))},[S]),[E,w]}K();var lte=(e,t)=>J.useMemo(()=>{let n=e==null?t:e;return n?G(G({},lp(t)?t:{}),lp(n)?n:{}):!1},[e,t]);K();function ute(e,t){return G(G({},ap(e)&&{"--notification-top":Q(e)}),ap(t)&&{"--notification-bottom":Q(t)})}var dte=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z`}}]},name:`loading`,theme:`outlined`}}))());function Pm(){return Pm=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Pm({},e,{ref:t,icon:dte.default})));function Im(...e){return e.find(e=>e!==void 0)}var Lm=e=>{let{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:a,componentName:o}=e;return(0,J.useMemo)(()=>{var e,o;return((e=t==null?r:t)==null?a:e)?{clearIcon:Im(lp(t)?t==null?void 0:t.clearIcon:n,lp(r)?r==null?void 0:r.clearIcon:i,J.createElement(ef,null)),disabled:(o=lp(t)?t==null?void 0:t.disabled:void 0)==null?lp(r)?r==null?void 0:r.disabled:void 0:o}:!1},[t,n,r,i,a])};K();var fte=[`closeIcon`],Rm=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},pte={},mte=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!ap(e)&&!ap(t))return null;let n={closeIcon:typeof t!=`boolean`&&ap(t)?t:void 0};return lp(e)&&(n=G(G({},n),e)),n},hte=(e,t,n)=>e===!1?!1:e?La(n,t,e):t===!1?!1:t?La(n,t):n.closable?n:!1,gte=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i}=e,a=q(e,fte),o=i,s=Oa(a,!0);return ap(o)&&(r&&(o=r(o)),o=J.isValidElement(o)?J.cloneElement(o,G(G({"aria-label":n},o.props),s)):J.createElement(`span`,G({"aria-label":n},s),o)),[o,s]},_te=(e,t,n=pte,r=`Close`)=>{let i=mte(e==null?void 0:e.closable,e==null?void 0:e.closeIcon),a=mte(t==null?void 0:t.closable,t==null?void 0:t.closeIcon),o=G({closeIcon:J.createElement(rf,null)},n),s=hte(i,a,o),c=typeof s!=`boolean`&&!!(s!=null&&s.disabled);if(s===!1)return[!1,null,c,{}];let[l,u]=gte(s,o,r);return[!0,l,c,u]},vte=(e,t,n=pte)=>{let[r]=Hp(`global`,Wn.global);return J.useMemo(()=>_te(e,t,G({closeIcon:J.createElement(rf,null)},n),r.close),[e,t,n,r.close])},zm=()=>J.useReducer(e=>e+1,0);K();var Bm=(e,t)=>{let n={};return lp(e)&&(n=e),typeof e==`boolean`&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},yte=(e,t,n,r)=>(0,J.useMemo)(()=>{var i,a,o;let s=Bm(e,r),c=Bm(t),l=G(G(G({blur:!1},c),s),{},{closable:(i=(a=(o=s.closable)==null?r:o)==null?c.closable:a)==null||i}),u=l.blur?`${n}-mask-blur`:void 0;return[l.enabled!==!1,{mask:u},!!l.closable]},[e,t,n,r]),Vm=e=>{let[t,n]=(0,J.useState)(null);return[(0,J.useCallback)((r,i,a)=>{let o=t==null?r:t,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d},[t]),n]},bte=e=>e===`horizontal`||e===`vertical`,Hm=(e,t,n)=>(0,J.useMemo)(()=>{let r=bte(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:bte(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),xte=()=>{let[e,t]=J.useState([]);return[e,J.useCallback(e=>(t(t=>[].concat(Co(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},Ste=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),Cte=(e,t)=>(0,J.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):Ste(n,e)}),wte=e=>{let t=J.useRef(e),[,n]=zm();return[()=>t.current,e=>{t.current=e,n()}]},Um=J.createContext(void 0),Wm=100,Gm=Wm*10,Tte={Modal:Wm,Drawer:Wm,Popover:Wm,Popconfirm:Wm,Tooltip:Wm,Tour:Wm,FloatButton:Wm},Ete={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Dte=e=>e in Tte,Km=(e,t)=>{let[,n]=$u(),r=J.useContext(Um),i=Dte(e),a;if(t!==void 0)a=[t,t];else{let o=r==null?0:r;i?o+=(r?0:n.zIndexPopupBase)+Tte[e]:o+=Ete[e],a=[r===void 0?t:o,o]}return a};K();var Ote=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:`scale(var(--notification-scale, 1))`,transition:[`transform`,`inset`,`clip-path`,`opacity`].map(e=>`${e} ${r}`).join(`, `)}},qm=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=md(r,`notification`);return{[y]:G(G(G({position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${Q(v(g).mul(2).equal())})`,padding:h,pointerEvents:`auto`,[b(`icon-font-size`)]:t.iconFontSize,[b(`title-font-size`)]:t.titleFontSize,[b(`title-line-height`)]:t.titleLineHeight,boxSizing:`border-box`,color:l,background:m,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:`break-word`,overflow:`visible`},Ote(e)),t.noticeStyle),{},{"&::after":{position:`absolute`,insetInline:0,top:v(_).mul(-1).equal(),height:_,content:`""`}},t.typeStyle&&{"&-success":{background:x(`color-success-bg`,m)},"&-error":{background:x(`color-error-bg`,m)},"&-info":{background:x(`color-info-bg`,m)},"&-warning":{background:x(`color-warning-bg`,m)}}),[`${y}-wrapper`]:G({display:`flex`},t.contentStyle),[`${y}-title`]:{color:c,fontSize:x(`title-font-size`),lineHeight:x(`title-line-height`)},[`${y}-icon`]:{flex:`none`,fontSize:x(`icon-font-size`),lineHeight:1,[`&${y}-icon-success`]:{color:i},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:o},[`&${y}-icon-error`]:{color:s}}}},Jm=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:a,width:o,notificationIconSize:s,colorText:c,motionDurationMid:l,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:_,colorIcon:v,borderRadiusSM:y,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:S}=e,C=`${t}-notice`;return G(G({},qm(e,{width:o,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:`flex-start`,gap:f},typeStyle:!0})),{},{[`${C}-section`]:{display:`flex`,flexDirection:`column`,flex:`auto`,gap:p,minWidth:0},[`${C}-description`]:{color:c,fontSize:i},[`${C}-closable`]:{[`${C}-title, ${C}-description`]:{paddingInlineEnd:m},[`${C}-title + ${C}-description`]:{paddingInlineEnd:0}},[`${C}-close`]:G({position:`absolute`,top:h,insetInlineEnd:g,display:`flex`,alignItems:`center`,justifyContent:`center`,width:_,height:_,color:v,background:`none`,border:`none`,borderRadius:y,outline:`none`,transition:[`color`,`background-color`].map(e=>`${e} ${l}`).join(`, `),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:S}},od(e)),[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${Q(a)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:`right`,marginTop:f}})},kte=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=Jm(e);return{[`${r}-pure-panel`]:G(G({width:n,maxWidth:`100%`},a),{},{[r]:G(G({},a[r]),{},{position:`relative`,width:`100%`,maxWidth:`100%`}),[i]:G(G({},a[i]),{},{float:`none`,textAlign:`end`})})}},Ate=e=>{let{componentCls:t}=e;return{[t]:Jm(e)}},jte=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`];K();var Mte=`--notification-margin-edge`,Nte=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),Ym=e=>{var t,n;return`translate3d(${(t=e==null?void 0:e.x)==null?`0`:t}, ${(n=e==null?void 0:e.y)==null?`0`:n}, 0) scale(var(--notification-scale, 1))`},Pte=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=Nte(n,r),o=e===`top`||e===`bottom`,s=e===`top`||e.endsWith(`Left`)?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:a,motionOffset:o?{x:`-50%`,y:s}:{x:s},baseMotionOffset:o?{x:`-50%`}:void 0,isCenterPlacement:o}},Fte=e=>e===`bottom`?`column-reverse`:`column`,Ite=e=>{let t=`var(${Mte}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},Lte=e=>e===`bottom`?`center top`:`center bottom`,Xm=e=>Q(e.calc(e.marginXXL).mul(-1).equal()),Rte=e=>{let t=Xm(e);return`inset(${t} ${t} ${t} ${t})`},zte=(e,t)=>{let n=Xm(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Bte=(e,t)=>{let{componentCls:n}=e,{placement:r,vertical:i,blockEnd:a,horizontal:o,inlineEnd:s,isCenterPlacement:c}=t,l=`${n}-notice`,u=`${l}${n}-fade`,d=Ym(t.motionOffset),f=Ym(t.baseMotionOffset),p=Lte(i);return{[`&${n}-${r}`]:G(G({[i]:Ite(i),[a]:`auto`,display:`flex`,flexDirection:Fte(i)},c?{marginInline:0,left:`50%`,right:`auto`,transform:`translateX(-50%)`}:{[o]:0,[s]:`auto`}),{},{[l]:G(G({[i]:`var(--notification-y, 0)`},c?{left:`50%`,transform:f}:{[o]:`var(--notification-x, 0)`}),{},{transformOrigin:p}),[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:`none`},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:f},[`${u}-leave-start`]:{opacity:1,transform:f},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[l]:{clipPath:zte(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:Rte(e)}}})}},Vte=(e,t=jte)=>{let{notificationMotionOffset:n}=e,r=Q(n);return G({},t.reduce((t,n)=>G(G({},t),Bte(e,Pte(n,r))),{}))},Hte=e=>{let{componentCls:t}=e;return{[t]:Vte(e)}};K();var Ute=3,Zm=e=>({zIndexPopup:e.zIndexPopupBase+Gm+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Qm=e=>{let t=e.paddingMD,n=e.paddingLG;return bl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Q(e.paddingMD)} ${Q(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},Wte=e=>`inset(${e} ${e} ${e} ${e})`,Gte=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:`relative`,display:`flex`,flexShrink:0,flexDirection:`column`,gap:e.notificationMarginBottom,width:`100%`,willChange:`height, transform`,transition:`none`,[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:`hidden`,willChange:`transform, opacity`}}},Kte=(e,t)=>{var n;let{componentCls:r,notificationMarginEdge:i}=e,a=`--notification-margin-edge`,o=`${r}-notice`,s=`${r}-list`,c=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(i).mul(2)).equal():`100%`,l=`${o}:nth-last-child(n + ${((n=t.stackVisibleCount)==null?Ute:n)+1})`,u=Wte(Q(e.calc(e.marginXXL).mul(-1).equal()));return{[r]:G(G(G({},td(e)),{},{[a]:Q(i),position:`fixed`,zIndex:e.zIndexPopup,width:c,maxWidth:`100vw`,height:`100vh`,overflow:`hidden`,overscrollBehavior:`contain`,[`${r}-hook-holder`]:{position:`relative`},[`&${s}`]:{maxHeight:`100vh`,padding:`var(${a})`,overflowX:`hidden`,overflowY:`auto`,overscrollBehavior:`contain`,scrollbarWidth:`none`,msOverflowStyle:`none`,pointerEvents:`none`,"&::-webkit-scrollbar":{display:`none`,width:0,height:0}}},Gte(e)),{},{[`&${r}-stack`]:{[o]:{clipPath:u},[`&:not(${r}-stack-expanded)`]:{[o]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${o}:not(${o}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[l]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${o}-actions`]:{float:`left`}}})}};pd([`Notification`,`PurePanel`],e=>kte(Qm(e)),Zm);var $m=(e,t)=>{var n;let r=(n=t.itemStyle)==null?Ate:n;return[Kte(e,t),r(e),Hte(e)]};dd(`Notification`,e=>$m(Qm(e),{listWidthKey:`width`}),Zm),K();var qte=[`&::after`],eh=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return bl(Qm(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},th=e=>({zIndexPopup:e.zIndexPopupBase+Gm+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),nh=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return qm(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},Jte=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,i=nh(e)[n],{"&::after":a}=i,o=G(G({},q(i,qte)),{},{position:`absolute`,zIndex:-1,left:`50%`,height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:`none`,transform:`translateX(-50%) translateY(100%)`,transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(`, `),content:`""`});return{[t]:{[`&${t}-stack`]:{[r]:{isolation:`isolate`,"&::before":G(G({},o),{},{top:`calc(var(--top-notificiation-height) - ${Q(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${Q(e.margin)})`}),"&::after":G(G({},o),{},{zIndex:-2,top:`var(--top-notificiation-height)`,width:`calc(var(--top-notificiation-width) - ${Q(e.calc(e.margin).mul(2).equal())})`})},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:`translateX(-50%) translateY(0)`}}}}}}},Yte=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=nh(e);return{[`${n}-pure-panel`]:G(G({width:`max-content`,maxWidth:`100%`},r),{},{[n]:G(G({},r[n]),{},{position:`relative`,width:`max-content`,maxWidth:`100%`})})}},Xte=pd([`Message`,`PurePanel`],e=>Yte(eh(e)),th),Zte=e=>({[e.componentCls]:nh(e)}),rh=dd(`Message`,e=>{let t=eh(e);return[$m(t,{stackVisibleCount:1,itemStyle:Zte}),Jte(t)]},th);K();var Qte=[`prefixCls`,`className`,`style`,`type`,`icon`,`content`,`classNames`,`styles`],$te={info:J.createElement(uf,null),success:J.createElement(Zd,null),error:J.createElement(ef,null),warning:J.createElement(sf,null),loading:J.createElement(Fm,null)},ih=(e,t)=>t||e&&$te[e]||null,ene=e=>{let{prefixCls:t,className:n,style:r,type:i,icon:a,content:o,classNames:s,styles:c}=e,l=q(e,Qte),{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=ko(`message`),h=t||u(`message`),g=`${h}-notice`,_=Fp(h),[v,y]=rh(h,_),[b,x]=xp([p,s],[m,c],{props:e}),S=ih(i,a),C=i?`${g}-icon-${i}`:void 0,w={wrapper:Z(i&&`${h}-${i}`,b.wrapper),icon:Z(C,b.icon),title:b.title},T={wrapper:x.wrapper,icon:x.icon,title:x.title};return J.createElement(`div`,{className:Z(`${g}-pure-panel`,v,n,y,_,b.root),style:x.root},J.createElement(Xte,{prefixCls:h}),J.createElement(Am,G(G({},l),{},{prefixCls:h,className:d,style:G(G({},f),r),duration:null,icon:S,title:o,classNames:w,styles:T})))};function tne(e,t){return{motionName:t==null?`${e}-fade`:t}}function ah(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t==null||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}K();var nne=[`content`,`icon`,`type`,`key`,`className`,`style`,`onClose`,`classNames`,`styles`],rne=8,ine=3,ane=!1,one=({children:e,prefixCls:t})=>{let n=Fp(t),[r,i]=rh(t,n);return J.createElement(qee,{classNames:{list:Z(r,i,n)}},e)},sne=(e,{prefixCls:t,key:n})=>J.createElement(one,{prefixCls:t,key:n},e),cne=J.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=ine,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:m,direction:h,getPopupContainer:g}=ko(`message`),{message:_}=J.useContext(Eo),v=r||m(`message`),[y,b]=xp([_==null?void 0:_.classNames,c],[_==null?void 0:_.styles,l],{props:e}),[x,S]=cte({prefixCls:v,style:()=>ute(n==null?rne:n),className:()=>Z({[`${v}-rtl`]:s==null?h===`rtl`:s}),motion:()=>tne(v,u),closable:!1,duration:o,getContainer:()=>(i==null?void 0:i())||(g==null?void 0:g())||document.body,maxCount:a,onAllRemoved:p,classNames:y,styles:b,renderNotifications:sne,pauseOnHover:d,stack:lte(f,ane)});return J.useImperativeHandle(t,()=>G(G({},x),{},{prefixCls:v,message:_})),S}),oh=0;function sh(e){let t=J.useRef(null);return eo(`Message`),[J.useMemo(()=>{let n=e=>{var n;(n=t.current)==null||n.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o}=t.current,s=(o==null?void 0:o.className)||{},c=(o==null?void 0:o.style)||{},l=`${a}-notice`,{content:u,icon:d,type:f,key:p,className:m,style:h,onClose:g,classNames:_={},styles:v={}}=r,y=q(r,nne),b=p;ap(b)||(oh+=1,b=`antd-message-${oh}`);let x=G(G({},e),r),S=bp(_,{props:x}),C=bp(v,{props:x}),w=ih(f,d),T=f?`${l}-icon-${f}`:void 0;return ah(e=>(i(G(G({},y),{},{key:b,icon:w,title:u,classNames:G(G({},S),{},{wrapper:Z(f&&`${a}-${f}`,S.wrapper),icon:Z(T,S.icon)}),styles:C,placement:`top`,className:Z({[`${l}-${f}`]:f},m,s),style:G(G({},c),h),onClose:()=>{g==null||g(),e()}})),()=>{n(b)}))},i={open:r,destroy:e=>{if(e!==void 0)n(e);else{var r;(r=t.current)==null||r.destroy()}}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=lp(t)&&`content`in t?t:{content:t};let o,s;up(n)?s=n:(o=n,s=i);let c=G(G({onClose:s,duration:o},a),{},{type:e});return r(c)}}),i},[]),J.createElement(cne,G(G({key:`message-holder`},e),{},{ref:t}))]}function lne(e){return sh(e)}var ch=()=>({height:0,opacity:0}),lh=e=>{var t;return{height:(t=e==null?void 0:e.scrollHeight)==null?0:t,opacity:+!!e}},une=e=>{var t;return{height:(t=e==null?void 0:e.offsetHeight)==null?0:t}},uh=(e,t)=>(t==null?void 0:t.deadline)===!0||pp(t)&&t.propertyName===`height`,dh=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:ch,onEnterStart:ch,onAppearActive:lh,onEnterActive:lh,onLeaveStart:une,onLeaveActive:ch,onAppearEnd:uh,onEnterEnd:uh,onLeaveEnd:uh,motionDeadline:500}),fh=(e,t,n)=>n===void 0?`${e}-${t}`:n,dne=fd(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=md(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),ph=`ant-wave-target`,mh=e=>e?cp(e)&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!==`transparent`&&e!==`canvastext`:!1;function fne(e,t=null){var n;let r=getComputedStyle(e),{borderTopColor:i,borderColor:a,backgroundColor:o}=r;return t&&mh(r[t])?r[t]:(n=[i,a,o].find(mh))==null?null:n}K();function hh(e){return Number.isNaN(e)?0:e}var pne=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=J.useRef(null),{getPrefixCls:o}=J.useContext(Eo),[s]=md(o(),`wave`),[c,l]=J.useState(null),[u,d]=J.useState([]),[f,p]=J.useState(0),[m,h]=J.useState(0),[g,_]=J.useState(0),[v,y]=J.useState(0),[b,x]=J.useState(!1),S={left:f,top:m,width:g,height:v,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(S[s(`color`)]=c);function C(){let e=getComputedStyle(n);l(fne(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:hh(-Number.parseFloat(r))),h(t?n.offsetTop:hh(-Number.parseFloat(a))),_(n.offsetWidth),y(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>hh(Number.parseFloat(e))))}if(J.useEffect(()=>{if(n){let e=Fa(()=>{C(),x(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(C),t.observe(n)),()=>{Fa.cancel(e),t==null||t.disconnect()}}},[n]),!b)return null;let w=(r===`Checkbox`||r===`Radio`)&&(n==null?void 0:n.classList.contains(ph));return J.createElement(ip,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||pp(t)&&t.propertyName===`opacity`){var n;let e=(n=a.current)==null?void 0:n.parentElement;Ja(e).then(()=>{e==null||e.remove()})}return!1}},({className:e},n)=>J.createElement(`div`,{ref:hi(a,n),className:Z(t,e,{"wave-quick":w}),style:S}))},mne=(e,t)=>{var n;let{component:r}=t;if(r===`Checkbox`&&!((n=e.querySelector(`input`))!=null&&n.checked))return;let i=document.createElement(`div`);i.style.position=`absolute`,i.style.left=`0px`,i.style.top=`0px`,e==null||e.insertBefore(i,e==null?void 0:e.firstChild),qa(J.createElement(pne,G(G({},t),{},{target:e})),i)},hne=(e,t,n,r)=>{let{wave:i}=J.useContext(Eo),[,a,o]=$u(),s=qr(s=>{let c=e.current;if(i!=null&&i.disabled||!c)return;let l=c.querySelector(`.${ph}`)||c,{showEffect:u}=i||{};(u||mne)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=J.useRef(null);return J.useEffect(()=>()=>{Fa.cancel(c.current)},[]),e=>{Fa.cancel(c.current),c.current=Fa(()=>{s(e)})}},gh={click:`click`,mousedown:`mousedown`,mouseup:`mouseup`,pointerdown:`pointerdown`,pointerup:`pointerup`},_h=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a,wave:o}=(0,J.useContext)(Eo),s=(0,J.useRef)(null),c=a(`wave`),l=hne(s,Z(c,dne(c)),r,i);return J.useEffect(()=>{let e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!Li(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||l(t)},r=o==null?void 0:o.triggerType,i=r&&r in gh?gh[r]:`click`;return e.addEventListener(i,t,!0),()=>{e.removeEventListener(i,t,!0)}},[n,o==null?void 0:o.triggerType]),J.isValidElement(t)?pm(t,{ref:_i(t)?hi(bi(t),s):s}):t==null?null:t},vh=e=>{let t=J.useContext(vm);return J.useMemo(()=>e?cp(e)?e==null?t:e:up(e)?e(t):t:t,[e,t])},gne=dd([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1});K();var _ne=[`children`],vne=[`size`,`direction`,`orientation`,`block`,`prefixCls`,`className`,`rootClassName`,`children`,`vertical`],yh=J.createContext(null),bh=(e,t)=>{let n=J.useContext(yh),r=J.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return Z(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},yne=e=>{let{children:t}=e;return J.createElement(yh.Provider,{value:null},t)},bne=e=>{let{children:t}=e,n=q(e,_ne);return J.createElement(yh.Provider,{value:J.useMemo(()=>n,[n])},t)},xh=e=>{let{getPrefixCls:t,direction:n}=J.useContext(Eo),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d}=e,f=q(e,vne),[p,m]=Hm(a,d,i),h=vh(e=>r==null?e:r),g=t(`space-compact`,s),[_]=gne(g),v=Z(g,_,{[`${g}-rtl`]:n===`rtl`,[`${g}-block`]:o,[`${g}-vertical`]:m},c,l),y=J.useContext(yh),b=Ia(u),x=J.useMemo(()=>b.map((e,t)=>{let n=(e==null?void 0:e.key)||`${g}-item-${t}`;return J.createElement(bne,{key:n,compactSize:h,compactDirection:p,isFirstItem:t===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:t===b.length-1&&(!y||(y==null?void 0:y.isLastItem))},e)}),[b,y,p,h,g]);return b.length===0?null:J.createElement(`div`,G({className:v},f),x)};K();var xne=[`prefixCls`,`size`,`className`],Sh=J.createContext(void 0),Sne=e=>{let{getPrefixCls:t,direction:n}=J.useContext(Eo),{prefixCls:r,size:i,className:a}=e,o=q(e,xne),s=t(`btn-group`,r),[,,c]=$u(),l=J.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=Z(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return J.createElement(Sh.Provider,{value:i},J.createElement(`div`,G(G({},o),{},{className:u})))};K();var Ch=/^[\u4E00-\u9FA5]{2}$/,wh=Ch.test.bind(Ch);function Th(e){return e===`danger`?{danger:!0}:{type:e}}function Eh(e){return e===`text`||e===`link`}function Cne(e,t,n,r){if(!op(e))return;let i=t?` `:``;return!cp(e)&&!sp(e)&&cp(e.type)&&wh(e.props.children)?pm(e,e=>{let t=Z(e.className,r)||void 0,a=G(G({},n),e.style);return G(G({},e),{},{children:e.children.split(``).join(i),className:t,style:a})}):cp(e)?J.createElement(`span`,{className:r,style:n},wh(e)?e.split(``).join(i):e):dm(e)?J.createElement(`span`,{className:r,style:n},e):pm(e,e=>G(G({},e),{},{className:Z(e.className,r)||void 0,style:G(G({},e.style),n)}))}function wne(e,t,n,r){let i=!1,a=[];return J.Children.forEach(e,e=>{let t=cp(e)||sp(e);if(i&&t){let t=a.length-1,n=a[t];a[t]=`${n}${e}`}else a.push(e);i=t}),J.Children.map(a,e=>Cne(e,t,n,r))}[`default`,`primary`,`danger`].concat(Co(jl));var Dh=(0,J.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=Z(`${a}-icon`,n);return J.createElement(`span`,{ref:t,className:o,style:r},i)});K();var Oh=(0,J.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Z(`${n}-loading-icon`,r);return J.createElement(Dh,{prefixCls:n,className:o,style:i,ref:t},J.createElement(Fm,{className:a}))}),kh=()=>({width:0,opacity:0,transform:`scale(0)`}),Ah=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Tne=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?J.createElement(Oh,{prefixCls:t,className:i,style:a}):J.createElement(ip,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:kh,onAppearActive:Ah,onEnterStart:kh,onEnterActive:Ah,onLeaveStart:Ah,onLeaveActive:kh},({className:e,style:n},r)=>{let o=G(G({},a),n);return J.createElement(Oh,{prefixCls:t,className:Z(i,e),style:o,ref:r})})},jh=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}};K();var Mh=e=>({animationDuration:e,animationFillMode:`both`}),Nh=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[` + ${a}${e}-enter, + ${a}${e}-appear + `]:G(G({},Mh(r)),{},{animationPlayState:`paused`}),[`${a}${e}-leave`]:G(G({},Mh(r)),{},{animationPlayState:`paused`}),[` + ${a}${e}-enter${e}-enter-active, + ${a}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},Ene=new Vc(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),Dne=new Vc(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),Ph=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[Nh(r,Ene,Dne,e.motionDurationMid,t),{[` ${i}${r}-enter, ${i}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},uFe=new Xr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fFe=new Xr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),dFe=new Xr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AFe=new Xr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),hFe=new Xr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pFe=new Xr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gFe=new Xr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mFe=new Xr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vFe={"move-up":{inKeyframes:gFe,outKeyframes:mFe},"move-down":{inKeyframes:uFe,outKeyframes:fFe},"move-left":{inKeyframes:dFe,outKeyframes:AFe},"move-right":{inKeyframes:hFe,outKeyframes:pFe}},Ob=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=vFe[t];return[TM(r,i,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},One=new Vc(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),kne=new Vc(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),Ane=new Vc(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),jne=new Vc(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Mne=new Vc(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Nne=new Vc(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Pne={"move-up":{inKeyframes:new Vc(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new Vc(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:One,outKeyframes:kne},"move-left":{inKeyframes:Ane,outKeyframes:jne},"move-right":{inKeyframes:Mne,outKeyframes:Nne}},Fh=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Pne[t];return[Nh(r,i,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},cE=new Xr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),uE=new Xr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),fE=new Xr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),dE=new Xr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Bre=new Xr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ore=new Xr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),$re=new Xr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),_re=new Xr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),yFe={"slide-up":{inKeyframes:cE,outKeyframes:uE},"slide-down":{inKeyframes:fE,outKeyframes:dE},"slide-left":{inKeyframes:Bre,outKeyframes:Ore},"slide-right":{inKeyframes:$re,outKeyframes:_re}},qu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=yFe[t];return[TM(r,i,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ih=new Vc(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),Lh=new Vc(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Rh=new Vc(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),zh=new Vc(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),Bh=new Vc(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),Vh=new Vc(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Hh=new Vc(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),Uh=new Vc(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),Fne={"slide-up":{inKeyframes:Ih,outKeyframes:Lh},"slide-down":{inKeyframes:Rh,outKeyframes:zh},"slide-left":{inKeyframes:Bh,outKeyframes:Vh},"slide-right":{inKeyframes:Hh,outKeyframes:Uh}},Wh=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Fne[t];return[Nh(r,i,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Xh=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),$8=new Xr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bFe=new Xr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Tre=new Xr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Mre=new Xr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),xFe=new Xr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wFe=new Xr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),CFe=new Xr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),SFe=new Xr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),EFe=new Xr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),BFe=new Xr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),OFe=new Xr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),$Fe=new Xr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_Fe={zoom:{inKeyframes:$8,outKeyframes:bFe},"zoom-big":{inKeyframes:Tre,outKeyframes:Mre},"zoom-big-fast":{inKeyframes:Tre,outKeyframes:Mre},"zoom-left":{inKeyframes:CFe,outKeyframes:SFe},"zoom-right":{inKeyframes:EFe,outKeyframes:BFe},"zoom-up":{inKeyframes:xFe,outKeyframes:wFe},"zoom-down":{inKeyframes:OFe,outKeyframes:$Fe}},AE=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=_Fe[t];return[TM(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Gh=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),Kh=new Vc(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Ine=new Vc(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),qh=new Vc(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Jh=new Vc(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Lne=new Vc(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Rne=new Vc(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),zne=new Vc(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),Bne=new Vc(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),Vne=new Vc(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),Hne=new Vc(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Une=new Vc(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Wne=new Vc(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Gne={zoom:{inKeyframes:Kh,outKeyframes:Ine},"zoom-big":{inKeyframes:qh,outKeyframes:Jh},"zoom-big-fast":{inKeyframes:qh,outKeyframes:Jh},"zoom-left":{inKeyframes:zne,outKeyframes:Bne},"zoom-right":{inKeyframes:Vne,outKeyframes:Hne},"zoom-up":{inKeyframes:Lne,outKeyframes:Rne},"zoom-down":{inKeyframes:Une,outKeyframes:Wne}},Yh=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Gne[t];return[Nh(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ire=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),TFe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ire(`${t}-primary`,i),Ire(`${t}-danger`,o)]}},_8=e=>Math.round(Number(e||0)),MFe=e=>{if(e instanceof Rr)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const t=e,{b:n}=t,r=Ze(t,["b"]);return te(I({},r),{v:n})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};let hE=class extends Rr{constructor(t){super(MFe(t))}toHsbString(){const t=this.toHsb(),n=_8(t.s*100),r=_8(t.b*100),i=_8(t.h),o=t.a,a=`hsb(${i}, ${n}%, ${r}%)`,s=`hsba(${i}, ${n}%, ${r}%, ${o.toFixed(o===0?0:2)})`;return o===1?a:s}toHsb(){const r=this.toHsv(),{v:t}=r,n=Ze(r,["v"]);return te(I({},n),{b:t,a:this.a})}};(e=>e instanceof hE?e:new hE(e))("#1677ff");const IFe=(e,t)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6))||"",RFe=(e,t)=>e?IFe(e,t):"";let MM=(function(){function e(t){var r;if(Lt(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)==null?void 0:r.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:i,percent:o})=>({color:new e(i),percent:o})),this.metaColor=new hE(this.colors[0].color.metaColor)):this.metaColor=new hE(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Ft(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return RFe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();var IM={},Rre;function NFe(){if(Rre)return IM;Rre=1,Object.defineProperty(IM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};return IM.default=e,IM}var PFe=NFe();const LFe=_t(PFe);function T8(){return T8=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,T8({},e,{ref:t,icon:LFe})),od=g.forwardRef(FFe);function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:n,forceRender:r,className:i,style:o,children:a,isActive:s,role:l,classNames:c,styles:u}=e,[f,d]=Be.useState(s||r);return Be.useEffect(()=>{(r||s)&&d(!0)},[r,s]),f?Be.createElement("div",{ref:t,className:Ae(`${n}-panel`,{[`${n}-panel-active`]:s,[`${n}-panel-inactive`]:!s},i),style:o,role:l},Be.createElement("div",{className:Ae(`${n}-body`,c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null}),Nre=Be.forwardRef((e,t)=>{const P=e,{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:o,forceRender:a,className:s,classNames:l={},styles:c={},prefixCls:u,collapsible:f,accordion:d,panelKey:A,extra:h,header:p,expandIcon:v,openMotion:y,destroyOnHidden:b,children:x}=P,C=Ze(P,["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyOnHidden","children"]),S=f==="disabled",B=h!=null&&typeof h!="boolean",E={onClick:()=>{o==null||o(A)},onKeyDown:k=>{(k.key==="Enter"||k.keyCode===dn.ENTER||k.which===dn.ENTER)&&(o==null||o(A))},role:d?"tab":"button","aria-expanded":i,"aria-disabled":S,tabIndex:S?-1:0},_=typeof v=="function"?v(e):Be.createElement("i",{className:"arrow"}),M=_&&Be.createElement("div",Qs({className:Ae(`${u}-expand-icon`,l==null?void 0:l.icon),style:c==null?void 0:c.icon},["header","icon"].includes(f)?E:{}),_),R=Ae(`${u}-item`,{[`${u}-item-active`]:i,[`${u}-item-disabled`]:S},s),T=Ae(r,`${u}-header`,{[`${u}-collapsible-${f}`]:!!f},l==null?void 0:l.header),L=I({className:T,style:c==null?void 0:c.header},["header","icon"].includes(f)?{}:E);return Be.createElement("div",Qs({},C,{ref:t,className:R}),Be.createElement("div",L,n&&M,Be.createElement("span",Qs({className:Ae(`${u}-title`,l==null?void 0:l.title),style:c==null?void 0:c.title},f==="header"?E:{}),p),B&&Be.createElement("div",{className:`${u}-extra`},h)),Be.createElement(sl,Qs({visible:i,leavedClassName:`${u}-panel-hidden`},y,{forceRender:a,removeOnLeave:b}),({className:k,style:H},D)=>Be.createElement(kFe,{ref:D,prefixCls:u,className:k,classNames:l,style:H,styles:c,isActive:i,forceRender:a,role:d?"tabpanel":void 0},x)))});function Pre(e,t,n){if(!e||!t)return e||t;const r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),i={};return r.forEach(o=>{i[o]=n(e[o],t[o])}),i}function DFe(e,t){return Pre(e,t,(n,r)=>Ae(n,r))}function HFe(e,t){return Pre(e,t,(n,r)=>I(I({},n),r))}const UFe=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:o,onItemClick:a,activeKey:s,openMotion:l,expandIcon:c,classNames:u,styles:f}=t;return e.map((d,A)=>{const L=d,{children:h,label:p,key:v,collapsible:y,onItemClick:b,destroyOnHidden:x,classNames:C,styles:S}=L,B=Ze(L,["children","label","key","collapsible","onItemClick","destroyOnHidden","classNames","styles"]),E=String(v!=null?v:A),_=y!=null?y:i,M=x!=null?x:o,R=P=>{_!=="disabled"&&(a(P),b==null||b(P))};let T=!1;return r?T=s[0]===E:T=s.indexOf(E)>-1,Be.createElement(Nre,Qs({},B,{classNames:DFe(u,C),styles:HFe(f,S),prefixCls:n,key:E,panelKey:E,isActive:T,accordion:r,openMotion:l,expandIcon:c,header:p,collapsible:_,onItemClick:R,destroyOnHidden:M}),h)})},jFe=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:i,collapsible:o,destroyOnHidden:a,onItemClick:s,activeKey:l,openMotion:c,expandIcon:u,classNames:f,styles:d}=n,A=e.key||String(t),{header:h,headerClass:p,destroyOnHidden:v,collapsible:y,onItemClick:b}=e.props;let x=!1;i?x=l[0]===A:x=l.indexOf(A)>-1;const C=y!=null?y:o,S=E=>{C!=="disabled"&&(s(E),b==null||b(E))},B={key:A,panelKey:A,header:h,headerClass:p,classNames:f,styles:d,isActive:x,prefixCls:r,destroyOnHidden:v!=null?v:a,openMotion:c,accordion:i,children:e.props.children,onItemClick:S,expandIcon:u,collapsible:C};return typeof e.type=="string"?e:(Object.keys(B).forEach(E=>{typeof B[E]=="undefined"&&delete B[E]}),Be.cloneElement(e,B))};function zFe(e,t,n){return Array.isArray(e)?UFe(e,n):pa(t).map((r,i)=>jFe(r,i,n))}function Lre(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const M8=Object.assign(Be.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:i,accordion:o,className:a,children:s,collapsible:l,openMotion:c,expandIcon:u,activeKey:f,defaultActiveKey:d,onChange:A,items:h,classNames:p,styles:v}=e,y=Ae(n,a),[b,x]=Fr(d,f),C=Lre(b),S=yn(_=>{const M=Lre(_);x(M),A==null||A(M)}),B=_=>{S(o?C[0]===_?[]:[_]:C.includes(_)?C.filter(M=>M!==_):[...C,_])};ao(!s,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const E=zFe(h,s,{prefixCls:n,accordion:o,openMotion:c,expandIcon:u,collapsible:l,destroyOnHidden:r,onItemClick:B,activeKey:C,classNames:p,styles:v});return Be.createElement("div",Qs({ref:t,className:y,style:i,role:o?"tablist":void 0},Co(e,{aria:!0,data:!0})),E)}),{Panel:Nre}),{Panel:WUt}=M8,QFe=g.forwardRef((e,t)=>{const{getPrefixCls:n}=g.useContext(Un),{prefixCls:r,className:i,showArrow:o=!0}=e,a=n("collapse",r),s=Ae({[`${a}-no-arrow`]:!o},i);return g.createElement(M8.Panel,te(I({ref:t},e),{prefixCls:a,className:s}))}),VFe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,headerPaddingSM:a,headerPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:d,colorTextHeading:A,colorTextDisabled:h,fontSizeLG:p,lineHeight:v,lineHeightLG:y,marginSM:b,paddingSM:x,paddingLG:C,paddingXS:S,motionDurationSlow:B,fontSizeIcon:E,contentPadding:_,contentPaddingSM:M,contentPaddingLG:R,fontHeight:T,fontHeightLG:L}=e,P=`${be(c)} ${u} ${f}`;return{[t]:te(I({},zr(e)),{backgroundColor:i,border:P,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[` + `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Kne=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Xh(`${t}-primary`,i),Xh(`${t}-danger`,a)]}};K();var qne=[`b`],Jne=[`v`],Zh=e=>Math.round(Number(e||0)),Yne=e=>{if(e instanceof Hl)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t}=e;return G(G({},q(e,qne)),{},{v:t})}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},Qh=class extends Hl{constructor(e){super(Yne(e))}toHsbString(){let e=this.toHsb(),t=Zh(e.s*100),n=Zh(e.b*100),r=Zh(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let e=this.toHsv(),{v:t}=e;return G(G({},q(e,Jne)),{},{b:t,a:this.a})}};(e=>e instanceof Qh?e:new Qh(e))(`#1677ff`);var Xne=(e,t)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6))||``,Zne=(e,t)=>e?Xne(e,t):``,$h=function(){function e(t){if($c(this,e),this.cleared=!1,t instanceof e){var n;this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)==null?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Qh(this.colors[0].color.metaColor)):this.metaColor=new Qh(r?``:t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return tl(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Zne(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Qne=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z`}}]},name:`right`,theme:`outlined`}}))());function eg(){return eg=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,eg({},e,{ref:t,icon:Qne.default})));function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,forceRender:r,className:i,style:a,children:o,isActive:s,role:c,classNames:l,styles:u}=e,[d,f]=J.useState(s||r);return J.useEffect(()=>{(r||s)&&f(!0)},[r,s]),d?J.createElement(`div`,{ref:t,className:Z(`${n}-panel`,{[`${n}-panel-active`]:s,[`${n}-panel-inactive`]:!s},i),style:a,role:c},J.createElement(`div`,{className:Z(`${n}-body`,l==null?void 0:l.body),style:u==null?void 0:u.body},o)):null});K();var ere=[`showArrow`,`headerClass`,`isActive`,`onItemClick`,`forceRender`,`className`,`classNames`,`styles`,`prefixCls`,`collapsible`,`accordion`,`panelKey`,`extra`,`header`,`expandIcon`,`openMotion`,`destroyOnHidden`,`children`],rg=J.forwardRef((e,t)=>{let{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:a,forceRender:o,className:s,classNames:c={},styles:l={},prefixCls:u,collapsible:d,accordion:f,panelKey:p,extra:m,header:h,expandIcon:g,openMotion:_,destroyOnHidden:v,children:y}=e,b=q(e,ere),x=d===`disabled`,S=m!=null&&typeof m!=`boolean`,C={onClick:()=>{a==null||a(p)},onKeyDown:e=>{(e.key===`Enter`||e.keyCode===aa.ENTER||e.which===aa.ENTER)&&(a==null||a(p))},role:f?`tab`:`button`,"aria-expanded":i,"aria-disabled":x,tabIndex:x?-1:0},w=typeof g==`function`?g(e):J.createElement(`i`,{className:`arrow`}),T=w&&J.createElement(`div`,ng({className:Z(`${u}-expand-icon`,c==null?void 0:c.icon),style:l==null?void 0:l.icon},[`header`,`icon`].includes(d)?C:{}),w),E=Z(`${u}-item`,{[`${u}-item-active`]:i,[`${u}-item-disabled`]:x},s),D=G({className:Z(r,`${u}-header`,{[`${u}-collapsible-${d}`]:!!d},c==null?void 0:c.header),style:l==null?void 0:l.header},[`header`,`icon`].includes(d)?{}:C);return J.createElement(`div`,ng({},b,{ref:t,className:E}),J.createElement(`div`,D,n&&T,J.createElement(`span`,ng({className:Z(`${u}-title`,c==null?void 0:c.title),style:l==null?void 0:l.title},d===`header`?C:{}),h),S&&J.createElement(`div`,{className:`${u}-extra`},m)),J.createElement(ip,ng({visible:i,leavedClassName:`${u}-panel-hidden`},_,{forceRender:o,removeOnLeave:v}),({className:e,style:t},n)=>J.createElement($ne,{ref:n,prefixCls:u,className:e,classNames:c,style:t,styles:l,isActive:i,forceRender:o,role:f?`tabpanel`:void 0},y)))});K();var tre=[`children`,`label`,`key`,`collapsible`,`onItemClick`,`destroyOnHidden`,`classNames`,`styles`];function ig(e,t,n){if(!e||!t)return e||t;let r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),i={};return r.forEach(r=>{i[r]=n(e[r],t[r])}),i}function nre(e,t){return ig(e,t,(e,t)=>Z(e,t))}function rre(e,t){return ig(e,t,(e,t)=>G(G({},e),t))}var ire=(e,t)=>{let{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:a,onItemClick:o,activeKey:s,openMotion:c,expandIcon:l,classNames:u,styles:d}=t;return e.map((e,t)=>{let{children:f,label:p,key:m,collapsible:h,onItemClick:g,destroyOnHidden:_,classNames:v,styles:y}=e,b=q(e,tre),x=String(m==null?t:m),S=h==null?i:h,C=_==null?a:_,w=e=>{S!==`disabled`&&(o(e),g==null||g(e))},T=!1;return T=r?s[0]===x:s.indexOf(x)>-1,J.createElement(rg,ng({},b,{classNames:nre(u,v),styles:rre(d,y),prefixCls:n,key:x,panelKey:x,isActive:T,accordion:r,openMotion:c,expandIcon:l,header:p,collapsible:S,onItemClick:w,destroyOnHidden:C}),f)})},are=(e,t,n)=>{if(!e)return null;let{prefixCls:r,accordion:i,collapsible:a,destroyOnHidden:o,onItemClick:s,activeKey:c,openMotion:l,expandIcon:u,classNames:d,styles:f}=n,p=e.key||String(t),{header:m,headerClass:h,destroyOnHidden:g,collapsible:_,onItemClick:v}=e.props,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;let b=_==null?a:_,x={key:p,panelKey:p,header:m,headerClass:h,classNames:d,styles:f,isActive:y,prefixCls:r,destroyOnHidden:g==null?o:g,openMotion:l,accordion:i,children:e.props.children,onItemClick:e=>{b!==`disabled`&&(s(e),v==null||v(e))},expandIcon:u,collapsible:b};return typeof e.type==`string`?e:(Object.keys(x).forEach(e=>{x[e]===void 0&&delete x[e]}),J.cloneElement(e,x))};function ore(e,t,n){return Array.isArray(e)?ire(e,n):Ia(t).map((e,t)=>are(e,t,n))}function ag(e){let t=e;if(!Array.isArray(t)){let e=typeof t;t=e===`number`||e===`string`?[t]:[]}return t.map(e=>String(e))}var og=Object.assign(J.forwardRef((e,t)=>{let{prefixCls:n=`rc-collapse`,destroyOnHidden:r=!1,style:i,accordion:a,className:o,children:s,collapsible:c,openMotion:l,expandIcon:u,activeKey:d,defaultActiveKey:f,onChange:p,items:m,classNames:h,styles:g}=e,_=Z(n,o),[v,y]=$r(f,d),b=ag(v),x=qr(e=>{let t=ag(e);y(t),p==null||p(t)}),S=e=>{x(a?b[0]===e?[]:[e]:b.includes(e)?b.filter(t=>t!==e):[...b,e])};_a(!s,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");let C=ore(m,s,{prefixCls:n,accordion:a,openMotion:l,expandIcon:u,collapsible:c,destroyOnHidden:r,onItemClick:S,activeKey:b,classNames:h,styles:g});return J.createElement(`div`,ng({ref:t,className:_,style:i,role:a?`tablist`:void 0},Oa(e,{aria:!0,data:!0})),C)}),{Panel:rg}),sg=og,{Panel:sre}=og;K();var cre=J.forwardRef((e,t)=>{let{getPrefixCls:n}=J.useContext(Eo),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n(`collapse`,r),s=Z({[`${o}-no-arrow`]:!a},i);return J.createElement(sg.Panel,G(G({ref:t},e),{},{prefixCls:o,className:s}))});K();var lre=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,headerPaddingSM:o,headerPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:h,lineHeight:g,lineHeightLG:_,marginSM:v,paddingSM:y,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:w,contentPaddingSM:T,contentPaddingLG:E,fontHeight:D,fontHeightLG:O}=e,k=`${Q(l)} ${u} ${d}`;return{[t]:G(G({},td(e)),{},{backgroundColor:i,border:k,borderRadius:c,"&-rtl":{direction:`rtl`},[`& > ${t}-item`]:{borderBottom:k,"&:first-child":{[` &, - & > ${t}-header`]:{borderRadius:`${be(l)} ${be(l)} 0 0`}},"&:last-child":{[` + & > ${t}-header`]:{borderRadius:`${Q(c)} ${Q(c)} 0 0`}},"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${be(l)} ${be(l)}`}},[`> ${t}-header`]:te(I({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:A,lineHeight:v,cursor:"pointer",transition:`all ${B}, visibility 0s`},lc(e)),{[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",marginInlineEnd:b},[`${t}-arrow`]:te(I({},Fg()),{fontSize:E,transition:`transform ${B}`,svg:{transition:`transform ${B}`}}),[`${t}-title`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:d,backgroundColor:n,borderTop:P,[`& > ${t}-body`]:{padding:_},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(S).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:M}}},"&-large":{[`> ${t}-item`]:{fontSize:p,lineHeight:y,[`> ${t}-header`]:{padding:s,[`> ${t}-expand-icon`]:{height:L,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:R}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${be(l)} ${be(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:h,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:b}}}}})}},KFe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},WFe=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`> ${t}-header`]:G(G({position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:a,color:p,lineHeight:g,cursor:`pointer`,transition:`all ${S}, visibility 0s`},od(e)),{},{[`> ${t}-title`]:{flex:`auto`},[`${t}-expand-icon`]:{height:D,display:`flex`,alignItems:`center`,marginInlineEnd:v},[`${t}-arrow`]:G(G({},nd()),{},{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-title`]:{marginInlineEnd:`auto`}}),[`${t}-collapsible-header`]:{cursor:`default`,[`${t}-title`]:{flex:`none`,cursor:`pointer`},[`${t}-expand-icon`]:{cursor:`pointer`}},[`${t}-collapsible-icon`]:{cursor:`unset`,[`${t}-expand-icon`]:{cursor:`pointer`}}},[`${t}-panel`]:{color:f,backgroundColor:n,borderTop:k,[`& > ${t}-body`]:{padding:w},"&-hidden":{display:`none`}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:T}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:_,[`> ${t}-header`]:{padding:s,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(b).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:m,cursor:`not-allowed`}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:v}}}}})}},ure=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},dre=e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},GFe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},qFe=Br("Collapse",e=>{const t=dr(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[VFe(t),WFe(t),GFe(t),KFe(t),lE(t)]},e=>({headerPadding:`${be(e.paddingSM)} ${be(e.padding)}`,headerPaddingSM:`${be(e.paddingXS)} ${be(e.paddingSM)} ${be(e.paddingXS)} ${be(e.paddingXS)}`,headerPaddingLG:`${be(e.padding)} ${be(e.paddingLG)} ${be(e.padding)} ${be(e.padding)}`,headerBg:e.colorFillAlter,contentPadding:`${be(e.padding)} ${be(16)}`,contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBgContainer,borderlessContentPadding:`${be(e.paddingXXS)} ${be(16)} ${be(e.padding)}`,borderlessContentBg:"transparent"})),YFe=Object.assign(g.forwardRef((e,t)=>{var Z;const{getPrefixCls:n,direction:r,expandIcon:i,className:o,style:a,classNames:s,styles:l}=or("collapse"),{prefixCls:c,className:u,rootClassName:f,style:d,bordered:A=!0,ghost:h,size:p,expandIconPlacement:v,expandIconPosition:y,children:b,destroyInactivePanel:x,destroyOnHidden:C,expandIcon:S,classNames:B,styles:E}=e,_=aa(W=>{var J;return(J=p!=null?p:W)!=null?J:"middle"}),M=n("collapse",c),R=n(),[T,L]=qFe(M),P=(Z=v!=null?v:y)!=null?Z:"start",k=te(I({},e),{size:_,bordered:A,expandIconPlacement:P}),H=Ar(a),D=Ar(d),[U,j]=vr([s,B],[l,H,E,D],{props:k}),Q=S!=null?S:i,K=g.useCallback((W={})=>{const J=Rn(Q)?Q(W):g.createElement(od,{rotate:W.isActive?r==="rtl"?-90:90:void 0,"aria-label":W.isActive?"expanded":"collapsed"});return Ga(J,ee=>({className:Ae(ee.className,`${M}-arrow`)}))},[Q,M,r]),z=Ae(`${M}-icon-placement-${P}`,{[`${M}-borderless`]:!A,[`${M}-rtl`]:r==="rtl",[`${M}-ghost`]:!!h,[`${M}-large`]:_==="large",[`${M}-small`]:_==="small"},o,u,f,T,L,U.root),V=g.useMemo(()=>te(I({},Bb(R)),{motionAppear:!1,leavedClassName:`${M}-panel-hidden`}),[R,M]),Y=g.useMemo(()=>b?pa(b).map(W=>W):null,[b]);return g.createElement(M8,te(I({ref:t,openMotion:V},ti(e,["rootClassName"])),{expandIcon:K,prefixCls:M,className:z,style:j.root,classNames:U,styles:j,destroyOnHidden:C!=null?C:x}),Y)}),{Panel:QFe}),XFe=e=>e instanceof MM?e:new MM(e),Fre=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new hE(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},kre=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return dr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Dre=e=>{var f,d,A,h,p,v;const t=(f=e.contentFontSize)!=null?f:e.fontSize,n=(d=e.contentFontSizeSM)!=null?d:e.fontSize,r=(A=e.contentFontSizeLG)!=null?A:e.fontSizeLG,i=(h=e.contentLineHeight)!=null?h:JT(t),o=(p=e.contentLineHeightSM)!=null?p:JT(n),a=(v=e.contentLineHeightLG)!=null?v:JT(r),s=Fre(new MM(e.colorBgSolid),"#fff")?"#000":"#fff",l=uA.reduce((y,b)=>te(I({},y),{[`${b}ShadowColor`]:`0 ${be(e.controlOutlineWidth)} 0 ${JS(e[`${b}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return te(I({},l),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:o,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*o)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u})},ZFe=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[i,o]=go(n,"btn");return{[t]:[{[i("border-width")]:r,[i("border-color")]:"#000",[i("border-color-hover")]:o("border-color"),[i("border-color-active")]:o("border-color"),[i("border-color-disabled")]:o("border-color"),[i("border-style")]:"solid",[i("text-color")]:"#000",[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color"),[i("text-color-disabled")]:o("text-color"),[i("bg-color")]:"#ddd",[i("bg-color-hover")]:o("bg-color"),[i("bg-color-active")]:o("bg-color"),[i("bg-color-disabled")]:e.colorBgContainerDisabled,[i("bg-color-container")]:e.colorBgContainer,[i("shadow")]:"none"},{border:[o("border-width"),o("border-style"),o("border-color")].join(" "),color:o("text-color"),backgroundColor:o("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[o("border-width"),o("border-style"),o("border-color-hover")].join(" "),color:o("text-color-hover"),backgroundColor:o("bg-color-hover")},"&:active":{border:[o("border-width"),o("border-style"),o("border-color-active")].join(" "),color:o("text-color-active"),backgroundColor:o("bg-color-active")}}},{[`&${t}-variant-solid`]:{[i("solid-bg-color")]:o("color-base"),[i("solid-bg-color-hover")]:o("color-hover"),[i("solid-bg-color-active")]:o("color-active"),[i("border-color")]:"transparent",[i("text-color")]:e.colorTextLightSolid,[i("bg-color")]:o("solid-bg-color"),[i("bg-color-hover")]:o("solid-bg-color-hover"),[i("bg-color-active")]:o("solid-bg-color-active"),boxShadow:o("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("border-color")]:o("color-base"),[i("border-color-hover")]:o("color-hover"),[i("border-color-active")]:o("color-active"),[i("bg-color")]:o("bg-color-container"),[i("text-color")]:o("color-base"),[i("text-color-hover")]:o("color-hover"),[i("text-color-active")]:o("color-active"),boxShadow:o("shadow")},[`&${t}-variant-dashed`]:{[i("border-style")]:"dashed",[i("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i("border-color")]:"transparent",[i("text-color")]:o("color-base"),[i("bg-color")]:o("color-light"),[i("bg-color-hover")]:o("color-light-hover"),[i("bg-color-active")]:o("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[i("border-color")]:"transparent",[i("text-color")]:o("color-base"),[i("text-color-hover")]:o("color-hover"),[i("text-color-active")]:o("color-active"),[i("bg-color")]:"transparent",[i("bg-color-hover")]:"transparent",[i("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[i("bg-color-hover")]:o("color-light"),[i("bg-color-active")]:o("color-light-active")}},{[`&${t}-variant-link`]:{[i("color-base")]:e.colorLink,[i("color-hover")]:e.colorLinkHover,[i("color-active")]:e.colorLinkActive,[i("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[i("color-base")]:e.colorPrimary,[i("color-hover")]:e.colorPrimaryHover,[i("color-active")]:e.colorPrimaryActive,[i("color-light")]:e.colorPrimaryBg,[i("color-light-hover")]:e.colorPrimaryBgHover,[i("color-light-active")]:e.colorPrimaryBorder,[i("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.primaryColor,[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")}},[`&${t}-color-dangerous`]:{[i("color-base")]:e.colorError,[i("color-hover")]:e.colorErrorHover,[i("color-active")]:e.colorErrorActive,[i("color-light")]:e.colorErrorBg,[i("color-light-hover")]:e.colorErrorBgFilledHover,[i("color-light-active")]:e.colorErrorBgActive,[i("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.dangerColor,[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")}},[`&${t}-color-default`]:{[i("solid-bg-color")]:e.colorBgSolid,[i("solid-bg-color-hover")]:e.colorBgSolidHover,[i("solid-bg-color-active")]:e.colorBgSolidActive,[i("color-base")]:e.defaultBorderColor,[i("color-hover")]:e.defaultHoverBorderColor,[i("color-active")]:e.defaultActiveBorderColor,[i("color-light")]:e.colorFillTertiary,[i("color-light-hover")]:e.colorFillSecondary,[i("color-light-active")]:e.colorFill,[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i("text-color")]:e.solidTextColor,[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[i("text-color-hover")]:o("text-color"),[i("text-color-active")]:o("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("bg-color-container")]:e.defaultBg,[i("bg-color-hover")]:e.defaultHoverBg,[i("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i("text-color")]:e.textTextColor,[i("text-color-hover")]:e.textTextHoverColor,[i("text-color-active")]:e.textTextActiveColor,[i("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultGhostColor,[i("border-color")]:e.defaultGhostBorderColor}}}},uA.map(a=>{const s=e[`${a}6`],l=e[`${a}1`],c=e[`${a}Hover`],u=e[`${a}2`],f=e[`${a}3`],d=e[`${a}Active`],A=e[`${a}ShadowColor`];return{[`&${t}-color-${a}`]:{[i("color-base")]:s,[i("color-hover")]:c,[i("color-active")]:d,[i("color-light")]:l,[i("color-light-hover")]:u,[i("color-light-active")]:f,[i("shadow")]:A}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:o("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[i("bg-color")]:e.ghostBg,[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg,[i("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg}}}]}},JFe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:te(I({outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation"},Xh()),{"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Fg(),"> a":{color:"currentColor"},"&:not(:disabled)":lc(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}})}},e5e=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),I8=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${be(l)} ${be(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:e5e(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},t5e=e=>{const t=dr(e,{fontSize:e.contentFontSize});return I8(t,e.componentCls)},n5e=e=>{const t=dr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return I8(t,`${e.componentCls}-sm`)},r5e=e=>{const t=dr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return I8(t,`${e.componentCls}-lg`)},i5e=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},o5e=Br("Button",e=>{const t=kre(e);return[JFe(t),t5e(t),n5e(t),r5e(t),i5e(t),ZFe(t),TFe(t)]},Dre,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function a5e(e,t,n,r){const{focusElCls:i,focus:o,borderElCls:a}=n,s=a?"> *":"",l=s?` ${s}`:"",c=d=>d.filter(Boolean).map(A=>`&:${A}${l}`).join(","),u=c(["hover",i?`hover${i}`:null]),f=c([o?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":te(I({[f]:{zIndex:3},[u]:{zIndex:4}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function s5e(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function $b(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,o=`${i}-compact`;return{[o]:I(I({},a5e(e,o,t,i)),s5e(i,o,t))}}function l5e(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function c5e(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function u5e(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:I(I({},l5e(e,t,e.componentCls)),c5e(e.componentCls,t))}}const f5e=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:o}=e,a=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[l,c]=go(t,"btn"),u=f=>({[`${n}-compact${f?"-vertical":""}-item`]:{[l("compact-connect-border-color")]:c("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},f?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:"none"}}}});return[u(),u(!0),{[`${a}${n}-color-default`]:{[l("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${o})`}}]},d5e=kg(["Button","compact"],e=>{const t=kre(e);return[$b(t),u5e(t),f5e(t)]},Dre);function A5e(e){if(Zn(e)){let t=e==null?void 0:e.delay;return t=mo(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const h5e={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},qn=Be.forwardRef((e,t)=>{var it,Pt;const qe=e,{_skipSemantic:n,loading:r=!1,prefixCls:i,color:o,variant:a,type:s,danger:l=!1,shape:c,size:u,disabled:f,className:d,rootClassName:A,children:h,icon:p,iconPosition:v,iconPlacement:y,ghost:b=!1,block:x=!1,htmlType:C="button",classNames:S,styles:B,style:E,autoInsertSpace:_,autoFocus:M}=qe,R=Ze(qe,["_skipSemantic","loading","prefixCls","color","variant","type","danger","shape","size","disabled","className","rootClassName","children","icon","iconPosition","iconPlacement","ghost","block","htmlType","classNames","styles","style","autoInsertSpace","autoFocus"]),T=pa(h),L=s||"default",{getPrefixCls:P,direction:k,autoInsertSpace:H,className:D,style:U,classNames:j,styles:Q,loadingIcon:K,shape:z,color:V,variant:Y}=or("button"),Z=c||z||"default",[W,J]=g.useMemo(()=>{if(o&&a)return[o,a];if(s||l){const De=h5e[L]||[];return l?["danger",De[1]]:De}return a==="solid"?["primary",a]:V&&Y?[V,Y]:Y==="solid"?["primary",Y]:["default","outlined"]},[o,a,s,l,V,Y,L]),[ee,ne]=g.useMemo(()=>b&&J==="solid"?[W,"outlined"]:[W,J],[W,J,b]),re=ee==="danger",ue=re?"dangerous":ee,de=(it=_!=null?_:H)!=null?it:!0,se=P("btn",i),[ce,ge]=o5e(se),ie=g.useContext(qa),le=f!=null?f:ie,ve=g.useContext(xre),we=g.useMemo(()=>A5e(r),[r]),[me,Ee]=g.useState(we.loading),[Ce,pe]=g.useState(!1),Oe=g.useRef(null),xe=ed(t,Oe),Me=T.length===1&&!p&&!S8(ne),Se=g.useRef(!0);Be.useEffect(()=>(Se.current=!1,()=>{Se.current=!0}),[]),ar(()=>{let De=null;we.delay>0?De=setTimeout(()=>{De=null,Ee(!0)},we.delay):Ee(we.loading);function ze(){De&&(clearTimeout(De),De=null)}return ze},[we.delay,we.loading]),g.useEffect(()=>{if(!Oe.current||!de)return;const De=Oe.current.textContent||"";Me&&w8(De)?Ce||pe(!0):Ce&&pe(!1)}),g.useEffect(()=>{M&&Oe.current&&Oe.current.focus()},[]);const Pe=Be.useCallback(De=>{var ze;if(me||le){De.preventDefault();return}(ze=e.onClick)==null||ze.call(e,("href"in e,De))},[e.onClick,me,le]),{compactSize:Le,compactItemClassnames:He}=hA(se,k),Ne=aa(De=>{var ze,bt;return(bt=(ze=u!=null?u:Le)!=null?ze:ve)!=null?bt:De}),at=me?"loading":p,Ue=(Pt=y!=null?y:v)!=null?Pt:"start",et=ti(R,["navigate"]),We=te(I({},e),{type:L,color:ee,variant:ne,danger:re,shape:Z,size:Ne,disabled:le,loading:me,iconPlacement:Ue}),Je=Ar(U),dt=Ar(E),[wt,Bt]=vr([n?void 0:j,S],[n?void 0:Q,Je,B,dt],{props:We}),qt=Ae(se,ce,ge,{[`${se}-${Z}`]:Z!=="default"&&Z!=="square"&&Z,[`${se}-${L}`]:L,[`${se}-dangerous`]:l,[`${se}-color-${ue}`]:ue,[`${se}-variant-${ne}`]:ne,[`${se}-lg`]:Ne==="large",[`${se}-sm`]:Ne==="small",[`${se}-icon-only`]:!h&&h!==0&&!!at,[`${se}-background-ghost`]:b&&!S8(ne),[`${se}-loading`]:me,[`${se}-two-chinese-chars`]:Ce&&de&&!me,[`${se}-block`]:x,[`${se}-rtl`]:k==="rtl",[`${se}-icon-end`]:Ue==="end"},He,d,A,D,wt.root),jt={className:wt.icon,style:Bt.icon},nn=De=>Be.createElement(Cre,I({prefixCls:se},jt),De),Jt=Be.createElement(sFe,I({existIcon:!!p,prefixCls:se,loading:me,mount:Se.current},jt)),Ot=Zn(r)&&r.icon||K;let sn;p&&!me?sn=nn(p):r&&Ot?sn=nn(Ot):sn=Jt;const Vt=qi(h)?aFe(h,Me&&de,Bt.content,wt.content):null;if(et.href!==void 0)return Be.createElement("a",te(I({},et),{className:Ae(qt,{[`${se}-disabled`]:le}),href:le?void 0:et.href,style:Bt.root,onClick:Pe,ref:xe,tabIndex:le?-1:0,"aria-disabled":le}),sn,Vt);let xt=Be.createElement("button",te(I({},R),{type:C,className:qt,style:Bt.root,onClick:Pe,disabled:le,ref:xe}),sn,Vt,He&&Be.createElement(d5e,{prefixCls:se}));return S8(ne)||(xt=Be.createElement(sE,{component:"Button",disabled:me},xt)),xt});qn.Group=iFe,qn.__ANT_BUTTON=!0;const R8=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=g.useRef(!1),d=g.useRef(null),[A,h]=w6(!1),p=(...b)=>{o==null||o(...b)};g.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var x;(x=d.current)==null||x.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[a]);const v=b=>{XD(b)&&(h(!0),b.then((...x)=>{h(!1,!0),p.apply(void 0,x),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(x)}))},y=b=>{if(f.current)return;if(f.current=!0,!u){p();return}let x;if(s){if(x=u(b),c&&!XD(x)){f.current=!1,p(b);return}}else if(u.length)x=u(o),f.current=!1;else if(x=u(),!XD(x)){p();return}v(x)};return g.createElement(qn,te(I(te(I({},C8(t)),{onClick:y,loading:A,prefixCls:r}),i),{ref:d}),n)},pE=Be.createContext({}),{Provider:Hre}=pE,Ure=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:s,onConfirm:l,onClose:c}=g.useContext(pE);return i?Be.createElement(R8,{isSilent:r,actionFn:s,close:(...u)=>{a==null||a(...u),l==null||l(!1),c==null||c()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},jre=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:s,onOk:l,onClose:c}=g.useContext(pE);return Be.createElement(R8,{isSilent:n,type:a||"primary",actionFn:l,close:(...u)=>{t==null||t(...u),s==null||s(!0),c==null||c()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)},zre=g.createContext({});function Qre(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function Vre(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function p5e(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=Vre(i),n.top+=Vre(i,!0),n}const g5e=g.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function RM(){return RM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:n,className:r,style:i,title:o,ariaId:a,footer:s,closable:l,closeIcon:c,onClose:u,children:f,bodyStyle:d,bodyProps:A,modalRender:h,onMouseDown:p,onMouseUp:v,holderRef:y,visible:b,forceRender:x,width:C,height:S,classNames:B,styles:E,isFixedPos:_,focusTrap:M}=e,{panel:R}=Be.useContext(zre),T=g.useRef(null),L=ed(y,R,T),[P]=xee(b&&_&&M!==!1,()=>T.current);Be.useImperativeHandle(t,()=>({focus:()=>{var V;(V=T.current)==null||V.focus({preventScroll:!0})}}));const k={};C!==void 0&&(k.width=C),S!==void 0&&(k.height=S);const H=s?Be.createElement("div",{className:Ae(`${n}-footer`,B==null?void 0:B.footer),style:I({},E==null?void 0:E.footer)},s):null,D=o?Be.createElement("div",{className:Ae(`${n}-header`,B==null?void 0:B.header),style:I({},E==null?void 0:E.header)},Be.createElement("div",{className:Ae(`${n}-title`,B==null?void 0:B.title),id:a,style:I({},E==null?void 0:E.title)},o)):null,U=g.useMemo(()=>typeof l=="object"&&l!==null?l:l?{closeIcon:c!=null?c:Be.createElement("span",{className:`${n}-close-x`})}:{},[l,c,n]),j=Co(U,!0),Q=typeof l=="object"&&l.disabled,K=l?Be.createElement("button",RM({type:"button",onClick:u,"aria-label":"Close"},j,{className:Ae(`${n}-close`,B==null?void 0:B.close),disabled:Q,style:E==null?void 0:E.close}),U.closeIcon):null,z=Be.createElement("div",{className:Ae(`${n}-container`,B==null?void 0:B.container),style:E==null?void 0:E.container},K,D,Be.createElement("div",RM({className:Ae(`${n}-body`,B==null?void 0:B.body),style:I(I({},d),E==null?void 0:E.body)},A),f),H);return Be.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:L,style:I(I({},i),k),className:Ae(n,r),onMouseDown:p,onMouseUp:v,tabIndex:-1,onFocus:V=>{P(V.target)}},Be.createElement(g5e,{shouldUpdate:b||x},h?h(z):z))});function N8(){return N8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:n,title:r,style:i,className:o,visible:a,forceRender:s,destroyOnHidden:l,motionName:c,ariaId:u,onVisibleChanged:f,mousePosition:d}=e,A=g.useRef(null),h=g.useRef(null);g.useImperativeHandle(t,()=>te(I({},h.current),{inMotion:A.current.inMotion,enableMotion:A.current.enableMotion}));const[p,v]=g.useState(),y={};p&&(y.transformOrigin=p);function b(){var C;if(!((C=A.current)!=null&&C.nativeElement))return;const x=p5e(A.current.nativeElement);v(d&&(d.x||d.y)?`${d.x-x.left}px ${d.y-x.top}px`:"")}return g.createElement(sl,{visible:a,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:A},({className:x,style:C},S)=>g.createElement(Kre,N8({},e,{ref:h,title:r,ariaId:u,prefixCls:n,holderRef:S,style:I(I(I({},C),i),y),className:Ae(o,x)})))});function P8(){return P8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:t,style:n,visible:r,maskProps:i,motionName:o,className:a}=e;return g.createElement(sl,{key:"mask",visible:r,motionName:o,leavedClassName:`${t}-mask-hidden`},({className:s,style:l},c)=>g.createElement("div",P8({ref:c,style:I(I({},l),n),className:Ae(`${t}-mask`,s,a)},i)))};function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:o,wrapClassName:a,wrapProps:s,onClose:l,afterOpenChange:c,afterClose:u,transitionName:f,animation:d,closable:A=!0,mask:h=!0,maskTransitionName:p,maskAnimation:v,maskClosable:y=!0,maskStyle:b,maskProps:x,rootClassName:C,rootStyle:S,classNames:B,styles:E}=e,_=g.useRef(null),M=g.useRef(null),R=g.useRef(null),[T,L]=g.useState(r),[P,k]=g.useState(!1),H=lA();function D(){O6(M.current,document.activeElement)||(_.current=document.activeElement)}function U(){var W;O6(M.current,document.activeElement)||(W=R.current)==null||W.focus()}function j(){if(L(!1),h&&_.current&&i){try{_.current.focus({preventScroll:!0})}catch(W){}_.current=null}T&&(u==null||u())}function Q(W){W?U():j(),c==null||c(W)}function K(W){l==null||l(W)}const z=g.useRef(!1);let V=null;y&&(V=W=>{M.current===W.target&&z.current&&K(W)});function Y(W){z.current=W.target===M.current}g.useEffect(()=>{if(r){if(z.current=!1,L(!0),D(),M.current){const W=getComputedStyle(M.current);k(W.position==="fixed")}}else T&&R.current.enableMotion()&&!R.current.inMotion()&&j()},[r]);const Z=te(I(I({zIndex:n},o),E==null?void 0:E.wrapper),{display:T?null:"none"});return g.createElement("div",gE({className:Ae(`${t}-root`,C),style:S},Co(e,{data:!0})),g.createElement(v5e,{prefixCls:t,visible:h&&r,motionName:Qre(t,p,v),style:I(I({zIndex:n},b),E==null?void 0:E.mask),maskProps:x,className:B==null?void 0:B.mask}),g.createElement("div",gE({className:Ae(`${t}-wrap`,a,B==null?void 0:B.wrapper),ref:M,onClick:V,onMouseDown:Y,style:Z},s),g.createElement(m5e,gE({},e,{isFixedPos:P,ref:R,closable:A,ariaId:H,prefixCls:t,visible:r&&T,onClose:K,onVisibleChanged:Q,motionName:Qre(t,f,d)}))))};function L8(){return L8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:o,closable:a,panelRef:s,keyboard:l=!0,scrollLock:c=!0,onClose:u}=e,y=e,{scrollLock:f}=y,d=Ze(y,["scrollLock"]),[A,h]=g.useState(t),p=g.useMemo(()=>({panel:s}),[s]),v=({top:b,event:x})=>{if(b&&l){x.stopPropagation(),u==null||u(x);return}};return g.useEffect(()=>{t&&h(!0)},[t]),!r&&i&&!A?null:g.createElement(zre.Provider,{value:p},g.createElement(tE,{open:t||r||A,onEsc:v,autoDestroy:!1,getContainer:n,autoLock:c&&(t||A)},g.createElement(y5e,L8({},d,{destroyOnHidden:i,afterClose:()=>{const b=a&&typeof a=="object"?a:{},{afterClose:x}=b||{};x==null||x(),o==null||o(),h(!1)}}))))},yv="RC_FORM_INTERNAL_HOOKS",vo=()=>{ao(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bv=g.createContext({getFieldValue:vo,getFieldsValue:vo,getFieldError:vo,getFieldWarning:vo,getFieldsError:vo,isFieldsTouched:vo,isFieldTouched:vo,isFieldValidating:vo,isFieldsValidating:vo,resetFields:vo,setFields:vo,setFieldValue:vo,setFieldsValue:vo,validateFields:vo,submit:vo,getInternalHooks:()=>(vo(),{dispatch:vo,initEntityValue:vo,registerField:vo,useSubscribe:vo,setInitialValues:vo,destroyForm:vo,setCallbacks:vo,registerWatch:vo,getFields:vo,setValidateMessages:vo,setPreserve:vo,getInitialValue:vo})}),mE=g.createContext(null);function F8(e){return e==null?[]:Array.isArray(e)?e:[e]}function x5e(e){return e&&!!e._init}function k8(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const D8=k8(),w5e=/%[sdj%]/g;let C5e=()=>{};typeof process!="undefined"&&process.env;function H8(e){if(!e||!e.length)return null;const t={};return e.forEach(n=>{const r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Au(e,...t){let n=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(w5e,o=>{if(o==="%%")return"%";if(n>=r)return o;switch(o){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(a){return"[Circular]"}break;default:return o}}):e}function S5e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Os(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||S5e(t)&&typeof e=="string"&&!e)}function E5e(e,t,n){const r=[];let i=0;const o=e.length;function a(s){r.push(...s||[]),i++,i===o&&n(r)}e.forEach(s=>{t(s,a)})}function Wre(e,t,n){let r=0;const i=e.length;function o(a){if(a&&a.length){n(a);return}const s=r;r=r+1,s{t.push(...e[n]||[])}),t}class Gre extends Error{constructor(n,r){super("Async Validation Error");ke(this,"errors");ke(this,"fields");this.errors=n,this.fields=r}}function O5e(e,t,n,r,i){if(t.first){const f=new Promise((d,A)=>{const h=v=>(r(v),v.length?A(new Gre(v,H8(v))):d(i)),p=B5e(e);Wre(p,n,h)});return f.catch(d=>d),f}const o=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),s=a.length;let l=0;const c=[],u=new Promise((f,d)=>{const A=h=>{if(c.push.apply(c,h),l++,l===s)return r(c),c.length?d(new Gre(c,H8(c))):f(i)};a.length||(r(c),f(i)),a.forEach(h=>{const p=e[h];o.indexOf(h)!==-1?Wre(p,n,A):E5e(p,n,A)})});return u.catch(f=>f),u}function $5e(e){return!!(e&&e.message!==void 0)}function _5e(e,t){let n=e;for(let r=0;r{let r;return e.fullFields?r=_5e(t,e.fullFields):r=t[n.field||e.fullField],$5e(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Yre(e,t){if(t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=I(I({},e[n]),r):e[n]=r}}return e}const _b="enum",T5e=(e,t,n,r,i)=>{e[_b]=Array.isArray(e[_b])?e[_b]:[],e[_b].indexOf(t)===-1&&r.push(Au(i.messages[_b],e.fullField,e[_b].join(", ")))},M5e=(e,t,n,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Au(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(Au(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},I5e=(e,t,n,r,i)=>{const o=typeof e.len=="number",a=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let c=t,u=null;const f=typeof t=="number",d=typeof t=="string",A=Array.isArray(t);if(f?u="number":d?u="string":A&&(u="array"),!u)return!1;A&&(c=t.length),d&&(c=t.replace(l,"_").length),o?c!==e.len&&r.push(Au(i.messages[u].len,e.fullField,e.len)):a&&!s&&ce.max?r.push(Au(i.messages[u].max,e.fullField,e.max)):a&&s&&(ce.max)&&r.push(Au(i.messages[u].range,e.fullField,e.min,e.max))},Xre=(e,t,n,r,i,o)=>{e.required&&(!n.hasOwnProperty(e.field)||Os(t,o||e.type))&&r.push(Au(i.messages.required,e.fullField))};let NM;const R5e=(()=>{if(NM)return NM;const e="[a-fA-F\\d:]",t=S=>S&&S.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,s=new RegExp(`(?:^${n}$)|(?:^${a}$)`),l=new RegExp(`^${n}$`),c=new RegExp(`^${a}$`),u=S=>S&&S.exact?s:new RegExp(`(?:${t(S)}${n}${t(S)})|(?:${t(S)}${a}${t(S)})`,"g");u.v4=S=>S&&S.exact?l:new RegExp(`${t(S)}${n}${t(S)}`,"g"),u.v6=S=>S&&S.exact?c:new RegExp(`${t(S)}${a}${t(S)}`,"g");const f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",A=u.v4().source,h=u.v6().source,C=`(?:${f}|www\\.)${d}(?:localhost|${A}|${h}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return NM=new RegExp(`(?:^${C}$)`,"i"),NM}),U8={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},vE={integer(e){return vE.number(e)&&parseInt(e,10)===e},float(e){return vE.number(e)&&!vE.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!vE.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(U8.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(U8.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(R5e())},hex(e){return typeof e=="string"&&!!e.match(U8.hex)}},pi={required:Xre,whitespace:(e,t,n,r,i)=>{(/^\s+$/.test(t)||t==="")&&r.push(Au(i.messages.whitespace,e.fullField))},type:(e,t,n,r,i)=>{if(e.required&&t===void 0){Xre(e,t,n,r,i);return}const o=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?vE[a](t)||r.push(Au(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(Au(i.messages.types[a],e.fullField,e.type))},range:I5e,enum:T5e,pattern:M5e},N5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i)}n(o)},P5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();pi.required(e,t,r,o,i,"array"),t!=null&&(pi.type(e,t,r,o,i),pi.range(e,t,r,o,i))}n(o)},L5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),t!==void 0&&pi.type(e,t,r,o,i)}n(o)},F5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t,"date")&&!e.required)return n();if(pi.required(e,t,r,o,i),!Os(t,"date")){let s;t instanceof Date?s=t:s=new Date(t),pi.type(e,s,r,o,i),s&&pi.range(e,s.getTime(),r,o,i)}}n(o)},k5e="enum",D5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),t!==void 0&&pi[k5e](e,t,r,o,i)}n(o)},H5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),t!==void 0&&(pi.type(e,t,r,o,i),pi.range(e,t,r,o,i))}n(o)},U5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),t!==void 0&&(pi.type(e,t,r,o,i),pi.range(e,t,r,o,i))}n(o)},j5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),t!==void 0&&pi.type(e,t,r,o,i)}n(o)},z5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===""&&(t=void 0),Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),t!==void 0&&(pi.type(e,t,r,o,i),pi.range(e,t,r,o,i))}n(o)},Q5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),t!==void 0&&pi.type(e,t,r,o,i)}n(o)},V5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t,"string")&&!e.required)return n();pi.required(e,t,r,o,i),Os(t,"string")||pi.pattern(e,t,r,o,i)}n(o)},K5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();pi.required(e,t,r,o,i),Os(t)||pi.type(e,t,r,o,i)}n(o)},W5e=(e,t,n,r,i)=>{const o=[],a=Array.isArray(t)?"array":typeof t;pi.required(e,t,r,o,i,a),n(o)},G5e=(e,t,n,r,i)=>{const o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t,"string")&&!e.required)return n();pi.required(e,t,r,o,i,"string"),Os(t,"string")||(pi.type(e,t,r,o,i),pi.range(e,t,r,o,i),pi.pattern(e,t,r,o,i),e.whitespace===!0&&pi.whitespace(e,t,r,o,i))}n(o)},PM=(e,t,n,r,i)=>{const o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t,o)&&!e.required)return n();pi.required(e,t,r,a,i,o),Os(t,o)||pi.type(e,t,r,a,i)}n(a)},yE={string:G5e,method:j5e,number:z5e,boolean:L5e,regexp:K5e,integer:U5e,float:H5e,array:P5e,object:Q5e,enum:D5e,pattern:V5e,date:F5e,url:PM,hex:PM,email:PM,tel:PM,required:W5e,any:N5e},d0=class d0{constructor(t){ke(this,"rules",null);ke(this,"_messages",D8);this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(n=>{const r=t[n];this.rules[n]=Array.isArray(r)?r:[r]})}messages(t){return t&&(this._messages=Yre(k8(),t)),this._messages}validate(t,n={},r=()=>{}){let i=t,o=n,a=r;if(typeof o=="function"&&(a=o,o={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(null,i),Promise.resolve(i);function s(f){let d=[],A={};function h(p){Array.isArray(p)?d=d.concat(...p):d.push(p)}for(let p=0;p{const d=this.rules[f];let A=i[f];d.forEach(h=>{let p=h;typeof p.transform=="function"&&(i===t&&(i=I({},i)),A=i[f]=p.transform(A),A!=null&&(p.type=p.type||(Array.isArray(A)?"array":typeof A))),typeof p=="function"?p={validator:p}:p=I({},p),p.validator=this.getValidationMethod(p),p.validator&&(p.field=f,p.fullField=p.fullField||f,p.type=this.getType(p),l[f]=l[f]||[],l[f].push({rule:p,value:A,source:i,field:f}))})});const u={};return O5e(l,o,(f,d)=>{var b;const A=f.rule;let h=(A.type==="object"||A.type==="array")&&(typeof A.fields=="object"||typeof A.defaultField=="object");h=h&&(A.required||!A.required&&f.value),A.field=f.field;function p(x,C){return te(I({},C),{fullField:`${A.fullField}.${x}`,fullFields:A.fullFields?[...A.fullFields,x]:[x]})}function v(x=[]){let C=Array.isArray(x)?x:[x];!o.suppressWarning&&C.length&&d0.warning("async-validator:",C),C.length&&A.message!==void 0&&A.message!==null&&(C=[].concat(A.message));let S=C.map(qre(A,i));if(o.first&&S.length)return u[A.field]=1,d(S);if(!h)d(S);else{if(A.required&&!f.value)return A.message!==void 0?S=[].concat(A.message).map(qre(A,i)):o.error&&(S=[o.error(A,Au(o.messages.required,A.field))]),d(S);let B={};A.defaultField&&Object.keys(f.value).map(M=>{B[M]=A.defaultField}),B=I(I({},B),f.rule.fields);const E={};Object.keys(B).forEach(M=>{const R=B[M],T=Array.isArray(R)?R:[R];E[M]=T.map(p.bind(null,M))});const _=new d0(E);_.messages(o.messages),f.rule.options&&(f.rule.options.messages=o.messages,f.rule.options.error=o.error),_.validate(f.value,f.rule.options||o,M=>{const R=[];S&&S.length&&R.push(...S),M&&M.length&&R.push(...M),d(R.length?R:null)})}}let y;if(A.asyncValidator)y=A.asyncValidator(A,f.value,v,f.source,o);else if(A.validator){try{y=A.validator(A,f.value,v,f.source,o)}catch(x){(b=console.error)==null||b.call(console,x),o.suppressValidatorError||setTimeout(()=>{throw x},0),v(x.message)}y===!0?v():y===!1?v(typeof A.message=="function"?A.message(A.fullField||A.field):A.message||`${A.fullField||A.field} fails`):y instanceof Array?v(y):y instanceof Error&&v(y.message)}y&&y.then&&y.then(()=>v(),x=>v(x))},f=>{s(f)},i)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!yE.hasOwnProperty(t.type))throw new Error(Au("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?yE.required:yE[this.getType(t)]||void 0}};ke(d0,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");yE[n]=r}),ke(d0,"warning",C5e),ke(d0,"messages",D8),ke(d0,"validators",yE);let j8=d0;const Dc="'${name}' is not a valid ${type}",Zre={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Dc,method:Dc,array:Dc,object:Dc,number:Dc,date:Dc,boolean:Dc,integer:Dc,float:Dc,regexp:Dc,email:Dc,tel:Dc,url:Dc,hex:Dc},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Jre=j8;function q5e(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const eie="CODE_LOGIC_ERROR";function z8(e,t,n,r,i){return Er(this,null,function*(){const o=I({},n);if(delete o.ruleIndex,Jre.warning=()=>{},o.validator){const d=o.validator;o.validator=(...A)=>{try{return d(...A)}catch(h){return console.error(h),Promise.reject(eie)}}}let a=null;o&&o.type==="array"&&o.defaultField&&(a=o.defaultField,delete o.defaultField);const s=new Jre({[e]:[o]}),l=Mg(Zre,r.validateMessages);s.messages(l);let c=[];try{yield Promise.resolve(s.validate({[e]:t},I({},r)))}catch(d){d.errors&&(c=d.errors.map(({message:A},h)=>{const p=A===eie?l.default:A;return g.isValidElement(p)?g.cloneElement(p,{key:`error_${h}`}):p}))}if(!c.length&&a&&Array.isArray(t)&&t.length>0)return(yield Promise.all(t.map((A,h)=>z8(`${e}.${h}`,A,a,r,i)))).reduce((A,h)=>[...A,...h],[]);const u=I(te(I({},n),{name:e,enum:(n.enum||[]).join(", ")}),i);return c.map(d=>typeof d=="string"?q5e(d,u):d)})}function Y5e(e,t,n,r,i,o){const a=e.join("."),s=n.map((c,u)=>{const f=c.validator,d=te(I({},c),{ruleIndex:u});return f&&(d.validator=(A,h,p)=>{let v=!1;const b=f(A,h,(...x)=>{Promise.resolve().then(()=>{ao(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||p(...x)})});v=b&&typeof b.then=="function"&&typeof b.catch=="function",ao(v,"`callback` is deprecated. Please return a promise instead."),v&&b.then(()=>{p()}).catch(x=>{p(x||" ")})}),d}).sort(({warningOnly:c,ruleIndex:u},{warningOnly:f,ruleIndex:d})=>!!c==!!f?u-d:c?1:-1);let l;if(i===!0)l=new Promise((c,u)=>Er(null,null,function*(){for(let f=0;fz8(a,t,u,r,o).then(f=>({errors:f,rule:u})));l=(i?Z5e(c):X5e(c)).then(u=>Promise.reject(u))}return l.catch(c=>c),l}function X5e(e){return Er(this,null,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function Z5e(e){return Er(this,null,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),t+=1,t===e.length&&n([])})})})})}function Ra(e){return F8(e)}function tie(e,t){let n={};return t.forEach(r=>{const i=ol(e,r);n=Fc(n,r,i)}),n}function Tb(e,t,n=!1){return e&&e.some(r=>LM(t,r,n))}function LM(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,i)=>e[i]===r)}function J5e(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(o=>{const a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function eke(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function nie(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const i=e[t],o=t-n;return o>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:o<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}const rie=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class tke{constructor(t){ke(this,"namePathList",[]);ke(this,"taskId",0);ke(this,"watcherList",new Set);ke(this,"form");this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!LM(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;rie(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),i=n.getFieldsValue(!0);this.watcherList.forEach(o=>{o(r,i,this.namePathList)}),this.namePathList=[]}})}}function nke(){return Er(this,null,function*(){return new Promise(e=>{rie(()=>{Kn(()=>{e()})})})})}function Q8(){return Q8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{preserve:n,isListField:r,name:i}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,n,Ra(i)),this.cancelRegisterFunc=null});ke(this,"getNamePath",()=>{const{name:n,fieldContext:r}=this.props,{prefixName:i=[]}=r;return n!==void 0?[...i,...n]:[]});ke(this,"getRules",()=>{const{rules:n=[],fieldContext:r}=this.props;return n.map(i=>typeof i=="function"?i(r):i)});ke(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:n})=>({resetCount:n+1}))});ke(this,"metaCache",null);ke(this,"triggerMetaEvent",n=>{const{onMetaChange:r}=this.props;if(r){const i=te(I({},this.getMeta()),{destroy:n});uu(this.metaCache,i)||r(i),this.metaCache=i}else this.metaCache=null});ke(this,"onStoreChange",(n,r,i)=>{const{shouldUpdate:o,dependencies:a=[],onReset:s}=this.props,{store:l}=i,c=this.getNamePath(),u=this.getValue(n),f=this.getValue(l),d=r&&Tb(r,c);switch(i.type==="valueUpdate"&&i.source==="external"&&!uu(u,f)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=xv,this.warnings=bE,this.triggerMetaEvent()),i.type){case"reset":if(!r||d){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=xv,this.warnings=bE,this.triggerMetaEvent(),s==null||s(),this.refresh();return}break;case"remove":{if(o&&V8(o,n,l,u,f,i)){this.reRender();return}break}case"setField":{const{data:A}=i;if(d){"touched"in A&&(this.touched=A.touched),"validating"in A&&!("originRCField"in A)&&(this.validatePromise=A.validating?Promise.resolve([]):null),"errors"in A&&(this.errors=A.errors||xv),"warnings"in A&&(this.warnings=A.warnings||bE),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in A&&Tb(r,c,!0)){this.reRender();return}if(o&&!c.length&&V8(o,n,l,u,f,i)){this.reRender();return}break}case"dependenciesUpdate":{if(a.map(Ra).some(h=>Tb(i.relatedFields,h))){this.reRender();return}break}default:if(d||(!a.length||c.length||o)&&V8(o,n,l,u,f,i)){this.reRender();return}break}o===!0&&this.reRender()});ke(this,"validateRules",n=>{const r=this.getNamePath(),i=this.getValue(),{triggerName:o,validateOnly:a=!1,delayFrame:s}=n||{},l=Promise.resolve().then(()=>Er(this,null,function*(){if(!this.mounted)return[];const{validateFirst:c=!1,messageVariables:u,validateDebounce:f}=this.props;s&&(yield nke());let d=this.getRules();if(o&&(d=d.filter(h=>h).filter(h=>{const{validateTrigger:p}=h;return p?F8(p).includes(o):!0})),f&&o&&(yield new Promise(h=>{setTimeout(h,f)}),this.validatePromise!==l))return[];const A=Y5e(r,i,d,n,c,u);return A.catch(h=>h).then((h=xv)=>{var p;if(this.validatePromise===l){this.validatePromise=null;const v=[],y=[];(p=h.forEach)==null||p.call(h,({rule:{warningOnly:b},errors:x=xv})=>{b?y.push(...x):v.push(...x)}),this.errors=v,this.warnings=y,this.triggerMetaEvent(),this.reRender()}}),A}));return a||(this.validatePromise=l,this.dirty=!0,this.errors=xv,this.warnings=bE,this.triggerMetaEvent(),this.reRender()),l});ke(this,"isFieldValidating",()=>!!this.validatePromise);ke(this,"isFieldTouched",()=>this.touched);ke(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:n}=this.props,{getInitialValue:r}=n.getInternalHooks(yv);return r(this.getNamePath())!==void 0});ke(this,"getErrors",()=>this.errors);ke(this,"getWarnings",()=>this.warnings);ke(this,"isListField",()=>this.props.isListField);ke(this,"isList",()=>this.props.isList);ke(this,"isPreserve",()=>this.props.preserve);ke(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));ke(this,"getOnlyChild",n=>{if(typeof n=="function"){const i=this.getMeta();return te(I({},this.getOnlyChild(n(this.getControlled(),i,this.props.fieldContext))),{isFunction:!0})}const r=pa(n);return r.length!==1||!g.isValidElement(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}});ke(this,"getValue",n=>{const{getFieldsValue:r}=this.props.fieldContext,i=this.getNamePath();return ol(n||r(!0),i)});ke(this,"getControlled",(n={})=>{const{name:r,trigger:i="onChange",validateTrigger:o,getValueFromEvent:a,normalize:s,valuePropName:l="value",getValueProps:c,fieldContext:u}=this.props,f=o!==void 0?o:u.validateTrigger,d=this.getNamePath(),{getInternalHooks:A,getFieldsValue:h}=u,{dispatch:p}=A(yv),v=this.getValue(),y=c||(B=>({[l]:B})),b=n[i],x=r!==void 0?y(v):{},C=I(I({},n),x);return C[i]=(...B)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let E;a?E=a(...B):E=eke(l,...B),s&&(E=s(E,v,h(!0))),E!==v&&p({type:"updateValue",namePath:d,value:E}),b&&b(...B)},F8(f||[]).forEach(B=>{const E=C[B];C[B]=(..._)=>{E&&E(..._);const{rules:M}=this.props;M&&M.length&&p({type:"validateField",namePath:d,triggerName:B})}}),C});if(n.fieldContext){const{getInternalHooks:r}=n.fieldContext,{initEntityValue:i}=r(yv);i(this)}}componentDidMount(){const{shouldUpdate:n,fieldContext:r}=this.props;if(this.mounted=!0,r){const{getInternalHooks:i}=r,{registerField:o}=i(yv);this.cancelRegisterFunc=o(this)}n===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:n}=this.state,{children:r}=this.props,{child:i,isFunction:o}=this.getOnlyChild(r);let a;return o?a=i:g.isValidElement(i)?a=g.cloneElement(i,this.getControlled(i.props)):(ao(!i,"`children` of Field is not validate ReactElement."),a=i),g.createElement(g.Fragment,{key:n},a)}},ke(GX,"contextType",bv),GX);function K8(n){var r=n,{name:e}=r,t=Ze(r,["name"]);var c;const i=g.useContext(bv),o=g.useContext(mE),a=e!==void 0?Ra(e):void 0,s=(c=t.isListField)!=null?c:!!o;let l="keep";return s||(l=`_${(a||[]).join("_")}`),g.createElement(rke,Q8({key:l,name:a,isListField:s},t,{fieldContext:i}))}function iie({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:o}){const a=g.useContext(bv),s=g.useContext(mE),c=g.useRef({keys:[],id:0}).current,u=g.useMemo(()=>[...Ra(a.prefixName)||[],...Ra(e)],[a.prefixName,e]),f=g.useMemo(()=>te(I({},a),{prefixName:u}),[a,u]),d=g.useMemo(()=>({getKey:h=>{const p=u.length,v=h[p];return[c.keys[v],h.slice(p+1)]}}),[c,u]);if(typeof n!="function")return ao(!1,"Form.List only accepts function as children."),null;const A=(h,p,{source:v})=>v==="internal"?!1:h!==p;return g.createElement(mE.Provider,{value:d},g.createElement(bv.Provider,{value:f},g.createElement(K8,{name:[],shouldUpdate:A,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:o!=null?o:!!s},({value:h=[],onChange:p},v)=>{const{getFieldValue:y}=a,b=()=>y(u||[])||[],x={add:(S,B)=>{const E=b();B>=0&&B<=E.length?(c.keys=[...c.keys.slice(0,B),c.id,...c.keys.slice(B)],p([...E.slice(0,B),S,...E.slice(B)])):(c.keys=[...c.keys,c.id],p([...E,S])),c.id+=1},remove:S=>{const B=b(),E=new Set(Array.isArray(S)?S:[S]);E.size<=0||(c.keys=c.keys.filter((_,M)=>!E.has(M)),p(B.filter((_,M)=>!E.has(M))))},move(S,B){if(S===B)return;const E=b();S<0||S>=E.length||B<0||B>=E.length||(c.keys=nie(c.keys,S,B),p(nie(E,S,B)))}};let C=h||[];return Array.isArray(C)||(C=[]),n(C.map((S,B)=>{let E=c.keys[B];return E===void 0&&(c.keys[B]=c.id,E=c.keys[B],c.id+=1),{name:B,key:E,isListField:!0}}),x,v)})))}function ike(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((i,o)=>{e.forEach((a,s)=>{a.catch(l=>(t=!0,l)).then(l=>{n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}const W8="__@field_split__";function FM(e){return e.map(t=>`${typeof t}:${t}`).join(W8)}class Mb{constructor(){ke(this,"kvs",new Map)}set(t,n){this.kvs.set(FM(t),n)}get(t){return this.kvs.get(FM(t))}getAsPrefix(t){const n=FM(t),r=n+W8,i=[],o=this.kvs.get(n);return o!==void 0&&i.push(o),this.kvs.forEach((a,s)=>{s.startsWith(r)&&i.push(a)}),i}update(t,n){const r=this.get(t),i=n(r);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(FM(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const i=n.split(W8);return t({key:i.map(o=>{const[,a,s]=o.match(/^([^:]*):(.*)$/);return a==="number"?Number(s):s}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}class oke{constructor(t){ke(this,"formHooked",!1);ke(this,"forceRootUpdate");ke(this,"subscribable",!0);ke(this,"store",{});ke(this,"fieldEntities",[]);ke(this,"initialValues",{});ke(this,"callbacks",{});ke(this,"validateMessages",null);ke(this,"preserve",null);ke(this,"lastValidatePromise",null);ke(this,"watcherCenter",new tke(this));ke(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));ke(this,"getInternalHooks",t=>t===yv?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ao(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));ke(this,"useSubscribe",t=>{this.subscribable=t});ke(this,"prevWithoutPreserves",null);ke(this,"setInitialValues",(t,n)=>{var r;if(this.initialValues=t||{},n){let i=Mg(t,this.store);(r=this.prevWithoutPreserves)==null||r.map(({key:o})=>{i=Fc(i,o,ol(t,o))}),this.prevWithoutPreserves=null,this.updateStore(i)}});ke(this,"destroyForm",t=>{if(t)this.updateStore({});else{const n=new Mb;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}});ke(this,"getInitialValue",t=>{const n=ol(this.initialValues,t);return t.length?Mg(n):n});ke(this,"setCallbacks",t=>{this.callbacks=t});ke(this,"setValidateMessages",t=>{this.validateMessages=t});ke(this,"setPreserve",t=>{this.preserve=t});ke(this,"registerWatch",t=>this.watcherCenter.register(t));ke(this,"notifyWatch",(t=[])=>{this.watcherCenter.notify(t)});ke(this,"timeoutId",null);ke(this,"warningUnhooked",()=>{});ke(this,"updateStore",t=>{this.store=t});ke(this,"getFieldEntities",(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities);ke(this,"getFieldsMap",(t=!1)=>{const n=new Mb;return this.getFieldEntities(t).forEach(r=>{const i=r.getNamePath();n.set(i,r)}),n});ke(this,"getFieldEntitiesForNamePathList",(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(i=>{const o=Ra(i),a=r.getAsPrefix(o);return a.length?a:[{INVALIDATE_NAME_PATH:o}]}):t.map(i=>{const o=Ra(i);return r.get(o)||{INVALIDATE_NAME_PATH:Ra(i)}})});ke(this,"getFieldsValue",(t,n)=>{this.warningUnhooked();let r,i;if(t===!0||Array.isArray(t)?(r=t,i=n):t&&typeof t=="object"&&(i=t.filter),r===!0&&!i)return this.store;const o=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),a=[],s=[];o.forEach(c=>{var f;const u=c.INVALIDATE_NAME_PATH||c.getNamePath();if((f=c.isList)!=null&&f.call(c)){s.push(u);return}if(!i)a.push(u);else{const d="getMeta"in c?c.getMeta():null;i(d)&&a.push(u)}});let l=tie(this.store,a.map(Ra));return s.forEach(c=>{ol(l,c)||(l=Fc(l,c,[]))}),l});ke(this,"getFieldValue",t=>{this.warningUnhooked();const n=Ra(t);return ol(this.store,n)});ke(this,"getFieldsError",t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,i)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:Ra(t[i]),errors:[],warnings:[]})));ke(this,"getFieldError",t=>{this.warningUnhooked();const n=Ra(t);return this.getFieldsError([n])[0].errors});ke(this,"getFieldWarning",t=>{this.warningUnhooked();const n=Ra(t);return this.getFieldsError([n])[0].warnings});ke(this,"isFieldsTouched",(...t)=>{this.warningUnhooked();const[n,r]=t;let i,o=!1;t.length===0?i=null:t.length===1?Array.isArray(n)?(i=n.map(Ra),o=!1):(i=null,o=n):(i=n.map(Ra),o=r);const a=this.getFieldEntities(!0),s=f=>f.isFieldTouched();if(!i)return o?a.every(f=>s(f)||f.isList()):a.some(s);const l=new Mb;i.forEach(f=>{l.set(f,[])}),a.forEach(f=>{const d=f.getNamePath();i.forEach(A=>{A.every((h,p)=>d[p]===h)&&l.update(A,h=>[...h,f])})});const c=f=>f.some(s),u=l.map(({value:f})=>f);return o?u.every(c):u.some(c)});ke(this,"isFieldTouched",t=>(this.warningUnhooked(),this.isFieldsTouched([t])));ke(this,"isFieldsValidating",t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(i=>i.isFieldValidating());const r=t.map(Ra);return n.some(i=>{const o=i.getNamePath();return Tb(r,o)&&i.isFieldValidating()})});ke(this,"isFieldValidating",t=>(this.warningUnhooked(),this.isFieldsValidating([t])));ke(this,"resetWithFieldInitialValue",(t={})=>{const n=new Mb,r=this.getFieldEntities(!0);r.forEach(a=>{const{initialValue:s}=a.props,l=a.getNamePath();if(s!==void 0){const c=n.get(l)||new Set;c.add({entity:a,value:s}),n.set(l,c)}});const i=a=>{a.forEach(s=>{const{initialValue:l}=s.props;if(l!==void 0){const c=s.getNamePath();if(this.getInitialValue(c)!==void 0)ao(!1,`Form already set 'initialValues' with path '${c.join(".")}'. Field can not overwrite it.`);else{const f=n.get(c);if(f&&f.size>1)ao(!1,`Multiple Field with path '${c.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(f){const d=this.getFieldValue(c);!s.isListField()&&(!t.skipExist||d===void 0)&&this.updateStore(Fc(this.store,c,[...f][0].value))}}}})};let o;t.entities?o=t.entities:t.namePathList?(o=[],t.namePathList.forEach(a=>{const s=n.get(a);s&&o.push(...[...s].map(l=>l.entity))})):o=r,i(o)});ke(this,"resetFields",t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(Mg(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(Ra);r.forEach(i=>{const o=this.getInitialValue(i);this.updateStore(Fc(this.store,i,o))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)});ke(this,"setFields",t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(i=>{const l=i,{name:o}=l,a=Ze(l,["name"]),s=Ra(o);r.push(s),"value"in a&&this.updateStore(Fc(this.store,s,a.value)),this.notifyObservers(n,[s],{type:"setField",data:i})}),this.notifyWatch(r)});ke(this,"getFields",()=>this.getFieldEntities(!0).map(r=>{const i=r.getNamePath(),o=r.getMeta(),a=te(I({},o),{name:i,value:this.getFieldValue(i)});return Object.defineProperty(a,"originRCField",{value:!0}),a}));ke(this,"initEntityValue",t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();ol(this.store,r)===void 0&&this.updateStore(Fc(this.store,r,n))}});ke(this,"isMergedPreserve",t=>{const n=t!==void 0?t:this.preserve;return n!=null?n:!0});ke(this,"registerField",t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,i,o=[])=>{if(this.fieldEntities=this.fieldEntities.filter(a=>a!==t),!this.isMergedPreserve(i)&&(!r||o.length>1)){const a=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==a&&this.fieldEntities.every(s=>!LM(s.getNamePath(),n))){const s=this.store;this.updateStore(Fc(s,n,a,!0)),this.notifyObservers(s,[n],{type:"remove"}),this.triggerDependenciesUpdate(s,n)}}this.notifyWatch([n])}});ke(this,"dispatch",t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}});ke(this,"notifyObservers",(t,n,r)=>{if(this.subscribable){const i=te(I({},r),{store:this.getFieldsValue(!0)});this.getFieldEntities().forEach(({onStoreChange:o})=>{o(t,n,i)})}else this.forceRootUpdate()});ke(this,"triggerDependenciesUpdate",(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r});ke(this,"updateValue",(t,n)=>{const r=Ra(t),i=this.store;this.updateStore(Fc(this.store,r,n)),this.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const o=this.triggerDependenciesUpdate(i,r),{onValuesChange:a}=this.callbacks;if(a){const s=tie(this.store,[r]),l=this.getFieldsValue(),c=Fc(l,r,ol(s,r));a(s,c)}this.triggerOnFieldsChange([r,...o])});ke(this,"setFieldsValue",t=>{this.warningUnhooked();const n=this.store;if(t){const r=Mg(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});ke(this,"setFieldValue",(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])});ke(this,"getDependencyChildrenFields",t=>{const n=new Set,r=[],i=new Mb;this.getFieldEntities().forEach(a=>{const{dependencies:s}=a.props;(s||[]).forEach(l=>{const c=Ra(l);i.update(c,(u=new Set)=>(u.add(a),u))})});const o=a=>{(i.get(a)||new Set).forEach(l=>{if(!n.has(l)){n.add(l);const c=l.getNamePath();l.isFieldDirty()&&c.length&&(r.push(c),o(c))}})};return o(t),r});ke(this,"triggerOnFieldsChange",(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const i=this.getFields();if(n){const a=new Mb;n.forEach(({name:s,errors:l})=>{a.set(s,l)}),i.forEach(s=>{s.errors=a.get(s.name)||s.errors})}const o=i.filter(({name:a})=>Tb(t,a));o.length&&r(o,i)}});ke(this,"validateFields",(t,n)=>{this.warningUnhooked();let r,i;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,i=n):i=t;const o=!!r,a=o?r.map(Ra):[],s=[...a],l=[],c=String(Date.now()),u=new Set,{recursive:f,dirty:d}=i||{};this.getFieldEntities(!0).forEach(v=>{const y=v.getNamePath();if(o||((!v.isList()||!a.some(b=>LM(b,y,!0)))&&s.push(y),a.push(y)),!(!v.props.rules||!v.props.rules.length)&&!(d&&!v.isFieldDirty())&&(u.add(y.join(c)),!o||Tb(a,y,f))){const b=v.validateRules(I({validateMessages:I(I({},Zre),this.validateMessages)},i));l.push(b.then(()=>({name:y,errors:[],warnings:[]})).catch(x=>{var B;const C=[],S=[];return(B=x.forEach)==null||B.call(x,({rule:{warningOnly:E},errors:_})=>{E?S.push(..._):C.push(..._)}),C.length?Promise.reject({name:y,errors:C,warnings:S}):{name:y,errors:C,warnings:S}}))}});const A=ike(l);this.lastValidatePromise=A,A.catch(v=>v).then(v=>{const y=v.map(({name:b})=>b);this.notifyObservers(this.store,y,{type:"validateFinish"}),this.triggerOnFieldsChange(y,v)});const h=A.then(()=>this.lastValidatePromise===A?Promise.resolve(this.getFieldsValue(s)):Promise.reject([])).catch(v=>{var x,C;const y=v.filter(S=>S&&S.errors.length),b=(C=(x=y[0])==null?void 0:x.errors)==null?void 0:C[0];return Promise.reject({message:b,values:this.getFieldsValue(a),errorFields:y,outOfDate:this.lastValidatePromise!==A})});h.catch(v=>v);const p=a.filter(v=>u.has(v.join(c)));return this.triggerOnFieldsChange(p),h});ke(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})});this.forceRootUpdate=t}}function G8(e){const t=g.useRef(null),[,n]=g.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},i=new oke(r);t.current=i.getForm()}return[t.current]}const q8=g.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),oie=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const i=g.useContext(q8),o=g.useRef({});return g.createElement(q8.Provider,{value:te(I({},i),{validateMessages:I(I({},i.validateMessages),e),triggerFormChange:(a,s)=>{t&&t(a,{changedFields:s,forms:o.current}),i.triggerFormChange(a,s)},triggerFormFinish:(a,s)=>{n&&n(a,{values:s,forms:o.current}),i.triggerFormFinish(a,s)},registerForm:(a,s)=>{a&&(o.current=te(I({},o.current),{[a]:s})),i.registerForm(a,s)},unregisterForm:a=>{const s=I({},o.current);delete s[a],o.current=s,i.unregisterForm(a)}})},r)};function Y8(){return Y8=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const D=e,{name:n,initialValues:r,fields:i,form:o,preserve:a,children:s,component:l="form",validateMessages:c,validateTrigger:u="onChange",onValuesChange:f,onFieldsChange:d,onFinish:A,onFinishFailed:h,clearOnDestroy:p}=D,v=Ze(D,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"]),y=g.useRef(null),b=g.useContext(q8),[x]=G8(o),{useSubscribe:C,setInitialValues:S,setCallbacks:B,setValidateMessages:E,setPreserve:_,destroyForm:M}=x.getInternalHooks(yv);g.useImperativeHandle(t,()=>te(I({},x),{nativeElement:y.current})),g.useEffect(()=>(b.registerForm(n,x),()=>{b.unregisterForm(n)}),[b,x,n]),E(I(I({},b.validateMessages),c)),B({onValuesChange:f,onFieldsChange:(U,...j)=>{b.triggerFormChange(n,U),d&&d(U,...j)},onFinish:U=>{b.triggerFormFinish(n,U),A&&A(U)},onFinishFailed:h}),_(a);const R=g.useRef(null);S(r,!R.current),R.current||(R.current=!0),g.useEffect(()=>()=>M(p),[]);let T;const L=typeof s=="function";if(L){const U=x.getFieldsValue(!0);T=s(U,x)}else T=s;C(!L);const P=g.useRef(null);g.useEffect(()=>{J5e(P.current||[],i||[])||x.setFields(i||[]),P.current=i},[i,x]);const k=g.useMemo(()=>te(I({},x),{validateTrigger:u}),[x,u]),H=g.createElement(mE.Provider,{value:null},g.createElement(bv.Provider,{value:k},T));return l===!1?H:g.createElement(l,Y8({},v,{ref:y,onSubmit:U=>{U.preventDefault(),U.stopPropagation(),x.submit()},onReset:U=>{var j;U.preventDefault(),x.resetFields(),(j=v.onReset)==null||j.call(v,U)}}),H)};function X8(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function aie(...e){const[t,n={}]=e,r=x5e(n)?{form:n}:n,i=r.form,[o,a]=g.useState(()=>typeof t=="function"?t({}):void 0),s=g.useMemo(()=>X8(o),[o]),l=g.useRef(s);l.current=s;const c=g.useContext(bv),u=i||c,f=u&&u._init,{getFieldsValue:d,getInternalHooks:A}=u,{registerWatch:h}=A(yv),p=yn((y,b)=>{const x=r.preserve?b!=null?b:d(!0):y!=null?y:d(),C=typeof t=="function"?t(x):ol(x,Ra(t));X8(o)!==X8(C)&&a(C)}),v=typeof t=="function"?t:JSON.stringify(t);return g.useEffect(()=>{f&&p()},[f,v]),g.useEffect(()=>f?h((b,x)=>{p(b,x)}):void 0,[f]),o}const Ib=g.forwardRef(ake);Ib.FormProvider=oie,Ib.Field=K8,Ib.List=iie,Ib.useForm=G8,Ib.useWatch=aie;const pA=g.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),sie=g.createContext(null),lie=e=>{const t=ti(e,["prefixCls"]);return g.createElement(oie,I({},t))},Z8=g.createContext({prefixCls:""}),Ya=g.createContext({}),cie=({children:e,status:t,override:n})=>{const r=g.useContext(Ya),i=g.useMemo(()=>{const o=I({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return g.createElement(Ya.Provider,{value:i},e)},uie=g.createContext(void 0),Zh=e=>{const{space:t,form:n,children:r}=e;if(!qi(r))return null;let i=r;return n&&(i=Be.createElement(cie,{override:!0,status:!0},i)),t&&(i=Be.createElement(nFe,null,i)),i},ske=()=>ac()&&window.document.documentElement;function lke(e,t,n){return g.useMemo(()=>{const r={trap:t!=null?t:!0,focusTriggerAfterClose:n!=null?n:!0};return I(I({},r),e)},[e,t,n])}const kM=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=Ae({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Ae({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=g.useMemo(()=>mo(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return g.createElement("span",{className:Ae(t,a,s,n),style:I(I({},l),r)})},cke=new Xr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),J8=e=>({height:e,lineHeight:be(e)}),zg=e=>I({width:e},J8(e)),uke=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:cke,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),eH=(e,t)=>I({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},J8(e)),fke=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:I({display:"inline-block",verticalAlign:"top",background:n},zg(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:I({},zg(i)),[`${t}${t}-sm`]:I({},zg(o))}},dke=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:I({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},eH(t,s)),[`${r}-lg`]:I({},eH(i,s)),[`${r}-sm`]:I({},eH(o,s))}},fie=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return I({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n},zg(i(r).mul(2).equal()))},Ake=e=>({[e.skeletonNodeCls]:I({},fie(e))}),hke=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:te(I({},fie(e)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:te(I({},zg(n)),{maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},tH=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},nH=(e,t)=>I({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},J8(e)),pke=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return I(te(I(te(I({[n]:I({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},nH(r,s))},tH(e,r,n)),{[`${n}-lg`]:I({},nH(i,s))}),tH(e,i,`${n}-lg`)),{[`${n}-sm`]:I({},nH(o,s))}),tH(e,o,`${n}-sm`))},gke=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonNodeCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:f,gradientFromColor:d,padding:A,marginSM:h,borderRadius:p,titleHeight:v,blockRadius:y,paragraphLiHeight:b,controlHeightXS:x,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:A,verticalAlign:"top",[n]:I({display:"inline-block",verticalAlign:"top",background:d},zg(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:I({},zg(u)),[`${n}-sm`]:I({},zg(f))},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:d,borderRadius:y,[`+ ${i}`]:{marginBlockStart:f}},[i]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:y,"+ li":{marginBlockStart:x}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:I(I(I(I(I({display:"inline-block",width:"auto"},pke(e)),fke(e)),dke(e)),Ake(e)),hke(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},fre=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:`transparent`,border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},pre=dd(`Collapse`,e=>{let t=bl(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[lre(t),dre(t),fre(t),ure(t),jh(t)]},e=>({headerPadding:`${Q(e.paddingSM)} ${Q(e.padding)}`,headerPaddingSM:`${Q(e.paddingXS)} ${Q(e.paddingSM)} ${Q(e.paddingXS)} ${Q(e.paddingXS)}`,headerPaddingLG:`${Q(e.padding)} ${Q(e.paddingLG)} ${Q(e.padding)} ${Q(e.padding)}`,headerBg:e.colorFillAlter,contentPadding:`${Q(e.padding)} ${Q(16)}`,contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBgContainer,borderlessContentPadding:`${Q(e.paddingXXS)} ${Q(16)} ${Q(e.padding)}`,borderlessContentBg:`transparent`}));K();var mre=Object.assign(J.forwardRef((e,t)=>{var n;let{getPrefixCls:r,direction:i,expandIcon:a,className:o,style:s,classNames:c,styles:l}=ko(`collapse`),{prefixCls:u,className:d,rootClassName:f,style:p,bordered:m=!0,ghost:h,size:g,expandIconPlacement:_,expandIconPosition:v,children:y,destroyInactivePanel:b,destroyOnHidden:x,expandIcon:S,classNames:C,styles:w}=e,T=vh(e=>{var t;return(t=g==null?e:g)==null?`middle`:t}),E=r(`collapse`,u),D=r(),[O,k]=pre(E),A=(n=_==null?v:_)==null?`start`:n,j=G(G({},e),{},{size:T,bordered:m,expandIconPlacement:A}),M=yp(s),N=yp(p),[P,F]=xp([c,C],[l,M,w,N],{props:j}),I=S==null?a:S,L=J.useCallback((e={})=>pm(up(I)?I(e):J.createElement(tg,{rotate:e.isActive?i===`rtl`?-90:90:void 0,"aria-label":e.isActive?`expanded`:`collapsed`}),e=>({className:Z(e.className,`${E}-arrow`)})),[I,E,i]),R=Z(`${E}-icon-placement-${A}`,{[`${E}-borderless`]:!m,[`${E}-rtl`]:i===`rtl`,[`${E}-ghost`]:!!h,[`${E}-large`]:T===`large`,[`${E}-small`]:T===`small`},o,d,f,O,k,P.root),z=J.useMemo(()=>G(G({},dh(D)),{},{motionAppear:!1,leavedClassName:`${E}-panel-hidden`}),[D,E]),B=J.useMemo(()=>y?Ia(y).map(e=>e):null,[y]);return J.createElement(sg,G(G({ref:t,openMotion:z},Ca(e,[`rootClassName`])),{},{expandIcon:L,prefixCls:E,className:R,style:F.root,classNames:P,styles:F,destroyOnHidden:x==null?b:x}),B)}),{Panel:cre}),hre=e=>e instanceof $h?e:new $h(e),cg=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Qh(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192};K();var lg=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return bl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},ug=e=>{var t,n,r,i,a,o;let s=(t=e.contentFontSize)==null?e.fontSize:t,c=(n=e.contentFontSizeSM)==null?e.fontSize:n,l=(r=e.contentFontSizeLG)==null?e.fontSizeLG:r,u=(i=e.contentLineHeight)==null?Ml(s):i,d=(a=e.contentLineHeightSM)==null?Ml(c):a,f=(o=e.contentLineHeightLG)==null?Ml(l):o,p=cg(new $h(e.colorBgSolid),`#fff`)?`#000`:`#fff`,m=jl.reduce((t,n)=>G(G({},t),{},{[`${n}ShadowColor`]:`0 ${Q(e.controlOutlineWidth)} 0 ${Wu(e[`${n}1`],e.colorBgContainer)}`}),{}),h=e.colorBgContainerDisabled,g=e.colorBgContainerDisabled;return G(G({},m),{},{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:l,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*f)/2-e.lineWidth,0),defaultBgDisabled:h,dashedBgDisabled:g})},gre=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=md(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},jl.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}};K();var _re=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:G(G({outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`},Gh()),{},{"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:nd(),[`${t}-icon`]:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,[n]:{verticalAlign:`middle`,"&:before":{content:`"\\a0"`,display:`inline-block`,width:0}}},"> a":{color:`currentColor`},"&:not(:disabled)":od(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}})}},vre=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),dg=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${Q(c)} ${Q(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:vre(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},yre=e=>dg(bl(e,{fontSize:e.contentFontSize}),e.componentCls),bre=e=>dg(bl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),xre=e=>dg(bl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),Sre=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},Cre=dd(`Button`,e=>{let t=lg(e);return[_re(t),yre(t),bre(t),xre(t),Sre(t),gre(t),Kne(t)]},ug,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});K();function wre(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=s?` ${s}`:``,l=e=>e.filter(Boolean).map(e=>`&:${e}${c}`).join(`,`),u=l([`hover`,i?`hover${i}`:null]),d=l([a?`focus`:null,`active`]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":G(G({[d]:{zIndex:3},[u]:{zIndex:4}},i?{[`&${i}`]:{zIndex:3}}:{}),{},{[`&[disabled] ${s}`]:{zIndex:0}})}}function Tre(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fg(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:G(G({},wre(e,a,t,i)),Tre(i,a,t))}}K();function Ere(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function Dre(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ore(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:G(G({},Ere(e,t,e.componentCls)),Dre(e.componentCls,t))}}var kre=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=md(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},Are=pd([`Button`,`compact`],e=>{let t=lg(e);return[fg(t),Ore(t),kre(t)]},ug);K();var jre=[`_skipSemantic`,`loading`,`prefixCls`,`color`,`variant`,`type`,`danger`,`shape`,`size`,`disabled`,`className`,`rootClassName`,`children`,`icon`,`iconPosition`,`iconPlacement`,`ghost`,`block`,`htmlType`,`classNames`,`styles`,`style`,`autoInsertSpace`,`autoFocus`];function Mre(e){if(lp(e)){let t=e==null?void 0:e.delay;return t=sp(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var Nre={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},pg=J.forwardRef((e,t)=>{var n,r;let{_skipSemantic:i,loading:a=!1,prefixCls:o,color:s,variant:c,type:l,danger:u=!1,shape:d,size:f,disabled:p,className:m,rootClassName:h,children:g,icon:_,iconPosition:v,iconPlacement:y,ghost:b=!1,block:x=!1,htmlType:S=`button`,classNames:C,styles:w,style:T,autoInsertSpace:E,autoFocus:D}=e,O=q(e,jre),k=Ia(g),A=l||`default`,{getPrefixCls:j,direction:M,autoInsertSpace:N,className:P,style:F,classNames:I,styles:L,loadingIcon:R,shape:z,color:B,variant:V}=ko(`button`),H=d||z||`default`,[U,ee]=(0,J.useMemo)(()=>{if(s&&c)return[s,c];if(l||u){let e=Nre[A]||[];return u?[`danger`,e[1]]:e}return c===`solid`?[`primary`,c]:B&&V?[B,V]:V===`solid`?[`primary`,V]:[`default`,`outlined`]},[s,c,l,u,B,V,A]),[te,ne]=(0,J.useMemo)(()=>b&&ee===`solid`?[U,`outlined`]:[U,ee],[U,ee,b]),re=te===`danger`,ie=re?`dangerous`:te,ae=(n=E==null?N:E)==null||n,oe=j(`btn`,o),[se,ce]=Cre(oe),le=(0,J.useContext)(gm),ue=p==null?le:p,de=(0,J.useContext)(Sh),fe=(0,J.useMemo)(()=>Mre(a),[a]),[pe,me]=(0,J.useState)(fe.loading),[he,W]=(0,J.useState)(!1),ge=(0,J.useRef)(null),_e=gi(t,ge),K=k.length===1&&!_&&!Eh(ne),ve=(0,J.useRef)(!0);J.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),Xr(()=>{let e=null;fe.delay>0?e=setTimeout(()=>{e=null,me(!0)},fe.delay):me(fe.loading);function t(){e&&(clearTimeout(e),e=null)}return t},[fe.delay,fe.loading]),(0,J.useEffect)(()=>{if(!ge.current||!ae)return;let e=ge.current.textContent||``;K&&wh(e)?he||W(!0):he&&W(!1)}),(0,J.useEffect)(()=>{if(D){var e;(e=ge.current)==null||e.focus()}},[]);let ye=J.useCallback(t=>{var n;if(pe||ue){t.preventDefault();return}(n=e.onClick)==null||n.call(e,(`href`in e,t))},[e.onClick,pe,ue]),{compactSize:be,compactItemClassnames:xe}=bh(oe,M),Se=vh(e=>{var t,n;return(t=(n=f==null?be:f)==null?de:n)==null?e:t}),Ce=pe?`loading`:_,we=(r=y==null?v:y)==null?`start`:r,Te=Ca(O,[`navigate`]),Ee=G(G({},e),{},{type:A,color:te,variant:ne,danger:re,shape:H,size:Se,disabled:ue,loading:pe,iconPlacement:we}),De=yp(F),Oe=yp(T),[ke,Ae]=xp([i?void 0:I,C],[i?void 0:L,De,w,Oe],{props:Ee}),je=Z(oe,se,ce,{[`${oe}-${H}`]:H!=="default"&&H!==`square`&&H,[`${oe}-${A}`]:A,[`${oe}-dangerous`]:u,[`${oe}-color-${ie}`]:ie,[`${oe}-variant-${ne}`]:ne,[`${oe}-lg`]:Se===`large`,[`${oe}-sm`]:Se===`small`,[`${oe}-icon-only`]:!g&&g!==0&&!!Ce,[`${oe}-background-ghost`]:b&&!Eh(ne),[`${oe}-loading`]:pe,[`${oe}-two-chinese-chars`]:he&&ae&&!pe,[`${oe}-block`]:x,[`${oe}-rtl`]:M===`rtl`,[`${oe}-icon-end`]:we===`end`},xe,m,h,P,ke.root),Me={className:ke.icon,style:Ae.icon},Ne=e=>J.createElement(Dh,G({prefixCls:oe},Me),e),Pe=J.createElement(Tne,G({existIcon:!!_,prefixCls:oe,loading:pe,mount:ve.current},Me)),Fe=lp(a)&&a.icon||R,Ie;Ie=_&&!pe?Ne(_):a&&Fe?Ne(Fe):Pe;let Le=op(g)?wne(g,K&&ae,Ae.content,ke.content):null;if(Te.href!==void 0)return J.createElement(`a`,G(G({},Te),{},{className:Z(je,{[`${oe}-disabled`]:ue}),href:ue?void 0:Te.href,style:Ae.root,onClick:ye,ref:_e,tabIndex:ue?-1:0,"aria-disabled":ue}),Ie,Le);let Re=J.createElement(`button`,G(G({},O),{},{type:S,className:je,style:Ae.root,onClick:ye,disabled:ue,ref:_e}),Ie,Le,xe&&J.createElement(Are,{prefixCls:oe}));return Eh(ne)||(Re=J.createElement(_h,{component:`Button`,disabled:pe},Re)),Re});pg.Group=Sne,pg.__ANT_BUTTON=!0,K();var mg=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=J.useRef(!1),f=J.useRef(null),[p,m]=Qr(!1),h=(...e)=>{a==null||a(...e)};J.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{var e;(e=f.current)==null||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let g=e=>{dp(e)&&(m(!0),e.then((...e)=>{m(!1,!0),h.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!(c!=null&&c()))return Promise.reject(e)}))};return J.createElement(pg,G(G(G({},Th(t)),{},{onClick:e=>{if(d.current)return;if(d.current=!0,!u){h();return}let t;if(s){if(t=u(e),l&&!dp(t)){d.current=!1,h(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!dp(t)){h();return}g(t)},loading:p,prefixCls:r},i),{},{ref:f}),n)},hg=J.createContext({}),{Provider:gg}=hg,_g=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,J.useContext)(hg);return i?J.createElement(mg,{isSilent:r,actionFn:s,close:(...e)=>{o==null||o(...e),c==null||c(!1),l==null||l()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},vg=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,J.useContext)(hg);return J.createElement(mg,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t==null||t(...e),s==null||s(!0),l==null||l()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},yg=J.createContext({});function bg(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function xg(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function Pre(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=xg(i),n.top+=xg(i,!0),n}var Fre=J.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);K();function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:m,onMouseDown:h,onMouseUp:g,holderRef:_,visible:v,forceRender:y,width:b,height:x,classNames:S,styles:C,isFixedPos:w,focusTrap:T}=e,{panel:E}=J.useContext(yg),D=(0,J.useRef)(null),O=gi(_,E,D),[k]=Qi(v&&w&&T!==!1,()=>D.current);J.useImperativeHandle(t,()=>({focus:()=>{var e;(e=D.current)==null||e.focus({preventScroll:!0})}}));let A={};b!==void 0&&(A.width=b),x!==void 0&&(A.height=x);let j=s?J.createElement(`div`,{className:Z(`${n}-footer`,S==null?void 0:S.footer),style:G({},C==null?void 0:C.footer)},s):null,M=a?J.createElement(`div`,{className:Z(`${n}-header`,S==null?void 0:S.header),style:G({},C==null?void 0:C.header)},J.createElement(`div`,{className:Z(`${n}-title`,S==null?void 0:S.title),id:o,style:G({},C==null?void 0:C.title)},a)):null,N=(0,J.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l==null?J.createElement(`span`,{className:`${n}-close-x`}):l}:{},[c,l,n]),P=Oa(N,!0),F=typeof c==`object`&&c.disabled,I=c?J.createElement(`button`,Sg({type:`button`,onClick:u,"aria-label":`Close`},P,{className:Z(`${n}-close`,S==null?void 0:S.close),disabled:F,style:C==null?void 0:C.close}),N.closeIcon):null,L=J.createElement(`div`,{className:Z(`${n}-container`,S==null?void 0:S.container),style:C==null?void 0:C.container},I,M,J.createElement(`div`,Sg({className:Z(`${n}-body`,S==null?void 0:S.body),style:G(G({},f),C==null?void 0:C.body)},p),d),j);return J.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:O,style:G(G({},i),A),className:Z(n,r),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{k(e.target)}},J.createElement(Fre,{shouldUpdate:v||y},m?m(L):L))});K();function wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,J.useRef)(null),m=(0,J.useRef)(null);J.useImperativeHandle(t,()=>G(G({},m.current),{},{inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[h,g]=J.useState(),_={};h&&(_.transformOrigin=h);function v(){var e;if(!((e=p.current)!=null&&e.nativeElement))return;let t=Pre(p.current.nativeElement);g(f&&(f.x||f.y)?`${f.x-t.left}px ${f.y-t.top}px`:``)}return J.createElement(ip,{visible:o,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>J.createElement(Cg,wg({},e,{ref:m,title:r,ariaId:u,prefixCls:n,holderRef:s,style:G(G(G({},o),i),_),className:Z(a,t)})))});K();function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return J.createElement(ip,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>J.createElement(`div`,Tg({ref:a,style:G(G({},r),n),className:Z(`${t}-mask`,e,o)},i)))};K();function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:m=!0,maskTransitionName:h,maskAnimation:g,maskClosable:_=!0,maskStyle:v,maskProps:y,rootClassName:b,rootStyle:x,classNames:S,styles:C}=e,w=(0,J.useRef)(null),T=(0,J.useRef)(null),E=(0,J.useRef)(null),[D,O]=J.useState(r),[k,A]=J.useState(!1),j=ii();function M(){xi(T.current,document.activeElement)||(w.current=document.activeElement)}function N(){if(!xi(T.current,document.activeElement)){var e;(e=E.current)==null||e.focus()}}function P(){if(O(!1),m&&w.current&&i){try{w.current.focus({preventScroll:!0})}catch(e){}w.current=null}D&&(u==null||u())}function F(e){e?N():P(),l==null||l(e)}function I(e){c==null||c(e)}let L=(0,J.useRef)(!1),R=null;_&&(R=e=>{T.current===e.target&&L.current&&I(e)});function z(e){L.current=e.target===T.current}(0,J.useEffect)(()=>{if(r){if(L.current=!1,O(!0),M(),T.current){let e=getComputedStyle(T.current);A(e.position===`fixed`)}}else D&&E.current.enableMotion()&&!E.current.inMotion()&&P()},[r]);let B=G(G(G({zIndex:n},a),C==null?void 0:C.wrapper),{},{display:D?null:`none`});return J.createElement(`div`,Eg({className:Z(`${t}-root`,b),style:x},Oa(e,{data:!0})),J.createElement(Lre,{prefixCls:t,visible:m&&r,motionName:bg(t,h,g),style:G(G({zIndex:n},v),C==null?void 0:C.mask),maskProps:y,className:S==null?void 0:S.mask}),J.createElement(`div`,Eg({className:Z(`${t}-wrap`,o,S==null?void 0:S.wrapper),ref:T,onClick:R,onMouseDown:z,style:B},s),J.createElement(Ire,Eg({},e,{isFixedPos:k,ref:E,closable:p,ariaId:j,prefixCls:t,visible:r&&D,onClose:I,onVisibleChanged:F,motionName:bg(t,d,f)}))))},zre=[`scrollLock`];function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,scrollLock:l=!0,onClose:u}=e,{scrollLock:d}=e,f=q(e,zre),[p,m]=J.useState(t),h=J.useMemo(()=>({panel:s}),[s]);return J.useEffect(()=>{t&&m(!0)},[t]),!r&&i&&!p?null:J.createElement(yg.Provider,{value:h},J.createElement(Zp,{open:t||r||p,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),u==null||u(t);return}},autoDestroy:!1,getContainer:n,autoLock:l&&(t||p)},J.createElement(Rre,Dg({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e==null||e(),a==null||a(),m(!1)}}))))},Og=`RC_FORM_INTERNAL_HOOKS`,kg=()=>{_a(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},Ag=J.createContext({getFieldValue:kg,getFieldsValue:kg,getFieldError:kg,getFieldWarning:kg,getFieldsError:kg,isFieldsTouched:kg,isFieldTouched:kg,isFieldValidating:kg,isFieldsValidating:kg,resetFields:kg,setFields:kg,setFieldValue:kg,setFieldsValue:kg,validateFields:kg,submit:kg,getInternalHooks:()=>(kg(),{dispatch:kg,initEntityValue:kg,registerField:kg,useSubscribe:kg,setInitialValues:kg,destroyForm:kg,setCallbacks:kg,registerWatch:kg,getFields:kg,setValidateMessages:kg,setPreserve:kg,getInitialValue:kg})}),jg=J.createContext(null);function Mg(e){return e==null?[]:Array.isArray(e)?e:[e]}function Vre(e){return e&&!!e._init}function Ng(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone(){let e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Pg=Ng();ge(),K();var Hre=/%[sdj%]/g,Ure=()=>{};typeof process<`u`&&process.env;function Fg(e){if(!e||!e.length)return null;let t={};return e.forEach(e=>{let n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Ig(e,...t){let n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Hre,e=>{if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch(e){return`[Circular]`}break;default:return e}}):e}function Wre(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function Lg(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Wre(t)&&typeof e==`string`&&!e)}function Gre(e,t,n){let r=[],i=0,a=e.length;function o(e){r.push(...e||[]),i++,i===a&&n(r)}e.forEach(e=>{t(e,o)})}function Rg(e,t,n){let r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}let s=r;r+=1,s{t.push(...e[n]||[])}),t}var zg=class extends Error{constructor(e,t){super(`Async Validation Error`),W(this,`errors`,void 0),W(this,`fields`,void 0),this.errors=e,this.fields=t}};function qre(e,t,n,r,i){if(t.first){let t=new Promise((t,a)=>{Rg(Kre(e),n,e=>(r(e),e.length?a(new zg(e,Fg(e))):t(i)))});return t.catch(e=>e),t}let a=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),s=o.length,c=0,l=[],u=new Promise((t,u)=>{let d=e=>{if(l.push.apply(l,e),c++,c===s)return r(l),l.length?u(new zg(l,Fg(l))):t(i)};o.length||(r(l),t(i)),o.forEach(t=>{let r=e[t];a.indexOf(t)===-1?Gre(r,n,d):Rg(r,n,d)})});return u.catch(e=>e),u}function Jre(e){return!!(e&&e.message!==void 0)}function Yre(e,t){let n=e;for(let e=0;e{let r;return r=e.fullFields?Yre(t,e.fullFields):t[n.field||e.fullField],Jre(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n==`function`?n():n,fieldValue:r,field:n.field||e.fullField}}}function Vg(e,t){if(t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];typeof r==`object`&&typeof e[n]==`object`?e[n]=G(G({},e[n]),r):e[n]=r}}return e}var Hg=`enum`,Xre=(e,t,n,r,i)=>{e[Hg]=Array.isArray(e[Hg])?e[Hg]:[],e[Hg].indexOf(t)===-1&&r.push(Ig(i.messages[Hg],e.fullField,e[Hg].join(`, `)))},Zre=(e,t,n,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ig(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(Ig(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Qre=(e,t,n,r,i)=>{let a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(Ig(i.messages[u].len,e.fullField,e.len)):o&&!s&&le.max?r.push(Ig(i.messages[u].max,e.fullField,e.max)):o&&s&&(le.max)&&r.push(Ig(i.messages[u].range,e.fullField,e.min,e.max))},$re=(e,t,n,r,i,a)=>{e.required&&(!n.hasOwnProperty(e.field)||Lg(t,a||e.type))&&r.push(Ig(i.messages.required,e.fullField))},Ug,eie=(()=>{if(Ug)return Ug;let e=`[a-fA-F\\d:]`,t=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:``,n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}$)|(?:^${i}$)`),o=RegExp(`^${n}$`),s=RegExp(`^${i}$`),c=e=>e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`);c.v4=e=>e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`),c.v6=e=>e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`);let l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Ug=RegExp(`(?:^${l}$)`,`i`),Ug}),Wg={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Gg={integer(e){return Gg.number(e)&&parseInt(e,10)===e},float(e){return Gg.number(e)&&!Gg.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number(e){return!isNaN(e)&&typeof e==`number`},object(e){return typeof e==`object`&&!Gg.array(e)},method(e){return typeof e==`function`},email(e){return typeof e==`string`&&e.length<=320&&!!e.match(Wg.email)},tel(e){return typeof e==`string`&&e.length<=32&&!!e.match(Wg.tel)},url(e){return typeof e==`string`&&e.length<=2048&&!!e.match(eie())},hex(e){return typeof e==`string`&&!!e.match(Wg.hex)}},Kg={required:$re,whitespace:(e,t,n,r,i)=>{(/^\s+$/.test(t)||t===``)&&r.push(Ig(i.messages.whitespace,e.fullField))},type:(e,t,n,r,i)=>{if(e.required&&t===void 0){$re(e,t,n,r,i);return}let a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?Gg[o](t)||r.push(Ig(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Ig(i.messages.types[o],e.fullField,e.type))},range:Qre,enum:Xre,pattern:Zre},tie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i)}n(a)},nie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Kg.required(e,t,r,a,i,`array`),t!=null&&(Kg.type(e,t,r,a,i),Kg.range(e,t,r,a,i))}n(a)},rie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),t!==void 0&&Kg.type(e,t,r,a,i)}n(a)},iie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t,`date`)&&!e.required)return n();if(Kg.required(e,t,r,a,i),!Lg(t,`date`)){let n;n=t instanceof Date?t:new Date(t),Kg.type(e,n,r,a,i),n&&Kg.range(e,n.getTime(),r,a,i)}}n(a)},aie=`enum`,oie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),t!==void 0&&Kg[aie](e,t,r,a,i)}n(a)},sie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),t!==void 0&&(Kg.type(e,t,r,a,i),Kg.range(e,t,r,a,i))}n(a)},cie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),t!==void 0&&(Kg.type(e,t,r,a,i),Kg.range(e,t,r,a,i))}n(a)},lie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),t!==void 0&&Kg.type(e,t,r,a,i)}n(a)},uie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),t!==void 0&&(Kg.type(e,t,r,a,i),Kg.range(e,t,r,a,i))}n(a)},die=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),t!==void 0&&Kg.type(e,t,r,a,i)}n(a)},fie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t,`string`)&&!e.required)return n();Kg.required(e,t,r,a,i),Lg(t,`string`)||Kg.pattern(e,t,r,a,i)}n(a)},pie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t)&&!e.required)return n();Kg.required(e,t,r,a,i),Lg(t)||Kg.type(e,t,r,a,i)}n(a)},mie=(e,t,n,r,i)=>{let a=[],o=Array.isArray(t)?`array`:typeof t;Kg.required(e,t,r,a,i,o),n(a)},hie=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t,`string`)&&!e.required)return n();Kg.required(e,t,r,a,i,`string`),Lg(t,`string`)||(Kg.type(e,t,r,a,i),Kg.range(e,t,r,a,i),Kg.pattern(e,t,r,a,i),e.whitespace===!0&&Kg.whitespace(e,t,r,a,i))}n(a)},qg=(e,t,n,r,i)=>{let a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Lg(t,a)&&!e.required)return n();Kg.required(e,t,r,o,i,a),Lg(t,a)||Kg.type(e,t,r,o,i)}n(o)},Jg={string:hie,method:lie,number:uie,boolean:rie,regexp:pie,integer:cie,float:sie,array:nie,object:die,enum:oie,pattern:fie,date:iie,url:qg,hex:qg,email:qg,tel:qg,required:mie,any:tie};ge(),K();var Yg=class e{constructor(e){W(this,`rules`,null),W(this,`_messages`,Pg),this.define(e)}define(e){if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(t=>{let n=e[t];this.rules[t]=Array.isArray(n)?n:[n]})}messages(e){return e&&(this._messages=Vg(Ng(),e)),this._messages}validate(t,n={},r=()=>{}){let i=t,a=n,o=r;if(typeof a==`function`&&(o=a,a={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(null,i),Promise.resolve(i);function s(e){let t=[],n={};function r(e){Array.isArray(e)?t=t.concat(...e):t.push(e)}for(let t=0;t{let n=this.rules[e],r=i[e];n.forEach(n=>{let a=n;typeof a.transform==`function`&&(i===t&&(i=G({},i)),r=i[e]=a.transform(r),r!=null&&(a.type=a.type||(Array.isArray(r)?`array`:typeof r))),a=typeof a==`function`?{validator:a}:G({},a),a.validator=this.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=this.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))})});let l={};return qre(c,a,(t,n)=>{let r=t.rule,o=(r.type===`object`||r.type===`array`)&&(typeof r.fields==`object`||typeof r.defaultField==`object`);o=o&&(r.required||!r.required&&t.value),r.field=t.field;function s(e,t){return G(G({},t),{},{fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[...r.fullFields,e]:[e]})}function c(c=[]){let u=Array.isArray(c)?c:[c];!a.suppressWarning&&u.length&&e.warning(`async-validator:`,u),u.length&&r.message!==void 0&&r.message!==null&&(u=[].concat(r.message));let d=u.map(Bg(r,i));if(a.first&&d.length)return l[r.field]=1,n(d);if(!o)n(d);else{if(r.required&&!t.value)return r.message===void 0?a.error&&(d=[a.error(r,Ig(a.messages.required,r.field))]):d=[].concat(r.message).map(Bg(r,i)),n(d);let o={};r.defaultField&&Object.keys(t.value).map(e=>{o[e]=r.defaultField}),o=G(G({},o),t.rule.fields);let c={};Object.keys(o).forEach(e=>{let t=o[e];c[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});let l=new e(c);l.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),l.validate(t.value,t.rule.options||a,e=>{let t=[];d&&d.length&&t.push(...d),e&&e.length&&t.push(...e),n(t.length?t:null)})}}let u;if(r.asyncValidator)u=r.asyncValidator(r,t.value,c,t.source,a);else if(r.validator){try{u=r.validator(r,t.value,c,t.source,a)}catch(e){var d,f;(d=(f=console).error)==null||d.call(f,e),a.suppressValidatorError||setTimeout(()=>{throw e},0),c(e.message)}u===!0?c():u===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):u instanceof Array?c(u):u instanceof Error&&c(u.message)}u&&u.then&&u.then(()=>c(),e=>c(e))},e=>{s(e)},i)}getType(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!Jg.hasOwnProperty(e.type))throw Error(Ig(`Unknown rule type %s`,e.type));return e.type||`string`}getValidationMethod(e){if(typeof e.validator==`function`)return e.validator;let t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?Jg.required:Jg[this.getType(e)]||void 0}};W(Yg,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Jg[e]=t}),W(Yg,`warning`,Ure),W(Yg,`messages`,Pg),W(Yg,`validators`,Jg);var Xg="'${name}' is not a valid ${type}",gie={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Xg,method:Xg,array:Xg,object:Xg,number:Xg,date:Xg,boolean:Xg,integer:Xg,float:Xg,regexp:Xg,email:Xg,tel:Xg,url:Xg,hex:Xg},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};K(),Pe();var _ie=Yg;function vie(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var yie=`CODE_LOGIC_ERROR`;function Zg(e,t,n,r,i){return Qg.apply(this,arguments)}function Qg(){return Qg=Ne(function*(e,t,n,r,i){let a=G({},n);if(delete a.ruleIndex,_ie.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(yie)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new _ie({[e]:[a]}),c=Ga(gie,r.validateMessages);s.messages(c);let l=[];try{yield Promise.resolve(s.validate({[e]:t},G({},r)))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===yie?c.default:e;return J.isValidElement(n)?J.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(yield Promise.all(t.map((t,n)=>Zg(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u=G(G({},n),{},{name:e,enum:(n.enum||[]).join(`, `)},i);return l.map(e=>typeof e==`string`?vie(e,u):e)}),Qg.apply(this,arguments)}function bie(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r=G(G({},e),{},{ruleIndex:t});return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{_a(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,_a(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(function(){var e=Ne(function*(e,n){for(let e=0;eZg(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?Sie(e):xie(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}function xie(e){return $g.apply(this,arguments)}function $g(){return $g=Ne(function*(e){return Promise.all(e).then(e=>[].concat(...e))}),$g.apply(this,arguments)}function Sie(e){return e_.apply(this,arguments)}function e_(){return e_=Ne(function*(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}),e_.apply(this,arguments)}function t_(e){return Mg(e)}function Cie(e,t){let n={};return t.forEach(t=>{let r=Ra(e,t);n=Ba(n,t,r)}),n}function n_(e,t,n=!1){return e&&e.some(e=>r_(t,e,n))}function r_(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function wie(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`||r===i})}function Tie(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function Eie(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}ge();var Die=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Oie=class{constructor(e){W(this,`namePathList`,[]),W(this,`taskId`,0),W(this,`watcherList`,new Set),W(this,`form`,void 0),this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!r_(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;Die(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};Pe();function kie(){return i_.apply(this,arguments)}function i_(){return i_=Ne(function*(){return new Promise(e=>{Die(()=>{Fa(()=>{e()})})})}),i_.apply(this,arguments)}ge(),K(),Pe();var Aie=[`name`];function a_(){return a_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,t_(n)),this.cancelRegisterFunc=null}),W(this,`getNamePath`,()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]}),W(this,`getRules`,()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)}),W(this,`refresh`,()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))}),W(this,`metaCache`,null),W(this,`triggerMetaEvent`,e=>{let{onMetaChange:t}=this.props;if(t){let n=G(G({},this.getMeta()),{},{destroy:e});ya(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null}),W(this,`onStoreChange`,(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&n_(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!ya(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=o_,this.warnings=s_,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=o_,this.warnings=s_,this.triggerMetaEvent(),a==null||a(),this.refresh();return}break;case`remove`:if(r&&c_(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||o_),`warnings`in i&&(this.warnings=i.warnings||s_),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&n_(t,s,!0)){this.reRender();return}if(r&&!s.length&&c_(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(t_).some(e=>n_(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&c_(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()}),W(this,`validateRules`,e=>{let n=this.getNamePath(),r=this.getValue(),{triggerName:i,validateOnly:a=!1,delayFrame:o}=e||{},s=Promise.resolve().then(Ne(function*(){if(!t.mounted)return[];let{validateFirst:a=!1,messageVariables:c,validateDebounce:l}=t.props;o&&(yield kie());let u=t.getRules();if(i&&(u=u.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return!t||Mg(t).includes(i)})),l&&i&&(yield new Promise(e=>{setTimeout(e,l)}),t.validatePromise!==s))return[];let d=bie(n,r,u,e,a,c);return d.catch(e=>e).then((e=o_)=>{if(t.validatePromise===s){var n;t.validatePromise=null;let r=[],i=[];(n=e.forEach)==null||n.call(e,({rule:{warningOnly:e},errors:t=o_})=>{e?i.push(...t):r.push(...t)}),t.errors=r,t.warnings=i,t.triggerMetaEvent(),t.reRender()}}),d}));return a?s:(this.validatePromise=s,this.dirty=!0,this.errors=o_,this.warnings=s_,this.triggerMetaEvent(),this.reRender(),s)}),W(this,`isFieldValidating`,()=>!!this.validatePromise),W(this,`isFieldTouched`,()=>this.touched),W(this,`isFieldDirty`,()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(Og);return t(this.getNamePath())!==void 0}),W(this,`getErrors`,()=>this.errors),W(this,`getWarnings`,()=>this.warnings),W(this,`isListField`,()=>this.props.isListField),W(this,`isList`,()=>this.props.isList),W(this,`isPreserve`,()=>this.props.preserve),W(this,`getMeta`,()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null})),W(this,`getOnlyChild`,e=>{if(typeof e==`function`){let t=this.getMeta();return G(G({},this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext))),{},{isFunction:!0})}let t=Ia(e);return t.length!==1||!J.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}}),W(this,`getValue`,e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return Ra(e||t(!0),n)}),W(this,`getControlled`,(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(Og),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v=G(G({},e),_);return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):Tie(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},Mg(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v}),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(Og);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(Og);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:J.isValidElement(n)?i=J.cloneElement(n,this.getControlled(n.props)):(_a(!n,"`children` of Field is not validate ReactElement."),i=n),J.createElement(J.Fragment,{key:e},i)}};W(jie,`contextType`,Ag);function l_(e){var t;let{name:n}=e,r=q(e,Aie),i=J.useContext(Ag),a=J.useContext(jg),o=n===void 0?void 0:t_(n),s=(t=r.isListField)==null?!!a:t,c=`keep`;return s||(c=`_${(o||[]).join(`_`)}`),J.createElement(jie,a_({key:c,name:o,isListField:s},r,{fieldContext:i}))}K();function Mie({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=J.useContext(Ag),s=J.useContext(jg),c=J.useRef({keys:[],id:0}).current,l=J.useMemo(()=>[...t_(o.prefixName)||[],...t_(e)],[o.prefixName,e]),u=J.useMemo(()=>G(G({},o),{},{prefixName:l}),[o,l]),d=J.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?J.createElement(jg.Provider,{value:d},J.createElement(Ag.Provider,{value:u},J.createElement(l_,{name:[],shouldUpdate:(e,t,{source:n})=>n!==`internal`&&e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a==null?!!s:a},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=Eie(c.keys,e,n),t(Eie(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(_a(!1,`Form.List only accepts function as children.`),null)}function Nie(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}ge();var u_=`__@field_split__`;function d_(e){return e.map(e=>`${typeof e}:${e}`).join(u_)}var f_=class{constructor(){W(this,`kvs`,new Map)}set(e,t){this.kvs.set(d_(e),t)}get(e){return this.kvs.get(d_(e))}getAsPrefix(e){let t=d_(e),n=t+u_,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(d_(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(u_).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}};ge(),K();var Pie=[`name`],Fie=class{constructor(e){W(this,`formHooked`,!1),W(this,`forceRootUpdate`,void 0),W(this,`subscribable`,!0),W(this,`store`,{}),W(this,`fieldEntities`,[]),W(this,`initialValues`,{}),W(this,`callbacks`,{}),W(this,`validateMessages`,null),W(this,`preserve`,null),W(this,`lastValidatePromise`,null),W(this,`watcherCenter`,new Oie(this)),W(this,`getForm`,()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks})),W(this,`getInternalHooks`,e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(_a(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)),W(this,`useSubscribe`,e=>{this.subscribable=e}),W(this,`prevWithoutPreserves`,null),W(this,`setInitialValues`,(e,t)=>{if(this.initialValues=e||{},t){var n;let t=Ga(e,this.store);(n=this.prevWithoutPreserves)==null||n.map(({key:n})=>{t=Ba(t,n,Ra(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}}),W(this,`destroyForm`,e=>{if(e)this.updateStore({});else{let e=new f_;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}}),W(this,`getInitialValue`,e=>{let t=Ra(this.initialValues,e);return e.length?Ga(t):t}),W(this,`setCallbacks`,e=>{this.callbacks=e}),W(this,`setValidateMessages`,e=>{this.validateMessages=e}),W(this,`setPreserve`,e=>{this.preserve=e}),W(this,`registerWatch`,e=>this.watcherCenter.register(e)),W(this,`notifyWatch`,(e=[])=>{this.watcherCenter.notify(e)}),W(this,`timeoutId`,null),W(this,`warningUnhooked`,()=>{}),W(this,`updateStore`,e=>{this.store=e}),W(this,`getFieldEntities`,(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities),W(this,`getFieldsMap`,(e=!1)=>{let t=new f_;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t}),W(this,`getFieldEntitiesForNamePathList`,(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=t_(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=t_(e);return n.get(t)||{INVALIDATE_NAME_PATH:t_(e)}})}),W(this,`getFieldsValue`,(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{var t;let n=e.INVALIDATE_NAME_PATH||e.getNamePath();if((t=e.isList)!=null&&t.call(e)){o.push(n);return}if(!r)a.push(n);else{let t=`getMeta`in e?e.getMeta():null;r(t)&&a.push(n)}});let s=Cie(this.store,a.map(t_));return o.forEach(e=>{Ra(s,e)||(s=Ba(s,e,[]))}),s}),W(this,`getFieldValue`,e=>{this.warningUnhooked();let t=t_(e);return Ra(this.store,t)}),W(this,`getFieldsError`,e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:t_(e[n]),errors:[],warnings:[]}))),W(this,`getFieldError`,e=>{this.warningUnhooked();let t=t_(e);return this.getFieldsError([t])[0].errors}),W(this,`getFieldWarning`,e=>{this.warningUnhooked();let t=t_(e);return this.getFieldsError([t])[0].warnings}),W(this,`isFieldsTouched`,(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(t_),i=!1):(r=null,i=t):(r=t.map(t_),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new f_;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)}),W(this,`isFieldTouched`,e=>(this.warningUnhooked(),this.isFieldsTouched([e]))),W(this,`isFieldsValidating`,e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(t_);return t.some(e=>{let t=e.getNamePath();return n_(n,t)&&e.isFieldValidating()})}),W(this,`isFieldValidating`,e=>(this.warningUnhooked(),this.isFieldsValidating([e]))),W(this,`resetWithFieldInitialValue`,(e={})=>{let t=new f_,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)_a(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)_a(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(Ba(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)}),W(this,`resetFields`,e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(Ga(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(t_);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(Ba(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)}),W(this,`setFields`,e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r}=e,i=q(e,Pie),a=t_(r);n.push(a),`value`in i&&this.updateStore(Ba(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)}),W(this,`getFields`,()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n=G(G({},e.getMeta()),{},{name:t,value:this.getFieldValue(t)});return Object.defineProperty(n,"originRCField",{value:!0}),n})),W(this,`initEntityValue`,e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();Ra(this.store,n)===void 0&&this.updateStore(Ba(this.store,n,t))}}),W(this,`isMergedPreserve`,e=>{let t=e===void 0?this.preserve:e;return t==null||t}),W(this,`registerField`,e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!r_(e.getNamePath(),t))){let n=this.store;this.updateStore(Ba(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}}),W(this,`dispatch`,e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}}),W(this,`notifyObservers`,(e,t,n)=>{if(this.subscribable){let r=G(G({},n),{},{store:this.getFieldsValue(!0)});this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()}),W(this,`triggerDependenciesUpdate`,(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n}),W(this,`updateValue`,(e,t)=>{let n=t_(e),r=this.store;this.updateStore(Ba(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Cie(this.store,[n]);a(e,Ba(this.getFieldsValue(),n,Ra(e,n)))}this.triggerOnFieldsChange([n,...i])}),W(this,`setFieldsValue`,e=>{this.warningUnhooked();let t=this.store;if(e){let t=Ga(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()}),W(this,`setFieldValue`,(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])}),W(this,`getDependencyChildrenFields`,e=>{let t=new Set,n=[],r=new f_;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=t_(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n}),W(this,`triggerOnFieldsChange`,(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new f_;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>n_(e,t));i.length&&n(i,r)}}),W(this,`validateFields`,(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(t_):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>r_(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||n_(a,t,u))){let n=e.validateRules(G({validateMessages:G(G({},gie),this.validateMessages)},r));s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{var n;let r=[],i=[];return(n=e.forEach)==null||n.call(e,({rule:{warningOnly:e},errors:t})=>{e?i.push(...t):r.push(...t)}),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}}))}});let f=Nie(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{var t;let n=e.filter(e=>e&&e.errors.length),r=(t=n[0])==null||(t=t.errors)==null?void 0:t[0];return Promise.reject({message:r,values:this.getFieldsValue(a),errorFields:n,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p}),W(this,`submit`,()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}),this.forceRootUpdate=e}};function p_(e){let t=J.useRef(null),[,n]=J.useState({});return t.current||(e?t.current=e:t.current=new Fie(()=>{n({})}).getForm()),[t.current]}K();var m_=J.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Iie=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=J.useContext(m_),a=J.useRef({});return J.createElement(m_.Provider,{value:G(G({},i),{},{validateMessages:G(G({},i.validateMessages),e),triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current=G(G({},a.current),{},{[e]:t})),i.registerForm(e,t)},unregisterForm:e=>{let t=G({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},r)};K();var Lie=[`name`,`initialValues`,`fields`,`form`,`preserve`,`children`,`component`,`validateMessages`,`validateTrigger`,`onValuesChange`,`onFieldsChange`,`onFinish`,`onFinishFailed`,`clearOnDestroy`];function h_(){return h_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{name:n,initialValues:r,fields:i,form:a,preserve:o,children:s,component:c=`form`,validateMessages:l,validateTrigger:u=`onChange`,onValuesChange:d,onFieldsChange:f,onFinish:p,onFinishFailed:m,clearOnDestroy:h}=e,g=q(e,Lie),_=J.useRef(null),v=J.useContext(m_),[y]=p_(a),{useSubscribe:b,setInitialValues:x,setCallbacks:S,setValidateMessages:C,setPreserve:w,destroyForm:T}=y.getInternalHooks(Og);J.useImperativeHandle(t,()=>G(G({},y),{},{nativeElement:_.current})),J.useEffect(()=>(v.registerForm(n,y),()=>{v.unregisterForm(n)}),[v,y,n]),C(G(G({},v.validateMessages),l)),S({onValuesChange:d,onFieldsChange:(e,...t)=>{v.triggerFormChange(n,e),f&&f(e,...t)},onFinish:e=>{v.triggerFormFinish(n,e),p&&p(e)},onFinishFailed:m}),w(o);let E=J.useRef(null);x(r,!E.current),E.current||(E.current=!0),J.useEffect(()=>()=>T(h),[]);let D,O=typeof s==`function`;D=O?s(y.getFieldsValue(!0),y):s,b(!O);let k=J.useRef(null);J.useEffect(()=>{wie(k.current||[],i||[])||y.setFields(i||[]),k.current=i},[i,y]);let A=J.useMemo(()=>G(G({},y),{},{validateTrigger:u}),[y,u]),j=J.createElement(jg.Provider,{value:null},J.createElement(Ag.Provider,{value:A},D));return c===!1?j:J.createElement(c,h_({},g,{ref:_,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{var t;e.preventDefault(),y.resetFields(),(t=g.onReset)==null||t.call(g,e)}}),j)};function g_(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}function zie(...e){let[t,n={}]=e,r=Vre(n)?{form:n}:n,i=r.form,[a,o]=(0,J.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,J.useMemo)(()=>g_(a),[a]),c=(0,J.useRef)(s);c.current=s;let l=(0,J.useContext)(Ag),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(Og),h=qr((e,n)=>{let i=r.preserve?n==null?f(!0):n:e==null?f():e,s=typeof t==`function`?t(i):Ra(i,t_(t));g_(a)!==g_(s)&&o(s)});return(0,J.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,J.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var __=J.forwardRef(Rie);__.FormProvider=Iie,__.Field=l_,__.List=Mie,__.useForm=p_,__.useWatch=zie,K();var v_=J.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),Bie=J.createContext(null),Vie=e=>{let t=Ca(e,[`prefixCls`]);return J.createElement(Iie,G({},t))},y_=J.createContext({prefixCls:``}),b_=J.createContext({}),Hie=({children:e,status:t,override:n})=>{let r=J.useContext(b_),i=J.useMemo(()=>{let e=G({},r);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return J.createElement(b_.Provider,{value:i},e)},Uie=J.createContext(void 0),x_=e=>{let{space:t,form:n,children:r}=e;if(!op(r))return null;let i=r;return n&&(i=J.createElement(Hie,{override:!0,status:!0},i)),t&&(i=J.createElement(yne,null,i)),i},Wie=()=>Jr()&&window.document.documentElement;K();function Gie(e,t,n){return(0,J.useMemo)(()=>G(G({},{trap:t==null||t,focusTriggerAfterClose:n==null||n}),e),[e,t,n])}K();var S_=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Z({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=Z({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=J.useMemo(()=>sp(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return J.createElement(`span`,{className:Z(t,o,s,n),style:G(G({},c),r)})};K();var Kie=new Vc(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),C_=e=>({height:e,lineHeight:Q(e)}),w_=e=>G({width:e},C_(e)),qie=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:Kie,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),T_=(e,t)=>G({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},C_(e)),Jie=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:G({display:`inline-block`,verticalAlign:`top`,background:n},w_(r)),[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:G({},w_(i)),[`${t}${t}-sm`]:G({},w_(a))}},Yie=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:G({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n},T_(t,s)),[`${r}-lg`]:G({},T_(i,s)),[`${r}-sm`]:G({},T_(a,s))}},Xie=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return G({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n},w_(i(r).mul(2).equal()))},Zie=e=>({[e.skeletonNodeCls]:G({},Xie(e))}),Qie=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:G(G({},Xie(e)),{},{[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:G(G({},w_(n)),{},{maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}}),[`${t}${t}-circle`]:{borderRadius:`50%`}}},E_=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},D_=(e,t)=>G({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},C_(e)),$ie=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return G(G(G({[n]:G({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},D_(r,s))},E_(e,r,n)),{},{[`${n}-lg`]:G({},D_(i,s))},E_(e,i,`${n}-lg`)),{},{[`${n}-sm`]:G({},D_(a,s))},E_(e,a,`${n}-sm`))},eae=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:G({display:`inline-block`,verticalAlign:`top`,background:f},w_(l)),[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:G({},w_(u)),[`${n}-sm`]:G({},w_(d))},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:G(G(G(G(G({display:`inline-block`,width:`auto`},$ie(e)),Jie(e)),Yie(e)),Zie(e)),Qie(e)),[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[` ${r}, ${i} > li, ${n}, - ${o}, ${a}, + ${o}, ${s}, - ${l} - `]:I({},uke(e))}}},xE=Br("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=dr(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return gke(r)},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),mke=e=>{const y=e,{prefixCls:t,className:n,classNames:r,rootClassName:i,active:o,style:a,styles:s,shape:l="circle",size:c}=y,u=Ze(y,["prefixCls","className","classNames","rootClassName","active","style","styles","shape","size"]),{getPrefixCls:f}=g.useContext(Un),d=f("skeleton",t),[A,h]=xE(d),p=aa(b=>c!=null?c:b),v=Ae(d,`${d}-element`,{[`${d}-active`]:o},r==null?void 0:r.root,n,i,A,h);return g.createElement("div",{className:v,style:s==null?void 0:s.root},g.createElement(kM,I({prefixCls:`${d}-avatar`,className:r==null?void 0:r.content,style:I(I({},s==null?void 0:s.content),a),shape:l,size:p},u)))},vke=e=>{const y=e,{prefixCls:t,className:n,rootClassName:r,classNames:i,active:o,style:a,styles:s,block:l=!1,size:c}=y,u=Ze(y,["prefixCls","className","rootClassName","classNames","active","style","styles","block","size"]),{getPrefixCls:f}=g.useContext(Un),d=f("skeleton",t),[A,h]=xE(d),p=aa(b=>c!=null?c:b),v=Ae(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:l},i==null?void 0:i.root,n,r,A,h);return g.createElement("div",{className:v,style:s==null?void 0:s.root},g.createElement(kM,I({prefixCls:`${d}-button`,className:i==null?void 0:i.content,style:I(I({},s==null?void 0:s.content),a),size:p},u)))},die=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:o,style:a,styles:s,active:l,children:c}=e,{getPrefixCls:u}=g.useContext(Un),f=u("skeleton",t),[d,A]=xE(f),h=Ae(f,`${f}-element`,{[`${f}-active`]:l},d,r==null?void 0:r.root,n,i,A);return g.createElement("div",{className:h,style:s==null?void 0:s.root},g.createElement("div",{className:Ae(r==null?void 0:r.content,o||`${f}-node`),style:I(I({},s==null?void 0:s.content),a)},c))},yke=e=>{const{getPrefixCls:t}=g.useContext(Un),n=t("skeleton",e.prefixCls);return g.createElement(die,te(I({},e),{internalClassName:`${n}-image`}),g.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},g.createElement("title",null,"Image placeholder"),g.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},bke=e=>{const y=e,{prefixCls:t,className:n,classNames:r,rootClassName:i,active:o,block:a,style:s,styles:l,size:c}=y,u=Ze(y,["prefixCls","className","classNames","rootClassName","active","block","style","styles","size"]),{getPrefixCls:f}=g.useContext(Un),d=f("skeleton",t),[A,h]=xE(d),p=aa(b=>c!=null?c:b),v=Ae(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:a},r==null?void 0:r.root,n,i,A,h);return g.createElement("div",{className:v,style:l==null?void 0:l.root},g.createElement(kM,I({prefixCls:`${d}-input`,className:r==null?void 0:r.content,style:I(I({},l==null?void 0:l.content),s),size:p},u)))},xke=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},wke=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,o=Array.from({length:i}).map((a,s)=>g.createElement("li",{key:s,style:{width:xke(s,e)}}));return g.createElement("ul",{className:Ae(t,n),style:r},o)},Cke=({prefixCls:e,className:t,width:n,style:r})=>g.createElement("h3",{className:Ae(e,t),style:I({width:n},r)});function rH(e){return Zn(e)?e:{}}function Ske(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Eke(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Bke(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Qg=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:o,style:a,styles:s,children:l,avatar:c=!1,title:u=!0,paragraph:f=!0,active:d,round:A}=e,{getPrefixCls:h,direction:p,className:v,style:y,classNames:b,styles:x}=or("skeleton"),C=h("skeleton",t),[S,B]=xE(C),E=te(I({},e),{avatar:c,title:u,paragraph:f}),_=Ar(y),M=Ar(a),[R,T]=vr([b,o],[x,_,s,M],{props:E});if(n||!("loading"in e)){const L=!!c,P=!!u,k=!!f;let H;if(L){const j=te(I(I({className:R.avatar,prefixCls:`${C}-avatar`},Ske(P,k)),rH(c)),{style:T.avatar});H=g.createElement("div",{className:Ae(R.header,`${C}-header`),style:T.header},g.createElement(kM,I({},j)))}let D;if(P||k){let j;if(P){const K=te(I(I({className:R.title,prefixCls:`${C}-title`},Eke(L,k)),rH(u)),{style:T.title});j=g.createElement(Cke,I({},K))}let Q;if(k){const K=te(I(I({className:R.paragraph,prefixCls:`${C}-paragraph`},Bke(L,P)),rH(f)),{style:T.paragraph});Q=g.createElement(wke,I({},K))}D=g.createElement("div",{className:Ae(R.section,`${C}-section`),style:T.section},j,Q)}const U=Ae(C,{[`${C}-with-avatar`]:L,[`${C}-active`]:d,[`${C}-rtl`]:p==="rtl",[`${C}-round`]:A},R.root,v,r,i,S,B);return g.createElement("div",{className:U,style:T.root},H,D)}return l!=null?l:null};Qg.Button=vke,Qg.Avatar=mke,Qg.Input=bke,Qg.Image=yke,Qg.Node=die;function Aie(){}const Oke=g.createContext({add:Aie,remove:Aie});function $ke(e){const t=g.useContext(Oke),n=g.useRef(null);return yn(i=>{if(i){const o=e?i.querySelector(e):i;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}const hie=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=g.useContext(pE);return Be.createElement(qn,I({onClick:n},e),t)},pie=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=g.useContext(pE);return Be.createElement(qn,I(te(I({},C8(n)),{loading:e,onClick:i}),t),r)};function gie(e,t){return Be.createElement("span",{className:`${e}-close-x`},t||Be.createElement(Dg,{className:`${e}-close-icon`}))}const mie=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=zs("Modal",bne()),f=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),A=Be.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:o,onCancel:a}),[i,s,l,f,d,n,o,a]);let h;return Rn(c)||typeof c=="undefined"?(h=Be.createElement(Be.Fragment,null,Be.createElement(hie,null),Be.createElement(pie,null)),Rn(c)&&(h=c(h,{OkBtn:pie,CancelBtn:hie})),h=Be.createElement(Hre,{value:A},h)):h=c,Be.createElement(o8,{disabled:!1},h)},_ke=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Tke=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Mke=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:i}=e,[o,a]=go(i,"grid"),[,s]=go(i,"col"),l={};for(let c=r;c>=0;c--)c===0?(l[`${n}${t}-${c}`]={display:"none"},l[`${n}-push-${c}`]={insetInlineStart:"auto"},l[`${n}-pull-${c}`]={insetInlineEnd:"auto"},l[`${n}${t}-push-${c}`]={insetInlineStart:"auto"},l[`${n}${t}-pull-${c}`]={insetInlineEnd:"auto"},l[`${n}${t}-offset-${c}`]={marginInlineStart:0},l[`${n}${t}-order-${c}`]={order:0}):(l[`${n}${t}-${c}`]=[{[o("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${c/r*100}%`,maxWidth:`${c/r*100}%`}],l[`${n}${t}-push-${c}`]={insetInlineStart:`${c/r*100}%`},l[`${n}${t}-pull-${c}`]={insetInlineEnd:`${c/r*100}%`},l[`${n}${t}-offset-${c}`]={marginInlineStart:`${c/r*100}%`},l[`${n}${t}-order-${c}`]={order:c});return l[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,"")}-flex`)},l},iH=(e,t)=>Mke(e,t),Ike=(e,t,n)=>({[`@media (min-width: ${be(t)})`]:I({},iH(e,n))}),Rke=()=>({}),Nke=()=>({}),Pke=Br("Grid",_ke,Rke),vie=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Lke=Br("Grid",e=>{const t=dr(e,{gridColumns:24}),n=vie(t);return delete n.xs,[Tke(t),iH(t,""),iH(t,"-xs"),Object.keys(n).map(r=>Ike(t,n[r],`-${r}`)).reduce((r,i)=>I(I({},r),i),{})]},Nke);function yie(e){return{position:e,inset:0}}const Fke=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:te(I({},yie("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:te(I({},yie("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:O8(e)}]},kke=e=>{const{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${be(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:te(I({},zr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${be(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":I({borderRadius:e.borderRadiusLG},sc(e)),[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:I({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:be(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},lc(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${be(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container, + ${c} + `]:G({},qie(e))}}},O_=dd(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return eae(bl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]});K();var tae=[`prefixCls`,`className`,`classNames`,`rootClassName`,`active`,`style`,`styles`,`shape`,`size`],nae=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l}=e,u=q(e,tae),{getPrefixCls:d}=J.useContext(Eo),f=d(`skeleton`,t),[p,m]=O_(f),h=vh(e=>l==null?e:l),g=Z(f,`${f}-element`,{[`${f}-active`]:a},r==null?void 0:r.root,n,i,p,m);return J.createElement(`div`,{className:g,style:s==null?void 0:s.root},J.createElement(S_,G({prefixCls:`${f}-avatar`,className:r==null?void 0:r.content,style:G(G({},s==null?void 0:s.content),o),shape:c,size:h},u)))};K();var rae=[`prefixCls`,`className`,`rootClassName`,`classNames`,`active`,`style`,`styles`,`block`,`size`],iae=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l}=e,u=q(e,rae),{getPrefixCls:d}=J.useContext(Eo),f=d(`skeleton`,t),[p,m]=O_(f),h=vh(e=>l==null?e:l),g=Z(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i==null?void 0:i.root,n,r,p,m);return J.createElement(`div`,{className:g,style:s==null?void 0:s.root},J.createElement(S_,G({prefixCls:`${f}-button`,className:i==null?void 0:i.content,style:G(G({},s==null?void 0:s.content),o),size:h},u)))};K();var aae=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=J.useContext(Eo),d=u(`skeleton`,t),[f,p]=O_(d),m=Z(d,`${d}-element`,{[`${d}-active`]:c},f,r==null?void 0:r.root,n,i,p);return J.createElement(`div`,{className:m,style:s==null?void 0:s.root},J.createElement(`div`,{className:Z(r==null?void 0:r.content,a||`${d}-node`),style:G(G({},s==null?void 0:s.content),o)},l))};K();var oae=e=>{let{getPrefixCls:t}=J.useContext(Eo),n=t(`skeleton`,e.prefixCls);return J.createElement(aae,G(G({},e),{},{internalClassName:`${n}-image`}),J.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},J.createElement(`title`,null,`Image placeholder`),J.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))};K();var sae=[`prefixCls`,`className`,`classNames`,`rootClassName`,`active`,`block`,`style`,`styles`,`size`],cae=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l}=e,u=q(e,sae),{getPrefixCls:d}=J.useContext(Eo),f=d(`skeleton`,t),[p,m]=O_(f),h=vh(e=>l==null?e:l),g=Z(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r==null?void 0:r.root,n,i,p,m);return J.createElement(`div`,{className:g,style:c==null?void 0:c.root},J.createElement(S_,G({prefixCls:`${f}-input`,className:r==null?void 0:r.content,style:G(G({},c==null?void 0:c.content),s),size:h},u)))},lae=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},uae=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>J.createElement(`li`,{key:n,style:{width:lae(n,e)}}));return J.createElement(`ul`,{className:Z(t,n),style:r},a)};K();var dae=({prefixCls:e,className:t,width:n,style:r})=>J.createElement(`h3`,{className:Z(e,t),style:G({width:n},r)});K();function k_(e){return lp(e)?e:{}}function fae(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function pae(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function mae(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var A_=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:v,styles:y}=ko(`skeleton`),b=m(`skeleton`,t),[x,S]=O_(b),C=G(G({},e),{},{avatar:l,title:u,paragraph:d}),w=yp(_),T=yp(o),[E,D]=xp([v,a],[y,w,s,T],{props:C});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e=G(G(G({className:E.avatar,prefixCls:`${b}-avatar`},fae(t,n)),k_(l)),{},{style:D.avatar});a=J.createElement(`div`,{className:Z(E.header,`${b}-header`),style:D.header},J.createElement(S_,G({},e)))}let o;if(t||n){let r;if(t){let t=G(G(G({className:E.title,prefixCls:`${b}-title`},pae(e,n)),k_(u)),{},{style:D.title});r=J.createElement(dae,G({},t))}let i;if(n){let n=G(G(G({className:E.paragraph,prefixCls:`${b}-paragraph`},mae(e,t)),k_(d)),{},{style:D.paragraph});i=J.createElement(uae,G({},n))}o=J.createElement(`div`,{className:Z(E.section,`${b}-section`),style:D.section},r,i)}let s=Z(b,{[`${b}-with-avatar`]:e,[`${b}-active`]:f,[`${b}-rtl`]:h===`rtl`,[`${b}-round`]:p},E.root,g,r,i,x,S);return J.createElement(`div`,{className:s,style:D.root},a,o)}return c==null?null:c};A_.Button=iae,A_.Avatar=nae,A_.Input=cae,A_.Image=oae,A_.Node=aae;var j_=A_;function hae(){}var gae=J.createContext({add:hae,remove:hae});function _ae(e){let t=J.useContext(gae),n=J.useRef(null);return qr(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}K();var vae=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,J.useContext)(hg);return J.createElement(pg,G({onClick:n},e),t)};K();var yae=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,J.useContext)(hg);return J.createElement(pg,G(G({},Th(n)),{},{loading:e,onClick:i},t),r)};function bae(e,t){return J.createElement(`span`,{className:`${e}-close-x`},t||J.createElement(rf,{className:`${e}-close-icon`}))}var xae=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=Hp(`Modal`,eee()),d=t||(u==null?void 0:u.okText),f=r||(u==null?void 0:u.cancelText),p=J.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return up(l)||l===void 0?(m=J.createElement(J.Fragment,null,J.createElement(vae,null),J.createElement(yae,null)),up(l)&&(m=l(m,{OkBtn:yae,CancelBtn:vae})),m=J.createElement(gg,{value:p},m)):m=l,J.createElement(_m,{disabled:!1},m)};K();var Sae=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around":{justifyContent:`space-around`},"&-space-evenly":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},Cae=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},wae=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=md(i,`grid`),[,s]=md(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},M_=(e,t)=>wae(e,t),Tae=(e,t,n)=>({[`@media (min-width: ${Q(t)})`]:G({},M_(e,n))}),Eae=()=>({}),Dae=()=>({}),Oae=dd(`Grid`,Sae,Eae),kae=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Aae=dd(`Grid`,e=>{let t=bl(e,{gridColumns:24}),n=kae(t);return delete n.xs,[Cae(t),M_(t,``),M_(t,`-xs`),Object.keys(n).map(e=>Tae(t,n[e],`-${e}`)).reduce((e,t)=>G(G({},e),t),{})]},Dae);K();function jae(e){return{position:e,inset:0}}var Mae=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:`none`,opacity:0,animationDuration:e.motionDurationSlow,userSelect:`none`},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:`none`},[`${t}-mask`]:G(G({},jae(`fixed`)),{},{zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}}),[`${t}-wrap`]:G(G({},jae(`fixed`)),{},{zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`})}},{[`${t}-root`]:Ph(e)}]},Nae=e=>{let{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`},[`${t}-centered`]:{textAlign:`center`,"&::before":{display:`inline-block`,width:0,height:`100%`,verticalAlign:`middle`,content:`""`},[t]:{top:0,display:`inline-block`,paddingBottom:0,textAlign:`start`,verticalAlign:`middle`}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:`calc(100vw - 16px)`,margin:`${Q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:G(G({},td(e)),{},{pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${Q(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":G({borderRadius:e.borderRadiusLG},ad(e)),[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:G({position:`absolute`,top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:`none`,background:`transparent`,borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:`pointer`,transition:[`color`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:Q(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive}},od(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:`break-word`,padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,margin:`${Q(e.margin)} auto`}},[`${t}-footer`]:{textAlign:`end`,background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:`hidden`}})},{[`${t}-pure-panel`]:{top:`auto`,padding:0,display:`flex`,flexDirection:`column`,[`${t}-container, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Dke=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Hke=e=>{const{componentCls:t}=e,n=vie(e),r=I({},n);delete r.xs;const i=`--${t.replace(".","")}-`,o=Object.keys(r).map(a=>({[`@media (min-width: ${be(r[a])})`]:{width:`var(${i}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(en(Object.keys(n).map((a,s)=>{const l=Object.keys(n)[s-1];return l?{[`${i}${a}-width`]:`var(${i}${l}-width)`}:null})),[{width:`var(${i}xs-width)`}],en(o))}}},bie=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return dr(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},xie=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${be(e.padding)} ${be(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${be(e.paddingXS)} ${be(e.padding)}`:0,footerBorderTop:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${be(e.padding*2)} ${be(e.padding*2)} ${be(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),wie=Br("Modal",e=>{const t=bie(e);return[kke(t),Dke(t),Fke(t),AE(t,"zoom"),Hke(t)]},xie,{unitless:{titleLineHeight:!0}});let oH;const Uke=e=>{oH={x:e.pageX,y:e.pageY},setTimeout(()=>{oH=null},100)};ske()&&document.documentElement.addEventListener("click",Uke,!0);const Cie=e=>{const Jt=e,{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:o,centered:a,getContainer:s,style:l,width:c=520,footer:u,classNames:f,styles:d,children:A,loading:h,confirmLoading:p,zIndex:v,mousePosition:y,onOk:b,onCancel:x,okButtonProps:C,cancelButtonProps:S,destroyOnHidden:B,destroyOnClose:E,panelRef:_=null,closable:M,mask:R,modalRender:T,maskClosable:L,scrollLock:P,focusTriggerAfterClose:k,focusable:H}=Jt,D=Ze(Jt,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","style","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","okButtonProps","cancelButtonProps","destroyOnHidden","destroyOnClose","panelRef","closable","mask","modalRender","maskClosable","scrollLock","focusTriggerAfterClose","focusable"]),{getPopupContainer:U,getPrefixCls:j,direction:Q,className:K,style:z,classNames:V,styles:Y,centered:Z,cancelButtonProps:W,okButtonProps:J,mask:ee,focusable:ne}=or("modal"),{modal:re}=g.useContext(Un),[ue,de]=g.useMemo(()=>typeof M=="boolean"?[void 0,void 0]:[M==null?void 0:M.afterClose,M==null?void 0:M.onClose],[M]),se=j("modal",t),ce=j(),[ge,ie,le]=ore(R,ee,se,L),ve=lke(I(I({},ne),H),ge,k),we=Ot=>{p||(x==null||x(Ot),de==null||de())},me=Ot=>{b==null||b(Ot),de==null||de()},Ee=So(se),[Ce,pe]=wie(se,Ee),Oe=Ae(o,{[`${se}-centered`]:a!=null?a:Z,[`${se}-wrap-rtl`]:Q==="rtl"}),xe=u!==null&&!h?g.createElement(mie,te(I({},e),{okButtonProps:I(I({},J),C),onOk:me,cancelButtonProps:I(I({},W),S),onCancel:we})):null,[Me,Se,Pe,Le]=ire(BM(e),BM(re),{closable:!0,closeIcon:g.createElement(Dg,{className:`${se}-close-icon`}),closeIconRender:Ot=>gie(se,Ot)}),He=Me?I({disabled:Pe,closeIcon:Se,afterClose:ue},Le):!1,Ne=T?Ot=>g.createElement("div",{className:`${se}-render`},T(Ot)):void 0,at=`.${se}-${T?"render":"container"}`,Ue=$ke(at),et=il(_,Ue),[We,Je]=jg("Modal",v),dt=te(I({},e),{width:c,panelRef:_,focusTriggerAfterClose:ve.focusTriggerAfterClose,focusable:ve,mask:ge,maskClosable:le,zIndex:We}),[wt,Bt]=vr([V,f,ie],[Y,d],{props:dt}),[qt,jt]=g.useMemo(()=>Zn(c)?[void 0,c]:[c,void 0],[c]),nn=g.useMemo(()=>{const Ot={};return jt&&Object.keys(jt).forEach(sn=>{const Vt=jt[sn];oa(Vt)&&(Ot[`--${se}-${sn}-width`]=mo(Vt)?`${Vt}px`:Vt)}),Ot},[se,jt]);return g.createElement(Zh,{form:!0,space:!0},g.createElement(OM.Provider,{value:Je},g.createElement(b5e,te(I({width:qt},D),{zIndex:We,getContainer:s===void 0?U:s,prefixCls:se,rootClassName:Ae(Ce,r,pe,Ee,wt.root),rootStyle:Bt.root,footer:xe,visible:i,mousePosition:y!=null?y:oH,onClose:we,closable:He,closeIcon:Se,transitionName:Yh(ce,"zoom",e.transitionName),maskTransitionName:Yh(ce,"fade",e.maskTransitionName),mask:ge,maskClosable:le,scrollLock:P,className:Ae(Ce,n,K),style:I(I(I({},z),l),nn),classNames:te(I({},wt),{wrapper:Ae(wt.wrapper,Oe)}),styles:Bt,panelRef:et,destroyOnHidden:B!=null?B:E,modalRender:Ne,focusTriggerAfterClose:ve.focusTriggerAfterClose,focusTrap:ve.trap}),h?g.createElement(Qg,{active:!0,title:!1,paragraph:{rows:4},className:`${se}-body-skeleton`}):A)))},jke=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:I({},fA()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${be(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${be(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},zke=kg(["Modal","confirm"],e=>{const t=bie(e);return jke(t)},xie,{order:-1e3}),Sie=e=>{const H=e,{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c,autoFocusButton:u,focusable:f}=H,d=Ze(H,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale","autoFocusButton","focusable"]),{infoIcon:A,successIcon:h,errorIcon:p,warningIcon:v}=or("modal");let y=n;if(n===void 0)switch(a){case"info":y=du(A,g.createElement(Xte,null));break;case"success":y=du(h,g.createElement(eE,null));break;case"error":y=du(p,g.createElement(hv,null));break;default:y=du(v,g.createElement(Sb,null))}const b=s!=null?s:a==="confirm",x=g.useMemo(()=>{const D=(f==null?void 0:f.autoFocusButton)||u;return D||D===null?D:"ok"},[u,f==null?void 0:f.autoFocusButton]),[C]=zs("Modal"),S=c||C,B=r||(b?S==null?void 0:S.okText:S==null?void 0:S.justOkText),E=i||(S==null?void 0:S.cancelText),{closable:_}=d,{onClose:M}=Zn(_)?_:{},R=g.useMemo(()=>I({autoFocusButton:x,cancelTextLocale:E,okTextLocale:B,mergedOkCancel:b,onClose:M},d),[x,E,B,b,M,d]),T=g.createElement(g.Fragment,null,g.createElement(Ure,null),g.createElement(jre,null)),L=qi(e.title),P=qi(y),k=`${o}-body`;return g.createElement("div",{className:`${o}-body-wrapper`},g.createElement("div",{className:Ae(k,{[`${k}-has-title`]:L,[`${k}-no-icon`]:!P})},y,g.createElement("div",{className:`${o}-paragraph`},L&&g.createElement("span",{className:`${o}-title`},e.title),g.createElement("div",{className:`${o}-content`},e.content))),l===void 0||Rn(l)?g.createElement(Hre,{value:R},g.createElement("div",{className:`${o}-btns`},Rn(l)?l(T,{OkBtn:jre,CancelBtn:Ure}):T)):l,g.createElement(zke,{prefixCls:t}))},Qke=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f,title:d,mask:A,maskClosable:h,okButtonProps:p,cancelButtonProps:v}=e,{cancelButtonProps:y,okButtonProps:b}=or("modal"),x=`${o}-confirm`,C=e.width||416,S=e.style||{},B=Ae(x,`${x}-${e.type}`,{[`${x}-rtl`]:i==="rtl"},e.className),E=g.useMemo(()=>{var T;const R=u8(A,h);return(T=R.closable)!=null||(R.closable=!1),R},[A,h]),[,_]=al(),M=g.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+d8,[n,_]);return g.createElement(Cie,te(I({},e),{className:B,wrapClassName:Ae({[`${x}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:d,footer:null,transitionName:Yh(s||"","zoom",e.transitionName),maskTransitionName:Yh(s||"","fade",e.maskTransitionName),mask:E,style:S,styles:I({body:l,mask:r},f),width:C,zIndex:M,closable:c}),g.createElement(Sie,te(I({},e),{confirmPrefixCls:x,okButtonProps:I(I({},b),p),cancelButtonProps:I(I({},y),v)})))},Eie=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return g.createElement(kc,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},g.createElement(Qke,I({},e)))},wv=[];let Bie="";function Oie(){return Bie}const Vke=e=>{var c,u;const{prefixCls:t,getContainer:n,direction:r}=e,i=bne(),o=g.useContext(Un),a=Oie()||o.getPrefixCls(),s=t||`${a}-modal`;let l=n;return l===!1&&(l=void 0),Be.createElement(Eie,te(I({},e),{rootPrefixCls:a,prefixCls:s,iconPrefixCls:o.iconPrefixCls,theme:o.theme,direction:r!=null?r:o.direction,locale:(u=(c=o.locale)==null?void 0:c.Modal)!=null?u:i,getContainer:l}))};function wE(e){const t=Wne(),n=document.createDocumentFragment();let r=te(I({},e),{close:s,open:!0}),i;function o(...c){var f;c.some(d=>d==null?void 0:d.triggerCancel)&&((f=e.onCancel)==null||f.call(e,()=>{},...c.slice(1)));for(let d=0;d{})}const a=c=>{clearTimeout(i),i=setTimeout(()=>{const u=t.getPrefixCls(void 0,Oie()),f=t.getIconPrefixCls(),d=t.getTheme(),A=Be.createElement(Vke,I({},c));j6(Be.createElement(kc,{prefixCls:u,iconPrefixCls:f,theme:d},Rn(t.holderRender)?t.holderRender(A):A),n)})};function s(...c){r=te(I({},r),{open:!1,afterClose:()=>{Rn(e.afterClose)&&e.afterClose(),o.apply(this,c)}}),a(r)}function l(c){Rn(c)?r=c(r):r=I(I({},r),c),a(r)}return a(r),wv.push(s),{destroy:s,update:l}}function $ie(e){return te(I({},e),{type:"warning"})}function _ie(e){return te(I({},e),{type:"info"})}function Tie(e){return te(I({},e),{type:"success"})}function Mie(e){return te(I({},e),{type:"error"})}function Iie(e){return te(I({},e),{type:"confirm"})}function Kke({rootPrefixCls:e}){Bie=e}const Wke=g.forwardRef((e,t)=>{var b;const y=e,{afterClose:n,config:r}=y,i=Ze(y,["afterClose","config"]),[o,a]=g.useState(!0),[s,l]=g.useState(r),{direction:c,getPrefixCls:u}=g.useContext(Un),f=u("modal"),d=u(),A=()=>{var x;n(),(x=s.afterClose)==null||x.call(s)},h=(...x)=>{var S;a(!1),x.some(B=>B==null?void 0:B.triggerCancel)&&((S=s.onCancel)==null||S.call(s,()=>{},...x.slice(1)))};g.useImperativeHandle(t,()=>({destroy:h,update:x=>{l(C=>{const S=Rn(x)?x(C):x;return I(I({},C),S)})}}));const p=(b=s.okCancel)!=null?b:s.type==="confirm",[v]=zs("Modal",Sl.Modal);return g.createElement(Eie,I(te(I({prefixCls:f,rootPrefixCls:d},s),{close:h,open:o,afterClose:A,okText:s.okText||(p?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:s.direction||c,cancelText:s.cancelText||(v==null?void 0:v.cancelText)}),i))});let Rie=0;const Gke=g.memo(g.forwardRef((e,t)=>{const[n,r]=uLe();return g.useImperativeHandle(t,()=>({patchElement:r}),[r]),g.createElement(g.Fragment,null,n)}));function qke(){const e=g.useRef(null),[t,n]=g.useState([]);g.useEffect(()=>{t.length&&(en(t).forEach(a=>{a()}),n([]))},[t]);const r=g.useCallback(o=>function(s){var p;Rie+=1;const l=g.createRef();let c;const u=new Promise(v=>{c=v});let f=!1,d;const A=g.createElement(Wke,{key:`modal-${Rie}`,config:o(s),ref:l,afterClose:()=>{d==null||d()},isSilent:()=>f,onConfirm:v=>{c(v)}});return d=(p=e.current)==null?void 0:p.patchElement(A),d&&wv.push(d),{destroy:()=>{function v(){var y;(y=l.current)==null||y.destroy()}l.current?v():n(y=>[].concat(en(y),[v]))},update:v=>{function y(){var b;(b=l.current)==null||b.update(v)}l.current?y():n(b=>[].concat(en(b),[y]))},then:v=>(f=!0,u.then(v))}},[]);return[g.useMemo(()=>({info:r(_ie),success:r(Tie),error:r(Mie),warning:r($ie),confirm:r(Iie)}),[r]),g.createElement(Gke,{key:"modal-holder",ref:e})]}const Yke=Be.createContext({});function Nie(e){return t=>g.createElement(kc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},g.createElement(e,I({},t)))}const CE=(e,t,n,r,i)=>Nie(a=>{const{prefixCls:s,style:l}=a,c=g.useRef(null),[u,f]=g.useState(0),[d,A]=g.useState(0),[h,p]=Fr(!1,a.open),{getPrefixCls:v}=g.useContext(Un),y=v(r||"select",s);g.useEffect(()=>{if(p(!0),typeof ResizeObserver!="undefined"){const C=new ResizeObserver(B=>{const E=B[0].target;f(E.offsetHeight+8),A(E.offsetWidth)}),S=setInterval(()=>{var _;const B=i?`.${i(y)}`:`.${y}-dropdown`,E=(_=c.current)==null?void 0:_.querySelector(B);E&&(clearInterval(S),C.observe(E))},10);return()=>{clearInterval(S),C.disconnect()}}},[y]);let b=te(I({},a),{style:te(I({},l),{margin:0}),open:h,getPopupContainer:()=>c.current});t&&(b=te(I({},b),{[t]:{overflow:{adjustX:!1,adjustY:!1}}}));const x={paddingBottom:u,position:"relative",minWidth:d};return g.createElement("div",{ref:c,style:x},g.createElement(e,I({},b)))}),Xke=(e,t,n,r,i=!1,o,a)=>{const s=g.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return g.useMemo(()=>{const l=!i&&s.allowClear!==!1&&(t.length||o)&&!(a==="combobox"&&o==="");return{allowClear:l,clearIcon:l?s.clearIcon||r||"×":null}},[s,r,i,t.length,o,a])},Pie=g.createContext(null);function Cv(){return g.useContext(Pie)}function Zke(e=250){const t=g.useRef(null),n=g.useRef(null);g.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function Lie(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function Jke(e,t,n,r){const i=yn(o=>{if(r)return;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a),o._ori_target&&(a=o._ori_target),t&&!Lie(e(),a)&&n(!1)});g.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function aH(){return aH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},t6e=(e,t)=>{const D=e,{prefixCls:n,disabled:r,visible:i,children:o,popupElement:a,animation:s,transitionName:l,popupStyle:c,popupClassName:u,direction:f="ltr",placement:d,builtinPlacements:A,popupMatchSelectWidth:h,popupRender:p,popupAlign:v,getPopupContainer:y,empty:b,onPopupVisibleChange:x,onPopupMouseEnter:C,onPopupMouseDown:S,onPopupBlur:B}=D,E=Ze(D,["prefixCls","disabled","visible","children","popupElement","animation","transitionName","popupStyle","popupClassName","direction","placement","builtinPlacements","popupMatchSelectWidth","popupRender","popupAlign","getPopupContainer","empty","onPopupVisibleChange","onPopupMouseEnter","onPopupMouseDown","onPopupBlur"]),_=`${n}-dropdown`;let M=a;p&&(M=p(a));const R=g.useMemo(()=>A||e6e(h),[A,h]),T=s?`${_}-${s}`:l,L=typeof h=="number",P=g.useMemo(()=>h===!1||L?"minWidth":"width",[h,L]);let k=c;L&&(k=te(I({},c),{width:h}));const H=g.useRef(null);return g.useImperativeHandle(t,()=>({getPopupElement:()=>{var U;return(U=H.current)==null?void 0:U.popupElement}})),g.createElement(oE,aH({},E,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:d||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:_,popupMotion:{motionName:T},popup:g.createElement("div",{onMouseEnter:C,onMouseDown:S,onBlur:B},M),ref:H,stretch:P,popupAlign:v,popupVisible:i,getPopupContainer:y,popupClassName:Ae(u,{[`${_}-empty`]:b}),popupStyle:k,onPopupVisibleChange:x}),o)},n6e=g.forwardRef(t6e);function Fie(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n!=null?n:r!==void 0?r:`rc-index-key-${t}`}function sH(e){return typeof e!="undefined"&&!Number.isNaN(e)}function kie(e,t){const{label:n,value:r,options:i,groupLabel:o}=e||{},a=n||(t?"children":"label");return{label:a,value:r||"value",options:i||"options",groupLabel:o||a}}function r6e(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:i,value:o,options:a,groupLabel:s}=kie(t,!1);function l(c,u){Array.isArray(c)&&c.forEach(f=>{if(u||!(a in f)){const d=f[o];r.push({key:Fie(f,r.length),groupOption:u,data:f,label:f[i],value:d})}else{let d=f[s];d===void 0&&n&&(d=f.label),r.push({key:Fie(f,r.length),group:!0,data:f,label:d}),l(f[a],!0)}})}return l(e,!1),r}function lH(e){const t=I({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return ao(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const i6e=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const i=(a,[s,...l])=>{if(!s)return[a];const c=a.split(s);return r=r||c.length>1,c.reduce((u,f)=>[...u,...i(f,l)],[]).filter(Boolean)},o=i(e,t);return r?typeof n!="undefined"?o.slice(0,n):o:null};function o6e(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return g.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:i,value:o})=>["number","string"].includes(typeof i)?i:o).join(", ")}`,n.length>r?", ...":null)}const a6e=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},cH=(e,t=1)=>{if(t<=0){e();return}a6e(()=>{cH(e,t-1)})};function s6e(e,t,n,r){const[i,o]=g.useState(!1);g.useEffect(()=>{o(!0)},[]);const[a,s]=Fr(e,t),[l,c]=g.useState(!1),u=i?a:!1,f=r(u),d=g.useRef(0),A=yn(p=>{n&&f!==p&&n(p),s(p)}),h=yn((p,v={})=>{const{cancelFun:y}=v;d.current+=1;const b=d.current,x=typeof p=="boolean"?p:!f;c(!x);function C(){b===d.current&&!(y!=null&&y())&&(A(x),c(!1))}x?C():cH(()=>{C()})});return[u,f,h,l]}function uH(e){const r=e,{children:t}=r,n=Ze(r,["children"]);return t?g.createElement("div",n,t):null}const Die=g.createContext(null);function SE(){return g.useContext(Die)}const Hie=g.forwardRef((e,t)=>{const W=e,{onChange:n,onKeyDown:r,onBlur:i,style:o,syncWidth:a,value:s,className:l,autoComplete:c}=W,u=Ze(W,["onChange","onKeyDown","onBlur","style","syncWidth","value","className","autoComplete"]),{prefixCls:f,mode:d,onSearch:A,onSearchSubmit:h,onInputBlur:p,autoFocus:v,tokenWithEnter:y,placeholder:b,components:{input:x="input"}}=SE(),{id:C,classNames:S,styles:B,open:E,activeDescendantId:_,role:M,disabled:R}=Cv()||{},T=Ae(`${f}-input`,S==null?void 0:S.input,l),L=g.useRef(!1),P=g.useRef(null),k=g.useRef(null);g.useImperativeHandle(t,()=>k.current);const H=J=>{let{value:ee}=J.target;if(y&&P.current&&/[\r\n]/.test(P.current)){const ne=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ee=ee.replace(ne,P.current)}P.current=null,A&&A(ee,!0,L.current),n==null||n(J)},D=J=>{const{key:ee}=J,{value:ne}=J.currentTarget;ee==="Enter"&&d==="tags"&&!E&&!L.current&&h&&h(ne),r==null||r(J)},U=J=>{p==null||p(),i==null||i(J)},j=()=>{L.current=!0},Q=J=>{if(L.current=!1,d!=="combobox"){const{value:ee}=J.currentTarget;A==null||A(ee,!0,!1)}},K=J=>{const{clipboardData:ee}=J,ne=ee==null?void 0:ee.getData("text");P.current=ne||""},[z,V]=g.useState(void 0);ar(()=>{const J=k.current;if(a&&J){J.style.width="0px";const ee=J.scrollWidth;V(ee),J.style.width=""}},[a,s]);const Y=te(I({id:C,type:"text"},u),{ref:k,style:te(I(I({},B==null?void 0:B.input),o),{"--select-input-width":z}),autoFocus:v,autoComplete:c||"new-password",className:T,disabled:R,value:s||"",onChange:H,onKeyDown:D,onBlur:U,onPaste:K,onCompositionStart:j,onCompositionEnd:Q,role:M||"combobox","aria-expanded":E||!1,"aria-haspopup":"listbox","aria-owns":E?`${C}_list`:void 0,"aria-autocomplete":"list","aria-controls":E?`${C}_list`:void 0,"aria-activedescendant":E?_:void 0});if(g.isValidElement(x)){const J=x.props||{},ee=I(I({placeholder:e.placeholder||b},Y),J);return Object.keys(J).forEach(ne=>{const re=J[ne];typeof re=="function"&&(ee[ne]=(...ue)=>{var de;re(...ue),(de=Y[ne])==null||de.call(Y,...ue)})}),ee.ref=il(x.ref,Y.ref),g.cloneElement(x,ee)}const Z=x;return g.createElement(Z,Y)});function Uie(e){const{prefixCls:t,placeholder:n,displayValues:r}=SE(),{classNames:i,styles:o}=Cv(),{show:a=!0}=e;return r.length?null:g.createElement("div",{className:Ae(`${t}-placeholder`,i==null?void 0:i.placeholder),style:I({visibility:a?"visible":"hidden"},o==null?void 0:o.placeholder)},n)}const fH=g.createContext(null);function jie(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function l6e(e){return e!=null}function c6e(e){return!e&&e!==0}function zie(e){return["string","number"].includes(typeof e)}function dH(e){let t;return e&&(zie(e.title)?t=e.title.toString():zie(e.label)&&(t=e.label.toString())),t}function AH(){return AH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:n,searchValue:r,activeValue:i,displayValues:o,maxLength:a,mode:s,components:l}=SE(),{triggerOpen:c,title:u,showSearch:f,classNames:d,styles:A}=Cv(),h=g.useContext(fH),[p,v]=g.useState(!1),y=s==="combobox",b=o[0],x=g.useMemo(()=>y&&i&&!p&&c?i:f?r:"",[y,i,p,c,r,f]),[C,S,B,E]=g.useMemo(()=>{let T,L,P;if(b&&(h!=null&&h.flattenOptions)){const H=h.flattenOptions.find(D=>D.value===b.value);H!=null&&H.data&&(T=H.data.className,L=H.data.style,P=dH(H.data))}return b&&!P&&(P=dH(b)),u!==void 0&&(P=u),[T,L,P,!!T||!!L]},[b,h==null?void 0:h.flattenOptions,u]);g.useEffect(()=>{y&&v(!1)},[y,i]);const _=b&&b.label!==null&&b.label!==void 0&&String(b.label).trim()!=="",R=!(y&&(l!=null&&l.input))?b?E?g.createElement("div",{className:Ae(`${n}-content-value`,C),style:I(I({},x?{visibility:"hidden"}:{}),S),title:B},b.label):b.label:g.createElement(Uie,{show:!x}):null;return g.createElement("div",{className:Ae(`${n}-content`,_&&`${n}-content-has-value`,x&&`${n}-content-has-search-value`,E&&`${n}-content-has-option-style`,d==null?void 0:d.content),style:A==null?void 0:A.content,title:E?void 0:B},R,g.createElement(Hie,AH({ref:t},e,{value:x,maxLength:s==="combobox"?a:void 0,onChange:T=>{var L;v(!0),(L=e.onChange)==null||L.call(e,T)}})))}),Rb=void 0;function f6e(e,t){const E=e,{prefixCls:n,invalidate:r,item:i,renderItem:o,responsive:a,responsiveDisabled:s,registerSize:l,itemKey:c,className:u,style:f,children:d,display:A,order:h,component:p="div"}=E,v=Ze(E,["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"]),y=a&&!A;function b(_){l(c,_)}g.useEffect(()=>()=>{b(null)},[]);const x=o&&i!==Rb?o(i,{index:h}):d;let C;r||(C={opacity:y?0:1,height:y?0:Rb,overflowY:y?"hidden":Rb,order:a?h:Rb,pointerEvents:y?"none":Rb,position:y?"absolute":Rb});const S={};y&&(S["aria-hidden"]=!0);let B=g.createElement(p,Qs({className:Ae(!r&&n,u),style:I(I({},C),f)},S,v,{ref:t}),x);return a&&(B=g.createElement(Bl,{onResize:({offsetWidth:_})=>{b(_)},disabled:s},B)),B}const EE=g.forwardRef(f6e);function d6e(e){if(typeof MessageChannel=="undefined")Kn(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function A6e(){const e=g.useRef(null);return n=>{e.current||(e.current=[],d6e(()=>{fu.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Nb(e,t){const[n,r]=g.useState(t),i=yn(o=>{e(()=>{r(o)})});return[n,i]}const DM=Be.createContext(null),h6e=(e,t)=>{const n=g.useContext(DM);if(!n){const s=e,{component:u="div"}=s,f=Ze(s,["component"]);return g.createElement(u,Qs({},f,{ref:t}))}const l=n,{className:r}=l,i=Ze(l,["className"]),c=e,{className:o}=c,a=Ze(c,["className"]);return g.createElement(DM.Provider,{value:null},g.createElement(EE,Qs({ref:t,className:Ae(r,o)},i,a)))},p6e=g.forwardRef(h6e),Qie="responsive",Vie="invalidate";function g6e(e){return`+ ${e.length} ...`}function m6e(e,t){const at=e,{prefixCls:n="rc-overflow",data:r=[],renderItem:i,renderRawItem:o,itemKey:a,itemWidth:s=10,ssr:l,style:c,className:u,maxCount:f,renderRest:d,renderRawRest:A,prefix:h,suffix:p,component:v="div",itemComponent:y,onVisibleChange:b}=at,x=Ze(at,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"]),C=l==="full",S=A6e(),[B,E]=Nb(S,null),_=B||0,[M,R]=Nb(S,new Map),[T,L]=Nb(S,0),[P,k]=Nb(S,0),[H,D]=Nb(S,0),[U,j]=Nb(S,0),[Q,K]=g.useState(null),[z,V]=g.useState(null),Y=g.useMemo(()=>z===null&&C?Number.MAX_SAFE_INTEGER:z||0,[z,B]),[Z,W]=g.useState(!1),J=`${n}-item`,ee=Math.max(T,P),ne=f===Qie,re=r.length&&ne,ue=f===Vie,de=re||typeof f=="number"&&r.length>f,se=g.useMemo(()=>{let Ue=r;return re?B===null&&C?Ue=r:Ue=r.slice(0,Math.min(r.length,_/s)):typeof f=="number"&&(Ue=r.slice(0,f)),Ue},[r,s,B,f,re]),ce=g.useMemo(()=>re?r.slice(Y+1):r.slice(se.length),[r,se,re,Y]),ge=g.useCallback((Ue,et)=>{var We;return typeof a=="function"?a(Ue):(We=a&&(Ue==null?void 0:Ue[a]))!=null?We:et},[a]),ie=g.useCallback(i||(Ue=>Ue),[i]);function le(Ue,et,We){z===Ue&&(et===void 0||et===Q)||(V(Ue),We||(W(Ue{const Je=new Map(We);return et===null?Je.delete(Ue):Je.set(Ue,et),Je})}function me(Ue,et){k(et),L(P)}function Ee(Ue,et){D(et)}function Ce(Ue,et){j(et)}function pe(Ue){return M.get(ge(se[Ue],Ue))}ar(()=>{if(_&&typeof ee=="number"&&se){let Ue=H+U;const et=se.length,We=et-1;if(!et){le(0,null);return}for(let Je=0;Je_){le(Je-1,Ue-dt-U+P);break}}p&&pe(0)+U>_&&K(null)}},[_,M,P,H,U,ge,se]);const Oe=Z&&!!ce.length;let xe={};Q!==null&&re&&(xe={position:"absolute",top:0,insetInlineStart:Q});const Me={prefixCls:J,responsive:re,component:y,invalidate:ue},Se=o?(Ue,et)=>{const We=ge(Ue,et);return g.createElement(DM.Provider,{key:We,value:te(I({},Me),{order:et,item:Ue,itemKey:We,registerSize:we,display:et<=Y})},o(Ue,et))}:(Ue,et)=>{const We=ge(Ue,et);return g.createElement(EE,Qs({},Me,{order:et,key:We,item:Ue,renderItem:ie,itemKey:We,registerSize:we,display:et<=Y}))},Pe={order:Oe?Y:Number.MAX_SAFE_INTEGER,className:`${J}-rest`,registerSize:me,display:Oe},Le=d||g6e,He=A?g.createElement(DM.Provider,{value:I(I({},Me),Pe)},A(ce)):g.createElement(EE,Qs({},Me,Pe),typeof Le=="function"?Le(ce):Le),Ne=g.createElement(v,Qs({className:Ae(!ue&&n,u),style:c,ref:t},x),h&&g.createElement(EE,Qs({},Me,{responsive:ne,responsiveDisabled:!re,order:-1,className:`${J}-prefix`,registerSize:Ee,display:!0}),h),se.map(Se),de?He:null,p&&g.createElement(EE,Qs({},Me,{responsive:ne,responsiveDisabled:!re,order:Y,className:`${J}-suffix`,registerSize:Ce,display:!0,style:xe}),p));return ne?g.createElement(Bl,{onResize:ve,disabled:!re},Ne):Ne}const gA=g.forwardRef(m6e);gA.Item=p6e,gA.RESPONSIVE=Qie,gA.INVALIDATE=Vie;const Kie=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:o,onMouseDown:a,onClick:s}=e,l=typeof r=="function"?r(i):r;return g.createElement("span",{className:t,onMouseDown:c=>{c.preventDefault(),a==null||a(c)},style:I({userSelect:"none",WebkitUserSelect:"none"},n),unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:g.createElement("span",{className:Ae(t.split(/\s+/).map(c=>`${c}-icon`))},o))};function hH(){return hH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault(),e.stopPropagation()},y6e=g.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:i,searchValue:o,mode:a,onSelectorRemove:s,removeIcon:l}=SE(),{disabled:c,showSearch:u,triggerOpen:f,rawOpen:d,toggleOpen:A,autoClearSearchValue:h,tagRender:p,maxTagPlaceholder:v,maxTagTextLength:y,maxTagCount:b,classNames:x,styles:C}=Cv(),S=`${r}-selection-item`;let B=o;!d&&a==="multiple"&&h!==!1&&(B="");const E=u&&B||"",_=u&&!c,M=l!=null?l:"×",R=v!=null?v:(j=>`+ ${j.length} ...`),T=p,L=j=>{A(j)},P=j=>{s==null||s(j)},k=(j,Q,K,z,V)=>g.createElement("span",{title:dH(j),className:Ae(S,{[`${S}-disabled`]:K},x==null?void 0:x.item),style:C==null?void 0:C.item},g.createElement("span",{className:Ae(`${S}-content`,x==null?void 0:x.itemContent),style:C==null?void 0:C.itemContent},Q),z&&g.createElement(Kie,{className:Ae(`${S}-remove`,x==null?void 0:x.itemRemove),style:C==null?void 0:C.itemRemove,onMouseDown:Wie,onClick:V,customizeIcon:M},"×")),H=(j,Q,K,z,V,Y,Z)=>{const W=J=>{Wie(J),L(!f)};return g.createElement("span",{onMouseDown:W},T({label:Q,value:j,index:Z==null?void 0:Z.index,disabled:K,closable:z,onClose:V,isMaxTag:!!Y}))},D=(j,Q)=>{const{disabled:K,label:z,value:V}=j,Y=!c&&!K;let Z=z;if(typeof y=="number"&&(typeof z=="string"||typeof z=="number")){const J=String(Z);J.length>y&&(Z=`${J.slice(0,y)}...`)}const W=J=>{J&&J.stopPropagation(),P(j)};return typeof T=="function"?H(V,Z,K,Y,W,void 0,Q):k(j,Z,K,Y,W)},U=j=>{if(!i.length)return null;const Q=typeof R=="function"?R(j):R;return typeof T=="function"?H(void 0,Q,!1,!1,void 0,!0):k({title:Q},Q,!1)};return g.createElement(gA,{prefixCls:`${r}-content`,className:x==null?void 0:x.content,style:C==null?void 0:C.content,prefix:!i.length&&!E&&g.createElement(Uie,null),data:i,renderItem:D,renderRest:U,suffix:g.createElement(Hie,hH({ref:n,disabled:c,readOnly:!_},t,{value:E||"",syncWidth:!0})),itemKey:v6e,maxCount:b})}),b6e=g.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:i,tabIndex:o}=SE(),a=Cv(),{showSearch:s}=a,l=Co(a,{aria:!0}),c=te(I({},l),{onKeyDown:i,readOnly:!s,tabIndex:o});return r?g.createElement(y6e,{ref:n,inputProps:c}):g.createElement(u6e,{ref:n,inputProps:c})});function x6e(e){return e&&![dn.ESC,dn.SHIFT,dn.BACKSPACE,dn.TAB,dn.WIN_KEY,dn.ALT,dn.META,dn.WIN_KEY_RIGHT,dn.CTRL,dn.SEMICOLON,dn.EQUALS,dn.CAPS_LOCK,dn.CONTEXT_MENU,dn.UP,dn.LEFT,dn.RIGHT,dn.F1,dn.F2,dn.F3,dn.F4,dn.F5,dn.F6,dn.F7,dn.F8,dn.F9,dn.F10,dn.F11,dn.F12].includes(e)}function HM(){return HM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{which:re}=ne,ue=Q.current instanceof HTMLTextAreaElement;if(!ue&&T&&(re===dn.UP||re===dn.DOWN)&&ne.preventDefault(),B&&B(ne),ue&&!T&&~[dn.UP,dn.DOWN,dn.LEFT,dn.RIGHT].indexOf(re))return;!(ne.ctrlKey||ne.altKey||ne.metaKey)&&x6e(re)&&L(!0)});g.useImperativeHandle(n,()=>({focus:ne=>{var re,ue;(ue=(re=Q.current||j.current).focus)==null||ue.call(re,ne)},blur:()=>{var ne,re;(re=(ne=Q.current||j.current).blur)==null||re.call(ne)},nativeElement:td(j.current)}));const z=yn(ne=>{var re;if(!k){const ue=td(Q.current);ne.nativeEvent._ori_target=ue;const de=ue===ne.target||(ue==null?void 0:ue.contains(ne.target));ue&&!de&&ne.preventDefault();const ge=T&&!u&&(A==="combobox"||P)||T&&u&&de;ne.nativeEvent._select_lazy?T&&!u&&L(!1):((re=Q.current)==null||re.focus(),ge||L())}C==null||C(ne)}),{root:V}=M,Y=ti(R,w6e),Z=Co(Y,{aria:!0}),W=Object.keys(Z),J=te(I({},t),{onInputKeyDown:K});if(V){const ne=V.props||{},re=I(I({},ne),Y);return Object.keys(ne).forEach(ue=>{const de=ne[ue],se=Y[ue];typeof de=="function"&&typeof se=="function"&&(re[ue]=(...ce)=>{se(...ce),de(...ce)})}),g.isValidElement(V)?g.cloneElement(V,te(I({},re),{ref:il(V.ref,j)})):g.createElement(V,HM({},re,{ref:j}))}return g.createElement(Die.Provider,{value:J},g.createElement("div",HM({},ti(Y,W),{ref:j,className:i,style:o,onMouseDown:z}),g.createElement(uH,{className:Ae(`${r}-prefix`,D==null?void 0:D.prefix),style:U==null?void 0:U.prefix},a),g.createElement(b6e,{ref:Q}),g.createElement(uH,{className:Ae(`${r}-suffix`,{[`${r}-suffix-loading`]:H},D==null?void 0:D.suffix),style:U==null?void 0:U.suffix},s),l&&g.createElement(uH,{className:Ae(`${r}-clear`,D==null?void 0:D.clear),style:U==null?void 0:U.clear,onMouseDown:ne=>{ne.nativeEvent._select_lazy=!0,S==null||S(ne)}},l),c))});function S6e(e,t,n){return g.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function pH(){return pH=Object.assign?Object.assign.bind():function(e){for(var t=1;te==="tags"||e==="multiple",E6e=g.forwardRef((e,t)=>{const Fn=e,{id:n,prefixCls:r,className:i,styles:o,classNames:a,showSearch:s,tagRender:l,showScrollBar:c="optional",direction:u,omitDomProps:f,displayValues:d,onDisplayValuesChange:A,emptyOptions:h,notFoundContent:p="Not Found",onClear:v,maxCount:y,placeholder:b,mode:x,disabled:C,loading:S,getInputElement:B,getRawInputElement:E,open:_,defaultOpen:M,onPopupVisibleChange:R,activeValue:T,onActiveValueChange:L,activeDescendantId:P,searchValue:k,autoClearSearchValue:H,onSearch:D,onSearchSplit:U,tokenSeparators:j,allowClear:Q,prefix:K,suffix:z,suffixIcon:V,clearIcon:Y,OptionList:Z,animation:W,transitionName:J,popupStyle:ee,popupClassName:ne,popupMatchSelectWidth:re,popupRender:ue,popupAlign:de,placement:se,builtinPlacements:ce,getPopupContainer:ge,showAction:ie=[],onFocus:le,onBlur:ve,onKeyUp:we,onKeyDown:me,onMouseDown:Ee,components:Ce}=Fn,pe=Ze(Fn,["id","prefixCls","className","styles","classNames","showSearch","tagRender","showScrollBar","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","maxCount","placeholder","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onPopupVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffix","suffixIcon","clearIcon","OptionList","animation","transitionName","popupStyle","popupClassName","popupMatchSelectWidth","popupRender","popupAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","components"]),Oe=gH(x),xe=g.useRef(null),Me=g.useRef(null),Se=g.useRef(null),[Pe,Le]=g.useState(!1);g.useImperativeHandle(t,()=>{var $t,Ie;return{focus:($t=xe.current)==null?void 0:$t.focus,blur:(Ie=xe.current)==null?void 0:Ie.blur,scrollTo:Ke=>{var nt;return(nt=Se.current)==null?void 0:nt.scrollTo(Ke)},nativeElement:td(xe.current)}});const He=S6e(Ce,B,E),Ne=g.useMemo(()=>{var Ie;if(x!=="combobox")return k;const $t=(Ie=d[0])==null?void 0:Ie.value;return typeof $t=="string"||typeof $t=="number"?String($t):""},[k,x,d]),at=x==="combobox"&&typeof B=="function"&&B()||null,Ue=!p&&h,[et,We,Je,dt]=s6e(M||!1,_,R,$t=>C||Ue?!1:$t),wt=g.useMemo(()=>typeof j=="function"||(j||[]).some($t=>[` + ${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},Pae=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Fae=e=>{let{componentCls:t}=e,n=kae(e),r=G({},n);delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${Q(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Co(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],Co(a))}}},N_=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return bl(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},P_=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Q(e.paddingMD)} ${Q(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Q(e.padding)} ${Q(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Q(e.paddingXS)} ${Q(e.padding)}`:0,footerBorderTop:e.wireframe?`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Q(e.padding*2)} ${Q(e.padding*2)} ${Q(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),F_=dd(`Modal`,e=>{let t=N_(e);return[Nae(t),Pae(t),Mae(t),Yh(t,`zoom`),Fae(t)]},P_,{unitless:{titleLineHeight:!0}});K();var Iae=`prefixCls.className.rootClassName.open.wrapClassName.centered.getContainer.style.width.footer.classNames.styles.children.loading.confirmLoading.zIndex.mousePosition.onOk.onCancel.okButtonProps.cancelButtonProps.destroyOnHidden.destroyOnClose.panelRef.closable.mask.modalRender.maskClosable._semanticOmit.scrollLock.focusTriggerAfterClose.focusable._renderSemanticContent`.split(`.`),I_;Wie()&&document.documentElement.addEventListener(`click`,e=>{I_={x:e.pageX,y:e.pageY},setTimeout(()=>{I_=null},100)},!0);var L_=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:m,confirmLoading:h,zIndex:g,mousePosition:_,onOk:v,onCancel:y,okButtonProps:b,cancelButtonProps:x,destroyOnHidden:S,destroyOnClose:C,panelRef:w=null,closable:T,mask:E,modalRender:D,maskClosable:O,_semanticOmit:k,scrollLock:A,focusTriggerAfterClose:j,focusable:M,_renderSemanticContent:N}=e,P=q(e,Iae),{getPopupContainer:F,getPrefixCls:I,direction:L,className:R,style:z,classNames:B,styles:V,centered:H,cancelButtonProps:U,okButtonProps:ee,mask:te,focusable:ne}=ko(`modal`),{modal:re}=J.useContext(Eo),[ie,ae]=J.useMemo(()=>typeof T==`boolean`?[void 0,void 0]:[T==null?void 0:T.afterClose,T==null?void 0:T.onClose],[T]),oe=I(`modal`,t),se=I(),[ce,le,ue]=yte(E,te,oe,O),de=Gie(G(G({},ne),M),ce,j),fe=e=>{h||(y==null||y(e),ae==null||ae())},pe=e=>{v==null||v(e),ae==null||ae()},me=Fp(oe),[he,W]=F_(oe,me),ge=Z(a,{[`${oe}-centered`]:o==null?H:o,[`${oe}-wrap-rtl`]:L===`rtl`}),_e=u!==null&&!m?J.createElement(xae,G(G({},e),{},{okButtonProps:G(G({},ee),b),onOk:pe,cancelButtonProps:G(G({},U),x),onCancel:fe})):null,[K,ve,ye,be]=vte(Rm(e),Rm(re),{closable:!0,closeIcon:J.createElement(rf,{className:`${oe}-close-icon`}),closeIconRender:e=>bae(oe,e)}),xe=K?G({disabled:ye,closeIcon:ve,afterClose:ie},be):!1,Se=D?e=>J.createElement(`div`,{className:`${oe}-render`},D(e)):void 0,Ce=hi(w,_ae(`.${oe}-${D?`render`:`container`}`)),[we,Te]=Km(`Modal`,g),Ee=G(G({},e),{},{width:l,panelRef:w,focusTriggerAfterClose:de.focusTriggerAfterClose,focusable:de,mask:ce,maskClosable:ue,zIndex:we}),[De,Oe]=xp([B,d,le],[V,f],{props:Ee}),ke=k?Ca(De,k):De,Ae=k?Ca(Oe,k):Oe,je=N?N({classNames:De,styles:Oe}):p,[Me,Ne]=J.useMemo(()=>lp(l)?[void 0,l]:[l,void 0],[l]),Pe=J.useMemo(()=>{let e={};return Ne&&Object.keys(Ne).forEach(t=>{let n=Ne[t];ap(n)&&(e[`--${oe}-${t}-width`]=sp(n)?`${n}px`:n)}),e},[oe,Ne]);return J.createElement(x_,{form:!0,space:!0},J.createElement(Um.Provider,{value:Te},J.createElement(Bre,G(G({width:Me},P),{},{zIndex:we,getContainer:s===void 0?F:s,prefixCls:oe,rootClassName:Z(he,r,W,me,ke.root),rootStyle:Ae.root,footer:_e,visible:i,mousePosition:_==null?I_:_,onClose:fe,closable:xe,closeIcon:ve,transitionName:fh(se,`zoom`,e.transitionName),maskTransitionName:fh(se,`fade`,e.maskTransitionName),mask:ce,maskClosable:ue,scrollLock:A,className:Z(he,n,R),style:G(G(G({},z),c),Pe),classNames:G(G({},ke),{},{wrapper:Z(ke.wrapper,ge)}),styles:Ae,panelRef:Ce,destroyOnHidden:S==null?C:S,modalRender:Se,focusTriggerAfterClose:de.focusTriggerAfterClose,focusTrap:de.trap}),m?J.createElement(j_,{active:!0,title:!1,paragraph:{rows:4},className:`${oe}-body-skeleton`}):je)))};K();var Lae=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:G({},id()),[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${Q(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Q(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, + ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Rae=pd([`Modal`,`confirm`],e=>Lae(N_(e)),P_,{order:-1e3});K();var zae=[`prefixCls`,`icon`,`okText`,`cancelText`,`confirmPrefixCls`,`type`,`okCancel`,`footer`,`locale`,`autoFocusButton`,`focusable`,`contentClassName`,`contentStyle`],Bae=[`body`],R_=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,contentClassName:f,contentStyle:p}=e,m=q(e,zae),{infoIcon:h,successIcon:g,errorIcon:_,warningIcon:v}=ko(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=Im(h,J.createElement(uf,null));break;case`success`:y=Im(g,J.createElement(Zd,null));break;case`error`:y=Im(_,J.createElement(ef,null));break;default:y=Im(v,J.createElement(sf,null))}let b=s==null?o===`confirm`:s,x=J.useMemo(()=>{let e=(d==null?void 0:d.autoFocusButton)||u;return e||e===null?e:`ok`},[u,d==null?void 0:d.autoFocusButton]),[S]=Hp(`Modal`),C=l||S,w=r||(b?C==null?void 0:C.okText:C==null?void 0:C.justOkText),T=i||(C==null?void 0:C.cancelText),{closable:E}=m,{onClose:D}=lp(E)?E:{},O=J.useMemo(()=>G({autoFocusButton:x,cancelTextLocale:T,okTextLocale:w,mergedOkCancel:b,onClose:D},m),[x,T,w,b,D,m]),k=J.createElement(J.Fragment,null,J.createElement(_g,null),J.createElement(vg,null)),A=op(e.title),j=op(y),M=`${a}-body`;return J.createElement(`div`,{className:`${a}-body-wrapper`},J.createElement(`div`,{className:Z(M,{[`${M}-has-title`]:A,[`${M}-no-icon`]:!j})},y,J.createElement(`div`,{className:`${a}-paragraph`},A&&J.createElement(`span`,{className:`${a}-title`},e.title),J.createElement(`div`,{className:Z(`${a}-content`,f),style:p},e.content))),c===void 0||up(c)?J.createElement(gg,{value:O},J.createElement(`div`,{className:`${a}-btns`},up(c)?c(k,{OkBtn:vg,CancelBtn:_g}):k)):c,J.createElement(Rae,{prefixCls:t}))},Vae=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:m,okButtonProps:h,cancelButtonProps:g}=e,{cancelButtonProps:_,okButtonProps:v}=ko(`modal`),y=`${a}-confirm`,b=e.width||416,x=e.style||{},S=up(d)?e=>G({body:c,mask:r},d(e)):G({body:c,mask:r},d),C=Ca(e,[`bodyStyle`,`maskStyle`]),w=Z(y,`${y}-${e.type}`,{[`${y}-rtl`]:i===`rtl`},e.className),T=J.useMemo(()=>{let e=Bm(p,m);return e.closable!=null||(e.closable=!1),e},[p,m]),[,E]=$u(),D=J.useMemo(()=>n===void 0?E.zIndexPopupBase+Gm:n,[n,E]);return J.createElement(L_,G(G({},C),{},{className:w,wrapClassName:Z({[`${y}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:f,footer:null,transitionName:fh(s||``,`zoom`,e.transitionName),maskTransitionName:fh(s||``,`fade`,e.maskTransitionName),mask:T,style:x,styles:S,width:b,zIndex:D,closable:l,_semanticOmit:Bae,_renderSemanticContent:({classNames:t,styles:n})=>J.createElement(R_,G(G({},e),{},{confirmPrefixCls:y,okButtonProps:G(G({},v),h),cancelButtonProps:G(G({},_),g),contentClassName:t.body,contentStyle:n.body}))}))},z_=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return J.createElement(Em,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},J.createElement(Vae,G({},e)))},B_=[];K();var V_=``;function H_(){return V_}var Hae=e=>{var t,n;let{prefixCls:r,getContainer:i,direction:a}=e,o=eee(),s=(0,J.useContext)(Eo),c=H_()||s.getPrefixCls(),l=r||`${c}-modal`,u=i;return u===!1&&(u=void 0),J.createElement(z_,G(G({},e),{},{rootPrefixCls:c,prefixCls:l,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a==null?s.direction:a,locale:(t=(n=s.locale)==null?void 0:n.Modal)==null?o:t,getContainer:u}))};function U_(e){let t=Tm(),n=document.createDocumentFragment(),r=G(G({},e),{},{close:s,open:!0}),i;function a(...t){if(t.some(e=>e==null?void 0:e.triggerCancel)){var r;(r=e.onCancel)==null||r.call(e,()=>{},...t.slice(1))}for(let e=0;e{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,H_()),i=t.getIconPrefixCls(),a=t.getTheme(),o=J.createElement(Hae,G({},e));qa(J.createElement(Em,{prefixCls:r,iconPrefixCls:i,theme:a},up(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r=G(G({},r),{},{open:!1,afterClose:()=>{up(e.afterClose)&&e.afterClose(),a.apply(this,t)}}),o(r)}function c(e){r=up(e)?e(r):G(G({},r),e),o(r)}return o(r),B_.push(s),{destroy:s,update:c}}function W_(e){return G(G({},e),{},{type:`warning`})}function G_(e){return G(G({},e),{},{type:`info`})}function K_(e){return G(G({},e),{},{type:`success`})}function q_(e){return G(G({},e),{},{type:`error`})}function J_(e){return G(G({},e),{},{type:`confirm`})}function Uae({rootPrefixCls:e}){V_=e}K();var Wae=[`afterClose`,`config`],Gae=J.forwardRef((e,t)=>{var n;let{afterClose:r,config:i}=e,a=q(e,Wae),[o,s]=J.useState(!0),[c,l]=J.useState(i),{direction:u,getPrefixCls:d}=J.useContext(Eo),f=d(`modal`),p=d(),m=()=>{var e;r(),(e=c.afterClose)==null||e.call(c)},h=(...e)=>{if(s(!1),e.some(e=>e==null?void 0:e.triggerCancel)){var t;(t=c.onCancel)==null||t.call(c,()=>{},...e.slice(1))}};J.useImperativeHandle(t,()=>({destroy:h,update:e=>{l(t=>{let n=up(e)?e(t):e;return G(G({},t),n)})}}));let g=(n=c.okCancel)==null?c.type===`confirm`:n,[_]=Hp(`Modal`,Wn.Modal);return J.createElement(z_,G(G({prefixCls:f,rootPrefixCls:p},c),{},{close:h,open:o,afterClose:m,okText:c.okText||(g?_==null?void 0:_.okText:_==null?void 0:_.justOkText),direction:c.direction||u,cancelText:c.cancelText||(_==null?void 0:_.cancelText)},a))}),Y_=0,Kae=J.memo(J.forwardRef((e,t)=>{let[n,r]=xte();return J.useImperativeHandle(t,()=>({patchElement:r}),[r]),J.createElement(J.Fragment,null,n)}));function qae(){let e=J.useRef(null),[t,n]=J.useState([]);J.useEffect(()=>{t.length&&(Co(t).forEach(e=>{e()}),n([]))},[t]);let r=J.useCallback(t=>function(r){var i;Y_+=1;let a=J.createRef(),o,s=new Promise(e=>{o=e}),c=!1,l,u=J.createElement(Gae,{key:`modal-${Y_}`,config:t(r),ref:a,afterClose:()=>{l==null||l()},isSilent:()=>c,onConfirm:e=>{o(e)}});return l=(i=e.current)==null?void 0:i.patchElement(u),l&&B_.push(l),{destroy:()=>{function e(){var e;(e=a.current)==null||e.destroy()}a.current?e():n(t=>[].concat(Co(t),[e]))},update:e=>{function t(){var t;(t=a.current)==null||t.update(e)}a.current?t():n(e=>[].concat(Co(e),[t]))},then:e=>(c=!0,s.then(e))}},[]);return[J.useMemo(()=>({info:r(G_),success:r(K_),error:r(q_),warning:r(W_),confirm:r(J_)}),[r]),J.createElement(Kae,{key:`modal-holder`,ref:e})]}var Jae=J.createContext({});K();function X_(e){return t=>J.createElement(Em,{theme:{token:{motion:!1,zIndexPopupBase:0}}},J.createElement(e,G({},t)))}var Z_=(e,t,n,r,i)=>X_(a=>{let{prefixCls:o,style:s}=a,c=J.useRef(null),[l,u]=J.useState(0),[d,f]=J.useState(0),[p,m]=$r(!1,a.open),{getPrefixCls:h}=J.useContext(Eo),g=h(r||`select`,o);J.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{var n;let r=i?`.${i(g)}`:`.${g}-dropdown`,a=(n=c.current)==null?void 0:n.querySelector(r);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _=G(G({},a),{},{style:G(G({},s),{},{margin:0}),open:p,getPopupContainer:()=>c.current});n&&(_=n(_)),t&&(_=G(G({},_),{},{[t]:{overflow:{adjustX:!1,adjustY:!1}}}));let v={paddingBottom:l,position:`relative`,minWidth:d};return J.createElement(`div`,{ref:c,style:v},J.createElement(e,G({},_)))}),Yae=(e,t,n,r,i=!1,a,o)=>{let s=(0,J.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,J.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},Q_=J.createContext(null);function $_(){return J.useContext(Q_)}function Xae(e=250){let t=J.useRef(null),n=J.useRef(null);J.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function ev(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Zae(e,t,n,r){let i=qr(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!ev(e(),a)&&n(!1)});J.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}K();function Qae(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=J.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return J.createElement(`div`,{ref:u,className:Z(`${t}-arrow`,a),style:G(G({},d),s)},o)}function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(`div`,{style:{zIndex:r},className:Z(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var eoe=J.memo(({children:e})=>e,(e,t)=>t.cache);function toe(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){var u;let{points:e}=r,t=r.dynamicInset||((u=r._experimental)==null?void 0:u.dynamicInset),n=t&&e[0][1]===`r`,d=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),d?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}K();function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:v,mobile:y,forceRender:b,getPopupContainer:x,autoDestroy:S,portal:C,children:w,zIndex:T,onMouseEnter:E,onMouseLeave:D,onPointerEnter:O,onPointerDownCapture:k,ready:A,offsetX:j,offsetY:M,offsetR:N,offsetB:P,onAlign:F,onPrepare:I,onResize:L,stretch:R,targetWidth:z,targetHeight:B}=e,V=typeof r==`function`?r():r,H=l||u,U=!!y,[ee,te,ne]=J.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[p,v,_],[y,p,v,_]),re=(x==null?void 0:x.length)>0,[ie,ae]=J.useState(!x||!re);Xr(()=>{!ie&&re&&s&&ae(!0)},[ie,re,s]);let oe=qr((e,t)=>{L==null||L(e,t),F()}),se=toe(U,A,l,g,N,P,j,M);if(!ie)return null;let ce={};return R&&(R.includes(`height`)&&B?ce.height=B:R.includes(`minHeight`)&&B&&(ce.minHeight=B),R.includes(`width`)&&z?ce.width=z:R.includes(`minWidth`)&&z&&(ce.minWidth=z)),l||(ce.pointerEvents=`none`),J.createElement(C,{open:b||H,getContainer:x&&(()=>x(s)),autoDestroy:S,onEsc:n},J.createElement($ae,{prefixCls:a,open:l,zIndex:T,mask:ee,motion:te,mobile:U}),J.createElement(go,{onResize:oe,disabled:!l},e=>J.createElement(ip,nv({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:`${a}-hidden`},ne,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:e=>{var t;_==null||(t=_.onVisibleChanged)==null||t.call(_,e),c(e)}}),({className:n,style:r},s)=>{let c=Z(a,n,i,{[`${a}-mobile`]:U});return J.createElement(`div`,{ref:hi(e,t,s),className:c,style:G(G(G(G({"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`},se),ce),r),{},{boxSizing:`border-box`,zIndex:T},o),onMouseEnter:E,onMouseLeave:D,onPointerEnter:O,onClick:f,onPointerDownCapture:k},m&&J.createElement(Qae,{prefixCls:a,arrow:m,arrowPos:h,align:g}),J.createElement(eoe,{cache:!l&&!d},V))})),w)}),rv=J.createContext(null),roe=J.createContext(null);function iv(e){return e?Array.isArray(e)?e:[e]:[]}function ioe(e,t,n){return J.useMemo(()=>{let r=iv(t==null?e:t),i=iv(n==null?e:n),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}K();function aoe(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function ooe(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;nr.includes(e))&&t.push(n),n=n.parentElement}return t}function sv(e,t=1){return Number.isNaN(e)?t:e}function cv(e){return sv(parseFloat(e),0)}function lv(e,t){let n=G({},e);return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=av(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=cv(i),m=cv(a),h=cv(o),g=cv(s),_=sv(Math.round(c.width/d*1e3)/1e3),v=sv(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=cv(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}K();function uv(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function dv(e,t){let[n,r]=t||[];return[uv(e.width,n),uv(e.height,r)]}function fv(e=``){return[e[0],e[1]]}function pv(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function mv(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function hv(e){return e.join(``)}function soe(e,t,n,r,i,a,o,s){let[c,l]=J.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=J.useRef(0),d=J.useMemo(()=>!t||s?[]:ov(t),[t]),f=J.useRef({});e||(f.current={});let p=qr(()=>{if(t&&n&&e&&!s){var c,u,p,m;let e=t,s=e.ownerDocument,y=av(e),{position:b}=y.getComputedStyle(e),x=e.style.left,S=e.style.top,C=e.style.right,w=e.style.bottom,T=e.style.overflow,E=e.style.overflowX,D=e.style.overflowY,O=G(G({},i[r]),a),k=s.createElement(`div`);(c=e.parentElement)==null||c.appendChild(k),k.style.left=`${e.offsetLeft}px`,k.style.top=`${e.offsetTop}px`,k.style.position=b,k.style.height=`${e.offsetHeight}px`,k.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var h,g;let e=n.getBoundingClientRect();e.x=(h=e.x)==null?e.left:h,e.y=(g=e.y)==null?e.top:g,A={x:e.x,y:e.y,width:e.width,height:e.height}}let j=e.getBoundingClientRect(),{height:M,width:N}=y.getComputedStyle(e);j.x=(u=j.x)==null?j.left:u,j.y=(p=j.y)==null?j.top:p;let{clientWidth:P,clientHeight:F,scrollWidth:I,scrollHeight:L,scrollTop:R,scrollLeft:z}=s.documentElement,B=j.height,V=j.width,H=A.height,U=A.width,ee={left:0,top:0,right:P,bottom:F},te={left:-z,top:-R,right:I-z,bottom:L-R},{htmlRegion:ne}=O,re=`visible`,ie=`visibleFirst`;ne!==`scroll`&&ne!==ie&&(ne=re);let ae=ne===ie,oe=lv(te,d),se=lv(ee,d),ce=ne===re?se:oe,le=ae?se:ce;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let ue=e.getBoundingClientRect();e.style.left=x,e.style.top=S,e.style.right=C,e.style.bottom=w,e.style.overflow=T,e.style.overflowX=E,e.style.overflowY=D,(m=e.parentElement)==null||m.removeChild(k);let de=sv(Math.round(V/parseFloat(N)*1e3)/1e3),fe=sv(Math.round(B/parseFloat(M)*1e3)/1e3);if(de===0||fe===0||Fi(n)&&!Li(n))return;let{offset:pe,targetOffset:me}=O,[he,W]=dv(j,pe),[ge,_e]=dv(A,me);A.x-=ge,A.y-=_e;let[K,ve]=O.points||[],q=fv(ve),ye=fv(K),be=pv(A,q),xe=pv(j,ye),Se=G({},O),Ce=[ye,q],we=be.x-xe.x+he,Te=be.y-xe.y+W;function _(e,t,n=ce){let r=j.x+e,i=j.y+t,a=r+V,o=i+B,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let Ee=_(we,Te),De=_(we,Te,se),Oe=pv(A,[`t`,`l`]),ke=pv(j,[`t`,`l`]),Ae=pv(A,[`b`,`r`]),je=pv(j,[`b`,`r`]),{adjustX:Me,adjustY:Ne,shiftX:Pe,shiftY:Fe}=O.overflow||{},Ie=e=>typeof e==`boolean`?e:e>=0,Le,Re,ze,Be;function v(){Le=j.y+Te,Re=Le+B,ze=j.x+we,Be=ze+V}v();let Ve=Ie(Ne),He=ye[0]===q[0];if(Ve&&ye[0]===`t`&&(Re>le.bottom||f.current.bt)){let e=Te;He?e-=B-H:e=Oe.y-je.y-W;let t=_(we,e),n=_(we,e,se);t>Ee||t===Ee&&(!ae||n>=De)?(f.current.bt=!0,Te=e,W=-W,Ce=[mv(Ce[0],0),mv(Ce[1],0)]):f.current.bt=!1}if(Ve&&ye[0]===`b`&&(LeEe||t===Ee&&(!ae||n>=De)?(f.current.tb=!0,Te=e,W=-W,Ce=[mv(Ce[0],0),mv(Ce[1],0)]):f.current.tb=!1}let Ue=Ie(Me),We=ye[1]===q[1];if(Ue&&ye[1]===`l`&&(Be>le.right||f.current.rl)){let e=we;We?e-=V-U:e=Oe.x-je.x-he;let t=_(e,Te),n=_(e,Te,se);t>Ee||t===Ee&&(!ae||n>=De)?(f.current.rl=!0,we=e,he=-he,Ce=[mv(Ce[0],1),mv(Ce[1],1)]):f.current.rl=!1}if(Ue&&ye[1]===`r`&&(zeEe||t===Ee&&(!ae||n>=De)?(f.current.lr=!0,we=e,he=-he,Ce=[mv(Ce[0],1),mv(Ce[1],1)]):f.current.lr=!1}Se.points=[hv(Ce[0]),hv(Ce[1])],v();let Ge=Pe===!0?0:Pe;typeof Ge==`number`&&(zese.right&&(we-=Be-se.right-he,A.x>se.right-Ge&&(we+=A.x-se.right+Ge)));let Ke=Fe===!0?0:Fe;typeof Ke==`number`&&(Lese.bottom&&(Te-=Re-se.bottom-W,A.y>se.bottom-Ke&&(Te+=A.y-se.bottom+Ke)));let qe=j.x+we,Je=qe+V,Ye=j.y+Te,Xe=Ye+B,Ze=A.x,Qe=Ze+U,$e=A.y,et=$e+H,tt=(Math.max(qe,Ze)+Math.min(Je,Qe))/2-qe,nt=(Math.max(Ye,$e)+Math.min(Xe,et))/2-Ye;o==null||o(t,Se);let rt=ue.right-j.x-(we+j.width),it=ue.bottom-j.y-(Te+j.height);de===1&&(we=Math.floor(we),rt=Math.floor(rt)),fe===1&&(Te=Math.floor(Te),it=Math.floor(it));let at={ready:!0,offsetX:we/de,offsetY:Te/fe,offsetR:rt/de,offsetB:it/fe,arrowX:tt/de,arrowY:nt/fe,scaleX:de,scaleY:fe,align:Se};l(at)}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>G(G({},e),{},{ready:!1}))};return Xr(h,[r]),Xr(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function coe(){let e=J.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return J.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function loe(e,t,n,r,i){Xr(()=>{if(e&&t&&n){let e=t,o=n,s=ov(e),c=ov(o),l=av(o),u=new Set([l,...s,...c]);function a(){r(),i()}return u.forEach(e=>{e.addEventListener(`scroll`,a,{passive:!0})}),l.addEventListener(`resize`,a,{passive:!0}),r(),()=>{u.forEach(e=>{e.removeEventListener(`scroll`,a),l.removeEventListener(`resize`,a)})}}},[e,t,n])}function uoe(e,t,n,r,i,a,o,s){let c=J.useRef(e);c.current=e;let l=J.useRef(!1);J.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{var t;c.current&&!o(((t=e.composedPath)==null||(t=t.call(e))==null?void 0:t[0])||e.target)&&!l.current&&s(!1)},i=av(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=ta(n);return a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}K();var doe=`prefixCls.children.action.showAction.hideAction.popupVisible.defaultPopupVisible.onOpenChange.afterOpenChange.onPopupVisibleChange.afterPopupVisibleChange.mouseEnterDelay.mouseLeaveDelay.focusDelay.blurDelay.mask.maskClosable.getPopupContainer.forceRender.autoDestroy.popup.popupClassName.uniqueContainerClassName.uniqueContainerStyle.popupStyle.popupPlacement.builtinPlacements.popupAlign.zIndex.stretch.getPopupClassNameFromAlign.fresh.unique.alignPoint.onPopupClick.onPopupAlign.arrow.popupMotion.maskMotion.mobile`.split(`.`);function foe(e=Zp){return J.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,popupVisible:c,defaultPopupVisible:l,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:f,afterPopupVisibleChange:p,mouseEnterDelay:m,mouseLeaveDelay:h=.1,focusDelay:g,blurDelay:_,mask:v,maskClosable:y=!0,getPopupContainer:b,forceRender:x,autoDestroy:S,popup:C,popupClassName:w,uniqueContainerClassName:T,uniqueContainerStyle:E,popupStyle:D,popupPlacement:O,builtinPlacements:k={},popupAlign:A,zIndex:j,stretch:M,getPopupClassNameFromAlign:N,fresh:P,unique:F,alignPoint:I,onPopupClick:L,onPopupAlign:R,arrow:z,popupMotion:B,maskMotion:V,mobile:H}=t,U=q(t,doe),ee=S||!1,te=c===void 0,ne=!!H,re=J.useRef({}),ie=J.useContext(rv),ae=J.useMemo(()=>({registerSubPopup:(e,t)=>{re.current[e]=t,ie==null||ie.registerSubPopup(e,t)}}),[ie]),oe=J.useContext(roe),se=ii(),[ce,le]=J.useState(null),ue=J.useRef(null),de=qr(e=>{ue.current=e,Fi(e)&&ce!==e&&le(e),ie==null||ie.registerSubPopup(se,e)}),[fe,pe]=J.useState(null),me=J.useRef(null),he=qr(e=>{let t=Ii(e);Fi(t)&&fe!==t&&(pe(t),me.current=t)}),W={},ge=qr(e=>{var t,n;let r=fe;return(r==null?void 0:r.contains(e))||((t=ta(r))==null?void 0:t.host)===e||e===r||(ce==null?void 0:ce.contains(e))||((n=ta(ce))==null?void 0:n.host)===e||e===ce||Object.values(re.current).some(t=>(t==null?void 0:t.contains(e))||e===t)}),_e=z?G({},z===!0?{}:z):null,[K,ve]=$r(l||!1,c),ye=K||!1,be=J.useMemo(()=>{let e=typeof i==`function`?i({open:ye}):i;return J.Children.only(e)},[i,ye]),xe=(be==null?void 0:be.props)||{},Se=qr(()=>ye),Ce=qr((e=0)=>({popup:C,target:fe,delay:e,prefixCls:r,popupClassName:w,uniqueContainerClassName:T,uniqueContainerStyle:E,popupStyle:D,popupPlacement:O,builtinPlacements:k,popupAlign:A,zIndex:j,mask:v,maskClosable:y,popupMotion:B,maskMotion:V,arrow:_e,getPopupContainer:b,getPopupClassNameFromAlign:N,id:se,onEsc:Oe}));Xr(()=>{oe&&F&&fe&&!te&&!ie&&(ye?oe.show(Ce(m),Se):oe.hide(h))},[ye,fe]);let we=J.useRef(ye);we.current=ye;let Te=qr(e=>{(0,Xa.flushSync)(()=>{ye!==e&&(ve(e),u==null||u(e),f==null||f(e))})}),Ee=coe(),De=(e,t=0)=>{if(c!==void 0){Ee(()=>{Te(e)},t);return}if(oe&&F&&te&&!ie){e?oe.show(Ce(t),Se):oe.hide(t);return}Ee(()=>{Te(e)},t)};function Oe({top:e}){e&&De(!1)}let[ke,Ae]=J.useState(!1);Xr(e=>{(!e||ye)&&Ae(!0)},[ye]);let[je,Me]=J.useState(null),[Ne,Pe]=J.useState(null),Fe=e=>{Pe([e.clientX,e.clientY])},[Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke]=soe(ye,ce,I&&Ne!==null?Ne:fe,O,k,A,R,ne),[qe,Je]=ioe(a,o,s),Ye=qe.has(`click`),Xe=Je.has(`click`)||Je.has(`contextMenu`),Ze=qr(()=>{ke||Ke()});loe(ye,fe,ce,Ze,()=>{we.current&&I&&Xe&&De(!1)}),Xr(()=>{Ze()},[Ne,O]),Xr(()=>{ye&&!(k!=null&&k[O])&&Ze()},[JSON.stringify(A)]);let Qe=J.useMemo(()=>Z(ooe(k,r,Ge,I),N==null?void 0:N(Ge)),[Ge,N,k,r,I]);J.useImperativeHandle(n,()=>({nativeElement:me.current,popupElement:ue.current,forceAlign:Ze}));let[$e,et]=J.useState(0),[tt,nt]=J.useState(0),rt=()=>{if(M&&fe){let e=fe.getBoundingClientRect();et(e.width),nt(e.height)}},it=()=>{rt(),Ze()},at=e=>{Ae(!1),Ke(),d==null||d(e),p==null||p(e)},ot=()=>new Promise(e=>{rt(),Me(()=>e)});Xr(()=>{je&&(Ke(),je(),Me(null))},[je]);function st(e,t,n,r,i){W[e]=(a,...o)=>{var s;(!i||!i())&&(r==null||r(a),De(t,n)),(s=xe[e])==null||s.call(xe,a,...o)}}let ct=qe.has(`touch`),lt=Je.has(`touch`),ut=J.useRef(!1);(ct||lt)&&(W.onTouchStart=(...e)=>{var t;ut.current=!0,we.current&<?De(!1):!we.current&&ct&&De(!0),(t=xe.onTouchStart)==null||t.call(xe,...e)}),(Ye||Xe)&&(W.onClick=(e,...t)=>{var n;we.current&&Xe?De(!1):!we.current&&Ye&&(Fe(e),De(!0)),(n=xe.onClick)==null||n.call(xe,e,...t),ut.current=!1});let dt=uoe(ye,Xe||lt,fe,ce,v,y,ge,De),ft=qe.has(`hover`),pt=Je.has(`hover`),mt,ht,gt=()=>ut.current;if(ft){let e=e=>{Fe(e)};st(`onMouseEnter`,!0,m,e,gt),st(`onPointerEnter`,!0,m,e,gt),mt=e=>{(ye||ke)&&ce!=null&&ce.contains(e.target)&&De(!0,m)},I&&(W.onMouseMove=e=>{var t;(t=xe.onMouseMove)==null||t.call(xe,e)})}pt&&(st(`onMouseLeave`,!1,h,void 0,gt),st(`onPointerLeave`,!1,h,void 0,gt),ht=()=>{De(!1,h)}),qe.has(`focus`)&&st(`onFocus`,!0,g),Je.has(`focus`)&&st(`onBlur`,!1,_),qe.has(`contextMenu`)&&(W.onContextMenu=(e,...t)=>{var n;we.current&&Je.has(`contextMenu`)?De(!1):(Fe(e),De(!0)),e.preventDefault(),(n=xe.onContextMenu)==null||n.call(xe,e,...t)});let _t=J.useRef(!1);_t.current||(_t.current=x||ye||ke);let vt=G(G({},xe),W),yt={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{U[e]&&(yt[e]=(...t)=>{var n;(n=vt[e])==null||n.call(vt,...t),U[e](...t)})});let bt={x:Ve,y:He};lo(ye,fe,it);let xt=gi(he,bi(be)),St=J.cloneElement(be,G(G(G({},vt),yt),{},{ref:xt}));return J.createElement(J.Fragment,null,St,_t.current&&(!oe||!F)&&J.createElement(rv.Provider,{value:ae},J.createElement(noe,{portal:e,ref:de,prefixCls:r,popup:C,className:Z(w,!ne&&Qe),style:D,target:fe,onMouseEnter:mt,onMouseLeave:ht,onPointerEnter:mt,zIndex:j,open:ye,keepDom:ke,fresh:P,onClick:L,onPointerDownCapture:dt,mask:v,motion:B,maskMotion:V,onVisibleChanged:at,onPrepare:ot,forceRender:x,autoDestroy:ee,getPopupContainer:b,onEsc:Oe,align:Ge,arrow:_e,arrowPos:bt,ready:Ie,offsetX:Le,offsetY:Re,offsetR:ze,offsetB:Be,onAlign:Ze,stretch:M,targetWidth:$e/Ue,targetHeight:tt/We,mobile:H})))})}var gv=foe(Zp);K();var poe=[`prefixCls`,`disabled`,`visible`,`children`,`popupElement`,`animation`,`transitionName`,`popupStyle`,`popupClassName`,`direction`,`placement`,`builtinPlacements`,`popupMatchSelectWidth`,`popupRender`,`popupAlign`,`getPopupContainer`,`empty`,`onPopupVisibleChange`,`onPopupMouseEnter`,`onPopupMouseDown`,`onPopupBlur`];function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},hoe=J.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:v,onPopupVisibleChange:y,onPopupMouseEnter:b,onPopupMouseDown:x,onPopupBlur:S}=e,C=q(e,poe),w=`${n}-dropdown`,T=o;h&&(T=h(o));let E=J.useMemo(()=>p||moe(m),[p,m]),D=s?`${w}-${s}`:c,O=typeof m==`number`,k=J.useMemo(()=>m===!1||O?`minWidth`:`width`,[m,O]),A=l;O&&(A=G(G({},l),{},{width:m}));let j=J.useRef(null);return J.useImperativeHandle(t,()=>({getPopupElement:()=>{var e;return(e=j.current)==null?void 0:e.popupElement}})),J.createElement(gv,_v({},C,{showAction:y?[`click`]:[],hideAction:y?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:E,prefixCls:w,popupMotion:{motionName:D},popup:J.createElement(`div`,{onMouseEnter:b,onMouseDown:x,onBlur:S},T),ref:j,stretch:k,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:Z(u,{[`${w}-empty`]:v}),popupStyle:A,onPopupVisibleChange:y}),a)});K();function vv(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n==null?r===void 0?`rc-index-key-${t}`:r:n}function yv(e){return e!==void 0&&!Number.isNaN(e)}function bv(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function goe(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=bv(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:vv(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:vv(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function xv(e){let t=G({},e);return`props`in t||Object.defineProperty(t,"props",{get(){return _a(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var _oe=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r=r||a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function voe(e){let{visible:t,values:n}=e;return t?J.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var yoe=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Sv=(e,t=1)=>{if(t<=0){e();return}yoe(()=>{Sv(e,t-1)})};function boe(e,t,n,r){let[i,a]=(0,J.useState)(!1);(0,J.useEffect)(()=>{a(!0)},[]);let[o,s]=$r(e,t),[c,l]=(0,J.useState)(!1),u=i?o:!1,d=r(u),f=(0,J.useRef)(0),p=qr(e=>{n&&d!==e&&n(e),s(e)});return[u,d,qr((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!(n!=null&&n())&&(p(i),l(!1))}i?a():Sv(()=>{a()})}),c]}var xoe=[`children`];function Cv(e){let{children:t}=e,n=q(e,xoe);return t?J.createElement(`div`,n,t):null}var wv=J.createContext(null);function Tv(){return J.useContext(wv)}K();var Soe=[`onChange`,`onKeyDown`,`onBlur`,`style`,`syncWidth`,`value`,`className`,`autoComplete`],Ev=J.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l}=e,u=q(e,Soe),{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:v,components:{input:y=`input`}}=Tv(),{id:b,classNames:x,styles:S,open:C,activeDescendantId:w,role:T,disabled:E}=$_()||{},D=Z(`${d}-input`,x==null?void 0:x.input,c),O=J.useRef(!1),k=J.useRef(null),A=J.useRef(null);J.useImperativeHandle(t,()=>A.current);let j=e=>{let{value:t}=e.target;if(_&&k.current&&/[\r\n]/.test(k.current)){let e=k.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,k.current)}k.current=null,p&&p(t,!0,O.current),n==null||n(e)},M=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!C&&!O.current&&m&&m(n),r==null||r(e)},N=e=>{h==null||h(),i==null||i(e)},P=()=>{O.current=!0},F=e=>{if(O.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p==null||p(t,!0,!1)}},I=e=>{let{clipboardData:t}=e,n=t==null?void 0:t.getData(`text`);k.current=n||``},[L,R]=J.useState(void 0);Xr(()=>{let e=A.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;R(t),e.style.width=``}},[o,s]);let z=G(G({id:b,type:`text`},u),{},{ref:A,style:G(G(G({},S==null?void 0:S.input),a),{},{"--select-input-width":L}),autoFocus:g,autoComplete:l||`new-password`,className:D,disabled:E,value:s||``,onChange:j,onKeyDown:M,onBlur:N,onPaste:I,onCompositionStart:P,onCompositionEnd:F,role:T||`combobox`,"aria-expanded":C||!1,"aria-haspopup":`listbox`,"aria-owns":C?`${b}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":C?`${b}_list`:void 0,"aria-activedescendant":C?w:void 0});if(J.isValidElement(y)){let t=y.props||{},n=G(G({placeholder:e.placeholder||v},z),t);return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{var n;r(...t),(n=z[e])==null||n.call(z,...t)})}),n.ref=hi(y.ref,z.ref),J.cloneElement(y,n)}let B=y;return J.createElement(B,z)});K();function Dv(e){let{prefixCls:t,placeholder:n,displayValues:r}=Tv(),{classNames:i,styles:a}=$_(),{show:o=!0}=e;return r.length?null:J.createElement(`div`,{className:Z(`${t}-placeholder`,i==null?void 0:i.placeholder),style:G({visibility:o?`visible`:`hidden`},a==null?void 0:a.placeholder)},n)}var Ov=J.createContext(null);function kv(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Coe(e){return e!=null}function woe(e){return!e&&e!==0}function Av(e){return[`string`,`number`].includes(typeof e)}function jv(e){let t;return e&&(Av(e.title)?t=e.title.toString():Av(e.label)&&(t=e.label.toString())),t}K();function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=Tv(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=$_(),m=J.useContext(Ov),[h,g]=J.useState(!1),_=s===`combobox`,v=a[0],y=J.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[b,x,S,C]=J.useMemo(()=>{let e,t,n;if(v&&m!=null&&m.flattenOptions){let r=m.flattenOptions.find(e=>e.value===v.value);r!=null&&r.data&&(e=r.data.className,t=r.data.style,n=jv(r.data))}return v&&!n&&(n=jv(v)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[v,m==null?void 0:m.flattenOptions,u]);J.useEffect(()=>{_&&g(!1)},[_,i]);let w=v&&v.label!==null&&v.label!==void 0&&String(v.label).trim()!==``,T=_&&c!=null&&c.input?null:v?C?J.createElement(`div`,{className:Z(`${n}-content-value`,b),style:G(G({},y?{visibility:`hidden`}:{}),x),title:S},v.label):v.label:J.createElement(Dv,{show:!y});return J.createElement(`div`,{className:Z(`${n}-content`,w&&`${n}-content-has-value`,y&&`${n}-content-has-search-value`,C&&`${n}-content-has-option-style`,f==null?void 0:f.content),style:p==null?void 0:p.content,title:C?void 0:S},T,J.createElement(Ev,Mv({ref:t},e,{value:y,maxLength:s===`combobox`?o:void 0,onChange:t=>{var n;g(!0),(n=e.onChange)==null||n.call(e,t)}})))});K();var Eoe=[`prefixCls`,`invalidate`,`item`,`renderItem`,`responsive`,`responsiveDisabled`,`registerSize`,`itemKey`,`className`,`style`,`children`,`display`,`order`,`component`],Nv=void 0;function Doe(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`}=e,g=q(e,Eoe),_=o&&!p;function v(e){c(l,e)}J.useEffect(()=>()=>{v(null)},[]);let y=a&&i!==Nv?a(i,{index:m}):f,b;r||(b={opacity:+!_,height:_?0:Nv,overflowY:_?`hidden`:Nv,order:o?m:Nv,pointerEvents:_?`none`:Nv,position:_?`absolute`:Nv});let x={};_&&(x[`aria-hidden`]=!0);let S=J.createElement(h,ng({className:Z(!r&&n,u),style:G(G({},b),d)},x,g,{ref:t}),y);return o&&(S=J.createElement(go,{onResize:({offsetWidth:e})=>{v(e)},disabled:s},S)),S}var Pv=J.forwardRef(Doe);function Ooe(e){if(typeof MessageChannel>`u`)Fa(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function koe(){let e=J.useRef(null);return t=>{e.current||(e.current=[],Ooe(()=>{(0,Xa.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Fv(e,t){let[n,r]=J.useState(t);return[n,qr(t=>{e(()=>{r(t)})})]}var Iv=J.createContext(null),Aoe=[`component`],joe=[`className`],Moe=[`className`],Noe=J.forwardRef((e,t)=>{let n=J.useContext(Iv);if(!n){let{component:n=`div`}=e,r=q(e,Aoe);return J.createElement(n,ng({},r,{ref:t}))}let{className:r}=n,i=q(n,joe),{className:a}=e,o=q(e,Moe);return J.createElement(Iv.Provider,{value:null},J.createElement(Pv,ng({ref:t,className:Z(r,a)},i,o)))});K();var Poe=[`prefixCls`,`data`,`renderItem`,`renderRawItem`,`itemKey`,`itemWidth`,`ssr`,`style`,`className`,`maxCount`,`renderRest`,`renderRawRest`,`prefix`,`suffix`,`component`,`itemComponent`,`onVisibleChange`],Lv=`responsive`,Rv=`invalidate`;function Foe(e){return`+ ${e.length} ...`}function Ioe(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:v}=e,y=q(e,Poe),b=c===`full`,x=koe(),[S,C]=Fv(x,null),w=S||0,[T,E]=Fv(x,new Map),[D,O]=Fv(x,0),[k,A]=Fv(x,0),[j,M]=Fv(x,0),[N,P]=Fv(x,0),[F,I]=(0,J.useState)(null),[L,R]=(0,J.useState)(null),z=J.useMemo(()=>L===null&&b?9007199254740991:L||0,[L,S]),[B,V]=(0,J.useState)(!1),H=`${n}-item`,U=Math.max(D,k),ee=d===Lv,te=r.length&&ee,ne=d===Rv,re=te||typeof d==`number`&&r.length>d,ie=(0,J.useMemo)(()=>{let e=r;return te?e=S===null&&b?r:r.slice(0,Math.min(r.length,w/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,S,d,te]),ae=(0,J.useMemo)(()=>te?r.slice(z+1):r.slice(ie.length),[r,ie,te,z]),oe=(0,J.useCallback)((e,t)=>{var n;return typeof o==`function`?o(e):(n=o&&(e==null?void 0:e[o]))==null?t:n},[o]),se=(0,J.useCallback)(i||(e=>e),[i]);function ce(e,t,n){L===e&&(t===void 0||t===F)||(R(e),n||(V(e{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function de(e,t){A(t),O(k)}function fe(e,t){M(t)}function pe(e,t){P(t)}function me(e){return T.get(oe(ie[e],e))}Xr(()=>{if(w&&typeof U==`number`&&ie){let e=j+N,t=ie.length,n=t-1;if(!t){ce(0,null);return}for(let r=0;rw){ce(r-1,e-t-N+k);break}}h&&me(0)+N>w&&I(null)}},[w,T,k,j,N,oe,ie]);let he=B&&!!ae.length,W={};F!==null&&te&&(W={position:`absolute`,top:0,insetInlineStart:F});let ge={prefixCls:H,responsive:te,component:_,invalidate:ne},_e=a?(e,t)=>{let n=oe(e,t);return J.createElement(Iv.Provider,{key:n,value:G(G({},ge),{},{order:t,item:e,itemKey:n,registerSize:ue,display:t<=z})},a(e,t))}:(e,t)=>{let n=oe(e,t);return J.createElement(Pv,ng({},ge,{order:t,key:n,item:e,renderItem:se,itemKey:n,registerSize:ue,display:t<=z}))},K={order:he?z:9007199254740991,className:`${H}-rest`,registerSize:de,display:he},ve=f||Foe,ye=p?J.createElement(Iv.Provider,{value:G(G({},ge),K)},p(ae)):J.createElement(Pv,ng({},ge,K),typeof ve==`function`?ve(ae):ve),be=J.createElement(g,ng({className:Z(!ne&&n,u),style:l,ref:t},y),m&&J.createElement(Pv,ng({},ge,{responsive:ee,responsiveDisabled:!te,order:-1,className:`${H}-prefix`,registerSize:fe,display:!0}),m),ie.map(_e),re?ye:null,h&&J.createElement(Pv,ng({},ge,{responsive:ee,responsiveDisabled:!te,order:z,className:`${H}-suffix`,registerSize:pe,display:!0,style:W}),h));return ee?J.createElement(go,{onResize:le,disabled:!te},be):be}var zv=J.forwardRef(Ioe);zv.Item=Noe,zv.RESPONSIVE=Lv,zv.INVALIDATE=Rv;var Bv=zv;K();var Vv=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return J.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o==null||o(e)},style:G({userSelect:`none`,WebkitUserSelect:`none`},n),unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?J.createElement(`span`,{className:Z(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault(),e.stopPropagation()},Roe=J.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=Tv(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:v,styles:y}=$_(),b=`${n}-selection-item`,x=i;!d&&a===`multiple`&&p!==!1&&(x=``);let S=l&&x||``,C=l&&!c,w=s==null?`×`:s,T=h==null?(e=>`+ ${e.length} ...`):h,E=m,D=e=>{f(e)},O=e=>{o==null||o(e)},k=(e,t,n,r,i)=>J.createElement(`span`,{title:jv(e),className:Z(b,{[`${b}-disabled`]:n},v==null?void 0:v.item),style:y==null?void 0:y.item},J.createElement(`span`,{className:Z(`${b}-content`,v==null?void 0:v.itemContent),style:y==null?void 0:y.itemContent},t),r&&J.createElement(Vv,{className:Z(`${b}-remove`,v==null?void 0:v.itemRemove),style:y==null?void 0:y.itemRemove,onMouseDown:Uv,onClick:i,customizeIcon:w},`×`)),A=(e,t,n,r,i,a,o)=>J.createElement(`span`,{onMouseDown:e=>{Uv(e),D(!u)}},E({label:t,value:e,index:o==null?void 0:o.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return J.createElement(Bv,{prefixCls:`${n}-content`,className:v==null?void 0:v.content,style:y==null?void 0:y.content,prefix:!r.length&&!S&&J.createElement(Dv,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),O(e)};return typeof E==`function`?A(i,o,n,a,s,void 0,t):k(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof T==`function`?T(e):T;return typeof E==`function`?A(void 0,t,!1,!1,void 0,!0):k({title:t},t,!1)},suffix:J.createElement(Ev,Hv({ref:t,disabled:c,readOnly:!C},e,{value:S||``,syncWidth:!0})),itemKey:Loe,maxCount:_})});K();var zoe=J.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=Tv(),a=$_(),{showSearch:o}=a,s=G(G({},Oa(a,{aria:!0})),{},{onKeyDown:r,readOnly:!o,tabIndex:i});return n?J.createElement(Roe,{ref:t,inputProps:s}):J.createElement(Toe,{ref:t,inputProps:s})});function Boe(e){return e&&![aa.ESC,aa.SHIFT,aa.BACKSPACE,aa.TAB,aa.WIN_KEY,aa.ALT,aa.META,aa.WIN_KEY_RIGHT,aa.CTRL,aa.SEMICOLON,aa.EQUALS,aa.CAPS_LOCK,aa.CONTEXT_MENU,aa.UP,aa.LEFT,aa.RIGHT,aa.F1,aa.F2,aa.F3,aa.F4,aa.F5,aa.F6,aa.F7,aa.F8,aa.F9,aa.F10,aa.F11,aa.F12].includes(e)}K();var Voe=[`prefixCls`,`className`,`style`,`prefix`,`suffix`,`clearIcon`,`children`,`multiple`,`displayValues`,`placeholder`,`mode`,`searchValue`,`onSearch`,`onSearchSubmit`,`onInputBlur`,`maxLength`,`autoFocus`,`onMouseDown`,`onClearMouseDown`,`onInputKeyDown`,`onSelectorRemove`,`tokenWithEnter`,`components`];function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{which:t}=e,n=P.current instanceof HTMLTextAreaElement;!n&&E&&(t===aa.UP||t===aa.DOWN)&&e.preventDefault(),x&&x(e),!(n&&!E&&~[aa.UP,aa.DOWN,aa.LEFT,aa.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&Boe(t)&&D(!0)});J.useImperativeHandle(t,()=>({focus:e=>{var t,n;(t=(n=P.current||N.current).focus)==null||t.call(n,e)},blur:()=>{var e,t;(e=(t=P.current||N.current).blur)==null||e.call(t)},nativeElement:Ii(N.current)}));let I=qr(e=>{if(!k){let n=Ii(P.current);e.nativeEvent._ori_target=n;let r=n===e.target||(n==null?void 0:n.contains(e.target));n&&!r&&e.preventDefault();let i=E&&!l&&(f===`combobox`||O)||E&&l&&r;if(e.nativeEvent._select_lazy)E&&!l&&D(!1);else{var t;(t=P.current)==null||t.focus(),i||D()}}y==null||y(e)}),{root:L}=w,R=Ca(T,Hoe),z=Oa(R,{aria:!0}),B=Object.keys(z),V=G(G({},e),{},{onInputKeyDown:F});if(L){let e=L.props||{},t=G(G({},e),R);return Object.keys(e).forEach(n=>{let r=e[n],i=R[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),J.isValidElement(L)?J.cloneElement(L,G(G({},t),{},{ref:hi(L.ref,N)})):J.createElement(L,Wv({},t,{ref:N}))}return J.createElement(wv.Provider,{value:V},J.createElement(`div`,Wv({},Ca(R,B),{ref:N,className:r,style:i,onMouseDown:I}),J.createElement(Cv,{className:Z(`${n}-prefix`,j==null?void 0:j.prefix),style:M==null?void 0:M.prefix},a),J.createElement(zoe,{ref:P}),J.createElement(Cv,{className:Z(`${n}-suffix`,{[`${n}-suffix-loading`]:A},j==null?void 0:j.suffix),style:M==null?void 0:M.suffix},o),s&&J.createElement(Cv,{className:Z(`${n}-clear`,j==null?void 0:j.clear),style:M==null?void 0:M.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,b==null||b(e)}},s),c))});function Woe(e,t,n){return J.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}K();var Goe=`id.prefixCls.className.styles.classNames.showSearch.tagRender.showScrollBar.direction.omitDomProps.displayValues.onDisplayValuesChange.emptyOptions.notFoundContent.onClear.maxCount.placeholder.mode.disabled.loading.getInputElement.getRawInputElement.open.defaultOpen.onPopupVisibleChange.activeValue.onActiveValueChange.activeDescendantId.searchValue.autoClearSearchValue.onSearch.onSearchSplit.tokenSeparators.allowClear.prefix.suffix.suffixIcon.clearIcon.OptionList.animation.transitionName.popupStyle.popupClassName.popupMatchSelectWidth.popupRender.popupAlign.placement.builtinPlacements.getPopupContainer.showAction.onFocus.onBlur.onKeyUp.onKeyDown.onMouseDown.components`.split(`.`);function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;te===`tags`||e===`multiple`,Koe=J.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:v,mode:y,disabled:b,loading:x,getInputElement:S,getRawInputElement:C,open:w,defaultOpen:T,onPopupVisibleChange:E,activeValue:D,onActiveValueChange:O,activeDescendantId:k,searchValue:A,autoClearSearchValue:j,onSearch:M,onSearchSplit:N,tokenSeparators:P,allowClear:F,prefix:I,suffix:L,suffixIcon:R,clearIcon:z,OptionList:B,animation:V,transitionName:H,popupStyle:U,popupClassName:ee,popupMatchSelectWidth:te,popupRender:ne,popupAlign:re,placement:ie,builtinPlacements:ae,getPopupContainer:oe,showAction:se=[],onFocus:ce,onBlur:le,onKeyUp:ue,onKeyDown:de,onMouseDown:fe,components:pe}=e,me=q(e,Goe),he=Kv(y),W=J.useRef(null),ge=J.useRef(null),_e=J.useRef(null),[K,ve]=J.useState(!1);J.useImperativeHandle(t,()=>{var e,t;return{focus:(e=W.current)==null?void 0:e.focus,blur:(t=W.current)==null?void 0:t.blur,scrollTo:e=>{var t;return(t=_e.current)==null?void 0:t.scrollTo(e)},nativeElement:Ii(W.current)}});let ye=Woe(pe,S,C),be=J.useMemo(()=>{var e;if(y!==`combobox`)return A;let t=(e=f[0])==null?void 0:e.value;return typeof t==`string`||typeof t==`number`?String(t):``},[A,y,f]),xe=y===`combobox`&&typeof S==`function`&&S()||null,Se=!h&&m,[Ce,we,Te,Ee]=boe(T||!1,w,E,e=>b||Se?!1:e),De=J.useMemo(()=>typeof P==`function`||(P||[]).some(e=>[` `,`\r -`].includes($t)),[j]),Bt=g.useMemo(()=>typeof j=="function"?($t,Ie)=>{const Ke=j($t),nt=Array.isArray(Ke)&&Ke.length===1&&Ke[0]===$t;return!Array.isArray(Ke)||!Ke.length||nt?null:typeof Ie!="undefined"?Ke.slice(0,Ie):Ke}:($t,Ie)=>i6e($t,j,Ie),[j]),qt=($t,Ie,Ke)=>{if(Oe&&sH(y)&&d.length>=y)return;let nt=!0,ht=$t;L==null||L(null);const Xt=sH(y)?y-d.length:void 0,kt=Ke?null:Bt($t,Xt);return x!=="combobox"&&kt&&(ht="",U==null||U(kt),Je(!1),nt=!1),D&&Ne!==ht&&D(ht,{source:Ie?"typing":"effect"}),$t&&Ie&&nt&&Je(!0),nt},jt=$t=>{!$t||!$t.trim()||D($t,{source:"submit"})};g.useEffect(()=>{!et&&!Oe&&x!=="combobox"&&qt("",!1,!1)},[et]),g.useEffect(()=>{C&&(Je(!1),Le(!1))},[C,We]);const[nn,Jt]=Zke(),Ot=g.useRef(!1),sn=$t=>{var Xt;const Ie=nn(),{key:Ke}=$t,nt=Ke==="Enter",ht=Ke===" ";if(nt||ht){const kt=x==="combobox";(ht&&!(kt||s)||nt&&!kt)&&$t.preventDefault(),We||Je(!0)}if(Jt(!!Ne),Ke==="Backspace"&&!Ie&&Oe&&!Ne&&d.length){const kt=[...d];let mn=null;for(let Rt=kt.length-1;Rt>=0;Rt-=1){const tn=kt[Rt];if(!tn.disabled){kt.splice(Rt,1),mn=tn;break}}mn&&A(kt,{type:"remove",values:[mn]})}We&&(!nt||!Ot.current)&&!ht&&(nt&&(Ot.current=!0),(Xt=Se.current)==null||Xt.onKeyDown($t)),me==null||me($t)},Vt=($t,...Ie)=>{var Ke;We&&((Ke=Se.current)==null||Ke.onKeyUp($t,...Ie)),$t.key==="Enter"&&(Ot.current=!1),we==null||we($t,...Ie)},xt=yn($t=>{const Ie=d.filter(Ke=>Ke!==$t);A(Ie,{type:"remove",values:[$t]})}),qe=()=>{Ot.current=!1},it=()=>{var $t;return[td(xe.current),($t=Me.current)==null?void 0:$t.getPopupElement()]};Jke(it,We,Je,!!He.root);const Pt=g.useRef(!1),De=$t=>{Le(!0),C||(ie.includes("focus")&&Je(!0),le==null||le($t))},ze=()=>{We&&!Pt.current&&Je(!1,{cancelFun:()=>Lie(it(),document.activeElement)})},bt=$t=>{Le(!1),Ne&&(x==="tags"?D(Ne,{source:"submit"}):x==="multiple"&&D("",{source:"blur"})),ze(),C||ve==null||ve($t)},lt=($t,...Ie)=>{var ht;const{target:Ke}=$t,nt=(ht=Me.current)==null?void 0:ht.getPopupElement();nt!=null&&nt.contains(Ke)&&Je&&Je(!0),Ee==null||Ee($t,...Ie),Pt.current=!0,cH(()=>{Pt.current=!1})},[,At]=g.useState({});function ut(){At({})}let ft;He.root&&(ft=$t=>{Je($t)});const Kt=g.useMemo(()=>te(I({},e),{notFoundContent:p,open:We,triggerOpen:We,rawOpen:et,id:n,showSearch:s,multiple:Oe,toggleOpen:Je,showScrollBar:c,styles:o,classNames:a,lockOptions:dt}),[e,p,Je,n,s,Oe,We,et,c,o,a,dt]),An=g.useMemo(()=>{const $t=z!=null?z:V;return typeof $t=="function"?$t({searchValue:Ne,open:We,focused:Pe,showSearch:s,loading:S}):$t},[z,V,Ne,We,Pe,s,S]),pn=()=>{var $t;v==null||v(),($t=xe.current)==null||$t.focus(),A([],{type:"clear",values:d}),qt("",!1,!1)},{allowClear:bn,clearIcon:Sn}=Xke(r,d,Q,Y,C,Ne,x),Tn=g.createElement(Z,{ref:Se}),lr=Ae(r,i,{[`${r}-focused`]:Pe,[`${r}-multiple`]:Oe,[`${r}-single`]:!Oe,[`${r}-allow-clear`]:bn,[`${r}-show-arrow`]:An!=null,[`${r}-disabled`]:C,[`${r}-loading`]:S,[`${r}-open`]:We,[`${r}-customize-input`]:at,[`${r}-show-search`]:s});let $n=g.createElement(C6e,pH({},pe,{ref:xe,prefixCls:r,className:lr,focused:Pe,prefix:K,suffix:An,clearIcon:Sn,multiple:Oe,mode:x,displayValues:d,placeholder:b,searchValue:Ne,activeValue:T,onSearch:qt,onSearchSubmit:jt,onInputBlur:qe,onFocus:De,onBlur:bt,onClearMouseDown:pn,onKeyDown:sn,onKeyUp:Vt,onSelectorRemove:xt,tokenWithEnter:wt,onMouseDown:lt,components:He}));return $n=g.createElement(n6e,{ref:Me,disabled:C,prefixCls:r,visible:We,popupElement:Tn,animation:W,transitionName:J,popupStyle:ee,popupClassName:ne,direction:u,popupMatchSelectWidth:re,popupRender:ue,popupAlign:de,placement:se,builtinPlacements:ce,getPopupContainer:ge,empty:h,onPopupVisibleChange:ft,onPopupMouseEnter:ut,onPopupMouseDown:lt,onPopupBlur:ze},$n),g.createElement(Pie.Provider,{value:Kt},g.createElement(o6e,{visible:Pe&&!We,values:d}),$n)}),mH=()=>null;mH.isSelectOptGroup=!0;const vH=()=>null;vH.isSelectOption=!0;const Gie=g.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:o,innerProps:a,rtl:s,extra:l},c)=>{let u={},f={display:"flex",flexDirection:"column"};return t!==void 0&&(u={height:e,position:"relative",overflow:"hidden"},f=te(I({},f),{transform:`translateY(${t}px)`,[s?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0})),g.createElement("div",{style:u},g.createElement(Bl,{onResize:({offsetHeight:d})=>{d&&o&&o()}},g.createElement("div",Qs({style:f,className:Ae({[`${i}-holder-inner`]:i}),ref:c},a),r,l)))});Gie.displayName="Filler";function B6e({children:e,setRef:t}){const n=g.useCallback(r=>{t(r)},[]);return g.cloneElement(e,{ref:n})}function O6e(e,t,n,r,i,o,a,{getKey:s}){return e.slice(t,n+1).map((l,c)=>{const u=t+c,f=a(l,u,{style:{width:r},offsetX:i}),d=s(l);return g.createElement(B6e,{key:d,setRef:A=>o(l,A)},f)})}function $6e(e,t,n){const r=e.length,i=t.length;let o,a;if(r===0&&i===0)return null;r{const s=$6e(r||[],e||[],t);(s==null?void 0:s.index)!==void 0&&a(e[s.index]),i(e)},[e]),[o]}const qie=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Yie=((e,t,n,r)=>{const i=g.useRef(!1),o=g.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(()=>{i.current=!1},50)}const s=g.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(l,c,u=!1)=>{const f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(o.current),i.current=!1):(!f||i.current)&&a(),!i.current&&f}});function T6e(e,t,n,r,i,o,a){const s=g.useRef(0),l=g.useRef(null),c=g.useRef(null),u=g.useRef(!1),f=Yie(t,n,r,i);function d(b,x){if(Kn.cancel(l.current),f(!1,x))return;const C=b;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=x,c.current=x,qie||C.preventDefault(),l.current=Kn(()=>{const S=u.current?10:1;a(s.current*S,!1),s.current=0})}function A(b,x){a(x,!0),qie||b.preventDefault()}const h=g.useRef(null),p=g.useRef(null);function v(b){if(!e)return;Kn.cancel(p.current),p.current=Kn(()=>{h.current=null},2);const{deltaX:x,deltaY:C,shiftKey:S}=b;let B=x,E=C;(h.current==="sx"||!h.current&&S&&C&&!x)&&(B=C,E=0,h.current="sx");const _=Math.abs(B),M=Math.abs(E);h.current===null&&(h.current=o&&_>M?"x":"y"),h.current==="y"?d(b,E):A(b,B)}function y(b){e&&(u.current=b.detail===c.current)}return[v,y]}function M6e(e,t,n,r){const[i,o]=g.useMemo(()=>[new Map,[]],[e,n.id,r]);return(s,l=s)=>{var f;let c=i.get(s),u=i.get(l);if(c===void 0||u===void 0){const d=e.length;for(let A=o.length;A{let A=!1;o.current.forEach((h,p)=>{if(h&&h.offsetParent){const{offsetHeight:v}=h,{marginTop:y,marginBottom:b}=getComputedStyle(h),x=Xie(y),C=Xie(b),S=v+x+C;a.current.get(p)!==S&&(a.current.set(p,S),A=!0)}}),A&&i(h=>h+1)};if(f)d();else{s.current+=1;const A=s.current;Promise.resolve().then(()=>{A===s.current&&d()})}}function u(f,d){const A=e(f);o.current.get(A),d?(o.current.set(A,d),c()):o.current.delete(A)}return g.useEffect(()=>l,[]),[u,c,a.current,r]}const Zie=14/15;function N6e(e,t,n){const r=g.useRef(!1),i=g.useRef(0),o=g.useRef(0),a=g.useRef(null),s=g.useRef(null);let l;const c=d=>{if(r.current){const A=Math.ceil(d.touches[0].pageX),h=Math.ceil(d.touches[0].pageY);let p=i.current-A,v=o.current-h;const y=Math.abs(p)>Math.abs(v);y?i.current=A:o.current=h;const b=n(y,y?p:v,!1,d);b&&d.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(()=>{y?p*=Zie:v*=Zie;const x=Math.floor(y?p:v);(!n(y,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,l()},f=d=>{l(),d.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(d.touches[0].pageX),o.current=Math.ceil(d.touches[0].pageY),a.current=d.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=()=>{a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},ar(()=>(e&&t.current.addEventListener("touchstart",f,{passive:!0}),()=>{var d;(d=t.current)==null||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}),[e])}function Jie(e){return Math.floor(na(e,.5))}function yH(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function P6e(e,t,n){g.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,o,a;const s=()=>{Kn.cancel(o)},l=()=>{s(),o=Kn(()=>{n(a),l()})},c=()=>{i=!1,s()},u=d=>{if(d.target.draggable||d.button!==0)return;const A=d;A._virtualHandled||(A._virtualHandled=!0,i=!0)},f=d=>{if(i){const A=yH(d,!1),{top:h,bottom:p}=r.getBoundingClientRect();if(A<=h){const v=h-A;a=-Jie(v),l()}else if(A>=p){const v=A-p;a=Jie(v),l()}else s()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),()=>{r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}const L6e=10;function F6e(e,t){const n=typeof e=="function"?e(t):e;return Number.isFinite(n)?n:0}function k6e(e,t,n,r,i,o,a,s,l){const c=g.useRef(),[u,f]=g.useState(null);return ar(()=>{if(u&&u.timesI({},S));return}a();const{targetAlign:d,originAlign:A,index:h,offset:p}=u,v=F6e(p,{getSize:o}),y=e.current.clientHeight;let b=!1,x=d,C=null;if(y){const S=d||A;let B=0,E=0,_=0;const M=Math.min(t.length-1,h);for(let T=0;T<=M;T+=1){const L=i(t[T]);E=B;const P=n.get(L);_=E+(P===void 0?r:P),B=_}let R=S==="top"?v:y-v;for(let T=M;T>=0;T-=1){const L=i(t[T]),P=n.get(L);if(P===void 0){b=!0;break}if(R-=P,R<=0)break}switch(S){case"top":C=E-v;break;case"bottom":C=_-y+v;break;default:{const{scrollTop:T}=e.current,L=T+y;EL&&(x="bottom")}}C!==null&&s(C),C!==u.lastTop&&(b=!0)}b&&f(te(I({},u),{times:u.times+1,targetAlign:x,lastTop:C}))}},[u,e.current]),d=>{if(d==null){l();return}if(Kn.cancel(c.current),typeof d=="number")s(d);else if(d&&typeof d=="object"){let A;const{align:h}=d;"index"in d?{index:A}=d:A=t.findIndex(v=>i(v)===d.key);const{offset:p=0}=d;f({times:0,index:A,offset:p,originAlign:h})}}}const eoe=g.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:o,onStartMove:a,onStopMove:s,onScroll:l,horizontal:c,spinSize:u,containerSize:f,style:d,thumbStyle:A,showScrollBar:h}=e,[p,v]=g.useState(!1),[y,b]=g.useState(null),[x,C]=g.useState(null),S=!r,B=g.useRef(),E=g.useRef(),[_,M]=g.useState(h),R=g.useRef(),T=()=>{h===!0||h===!1||(clearTimeout(R.current),M(!0),R.current=setTimeout(()=>{M(!1)},3e3))},L=o-f||0,P=f-u||0,k=g.useMemo(()=>i===0||L===0?0:i/L*P,[i,L,P]),H=Y=>{Y.stopPropagation(),Y.preventDefault()},D=g.useRef({top:k,dragging:p,pageY:y,startTop:x});D.current={top:k,dragging:p,pageY:y,startTop:x};const U=Y=>{v(!0),b(yH(Y,c)),C(D.current.top),a(),Y.stopPropagation(),Y.preventDefault()};g.useEffect(()=>{const Y=J=>{J.preventDefault()},Z=B.current,W=E.current;return Z.addEventListener("touchstart",Y,{passive:!1}),W.addEventListener("touchstart",U,{passive:!1}),()=>{Z.removeEventListener("touchstart",Y),W.removeEventListener("touchstart",U)}},[]);const j=g.useRef();j.current=L;const Q=g.useRef();Q.current=P,g.useEffect(()=>{if(p){let Y;const Z=J=>{const{dragging:ee,pageY:ne,startTop:re}=D.current;Kn.cancel(Y);const ue=B.current.getBoundingClientRect(),de=f/(c?ue.width:ue.height);if(ee){const se=(yH(J,c)-ne)*de;let ce=re;!S&&c?ce-=se:ce+=se;const ge=j.current,ie=Q.current,le=ie?ce/ie:0;let ve=Math.ceil(le*ge);ve=Math.max(ve,0),ve=Math.min(ve,ge),Y=Kn(()=>{l(ve,c)})}},W=()=>{v(!1),s()};return window.addEventListener("mousemove",Z,{passive:!0}),window.addEventListener("touchmove",Z,{passive:!0}),window.addEventListener("mouseup",W,{passive:!0}),window.addEventListener("touchend",W,{passive:!0}),()=>{window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",W),window.removeEventListener("touchend",W),Kn.cancel(Y)}}},[p]),g.useEffect(()=>(T(),()=>{clearTimeout(R.current)}),[i]),g.useImperativeHandle(t,()=>({delayHidden:T}));const K=`${n}-scrollbar`,z={position:"absolute",visibility:_?null:"hidden"},V={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(z,{height:8,left:0,right:0,bottom:0}),Object.assign(V,{height:"100%",width:u,[S?"left":"right"]:k})):(Object.assign(z,{width:8,top:0,bottom:0,[S?"right":"left"]:0}),Object.assign(V,{width:"100%",height:u,top:k})),g.createElement("div",{ref:B,className:Ae(K,{[`${K}-horizontal`]:c,[`${K}-vertical`]:!c,[`${K}-visible`]:_}),style:I(I({},z),d),onMouseDown:H,onMouseMove:T},g.createElement("div",{ref:E,className:Ae(`${K}-thumb`,{[`${K}-thumb-moving`]:p}),style:I(I({},V),A),onMouseDown:U}))}),D6e=20;function toe(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,D6e),Math.floor(n)}const H6e=[],U6e={overflowY:"auto",overflowAnchor:"none"};function noe(e,t){const Pt=e,{prefixCls:n="rc-virtual-list",className:r,height:i,itemHeight:o,fullHeight:a=!0,style:s,data:l,children:c,itemKey:u,virtual:f,direction:d,scrollWidth:A,component:h="div",onScroll:p,onVirtualScroll:v,onVisibleChange:y,innerProps:b,extraRender:x,styles:C,showScrollBar:S="optional"}=Pt,B=Ze(Pt,["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"]),E=g.useCallback(De=>typeof u=="function"?u(De):De==null?void 0:De[u],[u]),[_,M,R,T]=R6e(E),L=!!(f!==!1&&i&&o),P=g.useMemo(()=>Object.values(R.maps).reduce((De,ze)=>De+ze,0),[R.id,R.maps]),k=L&&l&&(Math.max(o*l.length,P)>i||!!A),H=d==="rtl",D=Ae(n,{[`${n}-rtl`]:H},r),U=l||H6e,j=g.useRef(),Q=g.useRef(),K=g.useRef(),[z,V]=g.useState(0),[Y,Z]=g.useState(0),[W,J]=g.useState(!1),ee=()=>{J(!0)},ne=()=>{J(!1)},re={getKey:E};function ue(De){V(ze=>{let bt;typeof De=="function"?bt=De(ze):bt=De;const lt=Pe(bt);return j.current.scrollTop=lt,lt})}const de=g.useRef({start:0,end:U.length}),se=g.useRef(),[ce]=_6e(U,E);se.current=ce;const{scrollHeight:ge,start:ie,end:le,offset:ve}=g.useMemo(()=>{var ut;if(!L)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};if(!k)return{scrollHeight:((ut=Q.current)==null?void 0:ut.offsetHeight)||0,start:0,end:U.length-1,offset:void 0};let De=0,ze,bt,lt;const At=U.length;for(let ft=0;ft=z&&ze===void 0&&(ze=ft,bt=De),bn>z+i&<===void 0&&(lt=ft),De=bn}return ze===void 0&&(ze=0,bt=0,lt=Math.ceil(i/o)),lt===void 0&&(lt=U.length-1),lt=Math.min(lt+1,U.length-1),{scrollHeight:De,start:ze,end:lt,offset:bt}},[k,L,z,U,T,i]);de.current.start=ie,de.current.end=le,g.useLayoutEffect(()=>{const De=R.getRecord();if(De.size===1){const ze=Array.from(De.keys())[0],bt=De.get(ze),lt=U[ie];if(lt&&bt===void 0&&E(lt)===ze){const ft=R.get(ze)-o;ue(Kt=>Kt+ft)}}R.resetRecord()},[ge]);const[we,me]=g.useState({width:0,height:i}),Ee=De=>{me({width:De.offsetWidth,height:De.offsetHeight})},Ce=g.useRef(),pe=g.useRef(),Oe=g.useMemo(()=>toe(we.width,A),[we.width,A]),xe=g.useMemo(()=>toe(we.height,ge),[we.height,ge]),Me=ge-i,Se=g.useRef(Me);Se.current=Me;function Pe(De){let ze=De;return Number.isNaN(Se.current)||(ze=Math.min(ze,Se.current)),ze=Math.max(ze,0),ze}const Le=z<=0,He=z>=Me,Ne=Y<=0,at=Y>=A,Ue=Yie(Le,He,Ne,at),et=()=>({x:H?-Y:Y,y:z}),We=g.useRef(et()),Je=yn(De=>{if(v){const ze=I(I({},et()),De);(We.current.x!==ze.x||We.current.y!==ze.y)&&(v(ze),We.current=ze)}});function dt(De,ze){const bt=De;ze?(fu.flushSync(()=>{Z(bt)}),Je()):ue(bt)}function wt(De){const{scrollTop:ze}=De.currentTarget;ze!==z&&ue(ze),p==null||p(De),Je()}const Bt=De=>{let ze=De;const bt=A?A-we.width:0;return ze=Math.max(ze,0),ze=Math.min(ze,bt),ze},qt=yn((De,ze)=>{ze?(fu.flushSync(()=>{Z(bt=>{const lt=bt+(H?-De:De);return Bt(lt)})}),Je()):ue(bt=>bt+De)}),[jt,nn]=T6e(L,Le,He,Ne,at,!!A,qt);N6e(L,j,(De,ze,bt,lt)=>{const At=lt;return Ue(De,ze,bt)?!1:!At||!At._virtualHandled?(At&&(At._virtualHandled=!0),jt({preventDefault(){},deltaX:De?ze:0,deltaY:De?0:ze}),!0):!1}),P6e(k,j,De=>{ue(ze=>ze+De)}),ar(()=>{function De(bt){const lt=Le&&bt.detail<0,At=He&&bt.detail>0;L&&!lt&&!At&&bt.preventDefault()}const ze=j.current;return ze.addEventListener("wheel",jt,{passive:!1}),ze.addEventListener("DOMMouseScroll",nn,{passive:!0}),ze.addEventListener("MozMousePixelScroll",De,{passive:!1}),()=>{ze.removeEventListener("wheel",jt),ze.removeEventListener("DOMMouseScroll",nn),ze.removeEventListener("MozMousePixelScroll",De)}},[L,Le,He]),ar(()=>{if(A){const De=Bt(Y);Z(De),Je({x:De})}},[we.width,A]);const Jt=()=>{var De,ze;(De=Ce.current)==null||De.delayHidden(),(ze=pe.current)==null||ze.delayHidden()},Ot=M6e(U,E,R,o),sn=k6e(j,U,R,o,E,Ot,()=>M(!0),ue,Jt);g.useImperativeHandle(t,()=>({nativeElement:K.current,getScrollInfo:et,scrollTo:De=>{function ze(bt){return bt&&typeof bt=="object"&&("left"in bt||"top"in bt)}ze(De)?(De.left!==void 0&&Z(Bt(De.left)),sn(De.top)):sn(De)}})),ar(()=>{if(y){const De=U.slice(ie,le+1);y(De,U)}},[ie,le,U]);const Vt=x==null?void 0:x({start:ie,end:le,virtual:k,offsetX:Y,scrollTop:z,offsetY:ve,rtl:H,getSize:Ot}),xt=O6e(U,ie,le,A,Y,_,c,re);let qe=null;i&&(qe=I({[a?"height":"maxHeight"]:i},U6e),L&&(qe.overflowY="hidden",A&&(qe.overflowX="hidden"),W&&(qe.pointerEvents="none")));const it={};return H&&(it.dir="rtl"),g.createElement("div",Qs({ref:K,style:te(I({},s),{position:"relative"}),className:D},it,B),g.createElement(Bl,{onResize:Ee},g.createElement(h,{className:`${n}-holder`,style:qe,ref:j,onScroll:wt,onMouseEnter:Jt},g.createElement(Gie,{prefixCls:n,height:ge,offsetX:Y,offsetY:ve,scrollWidth:A,onInnerResize:M,ref:Q,innerProps:b,rtl:H,extra:Vt},xt))),k&&ge>i&&g.createElement(eoe,{ref:Ce,prefixCls:n,scrollOffset:z,scrollRange:ge,rtl:H,onScroll:dt,onStartMove:ee,onStopMove:ne,spinSize:xe,containerSize:we.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb,showScrollBar:S}),k&&A>we.width&&g.createElement(eoe,{ref:pe,prefixCls:n,scrollOffset:Y,scrollRange:A,rtl:H,onScroll:dt,onStartMove:ee,onStopMove:ne,spinSize:Oe,containerSize:we.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb,showScrollBar:S}))}const UM=g.forwardRef(noe);UM.displayName="List";const j6e=g.forwardRef((e,t)=>noe(te(I({},e),{virtual:!1}),t));j6e.displayName="List";function z6e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function BE(){return BE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var ue,de;const{prefixCls:n,id:r,open:i,multiple:o,mode:a,searchValue:s,toggleOpen:l,notFoundContent:c,onPopupScroll:u,showScrollBar:f,lockOptions:d}=Cv(),{maxCount:A,flattenOptions:h,onActiveValue:p,defaultActiveFirstOption:v,onSelect:y,menuItemSelectedIcon:b,rawValues:x,fieldNames:C,virtual:S,direction:B,listHeight:E,listItemHeight:_,optionRender:M,classNames:R,styles:T}=g.useContext(fH),L=`${n}-item`,P=cv(()=>h,[i,d],(se,ce)=>ce[0]&&!ce[1]),k=g.useRef(null),H=g.useMemo(()=>o&&sH(A)&&(x==null?void 0:x.size)>=A,[o,A,x==null?void 0:x.size]),D=se=>{se.preventDefault()},U=se=>{var ce;(ce=k.current)==null||ce.scrollTo(typeof se=="number"?{index:se}:se)},j=g.useCallback(se=>a==="combobox"?!1:x.has(se),[a,[...x].toString(),x.size]),Q=(se,ce=1)=>{const ge=P.length;for(let ie=0;ieQ(0)),V=(se,ce=!1)=>{z(se);const ge={source:ce?"keyboard":"mouse"},ie=P[se];if(!ie){p(null,-1,ge);return}p(ie.value,se,ge)};g.useEffect(()=>{V(v!==!1?Q(0):-1)},[P.length,s]);const Y=g.useCallback(se=>a==="combobox"?String(se).toLowerCase()===s.toLowerCase():x.has(se),[a,s,[...x].toString(),x.size]);g.useEffect(()=>{var ce;let se;if(!o&&i&&x.size===1){const ge=Array.from(x)[0],ie=P.findIndex(({data:le})=>s?String(le.value).startsWith(s):le.value===ge);ie!==-1&&(V(ie),se=setTimeout(()=>{U(ie)}))}return i&&((ce=k.current)==null||ce.scrollTo(void 0)),()=>clearTimeout(se)},[i,s]);const Z=se=>{se!==void 0&&y(se,{selected:!x.has(se)}),o||l(!1)};if(g.useImperativeHandle(t,()=>({onKeyDown:se=>{const{which:ce,ctrlKey:ge}=se;switch(ce){case dn.N:case dn.P:case dn.UP:case dn.DOWN:{let ie=0;if(ce===dn.UP?ie=-1:ce===dn.DOWN?ie=1:z6e()&&ge&&(ce===dn.N?ie=1:ce===dn.P&&(ie=-1)),ie!==0){const le=Q(K+ie,ie);U(le),V(le,!0)}break}case dn.TAB:case dn.ENTER:{const ie=P[K];if(!ie||ie.data.disabled)return Z(void 0);!H||x.has(ie.value)?Z(ie.value):Z(void 0),i&&se.preventDefault();break}case dn.ESC:l(!1),i&&se.stopPropagation()}},onKeyUp:()=>{},scrollTo:se=>{U(se)}})),P.length===0)return g.createElement("div",{role:"listbox",id:`${r}_list`,className:`${L}-empty`,onMouseDown:D},c);const W=Object.keys(C).map(se=>C[se]),J=se=>se.label;function ee(se,ce){const{group:ge}=se;return{role:ge?"presentation":"option",id:`${r}_list_${ce}`}}const ne=se=>{const ce=P[se];if(!ce)return null;const ge=ce.data||{},{value:ie,disabled:le}=ge,{group:ve}=ce,we=Co(ge,!0),me=J(ce);return ce?g.createElement("div",BE({"aria-label":typeof me=="string"&&!ve?me:null},we,{key:se},ee(ce,se),{"aria-selected":Y(ie),"aria-disabled":le}),ie):null},re={role:"listbox",id:`${r}_list`};return g.createElement(g.Fragment,null,S&&g.createElement("div",BE({},re,{style:{height:0,width:0,overflow:"hidden"}}),ne(K-1),ne(K),ne(K+1)),g.createElement(UM,{itemKey:"key",ref:k,data:P,height:E,itemHeight:_,fullHeight:!1,onMouseDown:D,onScroll:u,virtual:S,direction:B,innerProps:S?null:re,showScrollBar:f,className:(ue=R==null?void 0:R.popup)==null?void 0:ue.list,style:(de=T==null?void 0:T.popup)==null?void 0:de.list},(se,ce)=>{var Je,wt,Bt;const{group:ge,groupOption:ie,data:le,label:ve,value:we}=se,{key:me}=le;if(ge){const qt=(Je=le.title)!=null?Je:roe(ve)?ve.toString():void 0;return g.createElement("div",{className:Ae(L,`${L}-group`,le.className),title:qt},ve!==void 0?ve:me)}const dt=le,{disabled:Ee,title:Ce,children:pe,style:Oe,className:xe}=dt,Me=Ze(dt,["disabled","title","children","style","className"]),Se=ti(Me,W),Pe=j(we),Le=Ee||!Pe&&H,He=`${L}-option`,Ne=Ae(L,He,xe,(wt=R==null?void 0:R.popup)==null?void 0:wt.listItem,{[`${He}-grouped`]:ie,[`${He}-active`]:K===ce&&!Le,[`${He}-disabled`]:Le,[`${He}-selected`]:Pe}),at=J(se),Ue=!b||typeof b=="function"||Pe,et=typeof at=="number"?at:at||we;let We=roe(et)?et.toString():void 0;return Ce!==void 0&&(We=Ce),g.createElement("div",BE({},Co(Se),S?{}:ee(se,ce),{"aria-selected":S?void 0:Y(we),"aria-disabled":Le,className:Ne,title:We,onMouseMove:()=>{K===ce||Le||V(ce)},onClick:()=>{Le||Z(we)},style:I(I({},(Bt=T==null?void 0:T.popup)==null?void 0:Bt.listItem),Oe)}),g.createElement("div",{className:`${He}-content`},typeof M=="function"?M(se,{index:ce}):et),g.isValidElement(b)||Pe,Ue&&g.createElement(Kie,{className:`${L}-option-state`,customizeIcon:b,customizeIconProps:{value:we,disabled:Le,isSelected:Pe}},Pe?"✓":null))}))},V6e=g.forwardRef(Q6e),K6e=((e,t)=>{const n=g.useRef({values:new Map,options:new Map}),r=g.useMemo(()=>{const{values:o,options:a}=n.current,s=e.map(u=>{var f;return u.label===void 0?te(I({},u),{label:(f=o.get(u.value))==null?void 0:f.label}):u}),l=new Map,c=new Map;return s.forEach(u=>{l.set(u.value,u),c.set(u.value,t.get(u.value)||a.get(u.value))}),n.current.values=l,n.current.options=c,s},[e,t]),i=g.useCallback(o=>t.get(o)||n.current.options.get(o),[t]);return[r,i]});function bH(e,t){return jie(e).join("").toUpperCase().includes(t)}const W6e=((e,t,n,r,i)=>g.useMemo(()=>{if(!n||r===!1)return e;const{options:o,label:a,value:s}=t,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:(A,h)=>i&&i.length?i.some(p=>bH(h[p],u)):h[o]?bH(h[a!=="children"?a:"label"],u):bH(h[s],u),d=c?A=>lH(A):A=>A;return e.forEach(A=>{if(A[o]){if(f(n,d(A)))l.push(A);else{const p=A[o].filter(v=>f(n,d(v)));p.length&&l.push(te(I({},A),{[o]:p}))}return}f(n,d(A))&&l.push(A)}),l},[e,r,i,n,t]));function G6e(e){const{key:t,props:o}=e,a=o,{children:n,value:r}=a,i=Ze(a,["children","value"]);return I({key:t,value:r!==void 0?r:t,children:n},i)}function ioe(e,t=!1){return pa(e).map((n,r)=>{if(!g.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:i},key:o,props:l}=n,c=l,{children:a}=c,s=Ze(c,["children"]);return t||!i?G6e(n):te(I({key:`__RC_SELECT_GRP__${o===null?r:o}__`,label:o},s),{options:ioe(a)})}).filter(n=>n)}const q6e=(e,t,n,r,i)=>g.useMemo(()=>{let o=e;!e&&(o=ioe(t));const s=new Map,l=new Map,c=(f,d,A)=>{A&&typeof A=="string"&&f.set(d[A],d)},u=(f,d=!1)=>{for(let A=0;A{c(l,h,p)}),c(l,h,i)):u(h[n.options],!0)}};return u(o),{options:o,valueOptions:s,labelOptions:l}},[e,t,n,r,i]);function ooe(e){const t=g.useRef();return t.current=e,g.useCallback((...r)=>t.current(...r),[])}function Y6e(e,t,n){const{filterOption:r,searchValue:i,optionFilterProp:o,filterSort:a,onSearch:s,autoClearSearchValue:l}=t;return g.useMemo(()=>{const c=typeof e=="object",u=I({filterOption:r,searchValue:i,optionFilterProp:o,filterSort:a,onSearch:s,autoClearSearchValue:l},c?e:{});return[c||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,u]},[n,e,r,i,o,a,s,l])}function xH(){return xH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const bt=e,{id:n,mode:r,prefixCls:i="rc-select",backfill:o,fieldNames:a,showSearch:s,searchValue:l,onSearch:c,autoClearSearchValue:u,filterOption:f,optionFilterProp:d,filterSort:A,onSelect:h,onDeselect:p,onActive:v,popupMatchSelectWidth:y=!0,optionLabelProp:b,options:x,optionRender:C,children:S,defaultActiveFirstOption:B,menuItemSelectedIcon:E,virtual:_,direction:M,listHeight:R=200,listItemHeight:T=20,labelRender:L,value:P,defaultValue:k,labelInValue:H,onChange:D,maxCount:U,classNames:j,styles:Q}=bt,K=Ze(bt,["id","mode","prefixCls","backfill","fieldNames","showSearch","searchValue","onSearch","autoClearSearchValue","filterOption","optionFilterProp","filterSort","onSelect","onDeselect","onActive","popupMatchSelectWidth","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount","classNames","styles"]),z={searchValue:l,onSearch:c,autoClearSearchValue:u,filterOption:f,optionFilterProp:d,filterSort:A},[V,Y]=Y6e(s,z,r),{filterOption:Z,searchValue:W,optionFilterProp:J,filterSort:ee,onSearch:ne,autoClearSearchValue:re=!0}=Y,ue=g.useMemo(()=>J?Array.isArray(J)?J:[J]:[],[J]),de=lA(n),se=gH(r),ce=!!(!x&&S),ge=g.useMemo(()=>Z===void 0&&r==="combobox"?!1:Z,[Z,r]),ie=g.useMemo(()=>kie(a,ce),[JSON.stringify(a),ce]),[le,ve]=Fr("",W),we=le||"",me=q6e(x,S,ie,ue,b),{valueOptions:Ee,labelOptions:Ce,options:pe}=me,Oe=g.useCallback(lt=>jie(lt).map(ut=>{let ft,Kt,An,pn;Z6e(ut)?ft=ut:(Kt=ut.label,ft=ut.value);const bn=Ee.get(ft);return bn&&(Kt===void 0&&(Kt=bn==null?void 0:bn[b||ie.label]),An=bn==null?void 0:bn.disabled,pn=bn==null?void 0:bn.title),{label:Kt,value:ft,key:ft,disabled:An,title:pn}}),[ie,b,Ee]),[xe,Me]=Fr(k,P),Se=g.useMemo(()=>{var ut;const At=Oe(se&&xe===null?[]:xe);return r==="combobox"&&c6e((ut=At[0])==null?void 0:ut.value)?[]:At},[xe,Oe,r,se]),[Pe,Le]=K6e(Se,Ee),He=g.useMemo(()=>{if(!r&&Pe.length===1){const lt=Pe[0];if(lt.value===null&&(lt.label===null||lt.label===void 0))return[]}return Pe.map(lt=>{var At;return te(I({},lt),{label:(At=typeof L=="function"?L(lt):lt.label)!=null?At:lt.value})})},[r,Pe,L]),Ne=g.useMemo(()=>new Set(Pe.map(lt=>lt.value)),[Pe]);g.useEffect(()=>{var lt;if(r==="combobox"){const At=(lt=Pe[0])==null?void 0:lt.value;ve(l6e(At)?String(At):"")}},[Pe]);const at=ooe((lt,At)=>{const ut=At!=null?At:lt;return{[ie.value]:lt,[ie.label]:ut}}),Ue=g.useMemo(()=>{if(r!=="tags")return pe;const lt=[...pe],At=ut=>Ee.has(ut);return[...Pe].sort((ut,ft)=>ut.value{const ft=ut.value;At(ft)||lt.push(at(ft,ut.label))}),lt},[at,pe,Ee,Pe,r]),et=W6e(Ue,ie,we,ge,ue),We=g.useMemo(()=>{var At;const lt=ut=>ue.length?ue.some(ft=>(ut==null?void 0:ut[ft])===we):(ut==null?void 0:ut.value)===we;return r!=="tags"||!we||et.some(ut=>lt(ut))||et.some(ut=>ut[ie.value]===we)||(At=Ee.get(we))!=null&&At.disabled?et:[at(we),...et]},[at,ue,r,et,we,ie,Ee]),Je=lt=>[...lt].sort((ut,ft)=>ee(ut,ft,{searchValue:we})).map(ut=>Array.isArray(ut.options)?te(I({},ut),{options:ut.options.length>0?Je(ut.options):ut.options}):ut),dt=g.useMemo(()=>ee?Je(We):We,[We,ee,we]),wt=g.useMemo(()=>r6e(dt,{fieldNames:ie,childrenAsData:ce}),[dt,ie,ce]),Bt=lt=>{const At=Oe(lt);if(Me(At),D&&(At.length!==Pe.length||At.some((ut,ft)=>{var Kt;return((Kt=Pe[ft])==null?void 0:Kt.value)!==(ut==null?void 0:ut.value)}))){const ut=H?At.map(({label:Kt,value:An})=>({label:Kt,value:An})):At.map(Kt=>Kt.value),ft=At.map(Kt=>lH(Le(Kt.value)));D(se?ut:ut[0],se?ft:ft[0])}},[qt,jt]=g.useState(null),[nn,Jt]=g.useState(0),Ot=B!==void 0?B:r!=="combobox",sn=g.useRef(),Vt=g.useCallback((lt,At,{source:ut="keyboard"}={})=>{Jt(At),o&&r==="combobox"&<!==null&&ut==="keyboard"&&jt(String(lt));const ft=Promise.resolve().then(()=>{sn.current===ft&&(v==null||v(lt))});sn.current=ft},[o,r,v]),xt=(lt,At,ut)=>{const ft=()=>{const Kt=Le(lt);return[H?{label:Kt==null?void 0:Kt[ie.label],value:lt}:lt,lH(Kt)]};if(At&&h){const[Kt,An]=ft();h(Kt,An)}else if(!At&&p&&ut!=="clear"){const[Kt,An]=ft();p(Kt,An)}},qe=ooe((lt,At)=>{let ut;const ft=se?At.selected:!0;ft?ut=se?[...Pe,lt]:[lt]:ut=Pe.filter(Kt=>Kt.value!==lt),Bt(ut),xt(lt,ft),r==="combobox"?jt(""):(!gH||re)&&(ve(""),jt(""))}),it=(lt,At)=>{Bt(lt);const{type:ut,values:ft}=At;(ut==="remove"||ut==="clear")&&ft.forEach(Kt=>{xt(Kt.value,!1,ut)})},Pt=(lt,At)=>{var ut;if(ve(lt),jt(null),At.source==="submit"){const ft=(lt||"").trim();if(ft){if((ut=Ee.get(ft))!=null&&ut.disabled){ve("");return}const Kt=Array.from(new Set([...Ne,ft]));Bt(Kt),xt(ft,!0),ve("")}return}At.source!=="blur"&&(r==="combobox"&&Bt(lt),ne==null||ne(lt))},De=lt=>{let At=lt;r!=="tags"&&(At=lt.map(ft=>{const Kt=Ce.get(ft);return Kt==null?void 0:Kt.value}).filter(ft=>ft!==void 0)),r==="tags"&&(At=At.filter(ft=>{var Kt;return!((Kt=Ee.get(ft))!=null&&Kt.disabled)}));const ut=Array.from(new Set([...Ne,...At]));Bt(ut),ut.forEach(ft=>{xt(ft,!0)})},ze=g.useMemo(()=>{const lt=_!==!1&&y!==!1;return te(I({},me),{flattenOptions:wt,onActiveValue:Vt,defaultActiveFirstOption:Ot,onSelect:qe,menuItemSelectedIcon:E,rawValues:Ne,fieldNames:ie,virtual:lt,direction:M,listHeight:R,listItemHeight:T,childrenAsData:ce,maxCount:U,optionRender:C,classNames:j,styles:Q})},[U,me,wt,Vt,Ot,qe,E,Ne,ie,_,y,M,R,T,ce,C,j,Q]);return g.createElement(fH.Provider,{value:ze},g.createElement(E6e,xH({},K,{id:de,prefixCls:i,ref:t,omitDomProps:X6e,mode:r,classNames:j,styles:Q,displayValues:He,onDisplayValuesChange:it,maxCount:U,direction:M,showSearch:V,searchValue:we,onSearch:Pt,autoClearSearchValue:re,onSearchSplit:De,popupMatchSelectWidth:y,OptionList:V6e,emptyOptions:!wt.length,activeValue:qt,activeDescendantId:`${de}_list_${nn}`})))});wH.Option=vH,wH.OptGroup=mH;function aoe(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}const Jh=(e,t,n)=>Ae({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),Vg=(e,t)=>t||e,Sv=(e,t)=>e!=null&&e.startsWith("var(")||t!=null&&t.startsWith("var(")?e:new Rr(e).onBackground(t).toHexString(),J6e=()=>{const[,e]=al(),[t]=zs("Empty"),{colorBgContainer:n,colorFill:r,colorFillSecondary:i,colorFillTertiary:o,colorTextQuaternary:a}=e,{panelBgColor:s,borderColor:l,detailColor:c,shadowColor:u,iconColor:f}=g.useMemo(()=>({panelBgColor:Sv(o,n),borderColor:Sv(a,n),detailColor:Sv(r,n),shadowColor:Sv(i,n),iconColor:n}),[n,r,i,o,a]);return g.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,(t==null?void 0:t.description)||"Empty"),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(24 31.7)"},g.createElement("ellipse",{fillOpacity:".8",fill:u,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),g.createElement("path",{fill:l,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),g.createElement("path",{fill:s,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),g.createElement("path",{fill:c,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),g.createElement("path",{fill:c,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),g.createElement("g",{fill:f,transform:"translate(149.7 15.4)"},g.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),g.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},eDe=()=>{const[,e]=al(),[t]=zs("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=g.useMemo(()=>({borderColor:Sv(n,o),shadowColor:Sv(r,o),contentColor:Sv(i,o)}),[n,r,i,o]);return g.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,(t==null?void 0:t.description)||"Empty"),g.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},g.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),g.createElement("g",{fillRule:"nonzero",stroke:a},g.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),g.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:l}))))},tDe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},nDe=Br("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=dr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return tDe(i)}),soe=g.createElement(J6e,null),loe=g.createElement(eDe,null),$s=e=>{var D;const H=e,{className:t,rootClassName:n,prefixCls:r,image:i,description:o,children:a,imageStyle:s,style:l,classNames:c,styles:u}=H,f=Ze(H,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:A,className:h,style:p,classNames:v,styles:y,image:b}=or("empty"),x=d("empty",r),[C,S]=nDe(x),B=Ar(p),E=Ar(l),[_,M]=vr([v,c],[y,B,u,E],{props:e}),[R]=zs("Empty"),T=typeof o!="undefined"?o:R==null?void 0:R.description,L=typeof T=="string"?T:"empty",P=(D=i!=null?i:b)!=null?D:soe;let k=null;return typeof P=="string"?k=g.createElement("img",{draggable:!1,alt:L,src:P}):k=P,g.createElement("div",I({className:Ae(C,S,x,h,{[`${x}-normal`]:P===loe,[`${x}-rtl`]:A==="rtl"},t,n,_.root),style:M.root},f),g.createElement("div",{className:Ae(`${x}-image`,_.image),style:I(I({},s),M.image)},k),T&&g.createElement("div",{className:Ae(`${x}-description`,_.description),style:M.description},T),a&&g.createElement("div",{className:Ae(`${x}-footer`,_.footer),style:M.footer},a))};$s.PRESENTED_IMAGE_DEFAULT=soe,$s.PRESENTED_IMAGE_SIMPLE=loe;const CH=e=>{const{componentName:t}=e,{getPrefixCls:n}=g.useContext(Un),r=n("empty");switch(t){case"Table":case"List":return Be.createElement($s,{image:$s.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Be.createElement($s,{image:$s.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Be.createElement($s,null)}},ep=(e,t,n)=>{var c,u;const{variant:r,[e]:i}=g.useContext(Un),o=g.useContext(uie),a=i==null?void 0:i.variant;let s;typeof t!="undefined"?s=t:n===!1?s="borderless":s=(u=(c=o!=null?o:a)!=null?c:r)!=null?u:"outlined";const l=BRe.includes(s);return[s,l]},rDe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:te(I({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:te(I({},n),{points:["tr","br"],offset:[0,4]}),topLeft:te(I({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:te(I({},n),{points:["br","tr"],offset:[0,-4]})}};function iDe(e,t){return e||rDe(t)}const coe=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},oDe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:te(I({},zr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` +`].includes(e)),[P]),Oe=J.useMemo(()=>typeof P==`function`?(e,t)=>{let n=P(e),r=Array.isArray(n)&&n.length===1&&n[0]===e;return!Array.isArray(n)||!n.length||r?null:t===void 0?n:n.slice(0,t)}:(e,t)=>_oe(e,P,t),[P]),ke=(e,t,n)=>{if(he&&yv(_)&&f.length>=_)return;let r=!0,i=e;O==null||O(null);let a=yv(_)?_-f.length:void 0,o=n?null:Oe(e,a);return y!==`combobox`&&o&&(i=``,N==null||N(o),Te(!1),r=!1),M&&be!==i&&M(i,{source:t?`typing`:`effect`}),e&&t&&r&&Te(!0),r},Ae=e=>{!e||!e.trim()||M(e,{source:`submit`})};J.useEffect(()=>{!Ce&&!he&&y!==`combobox`&&ke(``,!1,!1)},[Ce]),J.useEffect(()=>{b&&(Te(!1),ve(!1))},[b,we]);let[je,Me]=Xae(),Ne=J.useRef(!1),Pe=e=>{let t=je(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=y===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),we||Te(!0)}if(Me(!!be),n===`Backspace`&&!t&&he&&!be&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}if(we&&(!r||!Ne.current)&&!i){var a;r&&(Ne.current=!0),(a=_e.current)==null||a.onKeyDown(e)}de==null||de(e)},Fe=(e,...t)=>{if(we){var n;(n=_e.current)==null||n.onKeyUp(e,...t)}e.key===`Enter`&&(Ne.current=!1),ue==null||ue(e,...t)},Ie=qr(e=>{let t=f.filter(t=>t!==e);p(t,{type:`remove`,values:[e]})}),Le=()=>{Ne.current=!1},Re=()=>{var e;return[Ii(W.current),(e=ge.current)==null?void 0:e.getPopupElement()]};Zae(Re,we,Te,!!ye.root);let ze=J.useRef(!1),Be=e=>{ve(!0),b||(se.includes(`focus`)&&Te(!0),ce==null||ce(e))},Ve=()=>{we&&!ze.current&&Te(!1,{cancelFun:()=>ev(Re(),document.activeElement)})},He=e=>{ve(!1),be&&(y===`tags`?M(be,{source:`submit`}):y===`multiple`&&M(``,{source:`blur`})),Ve(),b||le==null||le(e)},Ue=(e,...t)=>{var n;let{target:r}=e,i=(n=ge.current)==null?void 0:n.getPopupElement();i!=null&&i.contains(r)&&Te&&Te(!0),fe==null||fe(e,...t),ze.current=!0,Sv(()=>{ze.current=!1})},[,We]=J.useState({});function Ge(){We({})}let Ke;ye.root&&(Ke=e=>{Te(e)});let qe=J.useMemo(()=>G(G({},e),{},{notFoundContent:h,open:we,triggerOpen:we,rawOpen:Ce,id:n,showSearch:s,multiple:he,toggleOpen:Te,showScrollBar:l,styles:a,classNames:o,lockOptions:Ee}),[e,h,Te,n,s,he,we,Ce,l,a,o,Ee]),Je=J.useMemo(()=>{let e=L==null?R:L;return typeof e==`function`?e({searchValue:be,open:we,focused:K,showSearch:s,loading:x}):e},[L,R,be,we,K,s,x]),Ye=()=>{var e;g==null||g(),(e=W.current)==null||e.focus(),p([],{type:`clear`,values:f}),ke(``,!1,!1)},{allowClear:Xe,clearIcon:Ze}=Yae(r,f,F,z,b,be,y),Qe=J.createElement(B,{ref:_e}),$e=Z(r,i,{[`${r}-focused`]:K,[`${r}-multiple`]:he,[`${r}-single`]:!he,[`${r}-allow-clear`]:Xe,[`${r}-show-arrow`]:Je!=null,[`${r}-disabled`]:b,[`${r}-loading`]:x,[`${r}-open`]:we,[`${r}-customize-input`]:xe,[`${r}-show-search`]:s}),et=J.createElement(Uoe,Gv({},me,{ref:W,prefixCls:r,className:$e,focused:K,prefix:I,suffix:Je,clearIcon:Ze,multiple:he,mode:y,displayValues:f,placeholder:v,searchValue:be,activeValue:D,onSearch:ke,onSearchSubmit:Ae,onInputBlur:Le,onFocus:Be,onBlur:He,onClearMouseDown:Ye,onKeyDown:Pe,onKeyUp:Fe,onSelectorRemove:Ie,tokenWithEnter:De,onMouseDown:Ue,components:ye}));return et=J.createElement(hoe,{ref:ge,disabled:b,prefixCls:r,visible:we,popupElement:Qe,animation:V,transitionName:H,popupStyle:U,popupClassName:ee,direction:u,popupMatchSelectWidth:te,popupRender:ne,popupAlign:re,placement:ie,builtinPlacements:ae,getPopupContainer:oe,empty:m,onPopupVisibleChange:Ke,onPopupMouseEnter:Ge,onPopupMouseDown:Ue,onPopupBlur:Ve},et),J.createElement(Q_.Provider,{value:qe},J.createElement(voe,{visible:K&&!we,values:f}),et)}),qv=()=>null;qv.isSelectOptGroup=!0;var Jv=()=>null;Jv.isSelectOption=!0,K();var Yv=J.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d=G(G({},d),{},{transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0})),J.createElement(`div`,{style:u},J.createElement(go,{onResize:({offsetHeight:e})=>{e&&a&&a()}},J.createElement(`div`,ng({style:d,className:Z({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});Yv.displayName=`Filler`;function qoe({children:e,setRef:t}){let n=J.useCallback(e=>{t(e)},[]);return J.cloneElement(e,{ref:n})}function Joe(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return J.createElement(qoe,{key:l,setRef:t=>a(e,t)},c)})}function Yoe(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r{let a=Yoe(r||[],e||[],t);(a==null?void 0:a.index)!==void 0&&(n==null||n(a.index),o(e[a.index])),i(e)},[e]),[a]}var Xv=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),Zv=((e,t,n,r)=>{let i=(0,J.useRef)(!1),a=(0,J.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,J.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function Zoe(e,t,n,r,i,a,o){let s=(0,J.useRef)(0),c=(0,J.useRef)(null),l=(0,J.useRef)(null),u=(0,J.useRef)(!1),d=Zv(t,n,r,i);function f(e,t){if(Fa.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,Xv||n.preventDefault(),c.current=Fa(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),Xv||e.preventDefault()}let m=(0,J.useRef)(null),h=(0,J.useRef)(null);function g(t){if(!e)return;Fa.cancel(h.current),h.current=Fa(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function Qoe(e,t,n,r){let[i,a]=J.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let d=e.length;for(let f=a.length;f{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=Qv(i),c=Qv(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t==null||t(r):n==null||n(r))}return(0,J.useEffect)(()=>c,[]),[u,l,o.current,r]}var $v=14/15;function tse(e,t,n){let r=(0,J.useRef)(!1),i=(0,J.useRef)(0),a=(0,J.useRef)(0),o=(0,J.useRef)(null),s=(0,J.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=$v:c*=$v;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},Xr(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{var e;(e=t.current)==null||e.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function ey(e){return Math.floor(Math.pow(e,.5))}function ty(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function nse(e,t,n){J.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{Fa.cancel(t)},o=()=>{a(),t=Fa(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=ty(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-ey(n-e),o()):e>=s?(i=ey(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}K();var rse=10;function ise(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function ase(e,t,n,r,i,a,o,s,c){let l=J.useRef(),[u,d]=J.useState(null);return Xr(()=>{if(u&&u.timesG({},e));return}o();let{targetAlign:c,originAlign:l,index:f,offset:p}=u,m=ise(p,{getSize:a}),h=e.current.clientHeight,g=!1,_=c,v=null;if(h){let a=c||l,o=0,d=0,p=0,y=Math.min(t.length-1,f);for(let e=0;e<=y;e+=1){let a=i(t[e]);d=o;let s=n.get(a);p=d+(s===void 0?r:s),o=p}let b=a===`top`?m:h-m;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){g=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:v=d-m;break;case`bottom`:v=p-h+m;break;default:{let{scrollTop:t}=e.current,n=t+h;dn&&(_=`bottom`)}}v!==null&&s(v),v!==u.lastTop&&(g=!0)}g&&d(G(G({},u),{},{times:u.times+1,targetAlign:_,lastTop:v}))}},[u,e.current]),e=>{if(e==null){c();return}if(Fa.cancel(l.current),typeof e==`number`)s(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;d({times:0,index:n,offset:a,originAlign:r})}}}K();var ny=J.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=J.useState(!1),[_,v]=J.useState(null),[y,b]=J.useState(null),x=!r,S=J.useRef(),C=J.useRef(),[w,T]=J.useState(m),E=J.useRef(),D=()=>{m===!0||m===!1||(clearTimeout(E.current),T(!0),E.current=setTimeout(()=>{T(!1)},3e3))},O=a-d||0,k=d-u||0,A=J.useMemo(()=>i===0||O===0?0:i/O*k,[i,O,k]),j=e=>{e.stopPropagation(),e.preventDefault()},M=J.useRef({top:A,dragging:h,pageY:_,startTop:y});M.current={top:A,dragging:h,pageY:_,startTop:y};let N=e=>{g(!0),v(ty(e,l)),b(M.current.top),o(),e.stopPropagation(),e.preventDefault()};J.useEffect(()=>{let e=e=>{e.preventDefault()},t=S.current,n=C.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,N,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,N)}},[]);let P=J.useRef();P.current=O;let F=J.useRef();F.current=k,J.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=M.current;Fa.cancel(e);let a=S.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(ty(t,l)-r)*o,a=i;!x&&l?a-=n:a+=n;let s=P.current,u=F.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=Fa(()=>{c(f,l)})}},n=()=>{g(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),Fa.cancel(e)}}},[h]),J.useEffect(()=>(D(),()=>{clearTimeout(E.current)}),[i]),J.useImperativeHandle(t,()=>({delayHidden:D}));let I=`${n}-scrollbar`,L={position:`absolute`,visibility:w?null:`hidden`},R={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(L,{height:8,left:0,right:0,bottom:0}),Object.assign(R,{height:`100%`,width:u,[x?`left`:`right`]:A})):(Object.assign(L,{width:8,top:0,bottom:0,[x?`right`:`left`]:0}),Object.assign(R,{width:`100%`,height:u,top:A})),J.createElement(`div`,{ref:S,className:Z(I,{[`${I}-horizontal`]:l,[`${I}-vertical`]:!l,[`${I}-visible`]:w}),style:G(G({},L),f),onMouseDown:j,onMouseMove:D},J.createElement(`div`,{ref:C,className:Z(`${I}-thumb`,{[`${I}-thumb-moving`]:h}),style:G(G({},R),p),onMouseDown:N}))}),ose=20;function ry(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ose),Math.floor(n)}K();var sse=[`prefixCls`,`className`,`height`,`itemHeight`,`fullHeight`,`style`,`data`,`children`,`itemKey`,`virtual`,`direction`,`scrollWidth`,`component`,`onScroll`,`onVirtualScroll`,`onVisibleChange`,`innerProps`,`extraRender`,`styles`,`showScrollBar`],cse=[],lse={overflowY:`auto`,overflowAnchor:`none`};function iy(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:v,extraRender:y,styles:b,showScrollBar:x=`optional`}=e,S=q(e,sse),C=J.useCallback(e=>typeof u==`function`?u(e):e==null?void 0:e[u],[u]),[w,T,E,D]=ese(C,null,null),O=!!(d!==!1&&i&&a),k=J.useMemo(()=>Object.values(E.maps).reduce((e,t)=>e+t,0),[E.id,E.maps]),A=O&&c&&(Math.max(a*c.length,k)>i||!!p),j=f===`rtl`,M=Z(n,{[`${n}-rtl`]:j},r),N=c||cse,P=(0,J.useRef)(),F=(0,J.useRef)(),I=(0,J.useRef)(),[L,R]=(0,J.useState)(0),[z,B]=(0,J.useState)(0),[V,H]=(0,J.useState)(!1),U=()=>{H(!0)},ee=()=>{H(!1)},te={getKey:C};function ne(e){R(t=>{let n;n=typeof e==`function`?e(t):e;let r=K(n);return P.current.scrollTop=r,r})}let re=(0,J.useRef)({start:0,end:N.length}),ie=(0,J.useRef)(),[ae]=Xoe(N,C);ie.current=ae;let{scrollHeight:oe,start:se,end:ce,offset:le}=J.useMemo(()=>{if(!O)return{scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!A){var e;return{scrollHeight:((e=F.current)==null?void 0:e.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}let t=0,n,r,o,s=N.length;for(let e=0;e=L&&n===void 0&&(n=e,r=t),u>L+i&&o===void 0&&(o=e),t=u}return n===void 0&&(n=0,r=0,o=Math.ceil(i/a)),o===void 0&&(o=N.length-1),o=Math.min(o+1,N.length-1),{scrollHeight:t,start:n,end:o,offset:r}},[A,O,L,N,D,i]);re.current.start=se,re.current.end=ce,J.useLayoutEffect(()=>{let e=E.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=N[se];if(r&&n===void 0&&C(r)===t){let e=E.get(t)-a;ne(t=>t+e)}}E.resetRecord()},[oe]);let[ue,de]=J.useState({width:0,height:i}),fe=e=>{de({width:e.offsetWidth,height:e.offsetHeight})},pe=(0,J.useRef)(),me=(0,J.useRef)(),he=J.useMemo(()=>ry(ue.width,p),[ue.width,p]),W=J.useMemo(()=>ry(ue.height,oe),[ue.height,oe]),ge=oe-i,_e=(0,J.useRef)(ge);_e.current=ge;function K(e){let t=e;return Number.isNaN(_e.current)||(t=Math.min(t,_e.current)),t=Math.max(t,0),t}let ve=L<=0,ye=L>=ge,be=z<=0,xe=z>=p,Se=Zv(ve,ye,be,xe),Ce=()=>({x:j?-z:z,y:L}),we=(0,J.useRef)(Ce()),Te=qr(e=>{if(g){let t=G(G({},Ce()),e);(we.current.x!==t.x||we.current.y!==t.y)&&(g(t),we.current=t)}});function Ee(e,t){let n=e;t?((0,Xa.flushSync)(()=>{B(n)}),Te()):ne(n)}function De(e){let{scrollTop:t}=e.currentTarget;t!==L&&ne(t),h==null||h(e),Te()}let Oe=e=>{let t=e,n=p?p-ue.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},ke=qr((e,t)=>{t?((0,Xa.flushSync)(()=>{B(t=>{let n=t+(j?-e:e);return Oe(n)})}),Te()):ne(t=>t+e)}),[Ae,je]=Zoe(O,ve,ye,be,xe,!!p,ke);tse(O,P,(e,t,n,r)=>{let i=r;return Se(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ae({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),nse(A,P,e=>{ne(t=>t+e)}),Xr(()=>{function e(e){let t=ve&&e.detail<0,n=ye&&e.detail>0;O&&!t&&!n&&e.preventDefault()}let t=P.current;return t.addEventListener(`wheel`,Ae,{passive:!1}),t.addEventListener(`DOMMouseScroll`,je,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ae),t.removeEventListener(`DOMMouseScroll`,je),t.removeEventListener(`MozMousePixelScroll`,e)}},[O,ve,ye]),Xr(()=>{if(p){let e=Oe(z);B(e),Te({x:e})}},[ue.width,p]);let Me=()=>{var e,t;(e=pe.current)==null||e.delayHidden(),(t=me.current)==null||t.delayHidden()},Ne=Qoe(N,C,E,a),Pe=ase(P,N,E,a,C,Ne,()=>T(!0),ne,Me);J.useImperativeHandle(t,()=>({nativeElement:I.current,getScrollInfo:Ce,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&B(Oe(e.left)),Pe(e.top)):Pe(e)}})),Xr(()=>{if(_){let e=N.slice(se,ce+1);_(e,N)}},[se,ce,N]);let Fe=y==null?void 0:y({start:se,end:ce,virtual:A,offsetX:z,scrollTop:L,offsetY:le,rtl:j,getSize:Ne}),Ie=Joe(N,se,ce,p,z,w,l,te),Le=null;i&&(Le=G({[o?`height`:`maxHeight`]:i},lse),O&&(Le.overflowY=`hidden`,p&&(Le.overflowX=`hidden`),V&&(Le.pointerEvents=`none`)));let Re={};return j&&(Re.dir=`rtl`),J.createElement(`div`,ng({ref:I,style:G(G({},s),{},{position:`relative`}),className:M},Re,S),J.createElement(go,{onResize:fe},J.createElement(m,{className:`${n}-holder`,style:Le,ref:P,onScroll:De,onMouseEnter:Me},J.createElement(Yv,{prefixCls:n,height:oe,offsetX:z,offsetY:le,scrollWidth:p,onInnerResize:T,ref:F,innerProps:v,rtl:j,extra:Fe},Ie))),A&&oe>i&&J.createElement(ny,{ref:pe,prefixCls:n,scrollOffset:L,scrollRange:oe,rtl:j,onScroll:Ee,onStartMove:U,onStopMove:ee,spinSize:W,containerSize:ue.height,style:b==null?void 0:b.verticalScrollBar,thumbStyle:b==null?void 0:b.verticalScrollBarThumb,showScrollBar:x}),A&&p>ue.width&&J.createElement(ny,{ref:me,prefixCls:n,scrollOffset:z,scrollRange:p,rtl:j,onScroll:Ee,onStartMove:U,onStopMove:ee,spinSize:he,containerSize:ue.width,horizontal:!0,style:b==null?void 0:b.horizontalScrollBar,thumbStyle:b==null?void 0:b.horizontalScrollBarThumb,showScrollBar:x}))}var ay=J.forwardRef(iy);ay.displayName=`List`,K();var use=J.forwardRef((e,t)=>iy(G(G({},e),{},{virtual:!1}),t));use.displayName=`List`;var oy=ay;function dse(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}K();var fse=[`disabled`,`title`,`children`,`style`,`className`];function sy(){return sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n,r;let{prefixCls:i,id:a,open:o,multiple:s,mode:c,searchValue:l,toggleOpen:u,notFoundContent:d,onPopupScroll:f,showScrollBar:p,lockOptions:m}=$_(),{maxCount:h,flattenOptions:g,onActiveValue:_,defaultActiveFirstOption:v,onSelect:y,menuItemSelectedIcon:b,rawValues:x,fieldNames:S,virtual:C,direction:w,listHeight:T,listItemHeight:E,optionRender:D,classNames:O,styles:k}=J.useContext(Ov),A=`${i}-item`,j=ai(()=>g,[o,m],(e,t)=>t[0]&&!t[1]),M=J.useRef(null),N=J.useMemo(()=>s&&yv(h)&&(x==null?void 0:x.size)>=h,[s,h,x==null?void 0:x.size]),P=e=>{e.preventDefault()},F=e=>{var t;(t=M.current)==null||t.scrollTo(typeof e==`number`?{index:e}:e)},I=J.useCallback(e=>c!==`combobox`&&x.has(e),[c,[...x].toString(),x.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;rL(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){_(null,-1,n);return}_(r.value,e,n)};(0,J.useEffect)(()=>{B(v===!1?-1:L(0))},[j.length,l]);let V=J.useCallback(e=>c===`combobox`?String(e).toLowerCase()===l.toLowerCase():x.has(e),[c,l,[...x].toString(),x.size]);(0,J.useEffect)(()=>{let e;if(!s&&o&&x.size===1){let t=Array.from(x)[0],n=j.findIndex(({data:e})=>l?String(e.value).startsWith(l):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}if(o){var t;(t=M.current)==null||t.scrollTo(void 0)}return()=>clearTimeout(e)},[o,l]);let H=e=>{e!==void 0&&y(e,{selected:!x.has(e)}),s||u(!1)};if(J.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case aa.N:case aa.P:case aa.UP:case aa.DOWN:{let e=0;if(t===aa.UP?e=-1:t===aa.DOWN?e=1:dse()&&n&&(t===aa.N?e=1:t===aa.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case aa.TAB:case aa.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||x.has(t.value)?H(t.value):H(void 0),o&&e.preventDefault();break}case aa.ESC:u(!1),o&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return J.createElement(`div`,{role:`listbox`,id:`${a}_list`,className:`${A}-empty`,onMouseDown:P},d);let U=Object.keys(S).map(e=>S[e]),ee=e=>e.label;function te(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${a}_list_${t}`}}let ne=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Oa(n,!0),s=ee(t);return t?J.createElement(`div`,sy({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},te(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},re={role:`listbox`,id:`${a}_list`};return J.createElement(J.Fragment,null,C&&J.createElement(`div`,sy({},re,{style:{height:0,width:0,overflow:`hidden`}}),ne(R-1),ne(R),ne(R+1)),J.createElement(oy,{itemKey:`key`,ref:M,data:j,height:T,itemHeight:E,fullHeight:!1,onMouseDown:P,onScroll:f,virtual:C,direction:w,innerProps:C?null:re,showScrollBar:p,className:O==null||(n=O.popup)==null?void 0:n.list,style:k==null||(r=k.popup)==null?void 0:r.list},(e,t)=>{var n,r;let{group:i,groupOption:a,data:o,label:s,value:c}=e,{key:l}=o;if(i){var u;let e=(u=o.title)==null?cy(s)?s.toString():void 0:u;return J.createElement(`div`,{className:Z(A,`${A}-group`,o.className),title:e},s===void 0?l:s)}let{disabled:d,title:f,children:p,style:m,className:h}=o,g=Ca(q(o,fse),U),_=I(c),v=d||!_&&N,y=`${A}-option`,x=Z(A,y,h,O==null||(n=O.popup)==null?void 0:n.listItem,{[`${y}-grouped`]:a,[`${y}-active`]:R===t&&!v,[`${y}-disabled`]:v,[`${y}-selected`]:_}),S=ee(e),w=!b||typeof b==`function`||_,T=typeof S==`number`?S:S||c,E=cy(T)?T.toString():void 0;return f!==void 0&&(E=f),J.createElement(`div`,sy({},Oa(g),C?{}:te(e,t),{"aria-selected":C?void 0:V(c),"aria-disabled":v,className:x,title:E,onMouseMove:()=>{R===t||v||B(t)},onClick:()=>{v||H(c)},style:G(G({},k==null||(r=k.popup)==null?void 0:r.listItem),m)}),J.createElement(`div`,{className:`${y}-content`},typeof D==`function`?D(e,{index:t}):T),J.isValidElement(b)||_,w&&J.createElement(Vv,{className:`${A}-option-state`,customizeIcon:b,customizeIconProps:{value:c,disabled:v,isSelected:_}},_?`✓`:null))}))});K();var mse=((e,t)=>{let n=J.useRef({values:new Map,options:new Map});return[J.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>{if(e.label===void 0){var t;return G(G({},e),{},{label:(t=r.get(e.value))==null?void 0:t.label})}return e}),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),J.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});K();function ly(e,t){return kv(e).join(``).toUpperCase().includes(t)}var hse=((e,t,n,r,i)=>J.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>ly(t[e],u)):t[a]?ly(t[o===`children`?`label`:o],u):ly(t[s],u),f=l?e=>xv(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push(G(G({},e),{},{[a]:t}))}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));K();var gse=[`children`,`value`],_se=[`children`];function vse(e){let{key:t,props:n}=e,{children:r,value:i}=n,a=q(n,gse);return G({key:t,value:i===void 0?t:i,children:r},a)}function uy(e,t=!1){return Ia(e).map((e,n)=>{if(!J.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:a}=e,{children:o}=a,s=q(a,_se);return t||!r?vse(e):G(G({key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i},s),{},{options:uy(o)})}).filter(e=>e)}var yse=(e,t,n,r,i)=>J.useMemo(()=>{let a=e;e||(a=uy(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function dy(e){let t=J.useRef();return t.current=e,J.useCallback((...e)=>t.current(...e),[])}K();function bse(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return J.useMemo(()=>{let t=typeof e==`object`,l=G({filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c},t?e:{});return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}K();var xse=`id.mode.prefixCls.backfill.fieldNames.showSearch.searchValue.onSearch.autoClearSearchValue.filterOption.optionFilterProp.filterSort.onSelect.onDeselect.onActive.popupMatchSelectWidth.optionLabelProp.options.optionRender.children.defaultActiveFirstOption.menuItemSelectedIcon.virtual.direction.listHeight.listItemHeight.labelRender.value.defaultValue.labelInValue.onChange.maxCount.classNames.styles`.split(`.`);function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:v,options:y,optionRender:b,children:x,defaultActiveFirstOption:S,menuItemSelectedIcon:C,virtual:w,direction:T,listHeight:E=200,listItemHeight:D=20,labelRender:O,value:k,defaultValue:A,labelInValue:j,onChange:M,maxCount:N,classNames:P,styles:F}=e,I=q(e,xse),[L,R]=bse(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:z,searchValue:B,optionFilterProp:V,filterSort:H,onSearch:U,autoClearSearchValue:ee=!0}=R,te=J.useMemo(()=>V?Array.isArray(V)?V:[V]:[],[V]),ne=ii(n),re=Kv(r),ie=!!(!y&&x),ae=J.useMemo(()=>z===void 0&&r===`combobox`?!1:z,[z,r]),oe=J.useMemo(()=>bv(o,ie),[JSON.stringify(o),ie]),[se,ce]=$r(``,B),le=se||``,ue=yse(y,x,oe,te,v),{valueOptions:de,labelOptions:fe,options:pe}=ue,me=J.useCallback(e=>kv(e).map(e=>{let t,n,r,i;Cse(e)?t=e:(n=e.label,t=e.value);let a=de.get(t);return a&&(n===void 0&&(n=a==null?void 0:a[v||oe.label]),r=a==null?void 0:a.disabled,i=a==null?void 0:a.title),{label:n,value:t,key:t,disabled:r,title:i}}),[oe,v,de]),[he,W]=$r(A,k),[ge,_e]=mse(J.useMemo(()=>{var e;let t=me(re&&he===null?[]:he);return r===`combobox`&&woe((e=t[0])==null?void 0:e.value)?[]:t},[he,me,r,re]),de),K=J.useMemo(()=>{if(!r&&ge.length===1){let e=ge[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return ge.map(e=>{var t;return G(G({},e),{},{label:(t=typeof O==`function`?O(e):e.label)==null?e.value:t})})},[r,ge,O]),ve=J.useMemo(()=>new Set(ge.map(e=>e.value)),[ge]);J.useEffect(()=>{if(r===`combobox`){var e;let t=(e=ge[0])==null?void 0:e.value;ce(Coe(t)?String(t):``)}},[ge]);let ye=dy((e,t)=>{let n=t==null?e:t;return{[oe.value]:e,[oe.label]:n}}),be=hse(J.useMemo(()=>{if(r!==`tags`)return pe;let e=[...pe],t=e=>de.has(e);return[...ge].sort((e,t)=>e.value{let r=n.value;t(r)||e.push(ye(r,n.label))}),e},[ye,pe,de,ge,r]),oe,le,ae,te),xe=J.useMemo(()=>{var e;let t=e=>te.length?te.some(t=>(e==null?void 0:e[t])===le):(e==null?void 0:e.value)===le;return r!==`tags`||!le||be.some(e=>t(e))||be.some(e=>e[oe.value]===le)||(e=de.get(le))!=null&&e.disabled?be:[ye(le),...be]},[ye,te,r,be,le,oe,de]),Se=e=>[...e].sort((e,t)=>H(e,t,{searchValue:le})).map(e=>Array.isArray(e.options)?G(G({},e),{},{options:e.options.length>0?Se(e.options):e.options}):e),Ce=J.useMemo(()=>H?Se(xe):xe,[xe,H,le]),we=J.useMemo(()=>goe(Ce,{fieldNames:oe,childrenAsData:ie}),[Ce,oe,ie]),Te=e=>{let t=me(e);if(W(t),M&&(t.length!==ge.length||t.some((e,t)=>{var n;return((n=ge[t])==null?void 0:n.value)!==(e==null?void 0:e.value)}))){let e=j?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>xv(_e(e.value)));M(re?e:e[0],re?n:n[0])}},[Ee,De]=J.useState(null),[Oe,ke]=J.useState(0),Ae=S===void 0?r!==`combobox`:S,je=J.useRef(),Me=J.useCallback((e,t,{source:n=`keyboard`}={})=>{ke(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&De(String(e));let i=Promise.resolve().then(()=>{je.current===i&&(g==null||g(e))});je.current=i},[a,r,g]),Ne=(e,t,n)=>{let r=()=>{let t=_e(e);return[j?{label:t==null?void 0:t[oe.label],value:e}:e,xv(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},Pe=dy((e,t)=>{let n,i=!re||t.selected;n=i?re?[...ge,e]:[e]:ge.filter(t=>t.value!==e),Te(n),Ne(e,i),r===`combobox`?De(``):(!Kv||ee)&&(ce(``),De(``))}),Fe=(e,t)=>{Te(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Ne(e.value,!1,n)})},Ie=(e,t)=>{if(ce(e),De(null),t.source===`submit`){let t=(e||``).trim();if(t){var n;if((n=de.get(t))!=null&&n.disabled){ce(``);return}let e=Array.from(new Set([...ve,t]));Te(e),Ne(t,!0),ce(``)}return}t.source!==`blur`&&(r===`combobox`&&Te(e),U==null||U(e))},Le=e=>{let t=e;r!==`tags`&&(t=e.map(e=>{let t=fe.get(e);return t==null?void 0:t.value}).filter(e=>e!==void 0)),r===`tags`&&(t=t.filter(e=>{var t;return!((t=de.get(e))!=null&&t.disabled)}));let n=Array.from(new Set([...ve,...t]));Te(n),n.forEach(e=>{Ne(e,!0)})},Re=J.useMemo(()=>{let e=w!==!1&&_!==!1;return G(G({},ue),{},{flattenOptions:we,onActiveValue:Me,defaultActiveFirstOption:Ae,onSelect:Pe,menuItemSelectedIcon:C,rawValues:ve,fieldNames:oe,virtual:e,direction:T,listHeight:E,listItemHeight:D,childrenAsData:ie,maxCount:N,optionRender:b,classNames:P,styles:F})},[N,ue,we,Me,Ae,Pe,C,ve,oe,w,_,T,E,D,ie,b,P,F]);return J.createElement(Ov.Provider,{value:Re},J.createElement(Koe,fy({},I,{id:ne,prefixCls:i,ref:t,omitDomProps:Sse,mode:r,classNames:P,styles:F,displayValues:K,onDisplayValuesChange:Fe,maxCount:N,direction:T,showSearch:L,searchValue:le,onSearch:Ie,autoClearSearchValue:ee,onSearchSplit:Le,popupMatchSelectWidth:_,OptionList:pse,emptyOptions:!we.length,activeValue:Ee,activeDescendantId:`${ne}_list_${Oe}`})))});py.Option=Jv,py.OptGroup=qv;var wse=py;function my(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}var hy=(e,t,n)=>Z({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),gy=(e,t)=>t||e,_y=(e,t)=>e!=null&&e.startsWith(`var(`)||t!=null&&t.startsWith(`var(`)?e:new Hl(e).onBackground(t).toHexString(),Tse=()=>{let[,e]=$u(),[t]=Hp(`Empty`),{colorBgContainer:n,colorFill:r,colorFillSecondary:i,colorFillTertiary:a,colorTextQuaternary:o}=e,{panelBgColor:s,borderColor:c,detailColor:l,shadowColor:u,iconColor:d}=(0,J.useMemo)(()=>({panelBgColor:_y(a,n),borderColor:_y(o,n),detailColor:_y(r,n),shadowColor:_y(i,n),iconColor:n}),[n,r,i,a,o]);return J.createElement(`svg`,{width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},J.createElement(`title`,null,(t==null?void 0:t.description)||`Empty`),J.createElement(`g`,{fill:`none`,fillRule:`evenodd`},J.createElement(`g`,{transform:`translate(24 31.7)`},J.createElement(`ellipse`,{fillOpacity:`.8`,fill:u,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),J.createElement(`path`,{fill:c,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),J.createElement(`path`,{fill:s,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),J.createElement(`path`,{fill:l,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),J.createElement(`path`,{fill:l,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),J.createElement(`g`,{fill:d,transform:`translate(149.7 15.4)`},J.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),J.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},Ese=()=>{let[,e]=$u(),[t]=Hp(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,J.useMemo)(()=>({borderColor:_y(n,a),shadowColor:_y(r,a),contentColor:_y(i,a)}),[n,r,i,a]);return J.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},J.createElement(`title`,null,(t==null?void 0:t.description)||`Empty`),J.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},J.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),J.createElement(`g`,{fillRule:`nonzero`,stroke:o},J.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),J.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},Dse=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Ose=dd(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Dse(bl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))});K();var kse=[`className`,`rootClassName`,`prefixCls`,`image`,`description`,`children`,`imageStyle`,`style`,`classNames`,`styles`],vy=J.createElement(Tse,null),yy=J.createElement(Ese,null),by=e=>{var t;let{className:n,rootClassName:r,prefixCls:i,image:a,description:o,children:s,imageStyle:c,style:l,classNames:u,styles:d}=e,f=q(e,kse),{getPrefixCls:p,direction:m,className:h,style:g,classNames:_,styles:v,image:y}=ko(`empty`),b=p(`empty`,i),[x,S]=Ose(b),C=yp(g),w=yp(l),[T,E]=xp([_,u],[v,C,d,w],{props:e}),[D]=Hp(`Empty`),O=o===void 0?D==null?void 0:D.description:o,k=typeof O==`string`?O:`empty`,A=(t=a==null?y:a)==null?vy:t,j=null;return j=typeof A==`string`?J.createElement(`img`,{draggable:!1,alt:k,src:A}):A,J.createElement(`div`,G({className:Z(x,S,b,h,{[`${b}-normal`]:A===yy,[`${b}-rtl`]:m===`rtl`},n,r,T.root),style:E.root},f),J.createElement(`div`,{className:Z(`${b}-image`,T.image),style:G(G({},c),E.image)},j),O&&J.createElement(`div`,{className:Z(`${b}-description`,T.description),style:E.description},O),s&&J.createElement(`div`,{className:Z(`${b}-footer`,T.footer),style:E.footer},s))};by.PRESENTED_IMAGE_DEFAULT=vy,by.PRESENTED_IMAGE_SIMPLE=yy;var xy=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,J.useContext)(Eo),r=n(`empty`);switch(t){case`Table`:case`List`:return J.createElement(by,{image:by.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return J.createElement(by,{image:by.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return J.createElement(by,null)}},Sy=(e,t,n)=>{let{variant:r,[e]:i}=J.useContext(Eo),a=J.useContext(Uie),o=i==null?void 0:i.variant,s;if(t!==void 0)s=t;else if(n===!1)s=`borderless`;else{var c,l;s=(c=(l=a==null?o:a)==null?r:l)==null?`outlined`:c}let u=To.includes(s);return[s,u]};K();var Ase=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:G(G({},t),{},{points:[`tl`,`bl`],offset:[0,4]}),bottomRight:G(G({},t),{},{points:[`tr`,`br`],offset:[0,4]}),topLeft:G(G({},t),{},{points:[`bl`,`tl`],offset:[0,-4]}),topRight:G(G({},t),{},{points:[`br`,`tr`],offset:[0,-4]})}};function jse(e,t){return e||Ase(t)}K();var Cy=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},Mse=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:G(G({},td(e)),{},{position:`absolute`,top:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,padding:e.paddingXXS,overflow:`hidden`,fontSize:e.fontSize,fontVariant:`initial`,backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,[` ${i}${s}bottomLeft, - ${o}${s}bottomLeft - `]:{animationName:cE},[` + ${a}${s}bottomLeft + `]:{animationName:Ih},[` ${i}${s}topLeft, - ${o}${s}topLeft, - ${i}${s}topRight, - ${o}${s}topRight - `]:{animationName:fE},[`${a}${s}bottomLeft`]:{animationName:uE},[` ${a}${s}topLeft, + ${i}${s}topRight, ${a}${s}topRight - `]:{animationName:dE},"&-hidden":{display:"none"},[r]:te(I({},coe(e)),{cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":I({flex:"auto"},Wa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":te(I({},coe(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},qu(e,"slide-up"),qu(e,"slide-down"),Ob(e,"move-up"),Ob(e,"move-down")]},aDe=e=>{const{antCls:t,componentCls:n}=e,r={background:"transparent"},i=["> input[disabled]","> textarea[disabled]",`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${n}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${n}-placeholder`]:{display:"none"},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${n}-disabled ${n}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}},uoe=4,sDe=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:o,INTERNAL_FIXED_ITEM_MARGIN:a,lineWidth:s,colorIcon:l,colorIconHover:c,inputPaddingHorizontalBase:u,antCls:f}=e,[d,A]=go(f,"select");return{"&-multiple":{[d("multi-item-background")]:e.multipleItemBg,[d("multi-item-border-color")]:"transparent",[d("multi-item-border-radius")]:e.borderRadiusSM,[d("multi-item-height")]:e.multipleItemHeight,[d("multi-padding-base")]:`calc((${A("height")} - ${A("multi-item-height")}) / 2)`,[d("multi-padding-vertical")]:`calc(${A("multi-padding-base")} - ${a} - ${s})`,[d("multi-item-padding-horizontal")]:`calc(${u} - ${A("multi-padding-vertical")} - ${s} * 2)`,paddingBlock:A("multi-padding-vertical"),paddingInlineStart:`calc(${A("multi-padding-base")} - ${s})`,[`${t}-prefix`]:{marginInlineStart:A("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:A("line-height"),insetInlineStart:A("multi-item-padding-horizontal"),width:`calc(100% - ${A("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:A("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${uoe}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix, - ${t}-content-item-suffix:first-child`]:{marginInlineStart:A("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${A("multi-item-height")} - ${s} * 2)`,border:`${s} solid ${A("multi-item-border-color")}`,display:"flex",marginBlock:a,marginInlineEnd:n(a).mul(2).equal(),background:A("multi-item-background"),borderRadius:A("multi-item-border-radius"),paddingInlineStart:i,paddingInlineEnd:o,transition:["height","line-height","padding"].map(h=>`${h} ${e.motionDurationSlow}`).join(","),"&-content":te(I({},Wa),{marginInlineEnd:o}),"&-remove":te(I({},Fg()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})},[`${t}-input`]:{lineHeight:n(a).mul(2).add(A("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:uoe,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[d("multi-item-height")]:e.multipleItemHeightSM,[d("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[d("multi-item-height")]:e.multipleItemHeightLG,[d("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[d("multi-item-border-color")]:e.colorSplit,[d("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[d("multi-item-border-color")]:"transparent"}}}}},SH=(e,t)=>{const{componentCls:n,antCls:r}=e,[i]=go(r,"select"),{border:o,borderHover:a,borderActive:s,borderOutline:l}=t,c=t.background||e.selectorBg||e.colorBgContainer;return{[i("border-color")]:o,[i("background-color")]:c,[i("affix-color")]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i("border-color")]:a,[i("background-color")]:t.backgroundHover||c},[`&${n}-focused`]:{[i("border-color")]:s,[i("background-color")]:t.backgroundActive||c,boxShadow:`0 0 0 ${be(e.controlOutlineWidth)} ${l}`}},[`&${n}-disabled`]:{[i("border-color")]:t.borderDisabled||t.border,[i("background-color")]:t.backgroundDisabled||t.background}}},jM=(e,t,n,r,i,o)=>{const{componentCls:a}=e;return{[`&${a}-${t}`]:[SH(e,n),{[`&${a}-status-error`]:SH(e,I(I({},n),r)),[`&${a}-status-warning`]:SH(e,I(I({},n),i))},o]}},EH=(e,t)=>({outline:`${be(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:be(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),lDe=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:o,iconCls:a,antCls:s,max:l,calc:c}=e,[u,f]=go(s,"select"),d=l(c(o).sub(i).equal(),0);return{[t]:[te(I({[u("border-radius")]:e.borderRadius,[u("border-color")]:"#000",[u("border-size")]:e.lineWidth,[u("background-color")]:e.colorBgContainer,[u("font-size")]:e.fontSize,[u("line-height")]:e.lineHeight,[u("font-height")]:n,[u("color")]:e.colorText,[u("affix-color")]:e.colorText,[u("height")]:r,[u("padding-horizontal")]:c(e.paddingSM).sub(e.lineWidth).equal(),[u("padding-vertical")]:`calc((${f("height")} - ${f("font-height")}) / 2 - ${f("border-size")})`},zr(e)),{display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:f("border-radius"),borderWidth:f("border-size"),borderStyle:e.lineType,borderColor:f("border-color"),background:f("background-color"),fontSize:f("font-size"),lineHeight:f("line-height"),color:f("color"),paddingInline:f("padding-horizontal"),paddingBlock:f("padding-vertical"),[`${t}-prefix`]:{color:f("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:te(I({},Wa),{color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1}),[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:d,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[a]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[u("height")]:e.controlHeightSM,[u("padding-horizontal")]:c(e.paddingXS).sub(e.lineWidth).equal(),[u("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:f("padding-horizontal")}},"&-lg":{[u("height")]:e.controlHeightLG,[u("font-size")]:e.fontSizeLG,[u("line-height")]:e.lineHeightLG,[u("font-height")]:e.fontHeightLG,[u("border-radius")]:e.borderRadiusLG}}),{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:f("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:te(I({},Wa),{alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}}),[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},sDe(e),jM(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),jM(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),jM(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:EH(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:EH(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:EH(e,e.colorWarning)}),jM(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),aDe(e)]}},cDe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:A,colorBgContainer:h,colorFillSecondary:p,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:b,colorPrimary:x,controlOutline:C}=e,S=s*2,B=r*2,E=Math.min(i-S,i-B),_=Math.min(o-S,o-B),M=Math.min(a-S,a-B);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:A,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:p,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:_,multipleItemHeightLG:M,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:x,activeOutlineColor:C,selectAffixPadding:s}},uDe=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:te(I({},zr(e)),{[`${n}-selection-item`]:te(I({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Wa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(a=>`${a} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},fDe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},uDe(e),oDe(e),{[`${t}-rtl`]:{direction:"rtl"}},$b(e,{focusElCls:`${t}-focused`})]},dDe=Br("Select",(e,{rootPrefixCls:t})=>{const n=dr(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[fDe(n),lDe(n)]},cDe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var zM={},foe;function ADe(){if(foe)return zM;foe=1,Object.defineProperty(zM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};return zM.default=e,zM}var hDe=ADe();const pDe=_t(hDe);function BH(){return BH=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,BH({},e,{ref:t,icon:pDe})),OH=g.forwardRef(gDe);var QM={},doe;function mDe(){if(doe)return QM;doe=1,Object.defineProperty(QM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};return QM.default=e,QM}var vDe=mDe();const yDe=_t(vDe);function $H(){return $H=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,$H({},e,{ref:t,icon:yDe})),OE=g.forwardRef(bDe);var VM={},Aoe;function xDe(){if(Aoe)return VM;Aoe=1,Object.defineProperty(VM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};return VM.default=e,VM}var wDe=xDe();const CDe=_t(wDe);function _H(){return _H=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,_H({},e,{ref:t,icon:CDe})),Kg=g.forwardRef(SDe);function hoe({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:o,removeIcon:a,contextRemoveIcon:s,loading:l,loadingIcon:c,contextLoadingIcon:u,searchIcon:f,contextSearchIcon:d,multiple:A,hasFeedback:h,showSuffixIcon:p,feedbackIcon:v,showArrow:y,componentName:b}){return g.useMemo(()=>{const x=du(n,r,g.createElement(hv,null)),C=_=>e===null&&!h&&!y?null:g.createElement(g.Fragment,null,p!==!1&&_,h&&v);let S=null;e!==void 0?S=C(e):l?S=C(du(c,u,g.createElement(qh,{spin:!0}))):S=({open:_,showSearch:M})=>C(_&&M?du(f,d,g.createElement(Kg,null)):du(t,g.createElement(OE,null)));const B=du(i,o,A?g.createElement(OH,null):null),E=du(a,s,g.createElement(Dg,null));return{clearIcon:x,suffixIcon:S,itemIcon:B,removeIcon:E}},[e,t,n,r,i,o,a,s,l,c,u,f,d,A,h,p,v,y])}function EDe(e){return Be.useMemo(()=>{if(e)return(...t)=>Be.createElement(Zh,{space:!0},e.apply(void 0,t))},[e])}function BDe(e,t){return t!==void 0?t:e!==null}const poe="SECRET_COMBOBOX_MODE_DO_NOT_USE",ODe=(e,t)=>{var $t,Ie,Ke,nt;const Fn=e,{prefixCls:n,bordered:r,className:i,rootClassName:o,getPopupContainer:a,popupClassName:s,dropdownClassName:l,listHeight:c=256,placement:u,listItemHeight:f,size:d,disabled:A,notFoundContent:h,status:p,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:x,style:C,allowClear:S,variant:B,popupStyle:E,dropdownStyle:_,transitionName:M,tagRender:R,maxCount:T,prefix:L,dropdownRender:P,popupRender:k,onDropdownVisibleChange:H,onOpenChange:D,styles:U,classNames:j,clearIcon:Q,showSearch:K}=Fn,z=Ze(Fn,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","popupStyle","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames","clearIcon","showSearch"]),{getPopupContainer:V,getPrefixCls:Y,renderEmpty:Z,direction:W,virtual:J,popupMatchSelectWidth:ee,popupOverflow:ne}=g.useContext(Un),{showSearch:re,allowClear:ue,style:de,styles:se,className:ce,classNames:ge,clearIcon:ie,loadingIcon:le,menuItemSelectedIcon:ve,removeIcon:we,suffixIcon:me}=or("select"),[,Ee]=al(),Ce=f!=null?f:Ee==null?void 0:Ee.controlHeight,pe=Y("select",n),Oe=Y(),xe=x!=null?x:W,{compactSize:Me,compactItemClassnames:Se}=hA(pe,xe),[Pe,Le]=ep("select",B,r),He=So(pe),[Ne,at]=dDe(pe,He),Ue=g.useMemo(()=>{const{mode:ht}=e;if(ht!=="combobox")return ht===poe?"combobox":ht},[e.mode]),et=Ue==="multiple"||Ue==="tags",We=BDe(e.suffixIcon,e.showArrow),Je=($t=b!=null?b:y)!=null?$t:ee,dt=EDe(k||P),wt=D||H,{status:Bt,hasFeedback:qt,isFormItemInput:jt,feedbackIcon:nn}=g.useContext(Ya),Jt=Vg(Bt,p);let Ot;h!==void 0?Ot=h:Ue==="combobox"?Ot=null:Ot=(Z==null?void 0:Z("Select"))||g.createElement(CH,{componentName:"Select"});const{suffixIcon:sn,itemIcon:Vt,removeIcon:xt,clearIcon:qe}=hoe(te(I({},z),{multiple:et,hasFeedback:qt,feedbackIcon:nn,showSuffixIcon:We,componentName:"Select",clearIcon:Q,searchIcon:aoe(K,"searchIcon"),contextClearIcon:ie,contextLoadingIcon:le,contextMenuItemSelectedIcon:ve,contextRemoveIcon:we,contextSearchIcon:aoe(re,"searchIcon"),contextSuffixIcon:me})),it=S!=null?S:ue,Pt=it===!0?{clearIcon:qe}:it,De=K!=null?K:re,ze=ti(z,["suffixIcon","itemIcon"]),bt=aa(ht=>{var Xt;return(Xt=d!=null?d:Me)!=null?Xt:ht}),lt=g.useContext(qa),At=A!=null?A:lt,ut=te(I({},e),{variant:Pe,status:Jt,disabled:At,size:bt}),ft=Ar(de),Kt=Ar(C),[An,pn]=vr([ge,j],[se,ft,U,Kt],{props:ut},{popup:{_default:"root"}}),bn=Ae(An.popup.root,s,l,{[`${pe}-dropdown-${xe}`]:xe==="rtl"},o,at,He,Ne),Sn=I(I({},(Ie=pn.popup)==null?void 0:Ie.root),E!=null?E:_),Tn=Ae({[`${pe}-lg`]:bt==="large",[`${pe}-sm`]:bt==="small",[`${pe}-rtl`]:xe==="rtl",[`${pe}-${Pe}`]:Le,[`${pe}-in-form-item`]:jt},Jh(pe,Jt,qt),Se,ce,i,An.root,o,at,He,Ne),lr=g.useMemo(()=>u!==void 0?u:xe==="rtl"?"bottomRight":"bottomLeft",[u,xe]),[$n]=jg("SelectLike",(nt=(Ke=pn.popup.root)==null?void 0:Ke.zIndex)!=null?nt:Sn.zIndex);return g.createElement(wH,te(I({ref:t,virtual:J,classNames:An,styles:pn,showSearch:De},ze),{style:pn.root,popupMatchSelectWidth:Je,transitionName:Yh(Oe,"slide-up",M),builtinPlacements:iDe(v,ne),listHeight:c,listItemHeight:Ce,mode:Ue,prefixCls:pe,placement:lr,direction:xe,prefix:L,suffixIcon:sn,menuItemSelectedIcon:Vt,removeIcon:xt,allowClear:Pt,notFoundContent:Ot,className:Tn,getPopupContainer:a||V,popupClassName:bn,disabled:At,popupStyle:te(I(I({},pn.popup.root),Sn),{zIndex:$n}),maxCount:et?T:void 0,tagRender:et?R:void 0,popupRender:dt,onPopupVisibleChange:wt}))},ll=g.forwardRef(ODe),$De=CE(ll,"popupAlign");ll.SECRET_COMBOBOX_MODE_DO_NOT_USE=poe,ll.Option=vH,ll.OptGroup=mH,ll._InternalPanelDoNotUseOrYouWillBeFired=$De;const Ev=["xxxl","xxl","xl","lg","md","sm","xs"],goe=[].concat(Ev).reverse(),_De=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),TDe=e=>{const t=e,n=[].concat(Ev).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i{if(t){for(const n of Ev)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},MDe=()=>{const[,e]=al(),t=_De(TDe(e));return Be.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>{a(i)}),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.entries(t).forEach(([o,a])=>{const s=({matches:c})=>{this.dispatch(te(I({},i),{[o]:c}))},l=window.matchMedia(a);Rn(l.addEventListener)&&l.addEventListener("change",s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(o=>{const a=this.matchHandlers[o];Rn(a==null?void 0:a.mql.removeEventListener)&&a.mql.removeEventListener("change",a==null?void 0:a.listener)}),n.clear()}}},[t])};function KM(e=!0,t={}){const n=g.useRef(t),[,r]=c8(),i=MDe();return ar(()=>{const o=i.subscribe(a=>{n.current=a,e&&r()});return()=>i.unsubscribe(o)},[]),n.current}const Pb=e=>qi(e)?Rn(e)?e():e:null,MH=e=>{const{children:t,prefixCls:n,id:r,classNames:i,styles:o,className:a,style:s}=e;return g.createElement("div",{id:r,className:Ae(`${n}-container`,i==null?void 0:i.container,a),style:I(I({},o==null?void 0:o.container),s),role:"tooltip"},typeof t=="function"?t():t)},Lb={shiftX:64,adjustY:1},Fb={adjustX:1,shiftY:!0},Yu=[0,0],IDe={left:{points:["cr","cl"],overflow:Fb,offset:[-4,0],targetOffset:Yu},right:{points:["cl","cr"],overflow:Fb,offset:[4,0],targetOffset:Yu},top:{points:["bc","tc"],overflow:Lb,offset:[0,-4],targetOffset:Yu},bottom:{points:["tc","bc"],overflow:Lb,offset:[0,4],targetOffset:Yu},topLeft:{points:["bl","tl"],overflow:Lb,offset:[0,-4],targetOffset:Yu},leftTop:{points:["tr","tl"],overflow:Fb,offset:[-4,0],targetOffset:Yu},topRight:{points:["br","tr"],overflow:Lb,offset:[0,-4],targetOffset:Yu},rightTop:{points:["tl","tr"],overflow:Fb,offset:[4,0],targetOffset:Yu},bottomRight:{points:["tr","br"],overflow:Lb,offset:[0,4],targetOffset:Yu},rightBottom:{points:["bl","br"],overflow:Fb,offset:[4,0],targetOffset:Yu},bottomLeft:{points:["tl","bl"],overflow:Lb,offset:[0,4],targetOffset:Yu},leftBottom:{points:["br","bl"],overflow:Fb,offset:[-4,0],targetOffset:Yu}};function IH(){return IH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const T=e,{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:o="rc-tooltip",children:a,onVisibleChange:s,afterVisibleChange:l,motion:c,placement:u="right",align:f={},destroyOnHidden:d=!1,defaultVisible:A,getTooltipContainer:h,arrowContent:p,overlay:v,id:y,showArrow:b=!0,classNames:x,styles:C}=T,S=Ze(T,["trigger","mouseEnterDelay","mouseLeaveDelay","prefixCls","children","onVisibleChange","afterVisibleChange","motion","placement","align","destroyOnHidden","defaultVisible","getTooltipContainer","arrowContent","overlay","id","showArrow","classNames","styles"]),B=lA(y),E=g.useRef(null);g.useImperativeHandle(t,()=>E.current);const _=I({},S);"visible"in e&&(_.popupVisible=e.visible);const M=g.useMemo(()=>{var P;if(!b)return!1;const L=b===!0?{}:b;return te(I({},L),{className:Ae(L.className,x==null?void 0:x.arrow),style:I(I({},L.style),C==null?void 0:C.arrow),content:(P=L.content)!=null?P:p})},[b,x==null?void 0:x.arrow,C==null?void 0:C.arrow,p]),R=({open:L})=>{const P=g.Children.only(a),k={"aria-describedby":v&&L?B:void 0};return g.cloneElement(P,k)};return g.createElement(oE,IH({popupClassName:x==null?void 0:x.root,prefixCls:o,popup:g.createElement(MH,{key:"content",prefixCls:o,id:B,classNames:x,styles:C},v),action:n,builtinPlacements:IDe,popupPlacement:u,ref:E,popupAlign:f,getPopupContainer:h,onOpenChange:s,afterOpenChange:l,popupMotion:c,defaultPopupVisible:A,autoDestroy:d,mouseLeaveDelay:i,popupStyle:C==null?void 0:C.root,mouseEnterDelay:r,arrow:M,uniqueContainerClassName:x==null?void 0:x.uniqueContainer,uniqueContainerStyle:C==null?void 0:C.uniqueContainer},_),R)});function WM(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,d=u,A=2*i-s,h=l,p=2*i-o,v=a,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),x=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,C=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${d} L ${A} ${h} A ${r} ${r} 0 0 0 ${p} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:x}}const moe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e,c={content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${be(s)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return n&&(c.boxShadow=n),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":c}},voe=8;function GM(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?voe:r}}const RH=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a,antCls:s}=e,[l]=go(s,"tooltip"),{arrowDistance:c=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[te(I({position:"absolute",zIndex:1,display:"block"},moe(e,t,u?i:!1)),{"&:before":{background:t}})],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[l("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{[l("arrow-offset-x")]:`calc(100% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[l("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{[l("arrow-offset-x")]:`calc(100% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}}};function NDe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=Zn(r)?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=I(I({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const yoe={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},PDe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},LDe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function boe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={},c=GM({contentRadius:o,limitVerticalRadius:!0});return Object.keys(yoe).forEach(u=>{const f=r&&PDe[u]||yoe[u],d=te(I({},f),{offset:[0,0],dynamicInset:!0});switch(l[u]=d,LDe.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}if(r)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=c.arrowOffsetHorizontal*2-s;break}d.overflow=NDe(u,c,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const NH=Be.createContext(!1),PH=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return Be.useMemo(()=>{var o,a;const r=n(e),i=n(t);return te(I(I({},i),r),{show:(a=(o=r.show)!=null?o:i.show)!=null?a:!0})},[e,t])},xoe="50%",FDe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,dropShadowPopover:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:A,antCls:h}=e,[p,v]=go(h,"tooltip"),y=t(a).add(A).add(d).equal(),x={minWidth:t(a).mul(2).add(A).equal(),minHeight:l,padding:`${be(e.calc(u).div(2).equal())} ${be(f)}`,color:v("overlay-color",i),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxSizing:"border-box"},C={[p("valid-offset-x")]:v("arrow-offset-x","var(--arrow-x)"),transformOrigin:[v("valid-offset-x",xoe),`var(--arrow-y, ${xoe})`].join(" ")};return[{[n]:te(I(te(I(te(I({},zr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible",filter:c}),C),{"&-hidden":{display:"none"},[p("arrow-background-color")]:o,[`${n}-container`]:[x,O8(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,voe)}},[`${n}-content`]:{position:"relative"}}),Lte(e,(S,{darkColor:B})=>({[`&${n}-${S}`]:{[`${n}-container`]:{backgroundColor:B},[`${n}-arrow`]:{[p("arrow-background-color")]:B}}}))),{"&-rtl":{direction:"rtl"}})},RH(e,v("arrow-background-color"),{arrowShadow:!1}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:te(I(I({},x),C),{position:"absolute",zIndex:t(s).sub(1).equal(),filter:c,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}})}]},kDe=e=>I(I({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250},GM({contentRadius:e.borderRadius,limitVerticalRadius:!0})),WM(dr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),woe=(e,t,n=!0)=>Br("Tooltip",i=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:s,maxWidth:l}=i,c=dr(i,{tooltipMaxWidth:l,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:s});return[FDe(c),AE(i,"zoom-big-fast")]},kDe,{resetStyle:!1,injectStyle:n})(e,t),DDe=uA.map(e=>`${e}-inverse`),HDe=["success","processing","error","default","warning"];function Coe(e,t=!0){return t?[].concat(en(DDe),en(uA)).includes(e):uA.includes(e)}function UDe(e){return HDe.includes(e)}const Soe=(e,t,n)=>{const r=Coe(n),[i]=go(e,"tooltip"),o=Ae({[`${t}-${n}`]:n&&r}),a={},s={},l=XFe(n).toRgb(),u=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return n&&!r&&(a.background=n,a[i("overlay-color")]=u,s[i("arrow-background-color")]=n),{className:o,overlayStyle:a,arrowStyle:s}},jDe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a,classNames:s,styles:l}=e,{getPrefixCls:c}=g.useContext(Un),u=c("tooltip",t),f=c(),d=So(u),[A,h]=woe(u,d),p=Soe(f,u,o),v=p.arrowStyle,y=g.useMemo(()=>({container:I(I({},a),p.overlayStyle)}),[a,p.overlayStyle]),b=te(I({},e),{placement:r}),[x,C]=vr([s],[y,l],{props:b}),S=Ae(d,A,h,u,`${u}-pure`,`${u}-placement-${r}`,n,p.className);return g.createElement("div",{className:S,style:v},g.createElement("div",{className:`${u}-arrow`}),g.createElement(MH,te(I({},e),{className:A,prefixCls:u,classNames:x,styles:C}),i))},No=g.forwardRef((e,t)=>{var Jt;const jt=e,{prefixCls:n,openClassName:r,getTooltipContainer:i,color:o,children:a,afterOpenChange:s,arrow:l,destroyTooltipOnHide:c,destroyOnHidden:u,title:f,overlay:d,trigger:A,builtinPlacements:h,autoAdjustOverflow:p=!0,motion:v,getPopupContainer:y,placement:b="top",mouseEnterDelay:x=.1,mouseLeaveDelay:C=.1,rootClassName:S,styles:B,classNames:E,onOpenChange:_,overlayInnerStyle:M,overlayStyle:R,overlayClassName:T}=jt,L=Ze(jt,["prefixCls","openClassName","getTooltipContainer","color","children","afterOpenChange","arrow","destroyTooltipOnHide","destroyOnHidden","title","overlay","trigger","builtinPlacements","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","rootClassName","styles","classNames","onOpenChange","overlayInnerStyle","overlayStyle","overlayClassName"]),[,P]=al(),k=e["data-popover-inject"],nn=or("tooltip"),{getPopupContainer:H,getPrefixCls:D,direction:U}=nn,j=Ze(nn,["getPopupContainer","getPrefixCls","direction"]),{className:Q,style:K,classNames:z,styles:V,arrow:Y,trigger:Z}=k?{}:j,W=PH(l,Y),J=W.show,ee=A||Z||"hover",ne=y||H,re=u!=null?u:!!c,ue=g.useContext(NH);Ig();const de=g.useRef(null),se=()=>{var Ot;(Ot=de.current)==null||Ot.forceAlign()};g.useImperativeHandle(t,()=>{var Ot,sn;return{forceAlign:se,nativeElement:(Ot=de.current)==null?void 0:Ot.nativeElement,popupElement:(sn=de.current)==null?void 0:sn.popupElement}});const[ce,ge]=Fr((Jt=e.defaultOpen)!=null?Jt:!1,e.open),ie=!f&&!d&&f!==0,le=Ot=>{ge(ie?!1:Ot),!ie&&_&&_(Ot)},ve=g.useMemo(()=>{var Ot;return h||boe({arrowPointAtCenter:(Ot=W==null?void 0:W.pointAtCenter)!=null?Ot:!1,autoAdjustOverflow:p,arrowWidth:J?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0})},[W,h,P,J,p]),we=g.useMemo(()=>f===0?f:d||f||"",[d,f]),me=g.createElement(Zh,{space:!0,form:!0},Rn(we)?we():we),Ee=te(I({},e),{trigger:ee,builtinPlacements:ve,getPopupContainer:ne,destroyOnHidden:re}),[Ce,pe]=vr([z,E],[V,B],{props:Ee}),Oe=D("tooltip",n),xe=D();let Me=ce;(!("open"in e)&&ie||ue)&&(Me=!1);const Se=g.isValidElement(a)&&!Hne(a)?a:g.createElement("span",null,a),Pe=Se.props,Le=!Pe.className||typeof Pe.className=="string"?Ae(Pe.className,r||`${Oe}-open`):Pe.className,He=So(Oe),[Ne,at]=woe(Oe,He,!k),Ue=Soe(xe,Oe,o),et=Ue.arrowStyle,We=Ae(He,Ne,at),Je=Ae(T,{[`${Oe}-rtl`]:U==="rtl"},Ue.className,S,We,Q,Ce.root),[dt,wt]=jg("Tooltip",L.zIndex),Bt=I(I(I({},pe.container),M),Ue.overlayStyle),qt=g.createElement(RDe,te(I({unique:!0},L),{zIndex:dt,showArrow:J,placement:b,mouseEnterDelay:x,mouseLeaveDelay:C,prefixCls:Oe,classNames:{root:Je,container:Ce.container,arrow:Ce.arrow,uniqueContainer:Ae(We,Ce.container)},styles:{root:I(I(I(I({},et),pe.root),K),R),container:Bt,uniqueContainer:Bt,arrow:pe.arrow},ref:de,overlay:me,visible:Me,onVisibleChange:le,afterVisibleChange:s,arrowContent:g.createElement("span",{className:`${Oe}-arrow-content`}),motion:{motionName:Yh(xe,"zoom-big-fast",typeof(v==null?void 0:v.motionName)=="string"?v==null?void 0:v.motionName:void 0),motionDeadline:1e3},trigger:ee,builtinPlacements:ve,getTooltipContainer:ne,destroyOnHidden:re}),Me?Ga(Se,{className:Le}):Se);return g.createElement(OM.Provider,{value:wt},qt)});No._InternalPanelDoNotUseOrYouWillBeFired=jDe,No.UniqueProvider=jne;const Eoe="50%",zDe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,dropShadowPopover:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:A,innerContentPadding:h,titlePadding:p,antCls:v}=e,[y,b]=go(v,"tooltip");return[{[t]:te(I({},zr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:a,[y("valid-offset-x")]:b("arrow-offset-x","var(--arrow-x)"),transformOrigin:[b("valid-offset-x",Eoe),`var(--arrow-y, ${Eoe})`].join(" "),[y("arrow-background-color")]:f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:A,padding:p},[`${t}-content`]:{color:n,padding:h}})},RH(e,b("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},QDe=e=>{const{componentCls:t,antCls:n}=e,[r]=go(n,"tooltip");return{[t]:uA.map(i=>{const o=e[`${i}6`];return{[`&${t}-${i}`]:{[r("arrow-background-color")]:o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},Boe=Br("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=dr(e,{popoverBg:t,popoverColor:n});return[zDe(r),QDe(r),AE(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,d=n-r,A=d/2,h=d/2-t,p=i;return te(I(I({titleMinWidth:177,zIndexPopup:a+30},WM(e)),GM({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${A}px ${p}px ${h}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${f}px ${p}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Ooe=e=>{const{title:t,content:n,prefixCls:r,classNames:i,styles:o}=e;return!qi(t)&&!qi(n)?null:g.createElement(g.Fragment,null,qi(t)&&g.createElement("div",{className:Ae(`${r}-title`,i==null?void 0:i.title),style:o==null?void 0:o.title},t),qi(n)&&g.createElement("div",{className:Ae(`${r}-content`,i==null?void 0:i.content),style:o==null?void 0:o.content},n))},VDe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:s,children:l,classNames:c,styles:u}=e,f=Pb(a),d=Pb(s),A=te(I({},e),{placement:o}),[h,p]=vr([c],[u],{props:A}),v=Ae(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return g.createElement("div",{className:v,style:i},g.createElement("div",{className:`${n}-arrow`}),g.createElement(MH,te(I({},e),{className:t,prefixCls:n,classNames:h,styles:p}),l||g.createElement(Ooe,{prefixCls:n,title:f,content:d,classNames:h,styles:p})))},$oe=e=>{const l=e,{prefixCls:t,className:n}=l,r=Ze(l,["prefixCls","className"]),{getPrefixCls:i}=g.useContext(Un),o=i("popover",t),[a,s]=Boe(o);return g.createElement(VDe,te(I({},r),{prefixCls:o,hashId:a,className:Ae(n,s)}))},qM=g.forwardRef((e,t)=>{var W;const Z=e,{prefixCls:n,title:r,content:i,overlayClassName:o,placement:a="top",trigger:s,children:l,mouseEnterDelay:c=.1,mouseLeaveDelay:u=.1,onOpenChange:f,overlayStyle:d={},styles:A,classNames:h,motion:p,arrow:v}=Z,y=Ze(Z,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames","motion","arrow"]),{getPrefixCls:b,className:x,style:C,classNames:S,styles:B,arrow:E,trigger:_}=or("popover"),M=b("popover",n),[R,T]=Boe(M),L=b(),P=PH(v,E),k=s||_||"hover",H=te(I({},e),{placement:a,trigger:k,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:d,styles:A,classNames:h}),[D,U]=vr([S,h],[B,A],{props:H}),j=Ae(o,R,T,x,D.root),[Q,K]=Fr((W=e.defaultOpen)!=null?W:!1,e.open),z=J=>{K(J),f==null||f(J)},V=Pb(r),Y=Pb(i);return g.createElement(No,te(I({unique:!1,arrow:P,placement:a,trigger:k,mouseEnterDelay:c,mouseLeaveDelay:u},y),{prefixCls:M,classNames:{root:j,container:D.container,arrow:D.arrow},styles:{root:I(I(I({},U.root),C),d),container:U.container,arrow:U.arrow},ref:t,open:Q,onOpenChange:z,overlay:qi(V)||qi(Y)?g.createElement(Ooe,{prefixCls:M,title:V,content:Y,classNames:D,styles:U}):null,motion:{motionName:Yh(L,"zoom-big",typeof(p==null?void 0:p.motionName)=="string"?p==null?void 0:p.motionName:void 0)},"data-popover-inject":!0}),l)});qM._InternalPanelDoNotUseOrYouWillBeFired=$oe;const LH=Be.createContext({});var YM={},_oe;function KDe(){if(_oe)return YM;_oe=1,Object.defineProperty(YM,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};return YM.default=e,YM}var WDe=KDe();const GDe=_t(WDe);function FH(){return FH=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,FH({},e,{ref:t,icon:GDe})),mA=g.forwardRef(qDe),{ESC:YDe,TAB:XDe}=dn;function ZDe({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){const o=g.useRef(!1),a=()=>{var c,u;e&&((u=(c=t.current)==null?void 0:c.focus)==null||u.call(c),n==null||n(!1))},s=()=>{var c;return(c=i.current)!=null&&c.focus?(i.current.focus(),o.current=!0,!0):!1},l=c=>{switch(c.keyCode){case YDe:a();break;case XDe:{let u=!1;o.current||(u=s()),u?c.preventDefault():a();break}}};g.useEffect(()=>e?(window.addEventListener("keydown",l),r&&Kn(s,3),()=>{window.removeEventListener("keydown",l),o.current=!1}):()=>{o.current=!1},[e])}const JDe=g.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:i}=e,o=g.useMemo(()=>{let s;return typeof n=="function"?s=n():s=n,s},[n]),a=il(t,cA(o));return Be.createElement(Be.Fragment,null,r&&Be.createElement("div",{className:`${i}-arrow`}),Be.cloneElement(o,{ref:Vh(o)?a:void 0}))}),kb={adjustX:1,adjustY:1},Db=[0,0],e8e={topLeft:{points:["bl","tl"],overflow:kb,offset:[0,-4],targetOffset:Db},top:{points:["bc","tc"],overflow:kb,offset:[0,-4],targetOffset:Db},topRight:{points:["br","tr"],overflow:kb,offset:[0,-4],targetOffset:Db},bottomLeft:{points:["tl","bl"],overflow:kb,offset:[0,4],targetOffset:Db},bottom:{points:["tc","bc"],overflow:kb,offset:[0,4],targetOffset:Db},bottomRight:{points:["tr","br"],overflow:kb,offset:[0,4],targetOffset:Db}};function kH(){return kH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var z;const K=e,{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:o,align:a,placement:s="bottomLeft",placements:l=e8e,getPopupContainer:c,showAction:u,hideAction:f,overlayClassName:d,overlayStyle:A,visible:h,trigger:p=["hover"],autoFocus:v,overlay:y,children:b,onVisibleChange:x}=K,C=Ze(K,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"]),[S,B]=Be.useState(),E="visible"in e?h:S,_=o?`${r}-${o}`:i,M=Be.useRef(null),R=Be.useRef(null),T=Be.useRef(null);Be.useImperativeHandle(t,()=>M.current);const L=V=>{B(V),x==null||x(V)};ZDe({visible:E,triggerRef:T,onVisibleChange:L,autoFocus:v,overlayRef:R});const P=V=>{const{onOverlayClick:Y}=e;B(!1),Y&&Y(V)},k=()=>Be.createElement(JDe,{ref:R,overlay:y,prefixCls:r,arrow:n}),H=()=>typeof y=="function"?k:k(),D=()=>{const{minOverlayWidthMatchTrigger:V,alignPoint:Y}=e;return"minOverlayWidthMatchTrigger"in e?V:!Y},U=()=>{const{openClassName:V}=e;return V!==void 0?V:`${r}-open`},j=Be.cloneElement(b,{className:Ae((z=b.props)==null?void 0:z.className,E&&U()),ref:Vh(b)?il(T,cA(b)):void 0});let Q=f;return!Q&&p.indexOf("contextMenu")!==-1&&(Q=["click"]),Be.createElement(oE,kH({builtinPlacements:l},C,{prefixCls:r,ref:M,popupClassName:Ae(d,{[`${r}-show-arrow`]:n}),popupStyle:A,action:p,showAction:u,hideAction:Q,popupPlacement:s,popupAlign:a,popupMotion:{motionName:_},popupVisible:E,stretch:D()?"minWidth":"",popup:H(),onOpenChange:L,onPopupClick:P,getPopupContainer:c}),j)}),Moe=g.createContext(null);function Ioe(e,t){return`${e}-${t}`}function Roe(e){const t=g.useContext(Moe);return Ioe(t,e)}const ad=g.createContext(null);function t8e(e,t){const n=I({},e);return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(n[r]=i)}),n}function $E(r){var i=r,{children:e,locked:t}=i,n=Ze(i,["children","locked"]);const o=g.useContext(ad),a=cv(()=>t8e(o,n),[o,n],(s,l)=>!t&&(s[0]!==l[0]||!uu(s[1],l[1],!0)));return g.createElement(ad.Provider,{value:a},e)}const n8e=[],Noe=g.createContext(null);function XM(){return g.useContext(Noe)}const Poe=g.createContext(n8e);function Hb(e){const t=g.useContext(Poe);return g.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const Loe=g.createContext(null),DH=g.createContext({}),{LEFT:HH,RIGHT:UH,UP:jH,DOWN:ZM,ENTER:JM,ESC:Foe,HOME:_E,END:TE}=dn,koe=[jH,ZM,HH,UH];function r8e(e,t,n,r){var A;const i="prev",o="next",a="children",s="parent";if(e==="inline"&&r===JM)return{inlineTrigger:!0};const l={[jH]:i,[ZM]:o},c={[HH]:n?o:i,[UH]:n?i:o,[ZM]:a,[JM]:a},u={[jH]:i,[ZM]:o,[JM]:a,[Foe]:s,[HH]:n?a:s,[UH]:n?s:a};switch((A={inline:l,horizontal:c,vertical:u,inlineSub:l,horizontalSub:u,verticalSub:u}[`${e}${t?"":"Sub"}`])==null?void 0:A[r]){case i:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}function i8e(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function o8e(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function zH(e,t){return T6(e,!0).filter(r=>t.has(r))}function Doe(e,t,n,r=1){if(!e)return null;const i=zH(e,t),o=i.length;let a=i.findIndex(s=>n===s);return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}const e4=(e,t)=>{const n=new Set,r=new Map,i=new Map;return e.forEach(o=>{const a=document.querySelector(`[data-menu-id='${Ioe(t,o)}']`);a&&(n.add(a),i.set(a,o),r.set(o,a))}),{elements:n,key2element:r,element2key:i}};function a8e(e,t,n,r,i,o,a,s,l,c){const u=g.useRef(),f=g.useRef();f.current=t;const d=()=>{Kn.cancel(u.current)};return g.useEffect(()=>()=>{d()},[]),A=>{const{which:h}=A;if([...koe,JM,Foe,_E,TE].includes(h)){const p=o();let v=e4(p,r);const{elements:y,key2element:b,element2key:x}=v,C=b.get(t),S=o8e(C,y),B=x.get(S),E=r8e(e,a(B,!0).length===1,n,h);if(!E&&h!==_E&&h!==TE)return;(koe.includes(h)||[_E,TE].includes(h))&&A.preventDefault();const _=M=>{if(M){let R=M;const T=M.querySelector("a");T!=null&&T.getAttribute("href")&&(R=T);const L=x.get(M);s(L),d(),u.current=Kn(()=>{f.current===L&&R.focus()})}};if([_E,TE].includes(h)||E.sibling||!S){let M;!S||e==="inline"?M=i.current:M=i8e(S);let R;const T=zH(M,y);h===_E?R=T[0]:h===TE?R=T[T.length-1]:R=Doe(M,y,S,E.offset),_(R)}else if(E.inlineTrigger)l(B);else if(E.offset>0)l(B,!0),d(),u.current=Kn(()=>{v=e4(p,r);const M=S.getAttribute("aria-controls"),R=document.getElementById(M),T=Doe(R,v.elements);_(T)},5);else if(E.offset<0){const M=a(B,!0),R=M[M.length-2],T=b.get(R);l(R,!1),_(T)}}c==null||c(A)}}function s8e(e){Promise.resolve().then(e)}const QH="__RC_UTIL_PATH_SPLIT__",Hoe=e=>e.join(QH),l8e=e=>e.split(QH),VH="rc-menu-more";function c8e(){const[,e]=g.useState({}),t=g.useRef(new Map),n=g.useRef(new Map),[r,i]=g.useState([]),o=g.useRef(0),a=g.useRef(!1),s=()=>{a.current||e({})},l=g.useCallback((p,v)=>{const y=Hoe(v);n.current.set(y,p),t.current.set(p,y),o.current+=1;const b=o.current;s8e(()=>{b===o.current&&s()})},[]),c=g.useCallback((p,v)=>{const y=Hoe(v);n.current.delete(y),t.current.delete(p)},[]),u=g.useCallback(p=>{i(p)},[]),f=g.useCallback((p,v)=>{const y=t.current.get(p)||"",b=l8e(y);return v&&r.includes(b[0])&&b.unshift(VH),b},[r]),d=g.useCallback((p,v)=>p.filter(y=>y!==void 0).some(y=>f(y,!0).includes(v)),[f]),A=()=>{const p=[...t.current.keys()];return r.length&&p.push(VH),p},h=g.useCallback(p=>{const v=`${t.current.get(p)}${QH}`,y=new Set;return[...n.current.keys()].forEach(b=>{b.startsWith(v)&&y.add(n.current.get(b))}),y},[]);return g.useEffect(()=>()=>{a.current=!0},[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:d,getKeyPath:f,getKeys:A,getSubPathKeys:h}}function ME(e){const t=g.useRef(e);t.current=e;const n=g.useCallback((...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[]);return e?n:void 0}function Uoe(e,t,n,r){const{activeKey:i,onActive:o,onInactive:a}=g.useContext(ad),s={active:i===e};return t||(s.onMouseEnter=l=>{n==null||n({key:e,domEvent:l}),o(e)},s.onMouseLeave=l=>{r==null||r({key:e,domEvent:l}),a(e)}),s}function joe(e){const{mode:t,rtl:n,inlineIndent:r}=g.useContext(ad);if(t!=="inline")return null;const i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function zoe({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=g.createElement(e,I({},t)):typeof e!="boolean"&&(r=e),r||n||null)}function t4(n){var r=n,{item:e}=r,t=Ze(r,["item"]);return Object.defineProperty(t,"item",{get:()=>(ao(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function IE(){return IE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const ee=e,{style:n,className:r,eventKey:i,warnKey:o,disabled:a,itemIcon:s,children:l,itemData:c,role:u,onMouseEnter:f,onMouseLeave:d,onClick:A,onKeyDown:h,onFocus:p}=ee,v=Ze(ee,["style","className","eventKey","warnKey","disabled","itemIcon","children","itemData","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"]),y=Roe(i),{prefixCls:b,onItemClick:x,disabled:C,overflowDisabled:S,itemIcon:B,selectedKeys:E,onActive:_}=g.useContext(ad),{_internalRenderMenuItem:M}=g.useContext(DH),R=`${b}-item`,T=g.useRef(),L=g.useRef(),P=C||a,k=ed(t,L),H=Hb(i),D=re=>{const ue=c||{key:i||"",label:l,itemIcon:s,extra:e.extra,title:e.title};return{key:i,keyPath:[...H].reverse(),item:T.current,domEvent:re,itemData:c||ue}},U=s||B,ne=Uoe(i,P,f,d),{active:j}=ne,Q=Ze(ne,["active"]),K=E.includes(i),z=joe(H.length),V=re=>{if(P)return;const ue=D(re);A==null||A(t4(ue)),x(ue)},Y=re=>{if(h==null||h(re),re.which===dn.ENTER){const ue=D(re);A==null||A(t4(ue)),x(ue)}},Z=re=>{_(i),p==null||p(re)},W={};e.role==="option"&&(W["aria-selected"]=K);let J=g.createElement(u8e,IE({ref:T,elementRef:k,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&y?null:y},ti(v,["extra"]),Q,W,{component:"li","aria-disabled":a,style:I(I({},z),n),className:Ae(R,{[`${R}-active`]:j,[`${R}-selected`]:K,[`${R}-disabled`]:P},r),onClick:V,onKeyDown:Y,onFocus:Z}),l,g.createElement(zoe,{props:te(I({},e),{isSelected:K}),icon:U}));return M&&(J=M(J,e,{selected:K})),J});function d8e(e,t){const{eventKey:n}=e,r=XM(),i=Hb(n);return g.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:g.createElement(f8e,IE({},e,{ref:t}))}const RE=g.forwardRef(d8e);function KH(){return KH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var o=i,{className:e,children:t}=o,n=Ze(o,["className","children"]);const{prefixCls:a,mode:s,rtl:l}=g.useContext(ad);return g.createElement("ul",KH({className:Ae(a,l&&`${a}-rtl`,`${a}-sub`,`${a}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},Qoe=g.forwardRef(A8e);function WH(e,t){return pa(e).map((n,r)=>{var i,o;if(g.isValidElement(n)){const{key:a}=n;let s=(o=(i=n.props)==null?void 0:i.eventKey)!=null?o:a;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const c={key:s,eventKey:s};return g.cloneElement(n,c)}return n})}const Ol={adjustX:1,adjustY:1},h8e={topLeft:{points:["bl","tl"],overflow:Ol},topRight:{points:["br","tr"],overflow:Ol},bottomLeft:{points:["tl","bl"],overflow:Ol},bottomRight:{points:["tr","br"],overflow:Ol},leftTop:{points:["tr","tl"],overflow:Ol},leftBottom:{points:["br","bl"],overflow:Ol},rightTop:{points:["tl","tr"],overflow:Ol},rightBottom:{points:["bl","br"],overflow:Ol}},p8e={topLeft:{points:["bl","tl"],overflow:Ol},topRight:{points:["br","tr"],overflow:Ol},bottomLeft:{points:["tl","bl"],overflow:Ol},bottomRight:{points:["tr","br"],overflow:Ol},rightTop:{points:["tr","tl"],overflow:Ol},rightBottom:{points:["br","bl"],overflow:Ol},leftTop:{points:["tl","tr"],overflow:Ol},leftBottom:{points:["bl","br"],overflow:Ol}};function Voe(e,t,n){if(t)return t;if(n)return n[e]||n.other}const g8e={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function m8e({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:o,popupOffset:a,disabled:s,mode:l,onVisibleChange:c}){const{getPopupContainer:u,rtl:f,subMenuOpenDelay:d,subMenuCloseDelay:A,builtinPlacements:h,triggerSubMenuAction:p,forceSubMenuRender:v,rootClassName:y,motion:b,defaultMotions:x}=g.useContext(ad),[C,S]=g.useState(!1),B=I(f?I({},p8e):I({},h8e),h),E=g8e[l],_=Voe(l,b,x),M=g.useRef(_);l!=="inline"&&(M.current=_);const R=te(I({},M.current),{leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0}),T=g.useRef();return g.useEffect(()=>(T.current=Kn(()=>{S(t)}),()=>{Kn.cancel(T.current)}),[t]),g.createElement(oE,{prefixCls:e,popupClassName:Ae(`${e}-popup`,{[`${e}-rtl`]:f},o,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:u,builtinPlacements:B,popupPlacement:E,popupVisible:C,popup:r,popupStyle:i,popupAlign:a&&{offset:a},action:s?[]:[p],mouseEnterDelay:d,mouseLeaveDelay:A,onPopupVisibleChange:c,forceRender:v,popupMotion:R,fresh:!0},n)}function GH(){return GH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current&&d(!1)},[c]);const h=I({},Voe(i,s,l));n.length>1&&(h.motionAppear=!1);const p=h.onVisibleChanged;return h.onVisibleChanged=v=>(!u.current&&!v&&d(!0),p==null?void 0:p(v)),f?null:g.createElement($E,{mode:i,locked:!u.current},g.createElement(sl,GH({visible:A},h,{forceRender:a,removeOnLeave:!1,leavedClassName:`${o}-hidden`}),({className:v,style:y})=>g.createElement(Qoe,{id:e,className:v,style:y},r)))}function NE(){return NE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const Je=e,{style:n,className:r,styles:i,classNames:o,title:a,eventKey:s,warnKey:l,disabled:c,internalPopupClose:u,children:f,itemIcon:d,expandIcon:A,popupClassName:h,popupOffset:p,popupStyle:v,onClick:y,onMouseEnter:b,onMouseLeave:x,onTitleClick:C,onTitleMouseEnter:S,onTitleMouseLeave:B,popupRender:E}=Je,_=Ze(Je,["style","className","styles","classNames","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave","popupRender"]),M=Roe(s),{prefixCls:R,mode:T,openKeys:L,disabled:P,overflowDisabled:k,activeKey:H,selectedKeys:D,itemIcon:U,expandIcon:j,onItemClick:Q,onOpenChange:K,onActive:z,popupRender:V}=g.useContext(ad),{_internalRenderSubMenuItem:Y}=g.useContext(DH),{isSubPathKey:Z}=g.useContext(Loe),W=Hb(),J=`${R}-submenu`,ee=P||c,ne=g.useRef(),re=g.useRef(),ue=d!=null?d:U,de=A!=null?A:j,se=L.includes(s),ce=!k&&se,ge=Z(D,s),dt=Uoe(s,ee,S,B),{active:ie}=dt,le=Ze(dt,["active"]),[ve,we]=g.useState(!1),me=wt=>{ee||we(wt)},Ee=wt=>{me(!0),b==null||b({key:s,domEvent:wt})},Ce=wt=>{me(!1),x==null||x({key:s,domEvent:wt})},pe=g.useMemo(()=>ie||(T!=="inline"?ve||Z([H],s):!1),[T,ie,H,ve,s,Z]),Oe=joe(W.length),xe=wt=>{ee||(C==null||C({key:s,domEvent:wt}),T==="inline"&&K(s,!se))},Me=ME(wt=>{y==null||y(t4(wt)),Q(wt)}),Se=wt=>{T!=="inline"&&K(s,wt)},Pe=()=>{z(s)},Le=M&&`${M}-popup`,He=g.useMemo(()=>g.createElement(zoe,{icon:T!=="horizontal"?de:void 0,props:te(I({},e),{isOpen:ce,isSubMenu:!0})},g.createElement("i",{className:`${J}-arrow`})),[T,de,e,ce,J]);let Ne=g.createElement("div",NE({role:"menuitem",style:Oe,className:`${J}-title`,tabIndex:ee?null:-1,ref:ne,title:typeof a=="string"?a:null,"data-menu-id":k&&M?null:M,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":ee,onClick:xe,onFocus:Pe},le),a,He);const at=g.useRef(T);T!=="inline"&&W.length>1?at.current="vertical":at.current=T;const Ue=at.current,et=g.useMemo(()=>{const wt=g.createElement($E,{classNames:o,styles:i,mode:Ue==="horizontal"?"vertical":Ue},g.createElement(Qoe,{id:Le,ref:re},f)),Bt=E||V;return Bt?Bt(wt,{item:e,keys:W}):wt},[E,V,W,Le,f,e,Ue]);if(!k){const wt=at.current;Ne=g.createElement(m8e,{mode:wt,prefixCls:J,visible:!u&&ce&&T!=="inline",popupClassName:h,popupOffset:p,popupStyle:v,popup:et,disabled:ee,onVisibleChange:Se},Ne)}let We=g.createElement(gA.Item,NE({ref:t,role:"none"},_,{component:"li",style:n,className:Ae(J,`${J}-${T}`,r,{[`${J}-open`]:ce,[`${J}-active`]:pe,[`${J}-selected`]:ge,[`${J}-disabled`]:ee}),onMouseEnter:Ee,onMouseLeave:Ce}),Ne,!k&&g.createElement(v8e,{id:Le,open:ce,keyPath:W},f));return Y&&(We=Y(We,e,{selected:ge,active:pe,open:ce,disabled:ee})),g.createElement($E,{classNames:o,styles:i,onItemClick:Me,mode:T==="horizontal"?"vertical":T,itemIcon:ue,expandIcon:de},We)}),n4=g.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=Hb(n),o=WH(r,i),a=XM();g.useEffect(()=>{if(a)return a.registerPath(n,i),()=>{a.unregisterPath(n,i)}},[i]);let s;return a?s=o:s=g.createElement(y8e,NE({ref:t},e),o),g.createElement(Poe.Provider,{value:i},s)});function qH({className:e,style:t}){const{prefixCls:n}=g.useContext(ad);return XM()?null:g.createElement("li",{role:"separator",className:Ae(`${n}-item-divider`,e),style:t})}function r4(){return r4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const f=e,{className:n,title:r,eventKey:i,children:o}=f,a=Ze(f,["className","title","eventKey","children"]),{prefixCls:s,classNames:l,styles:c}=g.useContext(ad),u=`${s}-item-group`;return g.createElement("li",r4({ref:t,role:"presentation"},a,{onClick:d=>d.stopPropagation(),className:Ae(u,n)}),g.createElement("div",{role:"presentation",className:Ae(`${u}-title`,l==null?void 0:l.listTitle),style:c==null?void 0:c.listTitle,title:typeof r=="string"?r:void 0},r),g.createElement("ul",{role:"group",className:Ae(`${u}-list`,l==null?void 0:l.list),style:c==null?void 0:c.list},o))}),YH=g.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=Hb(n),o=WH(r,i);return XM()?o:g.createElement(b8e,r4({ref:t},ti(e,["warnKey"])),o)});function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(s&&typeof s=="object"){const c=s,{label:u,children:f,key:d,type:A,extra:h}=c,p=Ze(c,["label","children","key","type","extra"]),v=d!=null?d:`tmp-${l}`;if(f||A==="group")return A==="group"?g.createElement(i,Ub({key:v},p,{title:u}),XH(f,t,n)):g.createElement(o,Ub({key:v},p,{title:u}),XH(f,t,n));if(A==="divider")return g.createElement(a,Ub({key:v},p));const y=!!h||h===0;return g.createElement(r,Ub({key:v},p,{extra:h,itemData:te(I({},s),{key:v})}),y?g.createElement(g.Fragment,null,g.createElement("span",{className:`${n}-item-label`},u),g.createElement("span",{className:`${n}-item-extra`},h)):u)}return null}).filter(s=>s)}function Koe(e,t,n,r,i){let o=e;const a=I({divider:qH,item:RE,group:YH,submenu:n4},r);return t&&(o=XH(t,a,i)),WH(o,n)}function ZH(){return ZH=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var lr;const Tn=e,{prefixCls:n="rc-menu",rootClassName:r,style:i,className:o,styles:a,classNames:s,tabIndex:l=0,items:c,children:u,direction:f,id:d,mode:A="vertical",inlineCollapsed:h,disabled:p,disabledOverflow:v,subMenuOpenDelay:y=.1,subMenuCloseDelay:b=.1,forceSubMenuRender:x,defaultOpenKeys:C,openKeys:S,activeKey:B,defaultActiveFirst:E,selectable:_=!0,multiple:M=!1,defaultSelectedKeys:R,selectedKeys:T,onSelect:L,onDeselect:P,inlineIndent:k=24,motion:H,defaultMotions:D,triggerSubMenuAction:U="hover",builtinPlacements:j,itemIcon:Q,expandIcon:K,overflowedIndicator:z="...",overflowedIndicatorPopupClassName:V,getPopupContainer:Y,onClick:Z,onOpenChange:W,onKeyDown:J,openAnimation:ee,openTransitionName:ne,_internalRenderMenuItem:re,_internalRenderSubMenuItem:ue,_internalComponents:de,popupRender:se}=Tn,ce=Ze(Tn,["prefixCls","rootClassName","style","className","styles","classNames","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents","popupRender"]),[ge,ie]=g.useMemo(()=>[Koe(u,c,Bv,de,n),Koe(u,c,Bv,{},n)],[u,c,de]),[le,ve]=g.useState(!1),we=g.useRef(),me=lA(d?`rc-menu-uuid-${d}`:"rc-menu-uuid"),Ee=f==="rtl",[Ce,pe]=Fr(C,S),Oe=Ce||Bv,xe=($n,Fn=!1)=>{function $t(){pe($n),W==null||W($n)}Fn?fu.flushSync($t):$t()},[Me,Se]=g.useState(Oe),Pe=g.useRef(!1),[Le,He]=g.useMemo(()=>(A==="inline"||A==="vertical")&&h?["vertical",h]:[A,!1],[A,h]),Ne=Le==="inline",[at,Ue]=g.useState(Le),[et,We]=g.useState(He);g.useEffect(()=>{Ue(Le),We(He),Pe.current&&(Ne?pe(Me):xe(Bv))},[Le,He]);const[Je,dt]=g.useState(0),wt=Je>=ge.length-1||at!=="horizontal"||v;g.useEffect(()=>{Ne&&Se(Oe)},[Oe]),g.useEffect(()=>(Pe.current=!0,()=>{Pe.current=!1}),[]);const{registerPath:Bt,unregisterPath:qt,refreshOverflowKeys:jt,isSubPathKey:nn,getKeyPath:Jt,getKeys:Ot,getSubPathKeys:sn}=c8e(),Vt=g.useMemo(()=>({registerPath:Bt,unregisterPath:qt}),[Bt,qt]),xt=g.useMemo(()=>({isSubPathKey:nn}),[nn]);g.useEffect(()=>{jt(wt?Bv:ge.slice(Je+1).map($n=>$n.key))},[Je,wt]);const[qe,it]=Fr(B||E&&((lr=ge[0])==null?void 0:lr.key),B),Pt=ME($n=>{it($n)}),De=ME(()=>{it(void 0)});g.useImperativeHandle(t,()=>({list:we.current,focus:$n=>{var kt,mn;const Fn=Ot(),{elements:$t,key2element:Ie,element2key:Ke}=e4(Fn,me),nt=zH(we.current,$t);let ht;qe&&Fn.includes(qe)?ht=qe:ht=nt[0]?Ke.get(nt[0]):(kt=ge.find(Rt=>!Rt.props.disabled))==null?void 0:kt.key;const Xt=Ie.get(ht);ht&&Xt&&((mn=Xt==null?void 0:Xt.focus)==null||mn.call(Xt,$n))},findItem:({key:$n})=>{const Fn=Ot(),{key2element:$t}=e4(Fn,me);return $t.get($n)||null}}));const[ze,bt]=Fr(R||[],T),lt=g.useMemo(()=>Array.isArray(ze)?ze:ze==null?Bv:[ze],[ze]),At=$n=>{if(_){const{key:Fn}=$n,$t=lt.includes(Fn);let Ie;M?$t?Ie=lt.filter(nt=>nt!==Fn):Ie=[...lt,Fn]:Ie=[Fn],bt(Ie);const Ke=te(I({},$n),{selectedKeys:Ie});$t?P==null||P(Ke):L==null||L(Ke)}!M&&Oe.length&&at!=="inline"&&xe(Bv)},ut=ME($n=>{Z==null||Z(t4($n)),At($n)}),ft=ME(($n,Fn)=>{let $t=Oe.filter(Ie=>Ie!==$n);if(Fn)$t.push($n);else if(at!=="inline"){const Ie=sn($n);$t=$t.filter(Ke=>!Ie.has(Ke))}uu(Oe,$t,!0)||xe($t,!0)}),An=a8e(at,qe,Ee,me,we,Ot,Jt,it,($n,Fn)=>{const $t=Fn!=null?Fn:!Oe.includes($n);ft($n,$t)},J);g.useEffect(()=>{ve(!0)},[]);const pn=g.useMemo(()=>({_internalRenderMenuItem:re,_internalRenderSubMenuItem:ue}),[re,ue]),bn=at!=="horizontal"||v?ge:ge.map(($n,Fn)=>g.createElement($E,{key:$n.key,overflowDisabled:Fn>Je,classNames:s,styles:a},$n)),Sn=g.createElement(gA,ZH({id:d,ref:we,prefixCls:`${n}-overflow`,component:"ul",itemComponent:RE,className:Ae(n,`${n}-root`,`${n}-${at}`,o,{[`${n}-inline-collapsed`]:et,[`${n}-rtl`]:Ee},r),dir:f,style:i,role:"menu",tabIndex:l,data:bn,renderRawItem:$n=>$n,renderRawRest:$n=>{const Fn=$n.length,$t=Fn?ge.slice(-Fn):null;return g.createElement(n4,{eventKey:VH,title:z,disabled:wt,internalPopupClose:Fn===0,popupClassName:V},$t)},maxCount:at!=="horizontal"||v?gA.INVALIDATE:gA.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:$n=>{dt($n)},onKeyDown:An},ce));return g.createElement(DH.Provider,{value:pn},g.createElement(Moe.Provider,{value:me},g.createElement($E,{prefixCls:n,rootClassName:r,classNames:s,styles:a,mode:at,openKeys:Oe,rtl:Ee,disabled:p,motion:le?H:null,defaultMotions:le?D:null,activeKey:qe,onActive:Pt,onInactive:De,selectedKeys:lt,inlineIndent:k,subMenuOpenDelay:y,subMenuCloseDelay:b,forceSubMenuRender:x,builtinPlacements:j,triggerSubMenuAction:U,getPopupContainer:Y,itemIcon:Q,expandIcon:K,onItemClick:ut,onOpenChange:ft,popupRender:se},g.createElement(Loe.Provider,{value:xt},Sn),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(Noe.Provider,{value:Vt},ie)))))});jb.Item=RE,jb.SubMenu=n4,jb.ItemGroup=YH,jb.Divider=qH;var i4={},Woe;function x8e(){if(Woe)return i4;Woe=1,Object.defineProperty(i4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};return i4.default=e,i4}var w8e=x8e();const C8e=_t(w8e);function JH(){return JH=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,JH({},e,{ref:t,icon:C8e})),Goe=g.forwardRef(S8e),qoe=g.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),E8e=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:be(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Yoe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},Xoe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Zoe=Br("Layout",E8e,Yoe,{deprecatedTokens:Xoe}),B8e=Br(["Layout","Sider"],e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:d,lightSiderBg:A,lightTriggerColor:h,lightTriggerBg:p,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:be(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${be(d)} ${be(d)} 0`,cursor:"pointer",transition:`background-color ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${be(d)} 0 0 ${be(d)}`}},"&-light":{background:A,[`${t}-trigger`]:{color:h,background:p},[`${t}-zero-width-trigger`]:{color:h,background:p,border:`1px solid ${v}`,borderInlineStart:0}}}}},Yoe,{deprecatedTokens:Xoe}),Joe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},O8e=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),o4=g.createContext({}),$8e=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),eae=g.forwardRef((e,t)=>{const se=e,{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:d=80,zeroWidthTriggerStyle:A,breakpoint:h,onCollapse:p,onBreakpoint:v,classNames:y,styles:b}=se,x=Ze(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint","classNames","styles"]),{siderHook:C}=g.useContext(qoe),[S,B]=g.useState("collapsed"in e?e.collapsed:a),[E,_]=g.useState(!1);g.useEffect(()=>{"collapsed"in e&&B(e.collapsed)},[e.collapsed]);const M=(ce,ge)=>{"collapsed"in e||B(ce),p==null||p(ce,ge)},R=te(I({},e),{collapsed:S,defaultCollapsed:a,theme:s,style:l,collapsible:c,reverseArrow:u,width:f,collapsedWidth:d,zeroWidthTriggerStyle:A,breakpoint:h,onCollapse:p,onBreakpoint:v}),[T,L]=vr([y],[b],{props:R}),{getPrefixCls:P,direction:k}=g.useContext(Un),H=P("layout-sider",n),[D,U]=B8e(H),j=g.useRef(null);j.current=ce=>{_(ce.matches),v==null||v(ce.matches),S!==ce.matches&&M(ce.matches,"responsive")},g.useEffect(()=>{function ce(ie){var le;return(le=j.current)==null?void 0:le.call(j,ie)}let ge;return typeof(window==null?void 0:window.matchMedia)!="undefined"&&h&&h in Joe&&(ge=window.matchMedia(`screen and (max-width: ${Joe[h]})`),Rn(ge==null?void 0:ge.addEventListener)&&ge.addEventListener("change",ce),ce(ge)),()=>{Rn(ge==null?void 0:ge.removeEventListener)&&ge.removeEventListener("change",ce)}},[h]),g.useEffect(()=>{const ce=$8e("ant-sider-");return C.addSider(ce),()=>C.removeSider(ce)},[]);const Q=()=>{M(!S,"clickTrigger")},K=ti(x,["collapsed"]),z=S?d:f,V=O8e(z)?`${z}px`:String(z),Y=Number.parseFloat(String(d||0))===0?g.createElement("span",{onClick:Q,className:Ae(`${H}-zero-width-trigger`,`${H}-zero-width-trigger-${u?"right":"left"}`),style:A},i||g.createElement(Goe,null)):null,Z=k==="rtl"==!u,ee={expanded:Z?g.createElement(od,null):g.createElement(mA,null),collapsed:Z?g.createElement(mA,null):g.createElement(od,null)}[S?"collapsed":"expanded"],ne=i!==null?Y||g.createElement("div",{className:`${H}-trigger`,onClick:Q,style:{width:V}},i||ee):null,re=te(I({},l),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),ue=Ae(H,`${H}-${s}`,{[`${H}-collapsed`]:!!S,[`${H}-has-trigger`]:c&&i!==null&&!Y,[`${H}-below`]:!!E,[`${H}-zero-width`]:Number.parseFloat(V)===0},r,T.root,D,U),de=g.useMemo(()=>({siderCollapsed:S}),[S]);return g.createElement(o4.Provider,{value:de},g.createElement("aside",te(I({className:ue},K),{style:I(I({},L.root),re),ref:t}),g.createElement("div",{className:Ae(`${H}-children`,T.body),style:L.body},o),c||E&&Y?ne:null))});var a4={},tae;function _8e(){if(tae)return a4;tae=1,Object.defineProperty(a4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};return a4.default=e,a4}var T8e=_8e();const M8e=_t(T8e);function eU(){return eU=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,eU({},e,{ref:t,icon:M8e})),s4=g.forwardRef(I8e),l4=g.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),nae=e=>{const l=e,{prefixCls:t,className:n,dashed:r}=l,i=Ze(l,["prefixCls","className","dashed"]),{getPrefixCls:o}=g.useContext(Un),a=o("menu",t),s=Ae({[`${a}-item-divider-dashed`]:!!r},n);return g.createElement(qH,I({className:s},i))},rae=e=>{var E,_,M;const{className:t,children:n,icon:r,title:i,danger:o,extra:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,tooltip:f,inlineCollapsed:d,styles:A,classNames:h}=g.useContext(l4),p=R=>{var P,k;const T=n==null?void 0:n[0],L=g.createElement("span",{className:Ae(`${s}-title-content`,l?h==null?void 0:h.itemContent:(P=h==null?void 0:h.subMenu)==null?void 0:P.itemContent,{[`${s}-title-content-with-extra`]:!!a||a===0}),style:l?A==null?void 0:A.itemContent:(k=A==null?void 0:A.subMenu)==null?void 0:k.itemContent},n);return(!r||g.isValidElement(n)&&n.type==="span")&&n&&R&&l&&typeof T=="string"?g.createElement("div",{className:`${s}-inline-collapsed-noicon`},T.charAt(0)):L},{siderCollapsed:v}=g.useContext(o4);let y=i;typeof i=="undefined"?y=l?n:"":i===!1&&(y="");const b=f===!1?void 0:f,x=b&&b.title!==void 0?b.title:y,C=te(I({},b!=null?b:null),{title:x});!v&&!d&&(C.title=null,C.open=!1);const S=pa(n).length;let B=g.createElement(RE,te(I({},ti(e,["title","icon","danger"])),{className:Ae(l?h==null?void 0:h.item:(E=h==null?void 0:h.subMenu)==null?void 0:E.item,{[`${s}-item-danger`]:o,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:I(I({},l?A==null?void 0:A.item:(_=A==null?void 0:A.subMenu)==null?void 0:_.item),e.style),title:typeof i=="string"?i:void 0,itemData:(M=e==null?void 0:e.itemData)!=null?M:te(I({},e),{key:e.eventKey})}),Ga(r,R=>{var T,L;return{className:Ae(`${s}-item-icon`,l?h==null?void 0:h.itemIcon:(T=h==null?void 0:h.subMenu)==null?void 0:T.itemIcon,R.className),style:I(I({},l?A==null?void 0:A.itemIcon:(L=A==null?void 0:A.subMenu)==null?void 0:L.itemIcon),R.style)}}),p(d));if(!u&&f!==!1){const R=b&&b.placement?b.placement:c==="rtl"?"left":"right",T=`${s}-inline-collapsed-tooltip`,L=k=>te(I({},k),{root:Ae(T,k==null?void 0:k.root)}),P=Rn(b==null?void 0:b.classNames)?k=>{const H=b.classNames(k);return L(H)}:L(b==null?void 0:b.classNames);B=g.createElement(No,te(I({},C),{placement:R,classNames:P}),B)}return B},c4=g.createContext(null),iae=g.forwardRef((e,t)=>{const l=e,{children:n}=l,r=Ze(l,["children"]),i=g.useContext(c4),o=g.useMemo(()=>I(I({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=Aee(n),s=ed(t,a?cA(n):null);return g.createElement(c4.Provider,{value:o},g.createElement(Zh,{space:!0},a?g.cloneElement(n,{ref:s}):n))}),R8e=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${be(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{animationName:Rh},[`${o}${s}bottomLeft`]:{animationName:Lh},[` + ${o}${s}topLeft, + ${o}${s}topRight + `]:{animationName:zh},"&-hidden":{display:`none`},[r]:G(G({},Cy(e)),{},{cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":G({flex:`auto`},ed),"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":G(G({},Cy(e)),{},{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}})},Wh(e,`slide-up`),Wh(e,`slide-down`),Fh(e,`move-up`),Fh(e,`move-down`)]},Nse=e=>{let{antCls:t,componentCls:n}=e,r={background:`transparent`},i=[`> input[disabled]`,`> textarea[disabled]`,`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(`, `);return{[`&${n}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${n}-placeholder`]:{display:`none`},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:`none`}},[`&${n}-filled ${n}-content`]:{[`${t}-input-filled`]:r},[`&${n}-disabled ${n}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}};K();var wy=4,Pse=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=md(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${wy}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix, + ${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":G(G({},ed),{},{marginInlineEnd:a}),"&-remove":G(G({},nd()),{},{display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}})},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:wy,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}};K();var Ty=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=md(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`affix-color`)]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},Ey=(e,t,n,r,i,a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[Ty(e,n),{[`&${o}-status-error`]:Ty(e,G(G({},n),r)),[`&${o}-status-warning`]:Ty(e,G(G({},n),i))},a]}},Dy=(e,t)=>({outline:`${Q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:Q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),Fse=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=md(s,`select`),f=c(l(a).sub(i).equal(),0);return{[t]:[G(G({[u(`border-radius`)]:e.borderRadius,[u(`border-color`)]:`#000`,[u(`border-size`)]:e.lineWidth,[u(`background-color`)]:e.colorBgContainer,[u(`font-size`)]:e.fontSize,[u(`line-height`)]:e.lineHeight,[u(`font-height`)]:n,[u(`color`)]:e.colorText,[u(`affix-color`)]:e.colorText,[u(`height`)]:r,[u(`padding-horizontal`)]:l(e.paddingSM).sub(e.lineWidth).equal(),[u(`padding-vertical`)]:`calc((${d(`height`)} - ${d(`font-height`)}) / 2 - ${d(`border-size`)})`},td(e)),{},{display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:d(`border-radius`),borderWidth:d(`border-size`),borderStyle:e.lineType,borderColor:d(`border-color`),background:d(`background-color`),fontSize:d(`font-size`),lineHeight:d(`line-height`),color:d(`color`),paddingInline:d(`padding-horizontal`),paddingBlock:d(`padding-vertical`),[`${t}-prefix`]:{color:d(`affix-color`),flex:`none`,lineHeight:1},[`${t}-placeholder`]:G(G({},ed),{},{color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1}),[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:f,"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[o]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[u(`height`)]:e.controlHeightSM,[u(`padding-horizontal`)]:l(e.paddingXS).sub(e.lineWidth).equal(),[u(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d(`padding-horizontal`)}},"&-lg":{[u(`height`)]:e.controlHeightLG,[u(`font-size`)]:e.fontSizeLG,[u(`line-height`)]:e.lineHeightLG,[u(`font-height`)]:e.fontHeightLG,[u(`border-radius`)]:e.borderRadiusLG}}),{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:d(`color`),fontFamily:`inherit`,fontSize:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`inherit`},[`${t}-content`]:G(G({},ed),{},{alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}}),[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},Pse(e),Ey(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),Ey(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Ey(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:Dy(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:Dy(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:Dy(e,e.colorWarning)}),Ey(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),Nse(e)]}},Ise=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}};K();var Lse=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:G(G({},td(e)),{},{[`${n}-selection-item`]:G(G({flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`},ed),{},{[`> ${t}-typography`]:{display:`inline`}}),[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Rse=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},Lse(e),Mse(e),{[`${t}-rtl`]:{direction:`rtl`}},fg(e,{focusElCls:`${t}-focused`})]},zse=dd(`Select`,(e,{rootPrefixCls:t})=>{let n=bl(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Rse(n),Fse(n)]},Ise,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Bse=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z`}}]},name:`check`,theme:`outlined`}}))());function Oy(){return Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Oy({},e,{ref:t,icon:Bse.default}))),Vse=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`}}))());function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Ay({},e,{ref:t,icon:Vse.default}))),Hse=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z`}}]},name:`search`,theme:`outlined`}}))());function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,My({},e,{ref:t,icon:Hse.default})));function Py({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:a,removeIcon:o,contextRemoveIcon:s,loading:c,loadingIcon:l,contextLoadingIcon:u,searchIcon:d,contextSearchIcon:f,multiple:p,hasFeedback:m,showSuffixIcon:h,feedbackIcon:g,showArrow:_,componentName:v}){return J.useMemo(()=>{let v=Im(n,r,J.createElement(ef,null)),y=t=>e===null&&!m&&!_?null:J.createElement(J.Fragment,null,h!==!1&&t,m&&g),b=null;b=e===void 0?c?y(Im(l,u,J.createElement(Fm,{spin:!0}))):({open:e,showSearch:n})=>y(e&&n?Im(d,f,J.createElement(Ny,null)):Im(t,J.createElement(jy,null))):y(e);let x=Im(i,a,p?J.createElement(ky,null):null),S=Im(o,s,J.createElement(rf,null));return{clearIcon:v,suffixIcon:b,itemIcon:x,removeIcon:S}},[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_])}function Use(e){return J.useMemo(()=>{if(e)return(...t)=>J.createElement(x_,{space:!0},e.apply(void 0,t))},[e])}function Wse(e,t){return t===void 0?e!==null:t}K();var Gse=`prefixCls.bordered.className.rootClassName.getPopupContainer.popupClassName.dropdownClassName.listHeight.placement.listItemHeight.size.disabled.notFoundContent.status.builtinPlacements.dropdownMatchSelectWidth.popupMatchSelectWidth.direction.style.allowClear.variant.popupStyle.dropdownStyle.transitionName.tagRender.maxCount.prefix.dropdownRender.popupRender.onDropdownVisibleChange.onOpenChange.styles.classNames.clearIcon.showSearch`.split(`.`),Fy=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Iy=J.forwardRef((e,t)=>{var n,r,i,a;let{prefixCls:o,bordered:s,className:c,rootClassName:l,getPopupContainer:u,popupClassName:d,dropdownClassName:f,listHeight:p=256,placement:m,listItemHeight:h,size:g,disabled:_,notFoundContent:v,status:y,builtinPlacements:b,dropdownMatchSelectWidth:x,popupMatchSelectWidth:S,direction:C,style:w,allowClear:T,variant:E,popupStyle:D,dropdownStyle:O,transitionName:k,tagRender:A,maxCount:j,prefix:M,dropdownRender:N,popupRender:P,onDropdownVisibleChange:F,onOpenChange:I,styles:L,classNames:R,clearIcon:z,showSearch:B}=e,V=q(e,Gse),{getPopupContainer:H,getPrefixCls:U,renderEmpty:ee,direction:te,virtual:ne,popupMatchSelectWidth:re,popupOverflow:ie}=J.useContext(Eo),{showSearch:ae,allowClear:oe,style:se,styles:ce,className:le,classNames:ue,clearIcon:de,loadingIcon:fe,menuItemSelectedIcon:pe,removeIcon:me,suffixIcon:he}=ko(`select`),[,W]=$u(),ge=h==null?W==null?void 0:W.controlHeight:h,_e=U(`select`,o),K=U(),ve=C==null?te:C,{compactSize:ye,compactItemClassnames:be}=bh(_e,ve),[xe,Se]=Sy(`select`,E,s),Ce=Fp(_e),[we,Te]=zse(_e,Ce),Ee=J.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Fy?`combobox`:t},[e.mode]),De=Ee===`multiple`||Ee===`tags`,Oe=Wse(e.suffixIcon,e.showArrow),ke=(n=S==null?x:S)==null?re:n,Ae=Use(P||N),je=I||F,{status:Me,hasFeedback:Ne,isFormItemInput:Pe,feedbackIcon:Fe}=J.useContext(b_),Ie=gy(Me,y),Le;Le=v===void 0?Ee===`combobox`?null:(ee==null?void 0:ee(`Select`))||J.createElement(xy,{componentName:`Select`}):v;let{suffixIcon:Re,itemIcon:ze,removeIcon:Be,clearIcon:Ve}=Py(G(G({},V),{},{multiple:De,hasFeedback:Ne,feedbackIcon:Fe,showSuffixIcon:Oe,prefixCls:_e,componentName:`Select`,clearIcon:z,searchIcon:my(B,`searchIcon`),contextClearIcon:de,contextLoadingIcon:fe,contextMenuItemSelectedIcon:pe,contextRemoveIcon:me,contextSearchIcon:my(ae,`searchIcon`),contextSuffixIcon:he})),He=T==null?oe:T,Ue=He===!0?{clearIcon:Ve}:He,We=B==null?ae:B,Ge=Ca(V,[`suffixIcon`,`itemIcon`]),Ke=vh(e=>{var t;return(t=g==null?ye:g)==null?e:t}),qe=J.useContext(gm),Je=_==null?qe:_,Ye=G(G({},e),{},{variant:xe,status:Ie,disabled:Je,size:Ke}),Xe=yp(se),Ze=yp(w),[Qe,$e]=xp([ue,R],[ce,Xe,L,Ze],{props:Ye},{popup:{_default:`root`}}),et=Z(Qe.popup.root,d,f,{[`${_e}-dropdown-${ve}`]:ve===`rtl`},l,Te,Ce,we),tt=G(G({},(r=$e.popup)==null?void 0:r.root),D==null?O:D),nt=Z({[`${_e}-lg`]:Ke===`large`,[`${_e}-sm`]:Ke===`small`,[`${_e}-rtl`]:ve===`rtl`,[`${_e}-${xe}`]:Se,[`${_e}-in-form-item`]:Pe},hy(_e,Ie,Ne),be,le,c,Qe.root,l,Te,Ce,we),rt=J.useMemo(()=>m===void 0?ve===`rtl`?`bottomRight`:`bottomLeft`:m,[m,ve]),[it]=Km(`SelectLike`,(i=(a=$e.popup.root)==null?void 0:a.zIndex)==null?tt.zIndex:i);return J.createElement(wse,G(G({ref:t,virtual:ne,classNames:Qe,styles:$e,showSearch:We},Ge),{},{style:$e.root,popupMatchSelectWidth:ke,transitionName:fh(K,`slide-up`,k),builtinPlacements:jse(b,ie),listHeight:p,listItemHeight:ge,mode:Ee,prefixCls:_e,placement:rt,direction:ve,prefix:M,suffixIcon:Re,menuItemSelectedIcon:ze,removeIcon:Be,allowClear:Ue,notFoundContent:Le,className:nt,getPopupContainer:u||H,popupClassName:et,disabled:Je,popupStyle:G(G(G({},$e.popup.root),tt),{},{zIndex:it}),maxCount:De?j:void 0,tagRender:De?A:void 0,popupRender:Ae,onPopupVisibleChange:je}))}),Kse=Z_(Iy,`popupAlign`);Iy.SECRET_COMBOBOX_MODE_DO_NOT_USE=Fy,Iy.Option=Jv,Iy.OptGroup=qv,Iy._InternalPanelDoNotUseOrYouWillBeFired=Kse,K();var Ly=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Ry=[].concat(Ly).reverse(),qse=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Jse=e=>{let t=e,n=[].concat(Ly).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r{if(t){for(let n of Ly)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},Yse=()=>{let[,e]=$u(),t=qse(Jse(e));return J.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch(G(G({},r),{},{[e]:t}))},i=window.matchMedia(t);up(i.addEventListener)&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];up(t==null?void 0:t.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t==null?void 0:t.listener)}),e.clear()}}},[t])};function By(e=!0,t={}){let n=(0,J.useRef)(t),[,r]=zm(),i=Yse();return Xr(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[e]),n.current}var Vy=e=>op(e)?up(e)?e():e:null;K();var Hy=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return J.createElement(`div`,{id:r,className:Z(`${n}-container`,i==null?void 0:i.container,o),style:G(G({},a==null?void 0:a.container),s),role:`tooltip`},typeof t==`function`?t():t)},Uy={shiftX:64,adjustY:1},Wy={adjustX:1,shiftY:!0},Gy=[0,0],Xse={left:{points:[`cr`,`cl`],overflow:Wy,offset:[-4,0],targetOffset:Gy},right:{points:[`cl`,`cr`],overflow:Wy,offset:[4,0],targetOffset:Gy},top:{points:[`bc`,`tc`],overflow:Uy,offset:[0,-4],targetOffset:Gy},bottom:{points:[`tc`,`bc`],overflow:Uy,offset:[0,4],targetOffset:Gy},topLeft:{points:[`bl`,`tl`],overflow:Uy,offset:[0,-4],targetOffset:Gy},leftTop:{points:[`tr`,`tl`],overflow:Wy,offset:[-4,0],targetOffset:Gy},topRight:{points:[`br`,`tr`],overflow:Uy,offset:[0,-4],targetOffset:Gy},rightTop:{points:[`tl`,`tr`],overflow:Wy,offset:[4,0],targetOffset:Gy},bottomRight:{points:[`tr`,`br`],overflow:Uy,offset:[0,4],targetOffset:Gy},rightBottom:{points:[`bl`,`br`],overflow:Wy,offset:[4,0],targetOffset:Gy},bottomLeft:{points:[`tl`,`bl`],overflow:Uy,offset:[0,4],targetOffset:Gy},leftBottom:{points:[`br`,`bl`],overflow:Wy,offset:[-4,0],targetOffset:Gy}};K();var Zse=[`trigger`,`mouseEnterDelay`,`mouseLeaveDelay`,`prefixCls`,`children`,`onVisibleChange`,`afterVisibleChange`,`motion`,`placement`,`align`,`destroyOnHidden`,`defaultVisible`,`getTooltipContainer`,`arrowContent`,`overlay`,`id`,`showArrow`,`classNames`,`styles`];function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:v=!0,classNames:y,styles:b}=e,x=q(e,Zse),S=ii(_),C=(0,J.useRef)(null);(0,J.useImperativeHandle)(t,()=>C.current);let w=G({},x);`visible`in e&&(w.popupVisible=e.visible);let T=J.useMemo(()=>{var e;if(!v)return!1;let t=v===!0?{}:v;return G(G({},t),{},{className:Z(t.className,y==null?void 0:y.arrow),style:G(G({},t.style),b==null?void 0:b.arrow),content:(e=t.content)==null?h:e})},[v,y==null?void 0:y.arrow,b==null?void 0:b.arrow,h]);return J.createElement(gv,Ky({popupClassName:y==null?void 0:y.root,prefixCls:a,popup:J.createElement(Hy,{key:`content`,prefixCls:a,id:S,classNames:y,styles:b},g),action:n,builtinPlacements:Xse,popupPlacement:u,ref:C,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:b==null?void 0:b.root,mouseEnterDelay:r,arrow:T,uniqueContainerClassName:y==null?void 0:y.uniqueContainer,uniqueContainerStyle:b==null?void 0:b.uniqueContainer},w),({open:e})=>{let t=J.Children.only(o),n={"aria-describedby":g&&e?S:void 0};return J.cloneElement(t,n)})});function qy(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Jy=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e,l={content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${Q(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,zIndex:0,background:`transparent`};return n&&(l.boxShadow=n),{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":l}};K();function Yy(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}var Xy=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=md(s,`tooltip`),{arrowDistance:l=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[G(G({position:`absolute`,zIndex:1,display:`block`},Jy(e,t,u?i:!1)),{},{"&:before":{background:t}})],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}}};K();function $se(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=lp(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o=G(G({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var Zy={left:{points:[`cr`,`cl`]},right:{points:[`cl`,`cr`]},top:{points:[`bc`,`tc`]},bottom:{points:[`tc`,`bc`]},topLeft:{points:[`bl`,`tl`]},leftTop:{points:[`tr`,`tl`]},topRight:{points:[`br`,`tr`]},rightTop:{points:[`tl`,`tr`]},bottomRight:{points:[`tr`,`br`]},rightBottom:{points:[`bl`,`br`]},bottomLeft:{points:[`tl`,`bl`]},leftBottom:{points:[`br`,`bl`]}},ece={topLeft:{points:[`bl`,`tc`]},leftTop:{points:[`tr`,`cl`]},topRight:{points:[`br`,`tc`]},rightTop:{points:[`tl`,`cr`]},bottomRight:{points:[`tr`,`bc`]},rightBottom:{points:[`bl`,`cr`]},bottomLeft:{points:[`tl`,`bc`]},leftBottom:{points:[`br`,`cl`]}},tce=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function Qy(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Yy({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Zy).forEach(e=>{let a=G(G({},r&&ece[e]||Zy[e]),{},{offset:[0,0],dynamicInset:!0});switch(c[e]=a,tce.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=$se(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var $y=J.createContext(!1);K();var eb=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return J.useMemo(()=>{var r,i;let a=n(e),o=n(t);return G(G(G({},o),a),{},{show:(r=(i=a.show)==null?o.show:i)==null||r})},[e,t])};K();var tb=`50%`,nce=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,dropShadowPopover:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=md(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${Q(e.calc(u).div(2).equal())} ${Q(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,tb),`var(--arrow-y, ${tb})`].join(` `)};return[{[n]:G(G(G(G({},td(e)),{},{position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,filter:l},y),{},{"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,Ph(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`}},hd(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}}))),{},{"&-rtl":{direction:`rtl`}})},Xy(e,g(`arrow-background-color`),{arrowShadow:!1}),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:G(G(G({},v),y),{},{position:`absolute`,zIndex:t(s).sub(1).equal(),filter:l,"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}})}]},rce=e=>G(G({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250},Yy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),qy(bl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),nb=(e,t,n=!0)=>dd(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[nce(bl(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Yh(e,`zoom-big-fast`)]},rce,{resetStyle:!1,injectStyle:n})(e,t),ice=jl.map(e=>`${e}-inverse`),ace=[`success`,`processing`,`error`,`default`,`warning`];function rb(e,t=!0){return t?[].concat(Co(ice),Co(jl)).includes(e):jl.includes(e)}function oce(e){return ace.includes(e)}var ib=(e,t,n)=>{let r=rb(n),[i]=md(e,`tooltip`),a=Z({[`${t}-${n}`]:n&&r}),o={},s={},c=hre(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}};K();var sce=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=J.useContext(Eo),u=l(`tooltip`,t),d=l(),f=Fp(u),[p,m]=nb(u,f),h=ib(d,u,a),g=h.arrowStyle,_=J.useMemo(()=>({container:G(G({},o),h.overlayStyle)}),[o,h.overlayStyle]),v=G(G({},e),{},{placement:r}),[y,b]=xp([s],[_,c],{props:v}),x=Z(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return J.createElement(`div`,{className:x,style:g},J.createElement(`div`,{className:`${u}-arrow`}),J.createElement(Hy,G(G({},e),{},{className:p,prefixCls:u,classNames:y,styles:b}),i))};K();var cce=`prefixCls.openClassName.getTooltipContainer.color.children.afterOpenChange.arrow.destroyTooltipOnHide.destroyOnHidden.title.overlay.trigger.builtinPlacements.autoAdjustOverflow.motion.getPopupContainer.placement.mouseEnterDelay.mouseLeaveDelay.rootClassName.styles.classNames.onOpenChange.overlayInnerStyle.overlayStyle.overlayClassName`.split(`.`),lce=[`getPopupContainer`,`getPrefixCls`,`direction`],ab=J.forwardRef((e,t)=>{var n;let{prefixCls:r,openClassName:i,getTooltipContainer:a,color:o,children:s,afterOpenChange:c,arrow:l,destroyTooltipOnHide:u,destroyOnHidden:d,title:f,overlay:p,trigger:m,builtinPlacements:h,autoAdjustOverflow:g=!0,motion:_,getPopupContainer:v,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:T,overlayInnerStyle:E,overlayStyle:D,overlayClassName:O}=e,k=q(e,cce),[,A]=$u(),j=e[`data-popover-inject`],M=ko(`tooltip`),{getPopupContainer:N,getPrefixCls:P,direction:F}=M,I=q(M,lce),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=j?{}:I,U=eb(l,V),ee=U.show,te=m||H||`hover`,ne=v||N,re=d==null?!!u:d,ie=J.useContext($y);eo(`Tooltip`);let ae=J.useRef(null),oe=()=>{var e;(e=ae.current)==null||e.forceAlign()};J.useImperativeHandle(t,()=>{var e,t;return{forceAlign:oe,nativeElement:(e=ae.current)==null?void 0:e.nativeElement,popupElement:(t=ae.current)==null?void 0:t.popupElement}});let[se,ce]=$r((n=e.defaultOpen)!=null&&n,e.open),le=!f&&!p&&f!==0,ue=e=>{ce(!le&&e),!le&&T&&T(e)},de=J.useMemo(()=>{var e;return h||Qy({arrowPointAtCenter:(e=U==null?void 0:U.pointAtCenter)!=null&&e,autoAdjustOverflow:g,arrowWidth:ee?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[U,h,A,ee,g]),fe=J.useMemo(()=>f===0?f:p||f||``,[p,f]),pe=J.createElement(x_,{space:!0,form:!0},up(fe)?fe():fe),me=G(G({},e),{},{trigger:te,builtinPlacements:de,getPopupContainer:ne,destroyOnHidden:re}),[he,W]=xp([z,w],[B,C],{props:me}),ge=P(`tooltip`,r),_e=P(),K=se;(!(`open`in e)&&le||ie)&&(K=!1);let ve=J.isValidElement(s)&&!dm(s)?s:J.createElement(`span`,null,s),ye=ve.props,be=!ye.className||typeof ye.className==`string`?Z(ye.className,i||`${ge}-open`):ye.className,xe=Fp(ge),[Se,Ce]=nb(ge,xe,!j),we=ib(_e,ge,o),Te=we.arrowStyle,Ee=Z(xe,Se,Ce),De=Z(O,{[`${ge}-rtl`]:F===`rtl`},we.className,S,Ee,L,he.root),[Oe,ke]=Km(`Tooltip`,k.zIndex),Ae=G(G(G({},W.container),E),we.overlayStyle),je=J.createElement(Qse,G(G({unique:!0},k),{},{zIndex:Oe,showArrow:ee,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:ge,classNames:{root:De,container:he.container,arrow:he.arrow,uniqueContainer:Z(Ee,he.container)},styles:{root:G(G(G(G({},Te),W.root),R),D),container:Ae,uniqueContainer:Ae,arrow:W.arrow},ref:ae,overlay:pe,visible:K,onVisibleChange:ue,afterVisibleChange:c,arrowContent:J.createElement(`span`,{className:`${ge}-arrow-content`}),motion:{motionName:fh(_e,`zoom-big-fast`,typeof(_==null?void 0:_.motionName)==`string`?_==null?void 0:_.motionName:void 0),motionDeadline:1e3},trigger:te,builtinPlacements:de,getTooltipContainer:ne,destroyOnHidden:re}),K?pm(ve,{className:be}):ve);return J.createElement(Um.Provider,{value:ke},je)});ab._InternalPanelDoNotUseOrYouWillBeFired=sce,ab.UniqueProvider=hm,K();var ob=`50%`,uce=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,dropShadowPopover:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=md(g,`tooltip`);return[{[t]:G(G({},td(e)),{},{position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,filter:o,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,ob),`var(--arrow-y, ${ob})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}})},Xy(e,v(`arrow-background-color`),{arrowShadow:!1}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},dce=e=>{let{componentCls:t,antCls:n}=e,[r]=md(n,`tooltip`);return{[t]:jl.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},sb=dd(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=bl(e,{popoverBg:t,popoverColor:n});return[uce(r),dce(r),Yh(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return G(G(G({titleMinWidth:177,zIndexPopup:o+30},qy(e)),Yy({contentRadius:s,limitVerticalRadius:!0})),{},{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0})},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]});K();var fce=[`prefixCls`,`className`],cb=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!op(t)&&!op(n)?null:J.createElement(J.Fragment,null,op(t)&&J.createElement(`div`,{className:Z(`${r}-title`,i==null?void 0:i.title),style:a==null?void 0:a.title},t),op(n)&&J.createElement(`div`,{className:Z(`${r}-content`,i==null?void 0:i.content),style:a==null?void 0:a.content},n))},pce=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=Vy(o),f=Vy(s),p=G(G({},e),{},{placement:a}),[m,h]=xp([l],[u],{props:p}),g=Z(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return J.createElement(`div`,{className:g,style:i},J.createElement(`div`,{className:`${n}-arrow`}),J.createElement(Hy,G(G({},e),{},{className:t,prefixCls:n,classNames:m,styles:h}),c||J.createElement(cb,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},lb=e=>{let{prefixCls:t,className:n}=e,r=q(e,fce),{getPrefixCls:i}=J.useContext(Eo),a=i(`popover`,t),[o,s]=sb(a);return J.createElement(pce,G(G({},r),{},{prefixCls:a,hashId:o,className:Z(n,s)}))};K();var mce=[`prefixCls`,`title`,`content`,`overlayClassName`,`placement`,`trigger`,`children`,`mouseEnterDelay`,`mouseLeaveDelay`,`onOpenChange`,`overlayStyle`,`styles`,`classNames`,`motion`,`arrow`],ub=J.forwardRef((e,t)=>{var n;let{prefixCls:r,title:i,content:a,overlayClassName:o,placement:s=`top`,trigger:c,children:l,mouseEnterDelay:u=.1,mouseLeaveDelay:d=.1,onOpenChange:f,overlayStyle:p={},styles:m,classNames:h,motion:g,arrow:_}=e,v=q(e,mce),{getPrefixCls:y,className:b,style:x,classNames:S,styles:C,arrow:w,trigger:T}=ko(`popover`),E=y(`popover`,r),[D,O]=sb(E),k=y(),A=eb(_,w),j=c||T||`hover`,M=G(G({},e),{},{placement:s,trigger:j,mouseEnterDelay:u,mouseLeaveDelay:d,overlayStyle:p,styles:m,classNames:h}),[N,P]=xp([S,h],[C,m],{props:M}),F=Z(o,D,O,b,N.root),[I,L]=$r((n=e.defaultOpen)!=null&&n,e.open),R=e=>{L(e),f==null||f(e)},z=Vy(i),B=Vy(a);return J.createElement(ab,G(G({unique:!1,arrow:A,placement:s,trigger:j,mouseEnterDelay:u,mouseLeaveDelay:d},v),{},{prefixCls:E,classNames:{root:F,container:N.container,arrow:N.arrow},styles:{root:G(G(G({},P.root),x),p),container:P.container,arrow:P.arrow},ref:t,open:I,onOpenChange:R,overlay:op(z)||op(B)?J.createElement(cb,{prefixCls:E,title:z,content:B,classNames:N,styles:P}):null,motion:{motionName:fh(k,`zoom-big`,typeof(g==null?void 0:g.motionName)==`string`?g==null?void 0:g.motionName:void 0)},"data-popover-inject":!0}),l)});ub._InternalPanelDoNotUseOrYouWillBeFired=lb;var db=J.createContext({}),hce=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`}}))());function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,fb({},e,{ref:t,icon:hce.default}))),{ESC:gce,TAB:_ce}=aa;function vce({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=J.useRef(!1),o=()=>{if(e){var r,i;(r=t.current)==null||(i=r.focus)==null||i.call(r),n==null||n(!1)}},s=()=>{var e;return(e=i.current)!=null&&e.focus?(i.current.focus(),a.current=!0,!0):!1},c=e=>{switch(e.keyCode){case gce:o();break;case _ce:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};J.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Fa(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var yce=(0,J.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,J.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=hi(t,bi(a));return J.createElement(J.Fragment,null,r&&J.createElement(`div`,{className:`${i}-arrow`}),J.cloneElement(a,{ref:_i(a)?o:void 0}))}),mb={adjustX:1,adjustY:1},hb=[0,0],bce={topLeft:{points:[`bl`,`tl`],overflow:mb,offset:[0,-4],targetOffset:hb},top:{points:[`bc`,`tc`],overflow:mb,offset:[0,-4],targetOffset:hb},topRight:{points:[`br`,`tr`],overflow:mb,offset:[0,-4],targetOffset:hb},bottomLeft:{points:[`tl`,`bl`],overflow:mb,offset:[0,4],targetOffset:hb},bottom:{points:[`tc`,`bc`],overflow:mb,offset:[0,4],targetOffset:hb},bottomRight:{points:[`tr`,`br`],overflow:mb,offset:[0,4],targetOffset:hb}},xce=[`arrow`,`prefixCls`,`transitionName`,`animation`,`align`,`placement`,`placements`,`getPopupContainer`,`showAction`,`hideAction`,`overlayClassName`,`overlayStyle`,`visible`,`trigger`,`autoFocus`,`overlay`,`children`,`onVisibleChange`,`disabled`];function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n;let{arrow:r=!1,prefixCls:i=`rc-dropdown`,transitionName:a,animation:o,align:s,placement:c=`bottomLeft`,placements:l=bce,getPopupContainer:u,showAction:d,hideAction:f,overlayClassName:p,overlayStyle:m,visible:h,trigger:g=[`hover`],autoFocus:_,overlay:v,children:y,onVisibleChange:b,disabled:x}=e,S=q(e,xce),[C,w]=J.useState(),T=`visible`in e?h:C,E=o?`${i}-${o}`:a,D=J.useRef(null),O=J.useRef(null),k=J.useRef(null);J.useImperativeHandle(t,()=>D.current);let A=e=>{w(e),b==null||b(e)};vce({visible:T,triggerRef:k,onVisibleChange:A,autoFocus:_,overlayRef:O});let j=t=>{let{onOverlayClick:n}=e;w(!1),n&&n(t)},M=()=>J.createElement(yce,{ref:O,overlay:v,prefixCls:i,arrow:r}),N=()=>typeof v==`function`?M:M(),P=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},F=()=>{let{openClassName:t}=e;return t===void 0?`${i}-open`:t},I=y,L=Z((n=I.props)==null?void 0:n.className,T&&F()),R={className:L,ref:hi(k,bi(I))},z=_i(I)?J.cloneElement(I,R):J.createElement(`span`,{className:L,ref:k},J.cloneElement(I,{className:L})),B=f;return!B&&g.indexOf(`contextMenu`)!==-1&&(B=[`click`]),J.createElement(gv,gb({builtinPlacements:l},S,{prefixCls:i,ref:D,popupClassName:Z(p,{[`${i}-show-arrow`]:r}),popupStyle:m,action:g,showAction:d,hideAction:B,popupPlacement:c,popupAlign:s,popupMotion:{motionName:E},popupVisible:T,stretch:P()?`minWidth`:``,popup:N(),onOpenChange:A,onPopupClick:j,getPopupContainer:u}),z)}),_b=J.createContext(null);function vb(e,t){return`${e}-${t}`}function yb(e){return vb(J.useContext(_b),e)}K();var Cce=[`children`,`locked`],bb=J.createContext(null);function wce(e,t){let n=G({},e);return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function xb(e){let{children:t,locked:n}=e,r=q(e,Cce),i=J.useContext(bb),a=ai(()=>wce(i,r),[i,r],(e,t)=>!n&&(e[0]!==t[0]||!ya(e[1],t[1],!0)));return J.createElement(bb.Provider,{value:a},t)}var Tce=[],Sb=J.createContext(null);function Cb(){return J.useContext(Sb)}var wb=J.createContext(Tce);function Tb(e){let t=J.useContext(wb);return J.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Eb=J.createContext(null),Db=J.createContext({}),{LEFT:Ob,RIGHT:kb,UP:Ab,DOWN:jb,ENTER:Mb,ESC:Nb,HOME:Pb,END:Fb}=aa,Ib=[Ab,jb,Ob,kb];function Ece(e,t,n,r){var i;let a=`prev`,o=`next`,s=`children`,c=`parent`;if(e===`inline`&&r===Mb)return{inlineTrigger:!0};let l={[Ab]:a,[jb]:o},u={[Ob]:n?o:a,[kb]:n?a:o,[jb]:s,[Mb]:s},d={[Ab]:a,[jb]:o,[Mb]:s,[Nb]:c,[Ob]:n?s:c,[kb]:n?c:s};switch((i={inline:l,horizontal:u,vertical:d,inlineSub:l,horizontalSub:d,verticalSub:d}[`${e}${t?``:`Sub`}`])==null?void 0:i[r]){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function Dce(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function Oce(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function Lb(e,t){return zi(e,!0).filter(e=>t.has(e))}function Rb(e,t,n,r=1){if(!e)return null;let i=Lb(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var zb=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${vb(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function kce(e,t,n,r,i,a,o,s,c,l){let u=J.useRef(),d=J.useRef();d.current=t;let f=()=>{Fa.cancel(u.current)};return J.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...Ib,Mb,Nb,Pb,Fb].includes(m)){let l=a(),h=zb(l,r),{elements:g,key2element:_,element2key:v}=h,y=Oce(_.get(t),g),b=v.get(y),x=Ece(e,o(b,!0).length===1,n,m);if(!x&&m!==Pb&&m!==Fb)return;(Ib.includes(m)||[Pb,Fb].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n!=null&&n.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Fa(()=>{d.current===r&&t.focus()})}};if([Pb,Fb].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:Dce(y);let n,r=Lb(t,g);n=m===Pb?r[0]:m===Fb?r[r.length-1]:Rb(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Fa(()=>{h=zb(l,r);let e=y.getAttribute(`aria-controls`),t=Rb(document.getElementById(e),h.elements);S(t)},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l==null||l(p)}}function Ace(e){Promise.resolve().then(e)}var Bb=`__RC_UTIL_PATH_SPLIT__`,Vb=e=>e.join(Bb),jce=e=>e.split(Bb),Hb=`rc-menu-more`;function Mce(){let[,e]=J.useState({}),t=(0,J.useRef)(new Map),n=(0,J.useRef)(new Map),[r,i]=J.useState([]),a=(0,J.useRef)(0),o=(0,J.useRef)(!1),s=()=>{o.current||e({})},c=(0,J.useCallback)((e,r)=>{let i=Vb(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;Ace(()=>{o===a.current&&s()})},[]),l=(0,J.useCallback)((e,r)=>{let i=Vb(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,J.useCallback)(e=>{i(e)},[]),d=(0,J.useCallback)((e,n)=>{let i=jce(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(Hb),i},[r]),f=(0,J.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(Hb),e},m=(0,J.useCallback)(e=>{let r=`${t.current.get(e)}${Bb}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return J.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function Ub(e){let t=J.useRef(e);t.current=e;let n=J.useCallback((...e)=>{var n;return(n=t.current)==null?void 0:n.call(t,...e)},[]);return e?n:void 0}function Wb(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=J.useContext(bb),s={active:i===e};return t||(s.onMouseEnter=t=>{n==null||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r==null||r({key:e,domEvent:t}),o(e)}),s}function Gb(e){let{mode:t,rtl:n,inlineIndent:r}=J.useContext(bb);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}K();function Kb({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=J.createElement(e,G({},t)):typeof e!=`boolean`&&(r=e),r||n||null)}var Nce=[`item`];function qb(e){let{item:t}=e,n=q(e,Nce);return Object.defineProperty(n,"item",{get:()=>(_a(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t)}),n}K();var Pce=[`title`,`attribute`,`elementRef`],Fce=[`style`,`className`,`eventKey`,`warnKey`,`disabled`,`itemIcon`,`children`,`itemData`,`role`,`onMouseEnter`,`onMouseLeave`,`onClick`,`onKeyDown`,`onFocus`],Ice=[`active`];function Jb(){return Jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,itemData:l,role:u,onMouseEnter:d,onMouseLeave:f,onClick:p,onKeyDown:m,onFocus:h}=e,g=q(e,Fce),_=yb(i),{prefixCls:v,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=J.useContext(bb),{_internalRenderMenuItem:T}=J.useContext(Db),E=`${v}-item`,D=J.useRef(),O=J.useRef(),k=b||o,A=gi(t,O),j=Tb(i),M=t=>{let n=l||{key:i||``,label:c,itemIcon:s,extra:e.extra,title:e.title};return{key:i,keyPath:[...j].reverse(),item:D.current,domEvent:t,itemData:l||n}},N=s||S,P=Wb(i,k,d,f),{active:F}=P,I=q(P,Ice),L=C.includes(i),R=Gb(j.length),z=e=>{if(k)return;let t=M(e);p==null||p(qb(t)),y(t)},B=e=>{if(m==null||m(e),e.which===aa.ENTER){let t=M(e);p==null||p(qb(t)),y(t)}},V=e=>{w(i),h==null||h(e)},H={};e.role===`option`&&(H[`aria-selected`]=L);let U=J.createElement(Lce,Jb({ref:D,elementRef:A,role:u===null?`none`:u||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&_?null:_},Ca(g,[`extra`]),I,H,{component:`li`,"aria-disabled":o,style:G(G({},R),n),className:Z(E,{[`${E}-active`]:F,[`${E}-selected`]:L,[`${E}-disabled`]:k},r),onClick:z,onKeyDown:B,onFocus:V}),c,J.createElement(Kb,{props:G(G({},e),{},{isSelected:L}),icon:N}));return T&&(U=T(U,e,{selected:L})),U});function zce(e,t){let{eventKey:n}=e,r=Cb(),i=Tb(n);return J.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:J.createElement(Rce,Jb({},e,{ref:t}))}var Yb=J.forwardRef(zce),Bce=[`className`,`children`];function Xb(){return Xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,children:r}=e,i=q(e,Bce),{prefixCls:a,mode:o,rtl:s}=J.useContext(bb);return J.createElement(`ul`,Xb({className:Z(a,s&&`${a}-rtl`,`${a}-sub`,`${a}-${o===`inline`?`inline`:`vertical`}`,n),role:`menu`},i,{"data-menu-list":!0,ref:t}),r)});function Qb(e,t){return Ia(e).map((e,n)=>{if(J.isValidElement(e)){var r,i;let{key:a}=e,o=(r=(i=e.props)==null?void 0:i.eventKey)==null?a:r;o==null&&(o=`tmp_key-${[...t,n].join(`-`)}`);let s={key:o,eventKey:o};return J.cloneElement(e,s)}return e})}var $b={adjustX:1,adjustY:1},Vce={topLeft:{points:[`bl`,`tl`],overflow:$b},topRight:{points:[`br`,`tr`],overflow:$b},bottomLeft:{points:[`tl`,`bl`],overflow:$b},bottomRight:{points:[`tr`,`br`],overflow:$b},leftTop:{points:[`tr`,`tl`],overflow:$b},leftBottom:{points:[`br`,`bl`],overflow:$b},rightTop:{points:[`tl`,`tr`],overflow:$b},rightBottom:{points:[`bl`,`br`],overflow:$b}},Hce={topLeft:{points:[`bl`,`tl`],overflow:$b},topRight:{points:[`br`,`tr`],overflow:$b},bottomLeft:{points:[`tl`,`bl`],overflow:$b},bottomRight:{points:[`tr`,`br`],overflow:$b},rightTop:{points:[`tr`,`tl`],overflow:$b},rightBottom:{points:[`br`,`bl`],overflow:$b},leftTop:{points:[`tl`,`tr`],overflow:$b},leftBottom:{points:[`bl`,`br`],overflow:$b}};function ex(e,t,n){if(t)return t;if(n)return n[e]||n.other}K();var Uce={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function Wce({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:v,defaultMotions:y}=J.useContext(bb),[b,x]=J.useState(!1),S=G(d?G({},Hce):G({},Vce),m),C=Uce[c],w=ex(c,v,y),T=J.useRef(w);c!==`inline`&&(T.current=w);let E=G(G({},T.current),{},{leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0}),D=J.useRef();return J.useEffect(()=>(D.current=Fa(()=>{x(t)}),()=>{Fa.cancel(D.current)}),[t]),J.createElement(gv,{prefixCls:e,popupClassName:Z(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:S,popupPlacement:C,popupVisible:b,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:E,fresh:!0},n)}K();function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current&&f(!1)},[l]);let m=G({},ex(i,s,c));n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h==null?void 0:h(e)),d?null:J.createElement(xb,{mode:i,locked:!u.current},J.createElement(ip,tx({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>J.createElement(Zb,{id:e,className:t,style:n},r)))}K();var Kce=[`style`,`className`,`styles`,`classNames`,`title`,`eventKey`,`warnKey`,`disabled`,`internalPopupClose`,`children`,`itemIcon`,`expandIcon`,`popupClassName`,`popupOffset`,`popupStyle`,`onClick`,`onMouseEnter`,`onMouseLeave`,`onTitleClick`,`onTitleMouseEnter`,`onTitleMouseLeave`,`popupRender`],qce=[`active`];function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:v,onMouseLeave:y,onTitleClick:b,onTitleMouseEnter:x,onTitleMouseLeave:S,popupRender:C}=e,w=q(e,Kce),T=yb(s),{prefixCls:E,mode:D,openKeys:O,disabled:k,overflowDisabled:A,activeKey:j,selectedKeys:M,itemIcon:N,expandIcon:P,onItemClick:F,onOpenChange:I,onActive:L,popupRender:R}=J.useContext(bb),{_internalRenderSubMenuItem:z}=J.useContext(Db),{isSubPathKey:B}=J.useContext(Eb),V=Tb(),H=`${E}-submenu`,U=k||l,ee=J.useRef(),te=J.useRef(),ne=f==null?N:f,re=p==null?P:p,ie=O.includes(s),ae=!A&&ie,oe=B(M,s),se=Wb(s,U,x,S),{active:ce}=se,le=q(se,qce),[ue,de]=J.useState(!1),fe=e=>{U||de(e)},pe=e=>{fe(!0),v==null||v({key:s,domEvent:e})},me=e=>{fe(!1),y==null||y({key:s,domEvent:e})},he=J.useMemo(()=>ce||(D===`inline`?!1:ue||B([j],s)),[D,ce,j,ue,s,B]),W=Gb(V.length),ge=e=>{U||(b==null||b({key:s,domEvent:e}),D===`inline`&&I(s,!ie))},_e=Ub(e=>{_==null||_(qb(e)),F(e)}),K=e=>{D!==`inline`&&I(s,e)},ve=()=>{L(s)},ye=T&&`${T}-popup`,be=J.useMemo(()=>J.createElement(Kb,{icon:D===`horizontal`?void 0:re,props:G(G({},e),{},{isOpen:ae,isSubMenu:!0})},J.createElement(`i`,{className:`${H}-arrow`})),[D,re,e,ae,H]),xe=J.createElement(`div`,nx({role:`menuitem`,style:W,className:`${H}-title`,tabIndex:U?null:-1,ref:ee,title:typeof o==`string`?o:null,"data-menu-id":A&&T?null:T,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":ye,"aria-disabled":U,onClick:ge,onFocus:ve},le),o,be),Se=J.useRef(D);D!==`inline`&&V.length>1?Se.current=`vertical`:Se.current=D;let Ce=Se.current,we=J.useMemo(()=>{let t=J.createElement(xb,{classNames:a,styles:i,mode:Ce===`horizontal`?`vertical`:Ce},J.createElement(Zb,{id:ye,ref:te},d)),n=C||R;return n?n(t,{item:e,keys:V}):t},[C,R,V,ye,d,e,Ce]);if(!A){let e=Se.current;xe=J.createElement(Wce,{mode:e,prefixCls:H,visible:!u&&ae&&D!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:we,disabled:U,onVisibleChange:K},xe)}let Te=J.createElement(Bv.Item,nx({ref:t,role:`none`},w,{component:`li`,style:n,className:Z(H,`${H}-${D}`,r,{[`${H}-open`]:ae,[`${H}-active`]:he,[`${H}-selected`]:oe,[`${H}-disabled`]:U}),onMouseEnter:pe,onMouseLeave:me}),xe,!A&&J.createElement(Gce,{id:ye,open:ae,keyPath:V},d));return z&&(Te=z(Te,e,{selected:oe,active:he,open:ae,disabled:U})),J.createElement(xb,{classNames:a,styles:i,onItemClick:_e,mode:D===`horizontal`?`vertical`:D,itemIcon:ne,expandIcon:re},Te)}),rx=J.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Tb(n),a=Qb(r,i),o=Cb();J.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:J.createElement(Jce,nx({ref:t},e),a),J.createElement(wb.Provider,{value:i},s)});function ix({className:e,style:t}){let{prefixCls:n}=J.useContext(bb);return Cb()?null:J.createElement(`li`,{role:`separator`,className:Z(`${n}-item-divider`,e),style:t})}var Yce=[`className`,`title`,`eventKey`,`children`];function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,title:r,eventKey:i,children:a}=e,o=q(e,Yce),{prefixCls:s,classNames:c,styles:l}=J.useContext(bb),u=`${s}-item-group`;return J.createElement(`li`,ax({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:Z(u,n)}),J.createElement(`div`,{role:`presentation`,className:Z(`${u}-title`,c==null?void 0:c.listTitle),style:l==null?void 0:l.listTitle,title:typeof r==`string`?r:void 0},r),J.createElement(`ul`,{role:`group`,className:Z(`${u}-list`,c==null?void 0:c.list),style:l==null?void 0:l.list},a))}),ox=J.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Qb(r,Tb(n));return Cb()?i:J.createElement(Xce,ax({ref:t},Ca(e,[`warnKey`])),i)});K();var Zce=[`label`,`children`,`key`,`type`,`extra`];function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f}=e,p=q(e,Zce),m=u==null?`tmp-${s}`:u;if(l||d===`group`)return d===`group`?J.createElement(i,sx({key:m},p,{title:c}),cx(l,t,n)):J.createElement(a,sx({key:m},p,{title:c}),cx(l,t,n));if(d===`divider`)return J.createElement(o,sx({key:m},p));let h=!!f||f===0;return J.createElement(r,sx({key:m},p,{extra:f,itemData:G(G({},e),{},{key:m})}),h?J.createElement(J.Fragment,null,J.createElement(`span`,{className:`${n}-item-label`},c),J.createElement(`span`,{className:`${n}-item-extra`},f)):c)}return null}).filter(e=>e)}function lx(e,t,n,r,i){let a=e,o=G({divider:ix,item:Yb,group:ox,submenu:rx},r);return t&&(a=cx(t,o,i)),Qb(a,n)}K();var Qce=`prefixCls.rootClassName.style.className.styles.classNames.tabIndex.items.children.direction.id.mode.inlineCollapsed.disabled.disabledOverflow.subMenuOpenDelay.subMenuCloseDelay.forceSubMenuRender.defaultOpenKeys.openKeys.activeKey.defaultActiveFirst.selectable.multiple.defaultSelectedKeys.selectedKeys.onSelect.onDeselect.inlineIndent.motion.defaultMotions.triggerSubMenuAction.builtinPlacements.itemIcon.expandIcon.overflowedIndicator.overflowedIndicatorPopupClassName.getPopupContainer.onClick.onOpenChange.onKeyDown.openAnimation.openTransitionName._internalRenderMenuItem._internalRenderSubMenuItem._internalComponents.popupRender`.split(`.`);function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n;let{prefixCls:r=`rc-menu`,rootClassName:i,style:a,className:o,styles:s,classNames:c,tabIndex:l=0,items:u,children:d,direction:f,id:p,mode:m=`vertical`,inlineCollapsed:h,disabled:g,disabledOverflow:_,subMenuOpenDelay:v=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:T=!0,multiple:E=!1,defaultSelectedKeys:D,selectedKeys:O,onSelect:k,onDeselect:A,inlineIndent:j=24,motion:M,defaultMotions:N,triggerSubMenuAction:P=`hover`,builtinPlacements:F,itemIcon:I,expandIcon:L,overflowedIndicator:R=`...`,overflowedIndicatorPopupClassName:z,getPopupContainer:B,onClick:V,onOpenChange:H,onKeyDown:U,openAnimation:ee,openTransitionName:te,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re,_internalComponents:ie,popupRender:ae}=e,oe=q(e,Qce),[se,ce]=J.useMemo(()=>[lx(d,u,dx,ie,r),lx(d,u,dx,{},r)],[d,u,ie]),[le,ue]=J.useState(!1),de=J.useRef(),fe=ii(p?`rc-menu-uuid-${p}`:`rc-menu-uuid`),pe=f===`rtl`,[me,he]=$r(x,S),W=me||dx,ge=(e,t=!1)=>{function n(){he(e),H==null||H(e)}t?(0,Xa.flushSync)(n):n()},[_e,K]=J.useState(W),ve=J.useRef(!1),[ye,be]=J.useMemo(()=>(m===`inline`||m===`vertical`)&&h?[`vertical`,h]:[m,!1],[m,h]),xe=ye===`inline`,[Se,Ce]=J.useState(ye),[we,Te]=J.useState(be);J.useEffect(()=>{Ce(ye),Te(be),ve.current&&(xe?he(_e):ge(dx))},[ye,be]);let[Ee,De]=J.useState(0),Oe=Ee>=se.length-1||Se!==`horizontal`||_;J.useEffect(()=>{xe&&K(W)},[W]),J.useEffect(()=>(ve.current=!0,()=>{ve.current=!1}),[]);let{registerPath:ke,unregisterPath:Ae,refreshOverflowKeys:je,isSubPathKey:Me,getKeyPath:Ne,getKeys:Pe,getSubPathKeys:Fe}=Mce(),Ie=J.useMemo(()=>({registerPath:ke,unregisterPath:Ae}),[ke,Ae]),Le=J.useMemo(()=>({isSubPathKey:Me}),[Me]);J.useEffect(()=>{je(Oe?dx:se.slice(Ee+1).map(e=>e.key))},[Ee,Oe]);let[Re,ze]=$r(C||w&&((n=se[0])==null?void 0:n.key),C),Be=Ub(e=>{ze(e)}),Ve=Ub(()=>{ze(void 0)});(0,J.useImperativeHandle)(t,()=>({list:de.current,focus:e=>{let t=Pe(),{elements:n,key2element:r,element2key:i}=zb(t,fe),a=Lb(de.current,n),o;if(Re&&t.includes(Re))o=Re;else{var s;o=a[0]?i.get(a[0]):(s=se.find(e=>!e.props.disabled))==null?void 0:s.key}let c=r.get(o);if(o&&c){var l;c==null||(l=c.focus)==null||l.call(c,e)}},findItem:({key:e})=>{let{key2element:t}=zb(Pe(),fe);return t.get(e)||null}}));let[He,Ue]=$r(D||[],O),We=J.useMemo(()=>Array.isArray(He)?He:He==null?dx:[He],[He]),Ge=e=>{if(T){let{key:t}=e,n=We.includes(t),r;r=E?n?We.filter(e=>e!==t):[...We,t]:[t],Ue(r);let i=G(G({},e),{},{selectedKeys:r});n?A==null||A(i):k==null||k(i)}!E&&W.length&&Se!==`inline`&&ge(dx)},Ke=Ub(e=>{V==null||V(qb(e)),Ge(e)}),qe=Ub((e,t)=>{let n=W.filter(t=>t!==e);if(t)n.push(e);else if(Se!==`inline`){let t=Fe(e);n=n.filter(e=>!t.has(e))}ya(W,n,!0)||ge(n,!0)}),Je=kce(Se,Re,pe,fe,de,Pe,Ne,ze,(e,t)=>{let n=t==null?!W.includes(e):t;qe(e,n)},U);J.useEffect(()=>{ue(!0)},[]);let Ye=J.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re}),[ne,re]),Xe=Se!==`horizontal`||_?se:se.map((e,t)=>J.createElement(xb,{key:e.key,overflowDisabled:t>Ee,classNames:c,styles:s},e)),Ze=J.createElement(Bv,ux({id:p,ref:de,prefixCls:`${r}-overflow`,component:`ul`,itemComponent:Yb,className:Z(r,`${r}-root`,`${r}-${Se}`,o,{[`${r}-inline-collapsed`]:we,[`${r}-rtl`]:pe},i),dir:f,style:a,role:`menu`,tabIndex:l,data:Xe,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?se.slice(-t):null;return J.createElement(rx,{eventKey:Hb,title:R,disabled:Oe,internalPopupClose:t===0,popupClassName:z},n)},maxCount:Se!==`horizontal`||_?Bv.INVALIDATE:Bv.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{De(e)},onKeyDown:Je},oe));return J.createElement(Db.Provider,{value:Ye},J.createElement(_b.Provider,{value:fe},J.createElement(xb,{prefixCls:r,rootClassName:i,classNames:c,styles:s,mode:Se,openKeys:W,rtl:pe,disabled:g,motion:le?M:null,defaultMotions:le?N:null,activeKey:Re,onActive:Be,onInactive:Ve,selectedKeys:We,inlineIndent:j,subMenuOpenDelay:v,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:F,triggerSubMenuAction:P,getPopupContainer:B,itemIcon:I,expandIcon:L,onItemClick:Ke,onOpenChange:qe,popupRender:ae},J.createElement(Eb.Provider,{value:Le},Ze),J.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},J.createElement(Sb.Provider,{value:Ie},ce)))))});fx.Item=Yb,fx.SubMenu=rx,fx.ItemGroup=ox,fx.Divider=ix;var $ce=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`bars`,theme:`outlined`}}))());function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,px({},e,{ref:t,icon:$ce.default}))),hx=J.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),ele=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:Q(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},gx=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},_x=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],vx=dd(`Layout`,ele,gx,{deprecatedTokens:_x}),tle=dd([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:Q(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${Q(f)} ${Q(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Q(f)} 0 0 ${Q(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},gx,{deprecatedTokens:_x});K();var nle=[`prefixCls`,`className`,`trigger`,`children`,`defaultCollapsed`,`theme`,`style`,`collapsible`,`reverseArrow`,`width`,`collapsedWidth`,`zeroWidthTriggerStyle`,`breakpoint`,`onCollapse`,`onBreakpoint`,`classNames`,`styles`],yx={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},rle=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),bx=J.createContext({}),ile=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),xx=J.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,classNames:_,styles:v}=e,y=q(e,nle),{siderHook:b}=(0,J.useContext)(hx),[x,S]=(0,J.useState)(`collapsed`in e?e.collapsed:o),[C,w]=(0,J.useState)(!1);(0,J.useEffect)(()=>{`collapsed`in e&&S(e.collapsed)},[e.collapsed]);let T=(t,n)=>{`collapsed`in e||S(t),h==null||h(t,n)},E=G(G({},e),{},{collapsed:x,defaultCollapsed:o,theme:s,style:c,collapsible:l,reverseArrow:u,width:d,collapsedWidth:f,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g}),[D,O]=xp([_],[v],{props:E}),{getPrefixCls:k,direction:A}=(0,J.useContext)(Eo),j=k(`layout-sider`,n),[M,N]=tle(j),P=(0,J.useRef)(null);P.current=e=>{w(e.matches),g==null||g(e.matches),x!==e.matches&&T(e.matches,`responsive`)},(0,J.useEffect)(()=>{var e;function t(e){var t;return(t=P.current)==null?void 0:t.call(P,e)}let n;return((e=window)==null?void 0:e.matchMedia)!==void 0&&m&&m in yx&&(n=window.matchMedia(`screen and (max-width: ${yx[m]})`),up(n==null?void 0:n.addEventListener)&&n.addEventListener(`change`,t),t(n)),()=>{up(n==null?void 0:n.removeEventListener)&&n.removeEventListener(`change`,t)}},[m]),(0,J.useEffect)(()=>{let e=ile(`ant-sider-`);return b.addSider(e),()=>b.removeSider(e)},[]);let F=()=>{T(!x,`clickTrigger`)},I=Ca(y,[`collapsed`]),L=x?f:d,R=rle(L)?`${L}px`:String(L),z=Number.parseFloat(String(f||0))===0?J.createElement(`span`,{onClick:F,className:Z(`${j}-zero-width-trigger`,`${j}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||J.createElement(mx,null)):null,B=A===`rtl`==!u,V={expanded:B?J.createElement(tg,null):J.createElement(pb,null),collapsed:B?J.createElement(pb,null):J.createElement(tg,null)}[x?`collapsed`:`expanded`],H=i===null?null:z||J.createElement(`div`,{className:`${j}-trigger`,onClick:F,style:{width:R}},i||V),U=G(G({},c),{},{flex:`0 0 ${R}`,maxWidth:R,minWidth:R,width:R}),ee=Z(j,`${j}-${s}`,{[`${j}-collapsed`]:!!x,[`${j}-has-trigger`]:l&&i!==null&&!z,[`${j}-below`]:!!C,[`${j}-zero-width`]:Number.parseFloat(R)===0},r,D.root,M,N),te=J.useMemo(()=>({siderCollapsed:x}),[x]);return J.createElement(bx.Provider,{value:te},J.createElement(`aside`,G(G({className:ee},I),{},{style:G(G({},O.root),U),ref:t}),J.createElement(`div`,{className:Z(`${j}-children`,D.body),style:O.body},a),l||C&&z?H:null))}),ale=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`}}))());function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Sx({},e,{ref:t,icon:ale.default}))),wx=(0,J.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null});K();var ole=[`prefixCls`,`className`,`dashed`],Tx=e=>{let{prefixCls:t,className:n,dashed:r}=e,i=q(e,ole),{getPrefixCls:a}=J.useContext(Eo),o=Z({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return J.createElement(ix,G({className:o},i))};K();var Ex=e=>{var t,n,r;let{className:i,children:a,icon:o,title:s,danger:c,extra:l}=e,{prefixCls:u,firstLevel:d,direction:f,disableMenuItemTitleTooltip:p,tooltip:m,inlineCollapsed:h,styles:g,classNames:_}=J.useContext(wx),v=e=>{var t,n;let r=a==null?void 0:a[0],i=J.createElement(`span`,{className:Z(`${u}-title-content`,d?_==null?void 0:_.itemContent:_==null||(t=_.subMenu)==null?void 0:t.itemContent,{[`${u}-title-content-with-extra`]:!!l||l===0}),style:d?g==null?void 0:g.itemContent:g==null||(n=g.subMenu)==null?void 0:n.itemContent},a);return(!o||J.isValidElement(a)&&a.type===`span`)&&a&&e&&d&&typeof r==`string`?J.createElement(`div`,{className:`${u}-inline-collapsed-noicon`},r.charAt(0)):i},{siderCollapsed:y}=J.useContext(bx),b=s;s===void 0?b=d?a:``:s===!1&&(b=``);let x=m===!1?void 0:m,S=x&&x.title!==void 0?x.title:b,C=G(G({},x==null?null:x),{},{title:S});!y&&!h&&(C.title=null,C.open=!1);let w=Ia(a).length,T=J.createElement(Yb,G(G({},Ca(e,[`title`,`icon`,`danger`])),{},{className:Z(d?_==null?void 0:_.item:_==null||(t=_.subMenu)==null?void 0:t.item,{[`${u}-item-danger`]:c,[`${u}-item-only-child`]:(o?w+1:w)===1},i),style:G(G({},d?g==null?void 0:g.item:g==null||(n=g.subMenu)==null?void 0:n.item),e.style),title:typeof s==`string`?s:void 0,itemData:(r=e==null?void 0:e.itemData)==null?G(G({},e),{},{key:e.eventKey}):r}),pm(o,e=>{var t,n;return{className:Z(`${u}-item-icon`,d?_==null?void 0:_.itemIcon:_==null||(t=_.subMenu)==null?void 0:t.itemIcon,e.className),style:G(G({},d?g==null?void 0:g.itemIcon:g==null||(n=g.subMenu)==null?void 0:n.itemIcon),e.style)}}),v(h));if(!p&&m!==!1){let e=x&&x.placement?x.placement:f===`rtl`?`left`:`right`,t=`${u}-inline-collapsed-tooltip`,n=e=>G(G({},e),{},{root:Z(t,e==null?void 0:e.root)}),r=up(x==null?void 0:x.classNames)?e=>{let t=x.classNames(e);return n(t)}:n(x==null?void 0:x.classNames);T=J.createElement(ab,G(G({},C),{},{placement:e,classNames:r}),T)}return T};K();var sle=[`children`],Dx=J.createContext(null),Ox=J.forwardRef((e,t)=>{let{children:n}=e,r=q(e,sle),i=J.useContext(Dx),a=J.useMemo(()=>G(G({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=yi(n),s=gi(t,o?bi(n):null);return J.createElement(Dx.Provider,{value:a},J.createElement(x_,{space:!0},o?J.cloneElement(n,{ref:s}):n))}),cle=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Q(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(l=>`${l} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},N8e=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical, - ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${be(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${be(t)})`}}}}),oae=e=>sc(e),aae=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:d,motionDurationSlow:A,motionEaseInOut:h,motionEaseOut:p,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:b,lineType:x,colorSplit:C,itemDisabledColor:S,dangerItemColor:B,dangerItemHoverColor:E,dangerItemSelectedColor:_,dangerItemActiveBg:M,dangerItemSelectedBg:R,popupBg:T,itemHoverBg:L,itemActiveBg:P,menuSubMenuBg:k,horizontalItemSelectedColor:H,horizontalItemSelectedBg:D,horizontalItemBorderRadius:U,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:I({},oae(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:I({},oae(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:P}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:P}}},[`${n}-item-danger`]:{color:B,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:M}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:k},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:te(I({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:U,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${be(u)} solid transparent`,transition:`border-color ${A} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:u,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:u,borderBottomColor:H}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${be(d)} ${x} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${be(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(Q=>`${Q} ${y} ${p}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(Q=>`${Q} ${y} ${h}`).join(",")}}}}}},sae=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:be(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:be(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},P8e=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,padding:l,paddingXL:c,itemMarginInline:u,fontSizeLG:f,motionDurationFast:d,motionDurationSlow:A,paddingXS:h,boxShadowSecondary:p,collapsedWidth:v,collapsedIconSize:y}=e,b={height:r,lineHeight:be(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":I({[`&${t}-root`]:{boxShadow:"none"}},sae(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:te(I({},sae(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${be(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${A}`,`background-color ${A}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center",width:"100%"}}},[`> ${t}-item, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},lle=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical, + ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Q(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Q(t)})`}}}});K();var kx=e=>ad(e),Ax=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:G({},kx(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:G({},kx(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:G(G({},t===`dark`?{borderBottom:0}:{}),{},{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${Q(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Q(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Q(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}};K();var jx=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Q(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Q(n)},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},ule=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,padding:c,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:_}=e,v={height:r,lineHeight:Q(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":G({[`&${t}-root`]:{boxShadow:`none`}},jx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:G(G({},jx(e)),{},{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Q(e.calc(o).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${p}`,`background-color ${p}`,`padding ${f} ${s}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:`center`,width:`100%`}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${be(e.calc(y).div(2).equal())} - ${be(u)})`,textOverflow:"clip",[` + > ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,insetInlineStart:0,paddingInline:`calc(50% - ${Q(e.calc(_).div(2).equal())} - ${Q(u)})`,textOverflow:`clip`,[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:be(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:l},"a, a:hover":{color:i}},[`${t}-item-group-title`]:te(I({},Wa),{paddingInline:h})}}]},lae=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:I({},Fg()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},cae=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(s=>`${s} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:["background-color","transform","top","color"].map(s=>`${s} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${be(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${be(a)})`}}}}},L8e=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:d,subMenuItemBorderRadius:A,menuArrowSize:h,menuArrowOffset:p,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:b,iconSize:x,iconMarginInlineEnd:C}=e,S=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[n]:te(I({},fA()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:te(I(te(I(te(I(I({},zr(e)),fA()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${be(s)} ${be(l)}`,fontSize:b,lineHeight:y,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(B=>`${B} ${i} ${a}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${o}`].map(B=>`${B} ${a}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(B=>`${B} ${i} ${a}`).join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${n}-item-label`]:I({flex:"auto",minWidth:0},Wa),[S]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${be(e.calc(x).add(C!=null?C:0).equal())})`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lae(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${be(e.calc(r).mul(2).equal())} ${be(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:te(I(I({borderRadius:d},lae(e)),cae(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:A},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}}}),cae(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${be(p)})`},"&::after":{transform:`rotate(45deg) translateX(${be(e.calc(p).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${be(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${be(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${be(p)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},F8e=e=>{var L,P,k;const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:o,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:f,controlItemBgActive:d,colorBgTextHover:A,controlHeightLG:h,lineHeight:p,colorBgElevated:v,marginXXS:y,padding:b,fontSize:x,controlHeightSM:C,fontSizeLG:S,colorTextLightSolid:B,colorErrorHover:E}=e,_=(L=e.activeBarWidth)!=null?L:0,M=(P=e.activeBarBorderWidth)!=null?P:u,R=(k=e.itemMarginInline)!=null?k:e.marginXXS,T=new Rr(B).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:o,itemColor:o,colorItemTextHover:o,itemHoverColor:o,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:A,itemHoverBg:A,colorItemBgActive:c,itemActiveBg:d,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:u,activeBarBorderWidth:M,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:p,collapsedWidth:h*2,popupBg:v,itemMarginBlock:y,itemPaddingInline:b,horizontalLineHeight:`${h*1.15}px`,iconSize:x,iconMarginInlineEnd:C-x,collapsedIconSize:S,groupTitleFontSize:x,darkItemDisabledColor:new Rr(B).setA(.25).toRgbString(),darkItemColor:T,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:B,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:T,darkItemHoverColor:B,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:B,darkDangerItemActiveBg:n,itemWidth:_?`calc(100% + ${M}px)`:`calc(100% - ${R*2}px)`}},k8e=(e,t=e,n=!0)=>Br("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:d,darkItemSelectedBg:A,darkDangerItemSelectedBg:h,darkItemHoverBg:p,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:S,popupBg:B,darkPopupBg:E}=i,_=i.calc(s).div(7).mul(5).equal(),M=dr(i,{menuArrowSize:_,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(_).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:B}),R=dr(M,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:d,subMenuItemSelectedColor:d,itemBg:u,popupBg:E,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:A,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:x,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:d,horizontalItemSelectedBg:A});return[L8e(M),R8e(M),P8e(M),aae(M,"light"),aae(R,"dark"),N8e(M),lE(M),qu(M,"slide-up"),qu(M,"slide-down"),AE(M,"zoom-big")]},F8e,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),uae=e=>{var p,v,y,b,x,C;const{popupClassName:t,icon:n,title:r,theme:i}=e,o=g.useContext(l4),{prefixCls:a,inlineCollapsed:s,theme:l,classNames:c,styles:u}=o,f=Hb();let d;if(!n)d=s&&!f.length&&r&&typeof r=="string"?g.createElement("div",{className:`${a}-inline-collapsed-noicon`},r.charAt(0)):g.createElement("span",{className:`${a}-title-content`},r);else{const S=g.isValidElement(r)&&r.type==="span";d=g.createElement(g.Fragment,null,Ga(n,B=>({className:Ae(B.className,`${a}-item-icon`,c==null?void 0:c.itemIcon),style:I(I({},B.style),u==null?void 0:u.itemIcon)})),S?r:g.createElement("span",{className:`${a}-title-content`},r))}const A=g.useMemo(()=>te(I({},o),{firstLevel:!1}),[o]),[h]=jg("Menu");return g.createElement(l4.Provider,{value:A},g.createElement(n4,te(I({},ti(e,["icon"])),{title:d,classNames:{list:(p=c==null?void 0:c.subMenu)==null?void 0:p.list,listTitle:(v=c==null?void 0:c.subMenu)==null?void 0:v.itemTitle},styles:{list:(y=u==null?void 0:u.subMenu)==null?void 0:y.list,listTitle:(b=u==null?void 0:u.subMenu)==null?void 0:b.itemTitle},popupClassName:Ae(a,t,(x=c==null?void 0:c.popup)==null?void 0:x.root,`${a}-${i||l}`),popupStyle:I(I({zIndex:h},e.popupStyle),(C=u==null?void 0:u.popup)==null?void 0:C.root)})))};function tU(e){return e===null||e===!1}const D8e={item:rae,submenu:uae,divider:nae},H8e=g.forwardRef((e,t)=>{var ce;const n=g.useContext(c4),r=n||{},se=e,{prefixCls:i,className:o,style:a,theme:s="light",expandIcon:l,_internalDisableMenuItemTitleTooltip:c,tooltip:u,inlineCollapsed:f,siderCollapsed:d,rootClassName:A,mode:h,selectable:p,onClick:v,overflowedIndicatorPopupClassName:y,classNames:b,styles:x}=se,C=Ze(se,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","tooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName","classNames","styles"]),{menu:S}=g.useContext(Un),{getPrefixCls:B,getPopupContainer:E,direction:_,className:M,style:R,classNames:T,styles:L}=or("menu"),P=B(),k=ti(C,["collapsedWidth"]);(ce=r.validator)==null||ce.call(r,{mode:h});const H=yn((...ge)=>{var ie;v==null||v(...ge),(ie=r.onClick)==null||ie.call(r)}),D=r.mode||h,U=p!=null?p:r.selectable,j=f!=null?f:d,Q=te(I({},e),{mode:D,inlineCollapsed:j,selectable:U,theme:s}),K=Ar(R),z=Ar(a),[V,Y]=vr([T,b],[L,K,x,z],{props:Q},{popup:{_default:"root"},subMenu:{_default:"item"}}),Z={horizontal:{motionName:`${P}-slide-up`},inline:Bb(P),other:{motionName:`${P}-zoom-big`}},W=B("menu",i||r.prefixCls),J=So(W),[ee,ne]=k8e(W,J,!n),re=Ae(`${W}-${s}`,M,o),ue=g.useMemo(()=>{var ie,le;if(Rn(l)||tU(l))return l||null;if(Rn(r.expandIcon)||tU(r.expandIcon))return r.expandIcon||null;if(Rn(S==null?void 0:S.expandIcon)||tU(S==null?void 0:S.expandIcon))return(S==null?void 0:S.expandIcon)||null;const ge=(ie=l!=null?l:r==null?void 0:r.expandIcon)!=null?ie:S==null?void 0:S.expandIcon;return Ga(ge,{className:Ae(`${W}-submenu-expand-icon`,g.isValidElement(ge)?(le=ge.props)==null?void 0:le.className:void 0)})},[l,r==null?void 0:r.expandIcon,S==null?void 0:S.expandIcon,W]),de=g.useMemo(()=>({prefixCls:W,inlineCollapsed:j||!1,direction:_,firstLevel:!0,theme:s,mode:D,disableMenuItemTitleTooltip:c,tooltip:u,classNames:V,styles:Y}),[W,j,_,c,s,D,V,Y,u]);return g.createElement(c4.Provider,{value:null},g.createElement(l4.Provider,{value:de},g.createElement(jb,te(I({getPopupContainer:E,overflowedIndicator:g.createElement(s4,null),overflowedIndicatorPopupClassName:Ae(W,`${W}-${s}`,y),classNames:{list:V.list,listTitle:V.itemTitle},styles:{list:Y.list,listTitle:Y.itemTitle},mode:D,selectable:U,onClick:H},k),{inlineCollapsed:j,style:Y.root,className:re,prefixCls:W,direction:_,defaultMotions:Z,expandIcon:ue,ref:t,rootClassName:Ae(A,ee,r.rootClassName,ne,J,V.root),_internalComponents:D8e}))))}),tp=g.forwardRef((e,t)=>{const n=g.useRef(null),r=g.useContext(o4);return g.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)==null||o.focus(i)}})),g.createElement(H8e,I(I({ref:n},e),r))});tp.Item=rae,tp.SubMenu=uae,tp.Divider=nae,tp.ItemGroup=YH;const U8e=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},j8e=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:d,fontSizeIcon:A,controlPaddingHorizontal:h,colorBgElevated:p,controlHeightLG:v}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:`calc(100vh - ${be(e.calc(v).mul(2.5).equal())})`,overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:A}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:A},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:cE},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:fE},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:uE},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:dE},[`&${a}-slide-right-enter${a}-slide-right-enter-active${t}-placement-right, - &${a}-slide-right-appear${a}-slide-right-appear-active${t}-placement-right, - &${a}-slide-right-enter${a}-slide-right-enter-active${t}-placement-rightTop, - &${a}-slide-right-appear${a}-slide-right-appear-active${t}-placement-rightTop, - &${a}-slide-right-enter${a}-slide-right-enter-active${t}-placement-rightBottom, - &${a}-slide-right-appear${a}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:Bre},[`&${a}-slide-left-enter${a}-slide-left-enter-active${t}-placement-left, - &${a}-slide-left-appear${a}-slide-left-appear-active${t}-placement-left, - &${a}-slide-left-enter${a}-slide-left-enter-active${t}-placement-leftTop, - &${a}-slide-left-appear${a}-slide-left-appear-active${t}-placement-leftTop, - &${a}-slide-left-enter${a}-slide-left-enter-active${t}-placement-leftBottom, - &${a}-slide-left-appear${a}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:$re},[`&${a}-slide-right-leave${a}-slide-right-leave-active${t}-placement-right, - &${a}-slide-right-leave${a}-slide-right-leave-active${t}-placement-rightTop, - &${a}-slide-right-leave${a}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:Ore},[`&${a}-slide-left-leave${a}-slide-left-leave-active${t}-placement-left, - &${a}-slide-left-leave${a}-slide-left-leave-active${t}-placement-leftTop, - &${a}-slide-left-leave${a}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:_re}}},RH(e,p),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:te(I({},zr(e)),{[n]:te(I({padding:f,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},lc(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${be(c)} ${be(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> a, > ${n}-item-label > a`]:{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:te(I({display:"flex",margin:0,padding:`${be(c)} ${be(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},lc(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${be(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:A,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${be(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:p,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[qu(e,"slide-up"),qu(e,"slide-down"),qu(e,"slide-left"),qu(e,"slide-right"),Ob(e,"move-up"),Ob(e,"move-down"),AE(e,"zoom-big")]]},z8e=Br("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=dr(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[j8e(o),U8e(o)]},e=>I(I({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},GM({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),WM(e)),{resetStyle:!1}),PE=g.forwardRef((e,t)=>{var Oe;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:f,rootClassName:d,overlayStyle:A,open:h,onOpenChange:p,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x="",transitionName:C,classNames:S,styles:B,destroyPopupOnHide:E,destroyOnHidden:_}=e,{getPrefixCls:M,direction:R,getPopupContainer:T,className:L,style:P,classNames:k,styles:H}=or("dropdown"),D=te(I({},e),{mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b}),[U,j]=vr([k,S],[H,B],{props:D}),Q=I(I(I({},P),A),j.root),K=c||l;Ig();const z=g.useMemo(()=>{const xe=M();return C!==void 0?C:x.startsWith("top")?`${xe}-slide-down`:x.startsWith("left")?`${xe}-slide-right`:x.startsWith("right")?`${xe}-slide-left`:`${xe}-slide-up`},[M,x,C]),V=g.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:R==="rtl"?"bottomRight":"bottomLeft",[x,R]),Y=M("dropdown",i),Z=So(Y),[W,J]=z8e(Y,Z),[,ee]=al(),ne=g.Children.only(WNe(o)?g.createElement("span",null,o):o),re=ed(t,cA(ne)),ue=Ga(ne,{className:Ae(`${Y}-trigger`,{[`${Y}-rtl`]:R==="rtl"},ne.props.className),disabled:(Oe=ne.props.disabled)!=null?Oe:s,ref:re}),de=s?[]:a,se=!!(de!=null&&de.includes("contextMenu")),[ce,ge]=Fr(!1,h),ie=yn(xe=>{p==null||p(xe,{source:"trigger"}),ge(xe)}),le=Ae(f,d,W,J,Z,L,U.root,{[`${Y}-rtl`]:R==="rtl"}),ve=boe({arrowPointAtCenter:Zn(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:ee.marginXXS,arrowWidth:r?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),we=yn(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(p==null||p(!1,{source:"menu"}),ge(!1))}),me=()=>{const xe=ti(U,["root"]),Me=ti(j,["root"]);let Se;return n!=null&&n.items&&(Se=g.createElement(tp,te(I({},n),{classNames:te(I({},xe),{subMenu:I({},xe)}),styles:te(I({},Me),{subMenu:I({},Me)})}))),K&&(Se=K(Se)),Se=g.Children.only(typeof Se=="string"?g.createElement("span",null,Se):Se),g.createElement(iae,{prefixCls:`${Y}-menu`,rootClassName:Ae(J,Z),expandIcon:g.createElement("span",{className:`${Y}-menu-submenu-arrow`},R==="rtl"?g.createElement(mA,{className:`${Y}-menu-submenu-arrow-icon`}):g.createElement(od,{className:`${Y}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:we,validator:({mode:Pe})=>{}},Se)},[Ee,Ce]=jg("Dropdown",Q.zIndex);let pe=g.createElement(Toe,te(I({alignPoint:se},ti(e,["rootClassName","onOpenChange"])),{mouseEnterDelay:v,mouseLeaveDelay:y,visible:ce,builtinPlacements:ve,arrow:!!r,overlayClassName:le,prefixCls:Y,getPopupContainer:u||T,transitionName:z,trigger:de,overlay:me,placement:V,onVisibleChange:ie,overlayStyle:te(I({},Q),{zIndex:Ee}),autoDestroy:_!=null?_:E}),ue);return Ee&&(pe=g.createElement(OM.Provider,{value:Ce},pe)),pe}),Q8e=CE(PE,"align",void 0,"dropdown",e=>e),V8e=e=>g.createElement(Q8e,I({},e),g.createElement("span",null));PE._InternalPanelDoNotUseOrYouWillBeFired=V8e;const u4=({children:e})=>{const{getPrefixCls:t}=g.useContext(Un),n=t("breadcrumb"),r=g.useContext(LH),{classNames:i,styles:o}=r;return g.createElement("li",{className:Ae(`${n}-separator`,i==null?void 0:i.separator),style:o==null?void 0:o.separator,"aria-hidden":"true"},e===""?e:e||"/")};u4.__ANT_BREADCRUMB_SEPARATOR=!0;function K8e(e,t){if(!qi(e.title))return null;const n=Object.keys(t).join("|");return Zn(e.title)?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function fae(e,t,n,r){if(!qi(n))return null;const l=t,{className:i,onClick:o}=l,a=Ze(l,["className","onClick"]),s=te(I({},Co(a,{data:!0,aria:!0})),{onClick:o});return r!==void 0?g.createElement("a",te(I({},s),{className:Ae(`${e}-link`,i),href:r}),n):g.createElement("span",te(I({},s),{className:Ae(`${e}-link`,i)}),n)}function W8e(e,t){return(r,i,o,a,s)=>{if(t)return t(r,i,o,a);const l=K8e(r,i);return fae(e,r,l,s)}}const dae=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,dropdownProps:o,href:a,dropdownIcon:s}=e,l=g.useContext(LH),{classNames:c,styles:u}=l,d=(A=>{if(i){const p=I({},o);if(i){const h=i||{},{items:v}=h,y=Ze(h,["items"]);p.menu=te(I({},y),{items:v==null?void 0:v.map((_,E)=>{var M=_,{key:b,title:x,label:C,path:S}=M,B=Ze(M,["key","title","label","path"]);let R=C!=null?C:x;return S&&(R=g.createElement("a",{href:`${a}${S}`},R)),te(I({},B),{key:b!=null?b:E,label:R})})})}return g.createElement(PE,I({placement:"bottom"},p),g.createElement("span",{className:`${t}-overlay-link`},A,s))}return A})(r);return oa(d)?g.createElement(g.Fragment,null,g.createElement("li",{className:Ae(`${t}-item`,c==null?void 0:c.item),style:u==null?void 0:u.item},d),n&&g.createElement(u4,null,n)):null},Aae=e=>{const s=e,{prefixCls:t,children:n,href:r}=s,i=Ze(s,["prefixCls","children","href"]),{getPrefixCls:o}=g.useContext(Un),a=o("breadcrumb",t);return g.createElement(dae,te(I({},i),{prefixCls:a}),fae(a,i,n,r))};Aae.__ANT_BREADCRUMB_ITEM=!0;const G8e=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:te(I({},zr(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:I({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${be(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},lc(e)),[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:_,lineHeight:Q(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:c},"a, a:hover":{color:i}},[`${t}-item-group-title`]:G(G({},ed),{},{paddingInline:m})}}]};K();var Mx=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:G({},nd()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},Nx=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${Q(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Q(o)})`}}}}},dle=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v,iconSize:y,iconMarginInlineEnd:b}=e,x=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[n]:G(G({},id()),{},{"&-hidden":{display:`none`}})},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:G(G(G(G(G({},td(e)),id()),{},{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Q(s)} ${Q(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${n}-item-label`]:G({flex:`auto`,minWidth:0},ed),[x]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${Q(e.calc(y).add(b==null?0:b).equal())})`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}}},Mx(e)),{},{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Q(e.calc(r).mul(2).equal())} ${Q(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:G(G(G({borderRadius:f},Mx(e)),Nx(e)),{},{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}}},Nx(e)),{},{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Q(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Q(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Q(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Q(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Q(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},fle=e=>{var t,n,r;let{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:c,colorTextDescription:l,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:h,colorBgTextHover:g,controlHeightLG:_,lineHeight:v,colorBgElevated:y,marginXXS:b,padding:x,fontSize:S,controlHeightSM:C,fontSizeLG:w,colorTextLightSolid:T,colorErrorHover:E}=e,D=(t=e.activeBarWidth)==null?0:t,O=(n=e.activeBarBorderWidth)==null?p:n,k=(r=e.itemMarginInline)==null?e.marginXXS:r,A=new Hl(T).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:h,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:D,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:O,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:_,groupTitleLineHeight:v,collapsedWidth:_*2,popupBg:y,itemMarginBlock:b,itemPaddingInline:x,horizontalLineHeight:`${_*1.15}px`,iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:w,groupTitleFontSize:S,darkItemDisabledColor:new Hl(T).setA(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:a,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:T,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:`transparent`,darkGroupTitleColor:A,darkItemHoverColor:T,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:a,itemWidth:D?`calc(100% + ${O}px)`:`calc(100% - ${k*2}px)`}},ple=(e,t=e,n=!0)=>dd(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=bl(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=bl(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[dle(x),cle(x),ule(x),Ax(x,`light`),Ax(S,`dark`),lle(x),jh(x),Wh(x,`slide-up`),Wh(x,`slide-down`),Yh(x,`zoom-big`)]},fle,{deprecatedTokens:[[`colorGroupTitle`,`groupTitleColor`],[`radiusItem`,`itemBorderRadius`],[`radiusSubMenuItem`,`subMenuItemBorderRadius`],[`colorItemText`,`itemColor`],[`colorItemTextHover`,`itemHoverColor`],[`colorItemTextHoverHorizontal`,`horizontalItemHoverColor`],[`colorItemTextSelected`,`itemSelectedColor`],[`colorItemTextSelectedHorizontal`,`horizontalItemSelectedColor`],[`colorItemTextDisabled`,`itemDisabledColor`],[`colorDangerItemText`,`dangerItemColor`],[`colorDangerItemTextHover`,`dangerItemHoverColor`],[`colorDangerItemTextSelected`,`dangerItemSelectedColor`],[`colorDangerItemBgActive`,`dangerItemActiveBg`],[`colorDangerItemBgSelected`,`dangerItemSelectedBg`],[`colorItemBg`,`itemBg`],[`colorItemBgHover`,`itemHoverBg`],[`colorSubItemBg`,`subMenuItemBg`],[`colorItemBgActive`,`itemActiveBg`],[`colorItemBgSelectedHorizontal`,`horizontalItemSelectedBg`],[`colorActiveBarWidth`,`activeBarWidth`],[`colorActiveBarHeight`,`activeBarHeight`],[`colorActiveBarBorderSize`,`activeBarBorderWidth`],[`colorItemBgSelected`,`itemSelectedBg`]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t);K();var Px=e=>{var t,n,r,i,a,o;let{popupClassName:s,icon:c,title:l,theme:u}=e,d=J.useContext(wx),{prefixCls:f,inlineCollapsed:p,theme:m,classNames:h,styles:g}=d,_=Tb(),v;if(!c)v=p&&!_.length&&l&&typeof l==`string`?J.createElement(`div`,{className:`${f}-inline-collapsed-noicon`},l.charAt(0)):J.createElement(`span`,{className:`${f}-title-content`},l);else{let e=J.isValidElement(l)&&l.type===`span`;v=J.createElement(J.Fragment,null,pm(c,e=>({className:Z(e.className,`${f}-item-icon`,h==null?void 0:h.itemIcon),style:G(G({},e.style),g==null?void 0:g.itemIcon)})),e?l:J.createElement(`span`,{className:`${f}-title-content`},l))}let y=J.useMemo(()=>G(G({},d),{},{firstLevel:!1}),[d]),[b]=Km(`Menu`);return J.createElement(wx.Provider,{value:y},J.createElement(rx,G(G({},Ca(e,[`icon`])),{},{title:v,classNames:{list:h==null||(t=h.subMenu)==null?void 0:t.list,listTitle:h==null||(n=h.subMenu)==null?void 0:n.itemTitle},styles:{list:g==null||(r=g.subMenu)==null?void 0:r.list,listTitle:g==null||(i=g.subMenu)==null?void 0:i.itemTitle},popupClassName:Z(f,s,h==null||(a=h.popup)==null?void 0:a.root,`${f}-${u||m}`),popupStyle:G(G({zIndex:b},e.popupStyle),g==null||(o=g.popup)==null?void 0:o.root)})))};K();var mle=[`prefixCls`,`className`,`style`,`theme`,`expandIcon`,`_internalDisableMenuItemTitleTooltip`,`tooltip`,`inlineCollapsed`,`siderCollapsed`,`rootClassName`,`mode`,`selectable`,`onClick`,`overflowedIndicatorPopupClassName`,`classNames`,`styles`];function Fx(e){return e===null||e===!1}var hle={item:Ex,submenu:Px,divider:Tx},gle=(0,J.forwardRef)((e,t)=>{var n;let r=J.useContext(Dx),i=r||{},{prefixCls:a,className:o,style:s,theme:c=`light`,expandIcon:l,_internalDisableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,siderCollapsed:p,rootClassName:m,mode:h,selectable:g,onClick:_,overflowedIndicatorPopupClassName:v,classNames:y,styles:b}=e,x=q(e,mle),{menu:S}=J.useContext(Eo),{getPrefixCls:C,getPopupContainer:w,direction:T,className:E,style:D,classNames:O,styles:k}=ko(`menu`),A=C(),j=Ca(x,[`collapsedWidth`]);(n=i.validator)==null||n.call(i,{mode:h});let M=qr((...e)=>{var t;_==null||_(...e),(t=i.onClick)==null||t.call(i)}),N=i.mode||h,P=g==null?i.selectable:g,F=f==null?p:f,I=G(G({},e),{},{mode:N,inlineCollapsed:F,selectable:P,theme:c}),L=yp(D),R=yp(s),[z,B]=xp([O,y],[k,L,b,R],{props:I},{popup:{_default:`root`},subMenu:{_default:`item`}}),V={horizontal:{motionName:`${A}-slide-up`},inline:dh(A),other:{motionName:`${A}-zoom-big`}},H=C(`menu`,a||i.prefixCls),U=Fp(H),[ee,te]=ple(H,U,!r),ne=Z(`${H}-${c}`,E,o),re=J.useMemo(()=>{var e,t;if(up(l)||Fx(l))return l||null;if(up(i.expandIcon)||Fx(i.expandIcon))return i.expandIcon||null;if(up(S==null?void 0:S.expandIcon)||Fx(S==null?void 0:S.expandIcon))return(S==null?void 0:S.expandIcon)||null;let n=(e=l==null?i==null?void 0:i.expandIcon:l)==null?S==null?void 0:S.expandIcon:e;return pm(n,{className:Z(`${H}-submenu-expand-icon`,J.isValidElement(n)?(t=n.props)==null?void 0:t.className:void 0)})},[l,i==null?void 0:i.expandIcon,S==null?void 0:S.expandIcon,H]),ie=J.useMemo(()=>({prefixCls:H,inlineCollapsed:F||!1,direction:T,firstLevel:!0,theme:c,mode:N,disableMenuItemTitleTooltip:u,tooltip:d,classNames:z,styles:B}),[H,F,T,u,c,N,z,B,d]);return J.createElement(Dx.Provider,{value:null},J.createElement(wx.Provider,{value:ie},J.createElement(fx,G(G({getPopupContainer:w,overflowedIndicator:J.createElement(Cx,null),overflowedIndicatorPopupClassName:Z(H,`${H}-${c}`,v),classNames:{list:z.list,listTitle:z.itemTitle},styles:{list:B.list,listTitle:B.itemTitle},mode:N,selectable:P,onClick:M},j),{},{inlineCollapsed:F,style:B.root,className:ne,prefixCls:H,direction:T,defaultMotions:V,expandIcon:re,ref:t,rootClassName:Z(m,ee,i.rootClassName,te,U,z.root),_internalComponents:hle}))))});K();var Ix=(0,J.forwardRef)((e,t)=>{let n=(0,J.useRef)(null),r=J.useContext(bx);return(0,J.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;(t=n.current)==null||t.focus(e)}})),J.createElement(gle,G(G({ref:n},e),r))});Ix.Item=Ex,Ix.SubMenu=Px,Ix.Divider=Tx,Ix.ItemGroup=ox;var _le=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}};K();var vle=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h,controlHeightLG:g}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`calc(100vh - ${Q(e.calc(g).mul(2.5).equal())})`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ih},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Rh},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Lh},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:zh},[`&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-right, + &${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-right, + &${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightTop, + &${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightTop, + &${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightBottom, + &${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:Bh},[`&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-left, + &${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-left, + &${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftTop, + &${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftTop, + &${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftBottom, + &${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:Hh},[`&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-right, + &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightTop, + &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:Vh},[`&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-left, + &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftTop, + &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:Uh}}},Xy(e,h),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:G(G({},td(e)),{},{[n]:G(G({padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary},od(e)),{},{"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${Q(l)} ${Q(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > a`]:{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:G(G({display:`flex`,margin:0,padding:`${Q(l)} ${Q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},od(e)),{},{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${Q(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}}),[`${n}-item-group-list`]:{margin:`0 ${Q(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Wh(e,`slide-up`),Wh(e,`slide-down`),Wh(e,`slide-left`),Wh(e,`slide-right`),Fh(e,`move-up`),Fh(e,`move-down`),Yh(e,`zoom-big`)]]},yle=dd(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=bl(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[vle(a),_le(a)]},e=>G(G({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Yy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),qy(e)),{resetStyle:!1});K();var Lx=J.forwardRef((e,t)=>{var n;let{menu:r,arrow:i,prefixCls:a,children:o,trigger:s,disabled:c,dropdownRender:l,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:h,onOpenChange:g,mouseEnterDelay:_=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:y=!0,placement:b=``,transitionName:x,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:T}=e,{getPrefixCls:E,direction:D,getPopupContainer:O,className:k,style:A,classNames:j,styles:M}=ko(`dropdown`),N=G(G({},e),{},{mouseEnterDelay:_,mouseLeaveDelay:v,autoAdjustOverflow:y}),[P,F]=xp([j,S],[M,C],{props:N}),I=G(G(G({},A),m),F.root),L=u||l;eo(`Dropdown`);let R=J.useMemo(()=>{let e=E();return x===void 0?b.startsWith(`top`)?`${e}-slide-down`:b.startsWith(`left`)?`${e}-slide-right`:b.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:x},[E,b,x]),z=J.useMemo(()=>b?b.includes(`Center`)?b.slice(0,b.indexOf(`Center`)):b:D===`rtl`?`bottomRight`:`bottomLeft`,[b,D]),B=E(`dropdown`,a),V=Fp(B),[H,U]=yle(B,V),[,ee]=$u(),te=J.Children.only(fp(o)?J.createElement(`span`,null,o):o),ne=gi(t,bi(te)),re=pm(te,{className:Z(`${B}-trigger`,{[`${B}-rtl`]:D===`rtl`},te.props.className),disabled:(n=te.props.disabled)==null?c:n,ref:ne}),ie=c?[]:s,ae=!!(ie!=null&&ie.includes(`contextMenu`)),[oe,se]=$r(!1,h),ce=qr(e=>{g==null||g(e,{source:`trigger`}),se(e)}),le=Z(f,p,H,U,V,k,P.root,{[`${B}-rtl`]:D===`rtl`}),ue=Qy({arrowPointAtCenter:lp(i)&&i.pointAtCenter,autoAdjustOverflow:y,offset:ee.marginXXS,arrowWidth:i?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),de=qr(()=>{r!=null&&r.selectable&&r!=null&&r.multiple||(g==null||g(!1,{source:`menu`}),se(!1))}),fe=()=>{let e=Ca(P,[`root`]),t=Ca(F,[`root`]),n;return r!=null&&r.items&&(n=J.createElement(Ix,G(G({},r),{},{classNames:G(G({},e),{},{subMenu:G({},e)}),styles:G(G({},t),{},{subMenu:G({},t)})}))),L&&(n=L(n)),n=J.Children.only(typeof n==`string`?J.createElement(`span`,null,n):n),J.createElement(Ox,{prefixCls:`${B}-menu`,rootClassName:Z(U,V),expandIcon:J.createElement(`span`,{className:`${B}-menu-submenu-arrow`},D===`rtl`?J.createElement(pb,{className:`${B}-menu-submenu-arrow-icon`}):J.createElement(tg,{className:`${B}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:de,validator:({mode:e})=>{}},n)},[pe,me]=Km(`Dropdown`,I.zIndex),he=J.createElement(Sce,G(G({alignPoint:ae},Ca(e,[`rootClassName`,`onOpenChange`])),{},{mouseEnterDelay:_,mouseLeaveDelay:v,visible:oe,builtinPlacements:ue,arrow:!!i,overlayClassName:le,prefixCls:B,getPopupContainer:d||O,transitionName:R,trigger:ie,overlay:fe,placement:z,onVisibleChange:ce,overlayStyle:G(G({},I),{},{zIndex:pe}),autoDestroy:T==null?w:T}),re);return pe&&(he=J.createElement(Um.Provider,{value:me},he)),he}),ble=Z_(Lx,`align`,void 0,`dropdown`,e=>e);Lx._InternalPanelDoNotUseOrYouWillBeFired=e=>J.createElement(ble,G({},e),J.createElement(`span`,null));var Rx=({children:e})=>{let{getPrefixCls:t}=J.useContext(Eo),n=t(`breadcrumb`),{classNames:r,styles:i}=J.useContext(db);return J.createElement(`li`,{className:Z(`${n}-separator`,r==null?void 0:r.separator),style:i==null?void 0:i.separator,"aria-hidden":`true`},e===``?e:e||`/`)};Rx.__ANT_BREADCRUMB_SEPARATOR=!0,K();var xle=[`className`,`onClick`];function Sle(e,t){if(!op(e.title))return null;let n=Object.keys(t).join(`|`);return lp(e.title)?e.title:String(e.title).replace(RegExp(`:(${n})`,`g`),(e,n)=>t[n]||e)}function zx(e,t,n,r){if(!op(n))return null;let{className:i,onClick:a}=t,o=G(G({},Oa(q(t,xle),{data:!0,aria:!0})),{},{onClick:a});return r===void 0?J.createElement(`span`,G(G({},o),{},{className:Z(`${e}-link`,i)}),n):J.createElement(`a`,G(G({},o),{},{className:Z(`${e}-link`,i),href:r}),n)}function Cle(e,t){return(n,r,i,a,o)=>t?t(n,r,i,a):zx(e,n,Sle(n,r),o)}K();var wle=[`items`],Tle=[`key`,`title`,`label`,`path`],Ele=[`prefixCls`,`children`,`href`],Bx=e=>{let{prefixCls:t,separator:n=`/`,children:r,menu:i,dropdownProps:a,href:o,dropdownIcon:s}=e,{classNames:c,styles:l}=J.useContext(db),u=(e=>{if(i){let n=G({},a);if(i){let e=i||{},{items:t}=e;n.menu=G(G({},q(e,wle)),{},{items:t==null?void 0:t.map((e,t)=>{let{key:n,title:r,label:i,path:a}=e,s=q(e,Tle),c=i==null?r:i;return a&&(c=J.createElement(`a`,{href:`${o}${a}`},c)),G(G({},s),{},{key:n==null?t:n,label:c})})})}return J.createElement(Lx,G({placement:`bottom`},n),J.createElement(`span`,{className:`${t}-overlay-link`},e,s))}return e})(r);return ap(u)?J.createElement(J.Fragment,null,J.createElement(`li`,{className:Z(`${t}-item`,c==null?void 0:c.item),style:l==null?void 0:l.item},u),n&&J.createElement(Rx,null,n)):null},Vx=e=>{let{prefixCls:t,children:n,href:r}=e,i=q(e,Ele),{getPrefixCls:a}=J.useContext(Eo),o=a(`breadcrumb`,t);return J.createElement(Bx,G(G({},i),{},{prefixCls:o}),zx(o,i,n,r))};Vx.__ANT_BREADCRUMB_ITEM=!0,K();var Dle=e=>{let{componentCls:t,iconCls:n,calc:r}=e;return{[t]:G(G({},td(e)),{},{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:`flex`,flexWrap:`wrap`,margin:0,padding:0,listStyle:`none`},[`${t}-item a`]:G({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Q(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:`inline-block`,marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},od(e)),[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${be(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},q8e=Br("Breadcrumb",e=>{const t=dr(e,{});return G8e(t)},e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));function Y8e(e){const o=e,{breadcrumbName:t,children:n}=o,r=Ze(o,["breadcrumbName","children"]),i=I({title:t},r);return n&&(i.menu={items:n.map(l=>{var c=l,{breadcrumbName:a}=c,s=Ze(c,["breadcrumbName"]);return te(I({},s),{title:a})})}),i}function X8e(e,t){return g.useMemo(()=>e||(t?t.map(Y8e):null),[e,t])}const Z8e=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},LE=e=>{var Z,W;const Y=e,{prefixCls:t,separator:n,style:r,className:i,rootClassName:o,routes:a,items:s,children:l,itemRender:c,params:u={},classNames:f,styles:d,dropdownIcon:A}=Y,h=Ze(Y,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params","classNames","styles","dropdownIcon"]),{getPrefixCls:p,direction:v,className:y,style:b,classNames:x,styles:C,separator:S,dropdownIcon:B}=or("breadcrumb"),E=(Z=n!=null?n:S)!=null?Z:"/",_=(W=A!=null?A:B)!=null?W:g.createElement(OE,null);let M;const R=p("breadcrumb",t),[T,L]=q8e(R),P=X8e(s,a),k=g.useMemo(()=>te(I({},e),{separator:E}),[e,E]),H=Ar(b),D=Ar(r),[U,j]=vr([x,f],[C,H,d,D],{props:k}),Q=W8e(R,c);if(P&&P.length>0){const J=[],ee=s||a;M=P.map((ne,re)=>{const{path:ue,key:de,type:se,menu:ce,onClick:ge,className:ie,style:le,separator:ve,dropdownProps:we}=ne,me=Z8e(u,ue);me!==void 0&&J.push(me);const Ee=de!=null?de:re;if(se==="separator")return g.createElement(u4,{key:Ee},ve);const Ce={},pe=re===P.length-1;ce&&(Ce.menu=ce);let{href:Oe}=ne;return J.length&&me!==void 0&&(Oe=`#/${J.join("/")}`),g.createElement(dae,te(I(I({key:Ee},Ce),Co(ne,{data:!0,aria:!0})),{className:ie,style:le,dropdownProps:we,dropdownIcon:_,href:Oe,separator:pe?"":E,onClick:ge,prefixCls:R}),Q(ne,u,ee,J,Oe))})}else if(l){const J=pa(l).length;M=pa(l).map((ee,ne)=>{if(!ee)return ee;const re=ne===J-1;return Ga(ee,{separator:re?"":E,key:ne})})}const K=Ae(R,y,{[`${R}-rtl`]:v==="rtl"},i,o,U.root,T,L),z=I({},j.root),V=g.useMemo(()=>({classNames:U,styles:j}),[U,j]);return g.createElement(LH.Provider,{value:V},g.createElement("nav",I({className:K,style:z},h),g.createElement("ol",null,M)))};LE.Item=Aae,LE.Separator=u4;var f4={exports:{}},J8e=f4.exports,hae;function eHe(){return hae||(hae=1,(function(e,t){(function(n,r){e.exports=r()})(J8e,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",d="quarter",A="year",h="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var H=["th","st","nd","rd"],D=k%100;return"["+k+(H[(D-20)%10]||H[D]||H[0])+"]"}},x=function(k,H,D){var U=String(k);return!U||U.length>=H?k:""+Array(H+1-U.length).join(D)+k},C={s:x,z:function(k){var H=-k.utcOffset(),D=Math.abs(H),U=Math.floor(D/60),j=D%60;return(H<=0?"+":"-")+x(U,2,"0")+":"+x(j,2,"0")},m:function k(H,D){if(H.date()1)return k(K[0])}else{var z=H.name;B[z]=H,j=z}return!U&&j&&(S=j),j||!U&&S},R=function(k,H){if(_(k))return k.clone();var D=typeof H=="object"?H:{};return D.date=k,D.args=arguments,new L(D)},T=C;T.l=M,T.i=_,T.w=function(k,H){return R(k,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var L=(function(){function k(D){this.$L=M(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[E]=!0}var H=k.prototype;return H.parse=function(D){this.$d=(function(U){var j=U.date,Q=U.utc;if(j===null)return new Date(NaN);if(T.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var K=j.match(v);if(K){var z=K[2]-1||0,V=(K[7]||"0").substring(0,3);return Q?new Date(Date.UTC(K[1],z,K[3]||1,K[4]||0,K[5]||0,K[6]||0,V)):new Date(K[1],z,K[3]||1,K[4]||0,K[5]||0,K[6]||0,V)}}return new Date(j)})(D),this.init()},H.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},H.$utils=function(){return T},H.isValid=function(){return this.$d.toString()!==p},H.isSame=function(D,U){var j=R(D);return this.startOf(U)<=j&&j<=this.endOf(U)},H.isAfter=function(D,U){return R(D)25){var u=a(this).startOf(r).add(1,r).date(c),f=a(this).endOf(n);if(u.isBefore(f))return 1}var d=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),A=this.diff(d,n,!0);return A<0?a(this).startOf("week").week():Math.ceil(A)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(h4)),h4.exports}var dHe=fHe();const AHe=_t(dHe);var p4={exports:{}},hHe=p4.exports,vae;function pHe(){return vae||(vae=1,(function(e,t){(function(n,r){e.exports=r()})(hHe,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),o=this.week(),a=this.year();return o===1&&i===11?a+1:i===0&&o>=52?a-1:a}}}))})(p4)),p4.exports}var gHe=pHe();const mHe=_t(gHe);var g4={exports:{}},vHe=g4.exports,yae;function yHe(){return yae||(yae=1,(function(e,t){(function(n,r){e.exports=r()})(vHe,(function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}}));return o.bind(this)(u)}}}))})(g4)),g4.exports}var bHe=yHe();const xHe=_t(bHe);var m4={exports:{}},wHe=m4.exports,bae;function CHe(){return bae||(bae=1,(function(e,t){(function(n,r){e.exports=r()})(wHe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),x=60*b[1]+(+b[2]||0);return x===0?0:b[0]==="+"?-x:x})(v)}],d=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},A=function(v,y){var b,x=l.meridiem;if(x){for(var C=1;C<=24;C+=1)if(v.indexOf(x(C,0,y))>-1){b=C>12;break}}else b=v===(y?"pm":"PM");return b},h={A:[s,function(v){this.afternoon=A(v,!1)}],a:[s,function(v){this.afternoon=A(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[s,function(v){var y=l.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var x=1;x<=31;x+=1)y(x).replace(/\[|\]/g,"")===v&&(this.day=x)}],w:[a,u("week")],ww:[o,u("week")],M:[a,u("month")],MM:[o,u("month")],MMM:[s,function(v){var y=d("months"),b=(d("monthsShort")||y.map((function(x){return x.slice(0,3)}))).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(v){var y=d("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function p(v){var y,b;y=v,b=l&&l.formats;for(var x=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(R,T,L){var P=L&&L.toUpperCase();return T||b[L]||n[L]||b[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,H,D){return H||D.slice(1)}))}))).match(r),C=x.length,S=0;S-1)return new Date((j==="X"?1e3:1)*U);var z=p(j)(U),V=z.year,Y=z.month,Z=z.day,W=z.hours,J=z.minutes,ee=z.seconds,ne=z.milliseconds,re=z.zone,ue=z.week,de=new Date,se=Z||(V||Y?1:de.getDate()),ce=V||de.getFullYear(),ge=0;V&&!Y||(ge=Y>0?Y-1:de.getMonth());var ie,le=W||0,ve=J||0,we=ee||0,me=ne||0;return re?new Date(Date.UTC(ce,ge,se,le,ve,we,me+60*re.offset*1e3)):Q?new Date(Date.UTC(ce,ge,se,le,ve,we,me)):(ie=new Date(ce,ge,se,le,ve,we,me),ue&&(ie=K(ie).week(ue).toDate()),ie)}catch(Ee){return new Date("")}})(B,M,E,b),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),L&&B!=this.format(M)&&(this.$d=new Date("")),l={}}else if(M instanceof Array)for(var k=M.length,H=1;H<=k;H+=1){_[1]=M[H-1];var D=b.apply(this,_);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}H===k&&(this.$d=new Date(""))}else C.call(this,S)}}}))})(m4)),m4.exports}var SHe=CHe();const EHe=_t(SHe);ga.extend(EHe),ga.extend(xHe),ga.extend(oHe),ga.extend(cHe),ga.extend(AHe),ga.extend(mHe),ga.extend((e,t)=>{const n=t.prototype,r=n.format;n.format=function(o){const a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});const BHe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Ov=e=>BHe[e]||e.split("_")[0],Ko=e=>!ga.isDayjs(e)||e instanceof ga?e:ga(e.valueOf()),OHe={getNow:()=>{const e=ga();return typeof e.tz=="function"?e.tz():e},getFixedDate:e=>ga(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>Ko(e).endOf("month"),getWeekDay:e=>{const t=Ko(e).locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Ko(e).year(),getMonth:e=>Ko(e).month(),getDate:e=>Ko(e).date(),getHour:e=>Ko(e).hour(),getMinute:e=>Ko(e).minute(),getSecond:e=>Ko(e).second(),getMillisecond:e=>Ko(e).millisecond(),addYear:(e,t)=>Ko(e).add(t,"year"),addMonth:(e,t)=>Ko(e).add(t,"month"),addDate:(e,t)=>Ko(e).add(t,"day"),setYear:(e,t)=>Ko(e).year(t),setMonth:(e,t)=>Ko(e).month(t),setDate:(e,t)=>Ko(e).date(t),setHour:(e,t)=>Ko(e).hour(t),setMinute:(e,t)=>Ko(e).minute(t),setSecond:(e,t)=>Ko(e).second(t),setMillisecond:(e,t)=>Ko(e).millisecond(t),isAfter:(e,t)=>Ko(e).isAfter(Ko(t)),isValidate:e=>Ko(e).isValid(),locale:{getWeekFirstDay:e=>ga().locale(Ov(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Ko(t).locale(Ov(e)).weekday(0),getWeek:(e,t)=>Ko(t).locale(Ov(e)).week(),getShortWeekDays:e=>ga().locale(Ov(e)).localeData().weekdaysMin(),getShortMonths:e=>ga().locale(Ov(e)).localeData().monthsShort(),format:(e,t,n)=>Ko(t).locale(Ov(e)).format(n),parse:(e,t,n)=>{const r=Ov(e);for(let i=0;i{v||d()}},a)}function nU(e,t,n="0"){let r=String(e);for(;r.length{e[i]!==void 0&&(n[i]=e[i])}),n}function wae(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function Cae(e,t,n){const r=n!==void 0?n:t[t.length-1],i=t.find(o=>e[o]);return r!==i?e[i]:void 0}function Sae(e){return v4(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function rU(e,t,n,r){const i=g.useMemo(()=>e||((a,s)=>{const l=a;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}),[e,n,t]);return g.useCallback((a,s)=>i(a,te(I({},s),{range:r})),[i,r])}function Eae(e,t,n=[]){const[r,i]=g.useState([!1,!1]),o=(s,l)=>{i(c=>FE(c,l,s))};return[g.useMemo(()=>r.map((s,l)=>{if(s)return!0;const c=e[l];return c?!!(!n[l]&&!c||c&&t(c,{activeIndex:l})):!1}),[e,r,t,n]),o]}function Bae(e,t,n,r,i){let o="";const a=[];return e&&a.push(i?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),r&&(o+=".SSS"),i&&(o+=" A"),o}function THe(e,t,n,r,i,o){const{fieldDateTimeFormat:a,fieldDateFormat:s,fieldTimeFormat:l,fieldMonthFormat:c,fieldYearFormat:u,fieldWeekFormat:f,fieldQuarterFormat:d,yearFormat:A,cellYearFormat:h,cellQuarterFormat:p,dayFormat:v,cellDateFormat:y}=e,b=Bae(t,n,r,i,o);return te(I({},e),{fieldDateTimeFormat:a||`YYYY-MM-DD ${b}`,fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||b,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:d||"YYYY-[Q]Q",yearFormat:A||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:p||"[Q]Q",cellDateFormat:y||v||"D"})}function Oae(e,t){const{showHour:n,showMinute:r,showSecond:i,showMillisecond:o,use12Hours:a}=t;return Be.useMemo(()=>THe(e,n,r,i,o,a),[e,n,r,i,o,a])}function kE(e,t,n){return n!=null?n:t.some(r=>e.includes(r))}const MHe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function IHe(e){const t=v4(e,MHe),{format:n,picker:r}=e;let i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i=="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function RHe(e){return e&&typeof e=="string"}function $ae(e,t,n,r){return[e,t,n,r].some(i=>i!==void 0)}function _ae(e,t,n,r,i){let o=t,a=n,s=r;if(!e&&!o&&!a&&!s&&!i)o=!0,a=!0,s=!0;else if(e){const l=[o,a,s].some(f=>f===!1),c=[o,a,s].some(f=>f===!0),u=l?!0:!c;o=o!=null?o:u,a=a!=null?a:u,s=s!=null?s:u}return[o,a,s,i]}function Tae(e){const{showTime:t}=e,[n,r]=IHe(e),i=t&&typeof t=="object"?t:{},o=I(I({defaultOpenValue:i.defaultOpenValue||i.defaultValue},n),i),{showMillisecond:a}=o;let{showHour:s,showMinute:l,showSecond:c}=o;const u=$ae(s,l,c,a);return[s,l,c]=_ae(u,s,l,c,a),[o,te(I({},o),{showHour:s,showMinute:l,showSecond:c,showMillisecond:a}),o.format,r]}function Mae(e,t,n,r,i){if(e==="datetime"||e==="time"){const a=r;let l=wae(e,i,null);const c=[t,n];for(let b=0;b{const r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function _v(e,t,n){return Wg(t,n,()=>e.getYear(t)===e.getYear(n))}function Iae(e,t){return Math.floor(e.getMonth(t)/3)+1}function PHe(e,t,n){return Wg(t,n,()=>_v(e,t,n)&&Iae(e,t)===Iae(e,n))}function aU(e,t,n){return Wg(t,n,()=>_v(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function sU(e,t,n){return Wg(t,n,()=>_v(e,t,n)&&aU(e,t,n)&&e.getDate(t)===e.getDate(n))}function Rae(e,t,n){return Wg(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function Nae(e,t,n){return Wg(t,n,()=>sU(e,t,n)&&Rae(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function DE(e,t,n,r){return Wg(n,r,()=>{const i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return _v(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function $l(e,t,n,r,i){switch(i){case"date":return sU(e,n,r);case"week":return DE(e,t.locale,n,r);case"month":return aU(e,n,r);case"quarter":return PHe(e,n,r);case"year":return _v(e,n,r);case"decade":return oU(e,n,r);case"time":return Rae(e,n,r);default:return Nae(e,n,r)}}function y4(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function b4(e,t,n,r,i){return $l(e,t,n,r,i)?!0:e.isAfter(n,r)}function LHe(e,t,n){const r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),o=t.getWeekDay(i);let a=t.addDate(i,r-o);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function _s(e,{generateConfig:t,locale:n,format:r}){return e?typeof r=="function"?r(e):t.locale.format(n.locale,e,r):""}function x4(e,t,n){let r=t;const i=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((a,s)=>{n?r=e[a](r,e[i[s]](n)):r=e[a](r,0)}),r}function FHe(e,t,n,r,i){return yn((a,s)=>!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!$l(e,t,r,a,s.type)||i&&e.isAfter(a,i)&&!$l(e,t,i,a,s.type)))}function kHe(e,t,n){return g.useMemo(()=>{const r=wae(e,t,n),i=$v(r),o=i[0],a=typeof o=="object"&&o.type==="mask"?o.format:null;return[i.map(s=>typeof s=="string"||typeof s=="function"?s:s.format),a]},[e,t,n])}function DHe(e,t,n){return typeof e[0]=="function"||n?!0:t}function HHe(e,t,n,r){return yn((o,a)=>{var l;const s=I({type:t},a);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){const c=a&&a.activeIndex===1?"end":"start",{disabledHours:u,disabledMinutes:f,disabledSeconds:d,disabledMilliseconds:A}=((l=r.disabledTime)==null?void 0:l.call(r,o,c,{from:s.from}))||{},{disabledHours:h,disabledMinutes:p,disabledSeconds:v}=r,y=u||h,b=f||p,x=d||v,C=e.getHour(o),S=e.getMinute(o),B=e.getSecond(o),E=e.getMillisecond(o);if(y&&y().includes(C)||b&&b(C).includes(S)||x&&x(C,S).includes(B)||A&&A(C,S,B).includes(E))return!0}return!1})}function w4(e,t=!1){return g.useMemo(()=>{const r=e&&$v(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t])}function Pae(e,t){const{generateConfig:n,locale:r,picker:i="date",prefixCls:o="rc-picker",previewValue:a="hover",styles:s={},classNames:l={},order:c=!0,components:u={},inputRender:f,allowClear:d,clearIcon:A,needConfirm:h,multiple:p,format:v,inputReadOnly:y,disabledDate:b,minDate:x,maxDate:C,showTime:S,value:B,defaultValue:E,pickerValue:_,defaultPickerValue:M}=e,R=w4(B),T=w4(E),L=w4(_),P=w4(M),k=i==="date"&&S?"datetime":i,H=k==="time"||k==="datetime",D=H||p,U=h!=null?h:H,[j,Q,K,z]=Tae(e),V=Oae(r,Q),Y=g.useMemo(()=>Mae(k,K,z,j,V),[k,K,z,j,V]),Z=g.useMemo(()=>I(te(I({},e),{previewValue:a,prefixCls:o,locale:V,picker:i,styles:s,classNames:l,order:c,components:I({input:f},u),clearIcon:NHe(o,d,A),showTime:Y,value:R,defaultValue:T,pickerValue:L,defaultPickerValue:P}),t==null?void 0:t()),[e]),[W,J]=kHe(k,V,v),ee=DHe(W,y,p),ne=FHe(n,r,b,x,C),re=HHe(n,i,ne,Y);return[g.useMemo(()=>te(I({},Z),{needConfirm:U,inputReadOnly:ee,disabledDate:ne}),[Z,U,ee,ne]),k,D,W,J,re]}function UHe(e,t,n){const[r,i]=Fr(t,e),[,o]=Be.useState({}),a=yn(d=>{i(d),o({})}),s=Be.useRef(e),l=Be.useRef(),c=()=>{Kn.cancel(l.current)},u=yn(()=>{a(s.current),n&&r!==s.current&&n(s.current)}),f=yn((d,A)=>{c(),s.current=d,d||A?u():l.current=Kn(u)});return Be.useEffect(()=>c,[]),[r,f]}function Lae(e,t,n=[],r){const i=n.every(l=>l)?!1:e,[o,a]=UHe(i,t||!1,r);function s(l,c={}){(!c.inherit||o)&&a(l,c.force)}return[o,s]}function Fae(e){const t=g.useRef();return g.useImperativeHandle(e,()=>{var n;return{nativeElement:(n=t.current)==null?void 0:n.nativeElement,focus:r=>{var i;(i=t.current)==null||i.focus(r)},blur:()=>{var r;(r=t.current)==null||r.blur()}}}),t}function kae(e,t){return g.useMemo(()=>e||(t?(ao(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([n,r])=>({label:n,value:r}))):[]),[e,t])}function lU(e,t,n=1){const r=g.useRef(t);r.current=t,DS(()=>{if(e)r.current(e);else{const i=Kn(()=>{r.current(e)},n);return()=>{Kn.cancel(i)}}},[e])}function Dae(e,t=[],n=!1){const[r,i]=g.useState(0),[o,a]=g.useState(!1),s=g.useRef([]),l=g.useRef(null),c=g.useRef(null),u=p=>{l.current=p},f=p=>l.current===p,d=p=>{a(p)},A=p=>(p&&(c.current=p),c.current),h=p=>{const v=s.current,y=new Set(v.filter(x=>p[x]||t[x])),b=v[v.length-1]===0?1:0;return y.size>=2||e[b]?null:b};return lU(o||n,()=>{o||(s.current=[],u(null))}),g.useEffect(()=>{o&&s.current.push(r)},[o,r]),[o,d,A,r,i,h,s.current,u,f]}function jHe(e,t,n,r,i,o){const a=n[n.length-1];return(l,c)=>{const[u,f]=e,d=te(I({},c),{from:Cae(e,n)});return a===1&&t[0]&&u&&!$l(r,i,u,l,d.type)&&r.isAfter(u,l)||a===0&&t[1]&&f&&!$l(r,i,f,l,d.type)&&r.isAfter(l,f)?!0:o==null?void 0:o(l,d)}}function HE(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}const cU=[];function Hae(e,t,n,r,i,o,a,s,l=cU,c=cU,u=cU,f,d,A){const h=a==="time",p=o||0,v=T=>{let L=e.getNow();return h&&(L=x4(e,L)),l[T]||n[T]||L},[y,b]=c,[x,C]=Fr(()=>v(0),y),[S,B]=Fr(()=>v(1),b),E=g.useMemo(()=>{const T=[x,S][p];return h?T:x4(e,T,u[p])},[h,x,S,p,e,u]),_=(T,L="panel")=>{const P=[C,B][p];P(T);const k=[x,S];k[p]=T,f&&(!$l(e,t,x,k[0],a)||!$l(e,t,S,k[1],a))&&f(k,{source:L,range:p===1?"end":"start",mode:r})},M=(T,L)=>{if(s){const k={date:"month",week:"month",month:"year",quarter:"year"}[a];if(k&&!$l(e,t,T,L,k))return HE(e,a,L,-1);if(a==="year"&&T){const H=Math.floor(e.getYear(T)/10),D=Math.floor(e.getYear(L)/10);if(H!==D)return HE(e,a,L,-1)}}return L},R=g.useRef(null);return ar(()=>{if(i&&!l[p]){let T=h?null:e.getNow();if(R.current!==null&&R.current!==p?T=[x,S][p^1]:n[p]?T=p===0?n[0]:M(n[0],n[1]):n[p^1]&&(T=n[p^1]),T){d&&e.isAfter(d,T)&&(T=d);const L=s?HE(e,a,T,1):T;A&&e.isAfter(L,A)&&(T=s?HE(e,a,A,-1):A),_(T,"reset")}}},[i,p,n[p]]),g.useEffect(()=>{i?R.current=p:R.current=null},[i,p]),ar(()=>{i&&l&&l[p]&&_(l[p],"reset")},[i,p]),[E,_]}function Uae(e,t){const n=g.useRef(e),[,r]=g.useState({}),i=a=>a&&t!==void 0?t:n.current;return[i,a=>{n.current=a,r({})},i(!0)]}const zHe=[];function jae(e,t,n){return[o=>o.map(a=>_s(a,{generateConfig:e,locale:t,format:n[0]})),(o,a)=>{const s=Math.max(o.length,a.length);let l=-1;for(let c=0;ct.isAfter(n,r)?1:-1)}function QHe(e){const[t,n]=Uae(e),r=yn(()=>{n(e)});return g.useEffect(()=>{r()},[e]),[t,n]}function Qae(e,t,n,r,i,o,a,s,l){const[c,u]=Fr(o,a),f=c||zHe,[d,A]=QHe(f),[h,p]=jae(e,t,n),v=yn(b=>{let x=[...b];if(r)for(let B=0;B<2;B+=1)x[B]=x[B]||null;else i&&(x=zae(x.filter(B=>B),e));const[C,S]=p(d(),x);if(!C&&(A(x),s)){const B=h(x);s(x,B,{range:S?"end":"start"})}});return[f,u,d,v,()=>{l&&l(d())}]}function Vae(e,t,n,r,i,o,a,s,l,c){const{generateConfig:u,locale:f,picker:d,onChange:A,allowEmpty:h,order:p}=e,v=o.some(M=>M)?!1:p,[y,b]=jae(u,f,a),[x,C]=Uae(t),S=yn(()=>{C(t)});g.useEffect(()=>{S()},[t]);const B=yn(M=>{const R=M===null;let T=[...M||x()];if(R){const K=Math.max(o.length,T.length);for(let z=0;z!V);A(R&&z?null:T,z?null:y(T))}}return Q}),E=yn((M,R)=>{const T=FE(x(),M,r()[M]);C(T),R&&B()}),_=!s&&!l;return lU(!_,()=>{_&&(B(),i(t),S())},2),[E,B]}function Kae(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function VHe(e,t,n,r,i,o){let a=e;function s(f,d,A){let h=o[f](a);const p=A.find(v=>v.value===h);if(!p||p.disabled){const v=A.filter(x=>!x.disabled),b=[...v].reverse().find(x=>x.value<=h)||v[0];b&&(h=b.value,a=o[d](a,h))}return h}const l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",i(l,c,u)),a}function C4(){return[]}function S4(e,t,n=1,r=!1,i=[],o=2){const a=[],s=n>=1?n|0:1;for(let l=e;l<=t;l+=s){const c=i.includes(l);(!c||!r)&&a.push({label:nU(l,o),value:l,disabled:c})}return a}function uU(e,t={},n){const{use12Hours:r,hourStep:i=1,minuteStep:o=1,secondStep:a=1,millisecondStep:s=100,hideDisabledOptions:l,disabledTime:c,disabledHours:u,disabledMinutes:f,disabledSeconds:d}=t||{},A=g.useMemo(()=>n||e.getNow(),[n,e]),h=g.useCallback(M=>{const R=(c==null?void 0:c(M))||{};return[R.disabledHours||u||C4,R.disabledMinutes||f||C4,R.disabledSeconds||d||C4,R.disabledMilliseconds||C4]},[c,u,f,d]),[p,v,y,b]=g.useMemo(()=>h(A),[A,h]),x=g.useCallback((M,R,T,L)=>{const P=S4(0,23,i,l,M());return[r?P.map(j=>te(I({},j),{label:nU(j.value%12||12,2)})):P,j=>S4(0,59,o,l,R(j)),(j,Q)=>S4(0,59,a,l,T(j,Q)),(j,Q,K)=>S4(0,999,s,l,L(j,Q,K),3)]},[l,i,r,s,o,a]),[C,S,B,E]=g.useMemo(()=>x(p,v,y,b),[x,p,v,y,b]);return[(M,R)=>{let T=()=>C,L=S,P=B,k=E;if(R){const[D,U,j,Q]=h(R),[K,z,V,Y]=x(D,U,j,Q);T=()=>K,L=z,P=V,k=Y}return VHe(M,T,L,P,k,e)},C,S,B,E]}function KHe(e){const{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:o,onSubmit:a,onNow:s,invalid:l,needConfirm:c,generateConfig:u,disabledDate:f}=e,{prefixCls:d,locale:A,button:h="button",classNames:p,styles:v}=g.useContext(Xu),y=u.getNow(),[b]=uU(u,o,y),x=r==null?void 0:r(t),C=f(y,{type:t}),S=()=>{if(!C){const T=b(y);s(T)}},B=`${d}-now`,E=`${B}-btn`,_=i&&g.createElement("li",{className:B},g.createElement("a",{className:Ae(E,C&&`${E}-disabled`),"aria-disabled":C,onClick:S},n==="date"?A.today:A.now)),M=c&&g.createElement("li",{className:`${d}-ok`},g.createElement(h,{disabled:l,onClick:a},A.ok)),R=(_||M)&&g.createElement("ul",{className:`${d}-ranges`},_,M);return!x&&!R?null:g.createElement("div",{className:Ae(`${d}-footer`,p.popup.footer),style:v.popup.footer},x&&g.createElement("div",{className:`${d}-footer-extra`},x),R)}function Wae(e,t,n){function r(i,o){const a=i.findIndex(l=>$l(e,t,l,o,n));if(a===-1)return[...i,o];const s=[...i];return s.splice(a,1),s}return r}const Gae=g.createContext(null),Tv=g.createContext(null);function E4(){return g.useContext(Tv)}function zb(e,t){const{prefixCls:n,generateConfig:r,locale:i,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,values:d,pickerValue:A,onSelect:h,prevIcon:p,nextIcon:v,superPrevIcon:y,superNextIcon:b}=e,{classNames:x,styles:C}=g.useContext(Gae),S=r.getNow();return[{now:S,values:d,pickerValue:A,prefixCls:n,classNames:x,styles:C,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:h,panelType:t,prevIcon:p,nextIcon:v,superPrevIcon:y,superNextIcon:b},S]}const Gg=g.createContext({});function UE(e){const{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:o,rowClassName:a,titleFormat:s,getCellText:l,getCellClassName:c,headerCells:u,cellSelection:f=!0,disabledDate:d}=e,{prefixCls:A,classNames:h,styles:p,panelType:v,now:y,disabledDate:b,cellRender:x,onHover:C,hoverValue:S,hoverRangeValue:B,generateConfig:E,values:_,locale:M,onSelect:R}=E4(),T=d||b,L=`${A}-cell`,{onCellDblClick:P}=g.useContext(Gg),k=D=>_.some(U=>U&&$l(E,M,D,U,v)),H=[];for(let D=0;D$l(E,M,z,ne,v)),[`${L}-in-range`]:Y&&!Z&&!W,[`${L}-range-start`]:Z,[`${L}-range-end`]:W,[`${A}-cell-selected`]:!B&&v!=="week"&&k(z)},c(z))),style:p.item,onClick:()=>{V||R(z)},onDoubleClick:()=>{!V&&P&&P()},onMouseEnter:()=>{V||C==null||C(z)},onMouseLeave:()=>{V||C==null||C(null)}},x?x(z,{prefixCls:A,originNode:ee,today:y,type:v,locale:M}):ee))}H.push(g.createElement("tr",{key:D,className:a==null?void 0:a(j)},U))}return g.createElement("div",{className:Ae(`${A}-body`,h.body),style:p.body},g.createElement("table",{className:Ae(`${A}-content`,h.content),style:p.content},u&&g.createElement("thead",null,g.createElement("tr",null,u)),g.createElement("tbody",null,H)))}const B4={visibility:"hidden"};function Qb(e){const{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:o,children:a}=e,{prefixCls:s,classNames:l,styles:c,prevIcon:u="‹",nextIcon:f="›",superPrevIcon:d="«",superNextIcon:A="»",minDate:h,maxDate:p,generateConfig:v,locale:y,pickerValue:b,panelType:x}=E4(),C=`${s}-header`,{hidePrev:S,hideNext:B,hideHeader:E}=g.useContext(Gg),_=g.useMemo(()=>{if(!h||!t||!o)return!1;const j=o(t(-1,b));return!b4(v,y,j,h,x)},[h,t,b,o,v,y,x]),M=g.useMemo(()=>{if(!h||!n||!o)return!1;const j=o(n(-1,b));return!b4(v,y,j,h,x)},[h,n,b,o,v,y,x]),R=g.useMemo(()=>{if(!p||!t||!i)return!1;const j=i(t(1,b));return!b4(v,y,p,j,x)},[p,t,b,i,v,y,x]),T=g.useMemo(()=>{if(!p||!n||!i)return!1;const j=i(n(1,b));return!b4(v,y,p,j,x)},[p,n,b,i,v,y,x]),L=j=>{t&&r(t(j,b))},P=j=>{n&&r(n(j,b))};if(E)return null;const k=`${C}-prev-btn`,H=`${C}-next-btn`,D=`${C}-super-prev-btn`,U=`${C}-super-next-btn`;return g.createElement("div",{className:Ae(C,l.header),style:c.header},n&&g.createElement("button",{type:"button","aria-label":y.previousYear,onClick:()=>P(-1),tabIndex:-1,className:Ae(D,M&&`${D}-disabled`),disabled:M,style:S?B4:{}},d),t&&g.createElement("button",{type:"button","aria-label":y.previousMonth,onClick:()=>L(-1),tabIndex:-1,className:Ae(k,_&&`${k}-disabled`),disabled:_,style:S?B4:{}},u),g.createElement("div",{className:`${C}-view`},a),t&&g.createElement("button",{type:"button","aria-label":y.nextMonth,onClick:()=>L(1),tabIndex:-1,className:Ae(H,R&&`${H}-disabled`),disabled:R,style:B?B4:{}},f),n&&g.createElement("button",{type:"button","aria-label":y.nextYear,onClick:()=>P(1),tabIndex:-1,className:Ae(U,T&&`${U}-disabled`),disabled:T,style:B?B4:{}},A))}function fU(){return fU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const j=c==null?void 0:c(U,{type:"week"});return g.createElement("td",{key:"week",className:Ae(h,`${h}-week`,{[`${h}-disabled`]:j}),onClick:()=>{j||u(U)},onMouseEnter:()=>{j||f==null||f(U)},onMouseLeave:()=>{j||f==null||f(null)}},g.createElement("div",{className:`${h}-inner`},i.locale.getWeek(r.locale,U)))}:null,_=[],M=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);E&&_.push(g.createElement("th",{key:"empty"},g.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},r.week)));for(let U=0;Ui.addDate(U,j),T=U=>_s(U,{locale:r,format:r.cellDateFormat,generateConfig:i}),L=U=>({[`${t}-cell-in-view`]:aU(i,U,o),[`${t}-cell-today`]:sU(i,U,y)}),P=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),k=g.createElement("button",{type:"button","aria-label":r.yearSelect,key:"year",onClick:()=>{s("year",o)},tabIndex:-1,className:`${t}-year-btn`},_s(o,{locale:r,format:r.yearFormat,generateConfig:i})),H=g.createElement("button",{type:"button","aria-label":r.monthSelect,key:"month",onClick:()=>{s("month",o)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?_s(o,{locale:r,format:r.monthFormat,generateConfig:i}):P[S]),D=r.monthBeforeYear?[H,k]:[k,H];return g.createElement(Tv.Provider,{value:v},g.createElement("div",{className:Ae(A,d&&`${A}-show-week`)},g.createElement(Qb,{offset:U=>i.addMonth(o,U),superOffset:U=>i.addYear(o,U),onChange:a,getStart:U=>i.setDate(U,1),getEnd:U=>{let j=i.setDate(U,1);return j=i.addMonth(j,1),i.addDate(j,-1)}},D),g.createElement(UE,fU({titleFormat:r.fieldDateFormat},e,{colNum:iU,rowNum:6,baseDate:C,headerCells:_,getCellDate:R,getCellText:T,getCellClassName:L,prefixColumn:E,cellSelection:!p}))))}const WHe=1/3;function GHe(e,t){const n=g.useRef(!1),r=g.useRef(null),i=g.useRef(null),o=()=>n.current,a=()=>{Kn.cancel(r.current),n.current=!1},s=g.useRef();return[yn(()=>{const u=e.current;if(i.current=null,s.current=0,u){const f=u.querySelector(`[data-value="${t}"]`),d=u.querySelector("li"),A=()=>{a(),n.current=!0,s.current+=1;const{scrollTop:h}=u,p=d.offsetTop,v=f.offsetTop,y=v-p;if(v===0&&f!==d||!hb(u)){s.current<=5&&(r.current=Kn(A));return}const b=h+(y-h)*WHe,x=Math.abs(y-b);if(i.current!==null&&i.current[t,n,r].join(",")).join(";")}function jE(e){const{units:t,value:n,optionalValue:r,type:i,onChange:o,onHover:a,onDblClick:s,changeOnScroll:l}=e,{prefixCls:c,cellRender:u,now:f,locale:d,classNames:A,styles:h}=E4(),p=`${c}-time-panel`,v=`${c}-time-panel-cell`,y=g.useRef(null),b=g.useRef(),x=()=>{clearTimeout(b.current)},[C,S,B]=GHe(y,n!=null?n:r);ar(()=>(C(),x(),()=>{S(),x()}),[n,r,YHe(t)]);const E=M=>{x();const R=M.target;!B()&&l&&(b.current=setTimeout(()=>{const T=y.current,L=T.querySelector("li").offsetTop,H=Array.from(T.querySelectorAll("li")).map(Q=>Q.offsetTop-L).map((Q,K)=>t[K].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Q-R.scrollTop)),D=Math.min(...H),U=H.findIndex(Q=>Q===D),j=t[U];j&&!j.disabled&&o(j.value)},qHe))},_=`${p}-column`;return g.createElement("ul",{className:_,ref:y,"data-type":i,onScroll:E},t.map(({label:M,value:R,disabled:T})=>{const L=g.createElement("div",{className:`${v}-inner`},M);return g.createElement("li",{key:R,style:h.item,className:Ae(v,A.item,{[`${v}-selected`]:n===R,[`${v}-disabled`]:T}),onClick:()=>{T||o(R)},onDoubleClick:()=>{!T&&s&&s()},onMouseEnter:()=>{a(R)},onMouseLeave:()=>{a(null)},"data-value":R},u?u(R,{prefixCls:c,originNode:L,today:f,type:"time",subType:i,locale:d}):L)}))}function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},pickerValue:p}=E4(),v=(u==null?void 0:u[0])||null,{onCellDblClick:y}=g.useContext(Gg),[b,x,C,S,B]=uU(f,e,v),E=Se=>{const Pe=v&&f[Se](v),Le=p&&f[Se](p);return[Pe,Le]},[_,M]=E("getHour"),[R,T]=E("getMinute"),[L,P]=E("getSecond"),[k,H]=E("getMillisecond"),D=_===null?null:qg(_)?"am":"pm",U=g.useMemo(()=>o?qg(_)?x.filter(Se=>qg(Se.value)):x.filter(Se=>!qg(Se.value)):x,[_,x,o]),j=(Se,Pe)=>{var He;const Le=Se.filter(Ne=>!Ne.disabled);return Pe!=null?Pe:(He=Le==null?void 0:Le[0])==null?void 0:He.value},Q=j(x,_),K=g.useMemo(()=>C(Q),[C,Q]),z=j(K,R),V=g.useMemo(()=>S(Q,z),[S,Q,z]),Y=j(V,L),Z=g.useMemo(()=>B(Q,z,Y),[B,Q,z,Y]),W=j(Z,k),J=g.useMemo(()=>{if(!o)return[];const Se=f.getNow(),Pe=f.setHour(Se,9),Le=f.setHour(Se,15),He=(Ne,at)=>{const{cellMeridiemFormat:Ue}=d;return Ue?_s(Ne,{generateConfig:f,locale:d,format:Ue}):at};return[{label:He(Pe,"AM"),value:"am",disabled:x.every(Ne=>Ne.disabled||!qg(Ne.value))},{label:He(Le,"PM"),value:"pm",disabled:x.every(Ne=>Ne.disabled||qg(Ne.value))}]},[x,o,f,d]),ee=Se=>{const Pe=b(Se);A(Pe)},ne=g.useMemo(()=>{let Se=v||p||f.getNow();const Pe=Le=>Le!=null;return Pe(_)?(Se=f.setHour(Se,_),Se=f.setMinute(Se,R),Se=f.setSecond(Se,L),Se=f.setMillisecond(Se,k)):Pe(M)?(Se=f.setHour(Se,M),Se=f.setMinute(Se,T),Se=f.setSecond(Se,P),Se=f.setMillisecond(Se,H)):Pe(Q)&&(Se=f.setHour(Se,Q),Se=f.setMinute(Se,z),Se=f.setSecond(Se,Y),Se=f.setMillisecond(Se,W)),Se},[v,p,_,R,L,k,Q,z,Y,W,M,T,P,H,f]),re=(Se,Pe)=>Se===null?null:f[Pe](ne,Se),ue=Se=>re(Se,"setHour"),de=Se=>re(Se,"setMinute"),se=Se=>re(Se,"setSecond"),ce=Se=>re(Se,"setMillisecond"),ge=Se=>Se===null?null:Se==="am"&&!qg(_)?f.setHour(ne,_-12):Se==="pm"&&qg(_)?f.setHour(ne,_+12):ne,ie=Se=>{ee(ue(Se))},le=Se=>{ee(de(Se))},ve=Se=>{ee(se(Se))},we=Se=>{ee(ce(Se))},me=Se=>{ee(ge(Se))},Ee=Se=>{h(ue(Se))},Ce=Se=>{h(de(Se))},pe=Se=>{h(se(Se))},Oe=Se=>{h(ce(Se))},xe=Se=>{h(ge(Se))},Me={onDblClick:y,changeOnScroll:a};return g.createElement("div",{className:Ae(`${s}-content`,l.content),style:c.content},t&&g.createElement(jE,Mv({units:U,value:_,optionalValue:M,type:"hour",onChange:ie,onHover:Ee},Me)),n&&g.createElement(jE,Mv({units:K,value:R,optionalValue:T,type:"minute",onChange:le,onHover:Ce},Me)),r&&g.createElement(jE,Mv({units:V,value:L,optionalValue:P,type:"second",onChange:ve,onHover:pe},Me)),i&&g.createElement(jE,Mv({units:Z,value:k,optionalValue:H,type:"millisecond",onChange:we,onHover:Oe},Me)),o&&g.createElement(jE,Mv({units:J,value:D,type:"meridiem",onChange:me,onHover:xe},Me)))}function qae(e){const{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:o}=e,{format:a}=o||{},s=`${t}-time-panel`,[l]=zb(e,"time");return g.createElement(Tv.Provider,{value:l},g.createElement("div",{className:Ae(s)},g.createElement(Qb,null,n?_s(n,{locale:r,format:a,generateConfig:i}):" "),g.createElement(XHe,o)))}function dU(){return dU=Object.assign?Object.assign.bind():function(e){for(var t=1;to?x4(n,A,o):x4(n,A,a),f=A=>{s==null||s(A&&u(A))},d=A=>{const h=u(A);i(c(h,h))};return g.createElement("div",{className:l},g.createElement(O4,dU({},e,{onSelect:d,onHover:f})),g.createElement(qae,e))}function AU(){return AU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const C=Math.floor(r.getYear(x)/100)*100;return r.setYear(x,C)},u=x=>{const C=c(x);return r.addYear(C,99)},f=c(i),d=u(i),A=r.addYear(f,-10),h=(x,C)=>r.addYear(x,C*10),p=x=>{const C=n.cellYearFormat,S=_s(x,{locale:n,format:C,generateConfig:r}),B=_s(r.addYear(x,9),{locale:n,format:C,generateConfig:r});return`${S}-${B}`},v=x=>({[`${t}-cell-in-view`]:oU(r,x,f)||oU(r,x,d)||y4(r,f,d,x)}),y=o?(x,C)=>{const S=r.setDate(x,1),B=r.setMonth(S,0),E=r.setYear(B,Math.floor(r.getYear(B)/10)*10),_=r.addYear(E,10),M=r.addDate(_,-1);return o(E,C)&&o(M,C)}:null,b=`${_s(f,{locale:n,format:n.yearFormat,generateConfig:r})}-${_s(d,{locale:n,format:n.yearFormat,generateConfig:r})}`;return g.createElement(Tv.Provider,{value:l},g.createElement("div",{className:s},g.createElement(Qb,{superOffset:x=>r.addYear(i,x*100),onChange:a,getStart:c,getEnd:u},b),g.createElement(UE,AU({},e,{disabledDate:y,colNum:3,rowNum:4,baseDate:A,getCellDate:h,getCellText:p,getCellClassName:v}))))}function hU(){return hU=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(y,b),A=y=>{const b=r.getMonth(y);return n.monthFormat?_s(y,{locale:n,format:n.monthFormat,generateConfig:r}):f[b]},h=()=>({[`${t}-cell-in-view`]:!0}),p=o?(y,b)=>{const x=r.setDate(y,1),C=r.setMonth(x,r.getMonth(x)+1),S=r.addDate(C,-1);return o(x,b)&&o(S,b)}:null,v=g.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:()=>{s("year")},tabIndex:-1,className:`${t}-year-btn`},_s(i,{locale:n,format:n.yearFormat,generateConfig:r}));return g.createElement(Tv.Provider,{value:c},g.createElement("div",{className:l},g.createElement(Qb,{superOffset:y=>r.addYear(i,y),onChange:a,getStart:y=>r.setMonth(y,0),getEnd:y=>r.setMonth(y,11)},v),g.createElement(UE,hU({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:d,getCellText:A,getCellClassName:h}))))}function pU(){return pU=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(h,p*3),f=h=>_s(h,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),d=()=>({[`${t}-cell-in-view`]:!0}),A=g.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:()=>{a("year")},tabIndex:-1,className:`${t}-year-btn`},_s(i,{locale:n,format:n.yearFormat,generateConfig:r}));return g.createElement(Tv.Provider,{value:l},g.createElement("div",{className:s},g.createElement(Qb,{superOffset:h=>r.addYear(i,h),onChange:o,getStart:h=>r.setMonth(h,0),getEnd:h=>r.setMonth(h,11)},A),g.createElement(UE,pU({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:c,getCellDate:u,getCellText:f,getCellClassName:d}))))}function gU(){return gU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const f={};if(a){const[d,A]=a,h=DE(n,s,d,u),p=DE(n,s,A,u);f[`${l}-range-start`]=h,f[`${l}-range-end`]=p,f[`${l}-range-hover`]=!h&&!p&&y4(n,d,A,u)}return o&&(f[`${l}-hover`]=o.some(d=>DE(n,s,u,d))),Ae(l,{[`${l}-selected`]:!a&&DE(n,s,i,u)},f)};return g.createElement(O4,gU({},e,{mode:"week",panelName:"week",rowClassName:c}))}function mU(){return mU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const S=Math.floor(r.getYear(C)/10)*10;return r.setYear(C,S)},f=C=>{const S=u(C);return r.addYear(S,9)},d=u(i),A=f(i),h=r.addYear(d,-1),p=(C,S)=>r.addYear(C,S),v=C=>_s(C,{locale:n,format:n.cellYearFormat,generateConfig:r}),y=C=>({[`${t}-cell-in-view`]:_v(r,C,d)||_v(r,C,A)||y4(r,d,A,C)}),b=o?(C,S)=>{const B=r.setMonth(C,0),E=r.setDate(B,1),_=r.addYear(E,1),M=r.addDate(_,-1);return o(E,S)&&o(M,S)}:null,x=g.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:()=>{s("decade")},tabIndex:-1,className:`${t}-decade-btn`},_s(d,{locale:n,format:n.yearFormat,generateConfig:r}),"-",_s(A,{locale:n,format:n.yearFormat,generateConfig:r}));return g.createElement(Tv.Provider,{value:c},g.createElement("div",{className:l},g.createElement(Qb,{superOffset:C=>r.addYear(i,C*10),onChange:a,getStart:u,getEnd:f},x),g.createElement(UE,mU({},e,{disabledDate:b,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:p,getCellText:v,getCellClassName:y}))))}function vU(){return vU=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:D.current}));const[U,j,Q,K]=Tae(e),z=Oae(i,j),V=x==="date"&&C?"datetime":x,Y=g.useMemo(()=>Mae(V,Q,K,U,z),[V,Q,K,U,z]),Z=o.getNow(),[W,J]=Fr(x||"date",y),ee=W==="date"&&Y?"datetime":W,ne=Wae(o,i,V),[re,ue]=Fr(u,f),de=g.useMemo(()=>{const Le=$v(re).filter(He=>He);return c?Le:Le.slice(0,1)},[re,c]),se=yn(Le=>{ue(Le),d&&(Le===null||de.length!==Le.length||de.some((He,Ne)=>!$l(o,i,He,Le[Ne],V)))&&(d==null||d(c?Le:Le[0]))}),ce=yn(Le=>{if(A==null||A(Le),W===x){const He=c?ne(de,Le):[Le];se(He)}}),[ge,ie]=Fr(h||de[0]||Z,p);g.useEffect(()=>{de[0]&&!p&&ie(de[0])},[de[0]]);const le=(Le,He)=>{b==null||b(Le||p,He||W)},ve=(Le,He=!1)=>{ie(Le),v==null||v(Le),He&&le(Le)},we=(Le,He)=>{J(Le),He&&ve(He),le(He,Le)},me=Le=>{if(ce(Le),ve(Le),W!==x){const He=["decade","year"],Ne=[...He,"month"],Ue={quarter:[...He,"quarter"],week:[...Ne,"week"],date:[...Ne,"date"]}[x]||Ne,et=Ue.indexOf(W),We=Ue[et+1];We&&we(We,Le)}},Ee=g.useMemo(()=>{let Le,He;return Array.isArray(B)?[Le,He]=B:Le=B,!Le&&!He?null:(Le=Le||He,He=He||Le,o.isAfter(Le,He)?[He,Le]:[Le,He])},[B,o]),Ce=rU(E,_,M),pe=R[ee]||iUe[ee]||O4,Oe=g.useMemo(()=>{var Le,He,Ne,at;return{classNames:(He=(Le=P==null?void 0:P.popup)!=null?Le:n)!=null?He:{},styles:(at=(Ne=k==null?void 0:k.popup)!=null?Ne:r)!=null?at:{}}},[P,n,k,r]),xe=g.useContext(Gg),Me=g.useMemo(()=>te(I({},xe),{hideHeader:T}),[xe,T]),Se=`${H}-panel`,Pe=v4(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return g.createElement(Gae.Provider,{value:Oe},g.createElement(Gg.Provider,{value:Me},g.createElement("div",{ref:D,tabIndex:l,className:Ae(Se,{[`${Se}-rtl`]:a==="rtl"})},g.createElement(pe,vU({},Pe,{showTime:Y,prefixCls:H,locale:z,generateConfig:o,onModeChange:we,pickerValue:ge,onPickerValueChange:Le=>{ve(Le,!0)},value:de[0],onSelect:me,values:de,cellRender:Ce,hoverRangeValue:Ee,hoverValue:S})))))}const yU=g.memo(g.forwardRef(oUe));function bU(){return bU=Object.assign?Object.assign.bind():function(e){for(var t=1;tHE(u,t,y,b),[u,t]),d=g.useMemo(()=>f(r,1),[r,f]),A=y=>{i(f(y,-1))},h={onCellDblClick:()=>{o&&a()}},p=t==="time",v=te(I({},e),{hoverValue:null,hoverRangeValue:null,hideHeader:p});return s?v.hoverRangeValue=l:v.hoverValue=l,n?g.createElement("div",{className:`${c}-panels`},g.createElement(Gg.Provider,{value:te(I({},h),{hideNext:!0})},g.createElement(yU,v)),g.createElement(Gg.Provider,{value:te(I({},h),{hidePrev:!0})},g.createElement(yU,bU({},v,{pickerValue:d,onPickerValueChange:A})))):g.createElement(Gg.Provider,{value:I({},h)},g.createElement(yU,v))}function Yae(e){return typeof e=="function"?e():e}function sUe(e){const{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?g.createElement("div",{className:`${t}-presets`},g.createElement("ul",null,n.map(({label:o,value:a},s)=>g.createElement("li",{key:s,onClick:()=>{r(Yae(a))},onMouseEnter:()=>{i(Yae(a))},onMouseLeave:()=>{i(null)}},o)))):null}function $4(){return $4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{we.width&&P(we.width)},[Q,K,z]=s,[V,Y]=g.useState(0);g.useEffect(()=>{Y(10)},[Q]),g.useEffect(()=>{var we;if(o&&T.current){const me=((we=R.current)==null?void 0:we.offsetWidth)||0,Ee=T.current.getBoundingClientRect();if(!Ee.height||Ee.right<0){Y(pe=>Math.max(0,pe-1));return}const Ce=(M?K-me:Q)-Ee.left;if(U(Ce),L&&Lme)}const W=g.useMemo(()=>Z($v(p)),[p]),J=r==="time"&&!W.length,ee=g.useMemo(()=>J?Z([b]):W,[J,W,b]),ne=J?b:W,re=g.useMemo(()=>ee.length?ee.some(we=>y(we)):!0,[ee,y]),ue=()=>{J&&v(b),x(),C()};let de=g.createElement("div",{className:`${E}-panel-layout`},g.createElement(sUe,{prefixCls:E,presets:l,onClick:u,onHover:c}),g.createElement("div",null,g.createElement(aUe,$4({},e,{value:ne})),g.createElement(KHe,$4({},e,{showNow:a?!1:i,invalid:re,onSubmit:ue}))));t&&(de=t(de));const se=`${_}-container`,ce="marginLeft",ge="marginRight";let ie=g.createElement("div",{onMouseDown:A,tabIndex:-1,className:Ae(se,`${E}-${n}-panel-container`,(le=S==null?void 0:S.popup)==null?void 0:le.container),style:I({[M?ge:ce]:k,[M?ce:ge]:"auto"},(ve=B==null?void 0:B.popup)==null?void 0:ve.container),onFocus:f,onBlur:d},de);return o&&(ie=g.createElement("div",{onMouseDown:A,ref:T,className:Ae(`${E}-range-wrapper`,`${E}-${r}-range-wrapper`)},g.createElement("div",{ref:R,className:`${E}-range-arrow`,style:{left:D}}),g.createElement(Bl,{onResize:j},ie))),ie}function Zae(e,t){const{format:n,maskFormat:r,generateConfig:i,locale:o,preserveInvalidOnBlur:a,inputReadOnly:s,required:l,"aria-required":c,onSubmit:u,onFocus:f,onBlur:d,onInputChange:A,onInvalid:h,open:p,onOpenChange:v,onKeyDown:y,onChange:b,activeHelp:x,name:C,autoComplete:S,id:B,value:E,invalid:_,placeholder:M,disabled:R,activeIndex:T,allHelp:L,picker:P}=e,k=(z,V)=>{const Y=i.locale.parse(o.locale,z,[V]);return Y&&i.isValidate(Y)?Y:null},H=n[0],D=g.useCallback(z=>_s(z,{locale:o,format:H,generateConfig:i}),[o,i,H]),U=g.useMemo(()=>E.map(D),[E,D]),j=g.useMemo(()=>{const z=P==="time"?8:10,V=typeof H=="function"?H(i.getNow()).length:H.length;return Math.max(z,V)+2},[H,P,i]),Q=z=>{for(let V=0;V{function V(W){return z!==void 0?W[z]:W}const Y=Co(e,{aria:!0,data:!0}),Z=I(te(I({},Y),{format:r,validateFormat:W=>!!Q(W),preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:C,autoComplete:S,size:j,id:V(B),value:V(U)||"",invalid:V(_),placeholder:V(M),active:T===z,helped:L||x&&T===z,disabled:V(R),onFocus:W=>{f(W,z)},onBlur:W=>{d(W,z)},onSubmit:u,onChange:W=>{A();const J=Q(W);if(J){h(!1,z),b(J,z);return}h(!!W,z)},onHelp:()=>{v(!0,{index:z})},onKeyDown:W=>{let J=!1;if(y==null||y(W,()=>{J=!0}),!W.defaultPrevented&&!J)switch(W.key){case"Escape":v(!1,{index:z});break;case"Enter":p||v(!0);break}}}),t==null?void 0:t({valueTexts:U}));return Object.keys(Z).forEach(W=>{Z[W]===void 0&&delete Z[W]}),Z},D]}const lUe=["onMouseEnter","onMouseLeave"];function Jae(e){return g.useMemo(()=>v4(e,lUe),[e])}function xU(){return xU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c.preventDefault()},onClick:c=>{c.stopPropagation(),t()}}),e)}const EU=["YYYY","MM","DD","HH","mm","ss","SSS"],ese="顧";class cUe{constructor(t){ke(this,"format");ke(this,"maskFormat");ke(this,"cells");ke(this,"maskCells");this.format=t;const n=EU.map(s=>`(${s})`).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,s=>ese.repeat(s.length));const i=new RegExp(`(${EU.join("|")})`),o=(t.split(i)||[]).filter(s=>s);let a=0;this.cells=o.map(s=>{const l=EU.includes(s),c=a,u=a+s.length;return a=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(s=>s.mask)}getSelection(t){const{start:n,end:r}=this.maskCells[t]||{};return[n||0,r||0]}match(t){for(let n=0;n=o&&t<=a)return i;const s=Math.min(Math.abs(t-o),Math.abs(t-a));s{const Ce=e,{className:n,active:r,showActiveCls:i=!0,suffixIcon:o,format:a,validateFormat:s,onChange:l,onInput:c,helped:u,onHelp:f,onSubmit:d,onKeyDown:A,preserveInvalidOnBlur:h=!1,invalid:p,clearIcon:v}=Ce,y=Ze(Ce,["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"]),{value:b,onFocus:x,onBlur:C,onMouseUp:S}=e,{prefixCls:B,input:E="input",classNames:_,styles:M}=g.useContext(Xu),R=`${B}-input`,[T,L]=g.useState(!1),[P,k]=g.useState(b),[H,D]=g.useState(""),[U,j]=g.useState(null),[Q,K]=g.useState(null),z=P||"";g.useEffect(()=>{k(b)},[b]);const V=g.useRef(null),Y=g.useRef(null),Z=g.useRef(!1);g.useImperativeHandle(t,()=>({nativeElement:V.current,inputElement:Y.current,focus:pe=>{Y.current.focus(pe)},blur:()=>{Y.current.blur()}}));const W=g.useMemo(()=>new cUe(a||""),[a]),[J,ee]=g.useMemo(()=>u?[0,0]:W.getSelection(U),[W,U,u]),ne=pe=>{pe&&pe!==a&&pe!==b&&f()},re=yn(pe=>{s(pe)&&l(pe),k(pe),ne(pe)}),ue=pe=>{if(!a){const Oe=pe.target.value;ne(Oe),k(Oe),l(Oe)}},de=pe=>{if(Z.current){pe.preventDefault();return}const Oe=pe.clipboardData.getData("text");s(Oe)&&re(Oe)},se=()=>{Z.current=!0},ce=pe=>{const{selectionStart:Oe}=pe.target,xe=W.getMaskCellIndex(Oe);j(xe),K({}),S==null||S(pe),Z.current=!1},ge=pe=>{L(!0),j(0),D(""),x(pe)},ie=pe=>{C(pe)},le=pe=>{L(!1),ie(pe)};lU(r,()=>{!r&&!h&&k(b)});const ve=pe=>{pe.key==="Enter"&&s(z)&&d(),A==null||A(pe)},we=pe=>{if(Z.current){pe.preventDefault();return}ve(pe);const{key:Oe}=pe;let xe=null,Me=null;const Se=ee-J,Pe=a.slice(J,ee),Le=Ne=>{j(at=>{let Ue=at+Ne;return Ue=Math.max(Ue,0),Ue=Math.min(Ue,W.size()-1),Ue})},He=Ne=>{const[at,Ue,et]=uUe(Pe),We=z.slice(J,ee),Je=Number(We);if(isNaN(Je))return String(et||(Ne>0?at:Ue));const dt=Je+Ne,wt=Ue-at+1;return String(at+(wt+dt-at)%wt)};switch(Oe){case"Backspace":case"Delete":xe="",Me=Pe;break;case"ArrowLeft":xe="",Le(-1);break;case"ArrowRight":xe="",Le(1);break;case"ArrowUp":xe="",Me=He(1);break;case"ArrowDown":xe="",Me=He(-1);break;default:isNaN(Number(Oe))||(xe=H+Oe,Me=xe);break}if(xe!==null&&(D(xe),xe.length>=Se&&(Le(1),D(""))),Me!==null){const Ne=z.slice(0,J)+nU(Me,Se)+z.slice(ee);re(Ne.slice(0,a.length))}K({})},me=g.useRef();ar(()=>{if(!(!T||!a||Z.current)){if(!W.match(z)){re(a);return}return Y.current.setSelectionRange(J,ee),me.current=Kn(()=>{Y.current.setSelectionRange(J,ee)}),()=>{Kn.cancel(me.current)}}},[W,a,T,z,U,J,ee,Q,re]);const Ee=a?{onFocus:ge,onBlur:le,onKeyDown:we,onMouseDown:se,onMouseUp:ce,onPaste:de}:{};return g.createElement("div",{ref:V,className:Ae(R,{[`${R}-active`]:r&&i,[`${R}-placeholder`]:u},n)},g.createElement(E,BU({ref:Y,"aria-invalid":p,autoComplete:"off"},y,{onKeyDown:ve,onBlur:ie},Ee,{value:z,onChange:ue,className:_.input,style:M.input})),g.createElement(wU,{icon:o}),v)});function zE(){return zE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof n=="string")return[n];const Me=n||{};return[Me.start,Me.end]},[n]),de=g.useRef(),se=g.useRef(),ce=g.useRef(),ge=Me=>{var Se;return(Se=[se,ce][Me])==null?void 0:Se.current};g.useImperativeHandle(t,()=>({nativeElement:de.current,focus:Me=>{var Pe,Le;if(typeof Me=="object"){const Se=Me||{},{index:He=0}=Se,Ne=Ze(Se,["index"]);(Pe=ge(He))==null||Pe.focus(Ne)}else(Le=ge(Me!=null?Me:0))==null||Le.focus()},blur:()=>{var Me,Se;(Me=ge(0))==null||Me.blur(),(Se=ge(1))==null||Se.blur()}}));const ie=Jae(W),le=g.useMemo(()=>Array.isArray(v)?v:[v,v],[v]),[ve]=Zae(te(I({},e),{id:ue,placeholder:le})),[we,me]=g.useState({position:"absolute",width:0}),Ee=yn(()=>{const Me=ge(s);if(Me){const Se=Me.nativeElement.getBoundingClientRect(),Pe=de.current.getBoundingClientRect(),Le=Se.left-Pe.left;me(He=>te(I({},He),{width:Se.width,left:Le})),j([Se.left,Se.right,Pe.width])}});g.useEffect(()=>{Ee()},[s]);const Ce=i&&(S[0]&&!P[0]||S[1]&&!P[1]),pe=Y&&!P[0],Oe=Y&&!pe&&!P[1];return g.createElement(Bl,{onResize:Ee},g.createElement("div",zE({},ie,{className:Ae(ee,`${ee}-range`,{[`${ee}-focused`]:u,[`${ee}-disabled`]:P.every(Me=>Me),[`${ee}-invalid`]:k.some(Me=>Me),[`${ee}-rtl`]:J},y),style:b,ref:de,onClick:x,onMouseDown:Me=>{const{target:Se}=Me;Se!==se.current.inputElement&&Se!==ce.current.inputElement&&Me.preventDefault(),K==null||K(Me)}}),r&&g.createElement("div",{className:Ae(`${ee}-prefix`,ne.prefix),style:re.prefix},r),g.createElement(OU,zE({ref:se},ve(0),{className:`${ee}-input-start`,autoFocus:pe,tabIndex:Z,"date-range":"start"})),g.createElement("div",{className:`${ee}-range-separator`},a),g.createElement(OU,zE({ref:ce},ve(1),{className:`${ee}-input-end`,autoFocus:Oe,tabIndex:Z,"date-range":"end"})),g.createElement("div",{className:`${ee}-active-bar`,style:we}),g.createElement(wU,{icon:o}),Ce&&g.createElement(SU,{icon:i,onClear:C})))}const dUe=g.forwardRef(fUe);function tse(e,t){return g.useMemo(()=>{const n=te(I({},e),{popup:(e==null?void 0:e.popup)||{}}),r=te(I({},t),{popup:(t==null?void 0:t.popup)||{}});return[n,r]},[e,t])}function QE(){return QE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{disabled:Dt,allowEmpty:xn}=e,on=nse(Dt,!1),Nn=nse(xn,!1);return{disabled:on,allowEmpty:Nn}}),{prefixCls:l,rootClassName:c,styles:u,classNames:f,previewValue:d,defaultValue:A,value:h,needConfirm:p,onClear:v,onKeyDown:y,disabled:b,allowEmpty:x,disabledDate:C,minDate:S,maxDate:B,defaultOpen:E,open:_,onOpenChange:M,locale:R,generateConfig:T,picker:L,showNow:P,showToday:k,showTime:H,mode:D,onPanelChange:U,onCalendarChange:j,onOk:Q,defaultPickerValue:K,pickerValue:z,onPickerValueChange:V,inputReadOnly:Y,suffixIcon:Z,onFocus:W,onBlur:J,presets:ee,ranges:ne,components:re,cellRender:ue,dateRender:de,monthCellRender:se,onClick:ce}=n,ge=Fae(t),[ie,le]=tse(f,u),[ve,we]=Lae(_,E,b,M),me=(Dt,xn)=>{(b.some(on=>!on)||!Dt)&&we(Dt,xn)},[Ee,Ce,pe,Oe,xe]=Qae(T,R,o,!0,!1,A,h,j,Q),Me=pe(),[Se,Pe,Le,He,Ne,at,Ue,et,We]=Dae(b,x,ve),Je=(Dt,xn)=>{Pe(!0),W==null||W(Dt,{range:_4(xn!=null?xn:He)})},dt=(Dt,xn)=>{Pe(!1),J==null||J(Dt,{range:_4(xn!=null?xn:He)})},wt=g.useMemo(()=>{if(!H)return null;const{disabledTime:Dt}=H,xn=Dt?on=>{const Nn=_4(He),Wr=Cae(Me,Ue,He);return Dt(on,Nn,{from:Wr})}:void 0;return te(I({},H),{disabledTime:xn})},[H,He,Me,Ue]),[Bt,qt]=Fr([L,L],D),jt=Bt[He]||L,nn=jt==="date"&&wt?"datetime":jt,Jt=nn===L&&nn!=="time",Ot=Kae(L,jt,P,k,!0),[sn,Vt]=Vae(n,Ee,Ce,pe,Oe,b,o,Se,ve,s),xt=jHe(Me,b,Ue,T,R,C),[qe,it]=Eae(Me,s,x),[Pt,De]=Hae(T,R,Me,Bt,ve,He,r,Jt,K,z,wt==null?void 0:wt.defaultOpenValue,V,S,B),ze=yn((Dt,xn,on)=>{const Nn=FE(Bt,He,xn);if((Nn[0]!==Bt[0]||Nn[1]!==Bt[1])&&qt(Nn),U&&on!==!1){const Wr=[...Me];Dt&&(Wr[He]=Dt),U(Wr,Nn)}}),bt=(Dt,xn)=>FE(Me,xn,Dt),lt=(Dt,xn)=>{let on=Me;Dt&&(on=bt(Dt,He)),et(He);const Nn=at(on);Oe(on),sn(He,Nn===null),Nn===null?me(!1,{force:!0}):xn||ge.current.focus({index:Nn})},At=Dt=>{var on;const xn=Dt.target.getRootNode();if(!ge.current.nativeElement.contains((on=xn.activeElement)!=null?on:document.activeElement)){const Nn=b.findIndex(Wr=>!Wr);Nn>=0&&ge.current.focus({index:Nn})}me(!0),ce==null||ce(Dt)},ut=()=>{Vt(null),me(!1,{force:!0}),v==null||v()},[ft,Kt]=g.useState(null),[An,pn]=g.useState(null),bn=g.useMemo(()=>An||Me,[Me,An]);g.useEffect(()=>{ve||pn(null)},[ve]);const[Sn,Tn]=g.useState([0,0,0]),lr=(Dt,xn)=>{d==="hover"&&(pn(Dt),Kt(xn))},$n=kae(ee,ne),Fn=Dt=>{lr(Dt,"preset")},$t=Dt=>{Vt(Dt)&&(Le("preset-click"),me(!1,{force:!0}))},Ie=Dt=>{lt(Dt)},Ke=Dt=>{lr(Dt?bt(Dt,He):null,"cell")},nt=Dt=>{me(!0),Je(Dt)},ht=()=>{Le("panel")},Xt=Dt=>{const xn=FE(Me,He,Dt);Oe(xn),!p&&!i&&r===nn&<(Dt)},kt=()=>{me(!1)},mn=rU(ue,de,se,_4(He)),Rt=Me[He]||null,tn=yn(Dt=>s(Dt,{activeIndex:He})),cn=g.useMemo(()=>{const Dt=Co(n,!1);return ti(n,[...Object.keys(Dt),"onChange","onCalendarChange","onClear","style","className","onPanelChange","disabledTime","classNames","styles"])},[n]),gn=g.createElement(Xae,QE({},cn,{showNow:Ot,showTime:wt,range:!0,multiplePanel:Jt,activeInfo:Sn,disabledDate:xt,onFocus:nt,onBlur:dt,onPanelMouseDown:ht,picker:L,mode:jt,internalMode:nn,onPanelChange:ze,format:a,value:Rt,isInvalid:tn,onChange:null,onSelect:Xt,pickerValue:Pt,defaultOpenValue:$v(H==null?void 0:H.defaultOpenValue)[He],onPickerValueChange:De,hoverValue:bn,onHover:Ke,needConfirm:p,onSubmit:lt,onOk:xe,presets:$n,onPresetHover:Fn,onPresetSubmit:$t,onNow:Ie,cellRender:mn,classNames:ie,styles:le})),Zt=(Dt,xn)=>{const on=bt(Dt,xn);Oe(on)},_n=()=>{Le("input")},Wt=(Dt,xn)=>{const on=Ue.length,Nn=Ue[on-1];if(on&&Nn!==xn&&p&&!x[Nn]&&!We(Nn)&&Me[Nn]){ge.current.focus({index:Nn});return}Le("input"),me(!0,{inherit:!0}),He!==xn&&ve&&!p&&i&<(null,!0),Ne(xn),Je(Dt,xn)},Mt=(Dt,xn)=>{if(me(!1),!p&&Le()==="input"){const on=at(Me);sn(He,on===null)}dt(Dt,xn)},vn=(Dt,xn)=>{Dt.key==="Tab"&<(null,!0),y==null||y(Dt,xn)},In=g.useMemo(()=>({prefixCls:l,locale:R,generateConfig:T,button:re.button,input:re.input,classNames:ie,styles:le}),[l,R,T,re.button,re.input,ie,le]);return ar(()=>{ve&&He!==void 0&&ze(null,L,!1)},[ve,He,L]),ar(()=>{const Dt=Le();!ve&&Dt==="input"&&(me(!1),lt(null,!0)),!ve&&i&&!p&&Dt==="panel"&&(me(!0),lt())},[ve]),g.createElement(Xu.Provider,{value:In},g.createElement(xae,QE({},Sae(n),{popupElement:gn,popupStyle:le.popup.root,popupClassName:Ae(c,ie.popup.root),visible:ve,onClose:kt,range:!0}),g.createElement(dUe,QE({},n,{ref:ge,className:Ae(n.className,c,ie.root),style:I(I({},le.root),n.style),suffixIcon:Z,activeIndex:Se||ve?He:null,activeHelp:!!An,allHelp:!!An&&ft==="preset",focused:Se,onFocus:Wt,onBlur:Mt,onKeyDown:vn,onSubmit:lt,value:bn,maskFormat:a,onChange:Zt,onInputChange:_n,format:o,inputReadOnly:Y,disabled:b,open:ve,onOpenChange:me,onClick:At,onClear:ut,invalid:qe,onInvalid:it,onActiveInfo:Tn}))))}const hUe=g.forwardRef(AUe);function pUe(e){const{prefixCls:t,value:n,onRemove:r,removeIcon:i="×",formatDate:o,disabled:a,maxTagCount:s,tagRender:l,placeholder:c}=e,u=`${t}-selector`,f=`${t}-selection`,d=`${f}-overflow`;function A(v,y){return g.createElement("span",{className:Ae(`${f}-item`),title:typeof v=="string"?v:null},g.createElement("span",{className:`${f}-item-content`},v),!a&&y&&g.createElement("span",{onMouseDown:b=>{b.preventDefault()},onClick:y,className:`${f}-item-remove`},i))}function h(v){const y=o(v),b=!a,x=C=>{C&&C.stopPropagation(),a||r(v)};return l?l({label:y,value:v,disabled:!!a,closable:b,onClose:x}):A(y,x)}function p(v){const y=`+ ${v.length} ...`;return A(y)}return g.createElement("div",{className:u},g.createElement(gA,{prefixCls:d,data:n,renderItem:h,renderRest:p,itemKey:v=>o(v),maxCount:s}),!n.length&&g.createElement("span",{className:`${t}-selection-placeholder`},c))}function T4(){return T4=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:se.current,focus:pe=>{var Oe;(Oe=ce.current)==null||Oe.focus(pe)},blur:()=>{var pe;(pe=ce.current)==null||pe.blur()}}));const ge=Jae(ee),ie=pe=>{B([pe])},le=pe=>{const Oe=S.filter(xe=>xe&&!$l(h,A,xe,pe,C));B(Oe),r||E()},[ve,we]=Zae(te(I({},e),{onChange:ie}),({valueTexts:pe})=>({value:pe[0]||"",active:c})),me=!!(o&&S.length&&!D),Ee=M?g.createElement(g.Fragment,null,g.createElement(pUe,{prefixCls:re,value:S,onRemove:le,formatDate:we,maxTagCount:R,tagRender:T,disabled:D,removeIcon:J,placeholder:p}),g.createElement("input",{className:`${re}-multiple-input`,value:S.map(we).join(","),ref:ce,readOnly:!0,autoFocus:Z,tabIndex:W}),g.createElement(wU,{icon:a}),me&&g.createElement(SU,{icon:o,onClear:x})):g.createElement(OU,T4({ref:ce},ve(),{autoFocus:Z,tabIndex:W,suffixIcon:a,clearIcon:me&&g.createElement(SU,{icon:o,onClear:x}),showActiveCls:!1}));return g.createElement("div",T4({},ge,{className:Ae(re,{[`${re}-multiple`]:M,[`${re}-focused`]:c,[`${re}-disabled`]:D,[`${re}-invalid`]:U,[`${re}-rtl`]:ne},v),style:y,ref:se,onClick:b,onMouseDown:pe=>{var xe;const{target:Oe}=pe;Oe!==((xe=ce.current)==null?void 0:xe.inputElement)&&pe.preventDefault(),z==null||z(pe)}}),i&&g.createElement("div",{className:Ae(`${re}-prefix`,ue.prefix),style:de.prefix},i),Ee)}const mUe=g.forwardRef(gUe);function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(Q){const Mt=I({},Wt);delete Mt.range,Q(we(Zt),we(_n),Mt)}},Me=Zt=>{K==null||K(we(Zt))},[Se,Pe,Le,He,Ne]=Qae(L,T,o,!1,A,h,p,xe,Me),at=Le(),[Ue,et,We,Je]=Dae([C]),dt=Zt=>{et(!0),re==null||re(Zt,{})},wt=Zt=>{et(!1),ue==null||ue(Zt,{})},[Bt,qt]=Fr(P,U),jt=Bt==="date"&&D?"datetime":Bt,nn=Kae(P,Bt,k,H),Jt=y&&((Zt,_n)=>{y(we(Zt),we(_n))}),[,Ot]=Vae(te(I({},n),{onChange:Jt}),Se,Pe,Le,He,[],o,Ue,pe,s),[sn,Vt]=Eae(at,s),xt=g.useMemo(()=>sn.some(Zt=>Zt),[sn]),qe=(Zt,_n)=>{if(Z){const Wt=te(I({},_n),{mode:_n.mode[0]});delete Wt.range,Z(Zt[0],Wt)}},[it,Pt]=Hae(L,T,at,[Bt],pe,Je,r,!1,V,Y,$v(D==null?void 0:D.defaultOpenValue),qe,B,E),De=yn((Zt,_n,Wt)=>{if(qt(_n),j&&Wt!==!1){const Mt=Zt||at[at.length-1];j(Mt,_n)}}),ze=()=>{Ot(Le()),Oe(!1,{force:!0})},bt=Zt=>{!C&&!ve.current.nativeElement.contains(document.activeElement)&&ve.current.focus(),Oe(!0),le==null||le(Zt)},lt=()=>{Ot(null),Oe(!1,{force:!0}),ve.current.focus(),b==null||b()},[At,ut]=g.useState(null),[ft,Kt]=g.useState(null),An=g.useMemo(()=>{const Zt=[ft,...at].filter(_n=>_n);return z?Zt:Zt.slice(0,1)},[at,ft,z]),pn=g.useMemo(()=>!z&&ft?[ft]:at.filter(Zt=>Zt),[at,ft,z]);g.useEffect(()=>{pe||Kt(null)},[pe]);const bn=(Zt,_n)=>{d==="hover"&&(Kt(Zt),ut(_n))},Sn=kae(de),Tn=Zt=>{bn(Zt,"preset")},lr=Zt=>{const _n=z?me(Le(),Zt):[Zt];Ot(_n)&&!z&&Oe(!1,{force:!0})},$n=Zt=>{lr(Zt)},Fn=Zt=>{bn(Zt,"cell")},$t=Zt=>{Oe(!0),dt(Zt)},Ie=Zt=>{if(We("panel"),z&&jt!==P)return;const _n=z?me(Le(),Zt):[Zt];He(_n),!v&&!i&&r===jt&&ze()},Ke=()=>{Oe(!1)},nt=rU(ce,ge,ie),ht=g.useMemo(()=>{const Zt=Co(n,!1),_n=ti(n,[...Object.keys(Zt),"onChange","onCalendarChange","onClear","style","className","onPanelChange","classNames","styles"]);return te(I({},_n),{multiple:n.multiple})},[n]),Xt=g.createElement(Xae,VE({},ht,{showNow:nn,showTime:D,disabledDate:S,onFocus:$t,onBlur:wt,picker:P,mode:Bt,internalMode:jt,onPanelChange:De,format:a,value:at,isInvalid:s,onChange:null,onSelect:Ie,pickerValue:it,defaultOpenValue:D==null?void 0:D.defaultOpenValue,onPickerValueChange:Pt,hoverValue:An,onHover:Fn,needConfirm:v,onSubmit:ze,onOk:Ne,presets:Sn,onPresetHover:Tn,onPresetSubmit:lr,onNow:$n,cellRender:nt,classNames:Ee,styles:Ce})),kt=Zt=>{He(Zt)},mn=()=>{We("input")},Rt=Zt=>{We("input"),Oe(!0,{inherit:!0}),dt(Zt)},tn=Zt=>{Oe(!1),wt(Zt)},cn=(Zt,_n)=>{Zt.key==="Tab"&&ze(),x==null||x(Zt,_n)},gn=g.useMemo(()=>({prefixCls:l,locale:T,generateConfig:L,button:se.button,input:se.input,classNames:Ee,styles:Ce}),[l,T,L,se.button,se.input,Ee,Ce]);return ar(()=>{pe&&Je!==void 0&&De(null,P,!1)},[pe,Je,P]),ar(()=>{const Zt=We();!pe&&Zt==="input"&&(Oe(!1),ze()),!pe&&i&&!v&&Zt==="panel"&&ze()},[pe]),g.createElement(Xu.Provider,{value:gn},g.createElement(xae,VE({},Sae(n),{popupElement:Xt,popupStyle:Ce.popup.root,popupClassName:Ae(c,Ee.popup.root),visible:pe,onClose:Ke}),g.createElement(mUe,VE({},n,{ref:ve,className:Ae(n.className,c,Ee.root),style:I(I({},Ce.root),n.style),suffixIcon:J,removeIcon:ee,tagRender:ne,activeHelp:!!ft,allHelp:!!ft&&At==="preset",focused:Ue,onFocus:Rt,onBlur:tn,onKeyDown:cn,onSubmit:ze,value:pn,maskFormat:a,onChange:kt,onInputChange:mn,internalPicker:r,format:o,inputReadOnly:W,disabled:C,open:pe,onOpenChange:Oe,onClick:bt,onClear:lt,invalid:xt,onInvalid:Zt=>{Vt(Zt,0)}}))))}const yUe=g.forwardRef(vUe),bUe=["parentNode"],xUe="form_item";function KE(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rse(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:bUe.includes(n)?`${xUe}_${n}`:n}function ise(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function $U(e){return KE(e).join("_")}function ose(e,t){const n=t.getFieldInstance(e),r=td(n);if(r)return r;const i=rse(KE(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function ase(e){const[t]=G8(),n=g.useRef({}),r=g.useMemo(()=>e!=null?e:te(I({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=$U(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:(i,o={})=>{const c=o,{focus:a}=c,s=Ze(c,["focus"]),l=ose(i,r);l&&(JNe(l,I({scrollMode:"if-needed",block:"nearest"},s)),a&&r.focusField(i))},focusField:i=>{var a,s;const o=r.getFieldInstance(i);Rn(o==null?void 0:o.focus)?o.focus():(s=(a=ose(i,r))==null?void 0:a.focus)==null||s.call(a)},getFieldInstance:i=>{const o=$U(i);return n.current[o]}}),[e,t]);return[r]}const sse=g.createContext(void 0),wUe=sse.Provider,lse=g.createContext(void 0),CUe=lse.Provider;function _U(){return _U=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const b=e,{prefixCls:n="rc-checkbox",className:r,style:i,checked:o,disabled:a,defaultChecked:s=!1,type:l="checkbox",title:c,onChange:u}=b,f=Ze(b,["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"]),d=g.useRef(null),A=g.useRef(null),[h,p]=Fr(s,o);g.useImperativeHandle(t,()=>({focus:x=>{var C;(C=d.current)==null||C.focus(x)},blur:()=>{var x;(x=d.current)==null||x.blur()},input:d.current,nativeElement:A.current}));const v=Ae(n,r,{[`${n}-checked`]:h,[`${n}-disabled`]:a}),y=x=>{a||("checked"in e||p(x.target.checked),u==null||u({target:te(I({},e),{type:l,checked:x.target.checked}),stopPropagation(){x.stopPropagation()},preventDefault(){x.preventDefault()},nativeEvent:x.nativeEvent}))};return g.createElement("span",{className:v,title:c,style:i,ref:A},g.createElement("input",_U({},f,{className:`${n}-input`,ref:d,onChange:y,disabled:a,checked:!!h,type:l})))});function use(e){const t=Be.useRef(null),n=()=>{Kn.cancel(t.current),t.current=null};return[()=>{n(),t.current=Kn(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const SUe=e=>{const{componentCls:t,antCls:n,lineWidth:r,borderRadius:i,borderRadiusLG:o,borderRadiusSM:a,calc:s}=e,l=`${t}-group`,c=`${t}-button-wrapper`,u=`${n}-badge`,f=d=>({[`> ${u}`]:{width:"auto"},[`> ${u} > ${c}`]:{width:"100%"},[`> ${u}:not(:last-child)`]:{marginBlockEnd:s(r).mul(-1).equal()},[`> ${u} > ${c}:not(:last-child)`]:{marginBlockEnd:0},[`> ${u}:first-child > ${c}`]:{borderStartStartRadius:d,borderStartEndRadius:d,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${u}:last-child > ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:d,borderEndEndRadius:d},[`> ${u}:not(:first-child):not(:last-child) > ${c}`]:{borderRadius:0},[`> ${u}:first-child:last-child > ${c}`]:{borderRadius:d}});return{[l]:te(I({},zr(e)),{display:"inline-block",fontSize:0,[`&${l}-rtl`]:{direction:"rtl"},[`&${l}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":te(I({display:"flex",flexDirection:"column",rowGap:e.marginXS,[`&:has(> ${c}, > ${u} > ${c})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0}},f(i)),{[`&${l}-large`]:I({},f(o)),[`&${l}-small`]:I({},f(a))})})}},EUe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:o,motionDurationSlow:a,motionDurationMid:s,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:f,colorBgContainerDisabled:d,colorTextDisabled:A,paddingXS:h,dotColorDisabled:p,dotSize:v,lineType:y,radioColor:b,radioBgColor:x}=e;return{[`${t}-wrapper`]:te(I({},zr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[t]:te(I({},zr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${o} * 1px)`,height:`calc(${o} * 1px)`,backgroundColor:c,border:`${be(f)} ${y} ${u}`,borderRadius:"50%",transition:`all ${s}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${v} * 1px)`,height:`calc(${v} * 1px)`,backgroundColor:b,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${a} ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:sc(e)}),[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:x,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:d,borderColor:u,"&::after":{backgroundColor:p}},[`${t}-disabled + span`]:{color:A,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},BUe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:f,controlHeightLG:d,controlHeightSM:A,paddingXS:h,borderRadius:p,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:B,buttonCheckedColorDisabled:E,colorPrimary:_,colorPrimaryHover:M,colorPrimaryActive:R,buttonSolidCheckedBg:T,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:P,calc:k}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:be(k(n).sub(k(i).mul(2)).equal()),background:u,border:`${be(i)} ${o} ${a}`,borderBlockStartWidth:k(i).add(.02).equal(),borderInlineEndWidth:i,cursor:"pointer",transition:["color","background-color","box-shadow"].map(H=>`${H} ${s}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:k(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${be(i)} ${o} ${a}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:d,fontSize:f,lineHeight:be(k(d).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:A,paddingInline:k(h).sub(i).equal(),paddingBlock:0,lineHeight:be(k(A).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:k(i).mul(-1).equal()},"&:first-child":{borderStartStartRadius:p,borderStartEndRadius:p,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:y,borderStartEndRadius:y},"&:last-child":{borderEndStartRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:v,borderStartEndRadius:v},"&:last-child":{borderEndStartRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v}},"&:hover":{position:"relative",color:_},"&:has(:focus-visible)":sc(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:_,background:b,borderColor:_,"&::before":{backgroundColor:_},"&:first-child":{borderColor:_},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:T,borderColor:T,"&:hover":{color:x,background:L,borderColor:L},"&:active":{color:x,background:P,borderColor:P}},"&-disabled":{color:C,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:B,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},fse=Br("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${be(n)} ${t}`,o=dr(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[SUe(o),EUe(o),BUe(o)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:d,colorPrimaryActive:A,colorWhite:h}=e,p=4,v=o,y=t?v-p*2:v-(p+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:A,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},{unitless:{radioSize:!0,dotSize:!0}}),OUe=(e,t)=>{var ee,ne;const n=g.useContext(sse),r=g.useContext(lse),{getPrefixCls:i,direction:o,className:a,style:s,classNames:l,styles:c}=or("radio"),u=g.useRef(null),f=il(t,u),{isFormItemInput:d}=g.useContext(Ya),A=re=>{var ue,de;(ue=e.onChange)==null||ue.call(e,re),(de=n==null?void 0:n.onChange)==null||de.call(n,re)},J=e,{prefixCls:h,className:p,rootClassName:v,children:y,style:b,title:x,classNames:C,styles:S,checked:B}=J,E=Ze(J,["prefixCls","className","rootClassName","children","style","title","classNames","styles","checked"]),_=i("radio",h),M=((n==null?void 0:n.optionType)||r)==="button",R=M?`${_}-button`:_,T=So(_),[L,P]=fse(_,T),k=I({},E),H=g.useContext(qa),D="checked"in e;let U=B;n&&(k.name=n.name,k.onChange=A,U=e.value===n.value,k.disabled=(ee=k.disabled)!=null?ee:n.disabled),(D||n)&&(k.checked=U),k.disabled=(ne=k.disabled)!=null?ne:H;const j=te(I(I({},e),k),{checked:U}),Q=Ar(s),K=Ar(b),[z,V]=vr([l,C],[c,Q,S,K],{props:j}),Y=Ae(`${R}-wrapper`,{[`${R}-wrapper-checked`]:U,[`${R}-wrapper-disabled`]:k.disabled,[`${R}-wrapper-rtl`]:o==="rtl",[`${R}-wrapper-in-form-item`]:d,[`${R}-wrapper-block`]:!!(n!=null&&n.block)},a,p,v,z.root,L,P,T),[Z,W]=use(k.onClick);return g.createElement(sE,{component:"Radio",disabled:k.disabled},g.createElement("label",{className:Y,style:V.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:Z},g.createElement(cse,te(I({},k),{className:Ae(z.icon,{[$M]:!M}),style:V.icon,type:"radio",prefixCls:R,ref:f,onClick:W})),qi(y)?g.createElement("span",{className:Ae(`${R}-label`,z.label),style:V.label},y):null))},M4=g.forwardRef(OUe),$Ue=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(Un),{name:i}=g.useContext(Ya),o=lA($U(i)),{prefixCls:a,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:f,children:d,size:A,style:h,id:p,optionType:v,name:y=o,defaultValue:b,value:x,block:C=!1,onChange:S,onMouseEnter:B,onMouseLeave:E,onFocus:_,onBlur:M,orientation:R,vertical:T,role:L="radiogroup"}=e,[P,k]=Fr(b,x),H=g.useCallback(J=>{const ee=P,ne=J.target.value;"value"in e||k(ne),ne!==ee&&(S==null||S(J))},[P,k,S]),D=n("radio",a),U=`${D}-group`,j=So(D),[Q,K]=fse(D,j);let z=d;c&&c.length>0&&(z=c.map(J=>typeof J=="string"||mo(J)?g.createElement(M4,{key:J.toString(),prefixCls:D,disabled:f,value:J,checked:P===J},J):g.createElement(M4,{key:`radio-group-value-options-${J.value}`,prefixCls:D,disabled:J.disabled||f,value:J.value,checked:P===J.value,title:J.title,style:J.style,className:J.className,id:J.id,required:J.required},J.label)));const V=aa(A),[,Y]=aE(R,T),Z=Ae(U,`${U}-${u}`,{[`${U}-large`]:V==="large",[`${U}-small`]:V==="small",[`${U}-rtl`]:r==="rtl",[`${U}-block`]:C},s,l,Q,K,j),W=g.useMemo(()=>({onChange:H,value:P,disabled:f,name:y,optionType:v,block:C}),[H,P,f,y,v,C]);return g.createElement("div",te(I({},Co(e,{aria:!0,data:!0})),{role:L,className:Ae(Z,{[`${D}-group-vertical`]:Y}),style:h,onMouseEnter:B,onMouseLeave:E,onFocus:_,onBlur:M,id:p,ref:t}),g.createElement(wUe,{value:W},z))}),_Ue=g.memo($Ue),TUe=(e,t)=>{const{getPrefixCls:n}=g.useContext(Un),a=e,{prefixCls:r}=a,i=Ze(a,["prefixCls"]),o=n("radio",r);return g.createElement(CUe,{value:"button"},g.createElement(M4,te(I({prefixCls:o},i),{type:"radio",ref:t})))},MUe=g.forwardRef(TUe),np=M4;np.Button=MUe,np.Group=_Ue,np.__ANT_RADIO=!0;function Yg(e){return dr(e,{inputAffixPadding:e.paddingXXS})}const Xg=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:A,colorPrimary:h,controlOutlineWidth:p,controlOutline:v,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:x,inputFontSize:C,inputFontSizeLG:S,inputFontSizeSM:B}=e,E=C||n,_=B||E,M=S||s,R=Math.round((t-E*r)/2*10)/10-i,T=Math.round((o-_*r)/2*10)/10-i,L=Math.ceil((a-M*l)/2*10)/10-i;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(T,0),paddingBlockLG:Math.max(L,0),paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:d,activeBorderColor:h,hoverBorderColor:A,activeShadow:`0 0 0 ${p}px ${v}`,errorActiveShadow:`0 0 0 ${p}px ${y}`,warningActiveShadow:`0 0 0 ${p}px ${b}`,hoverBg:x,activeBg:x,inputFontSize:E,inputFontSizeLG:M,inputFontSizeSM:_}},IUe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),WE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":I({},IUe(dr(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled})))}),TU=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),dse=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:te(I({},TU(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),MU=(e,t)=>({"&-outlined":I(I(I(te(I({},TU(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:I({},WE(e))}),dse(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix})),dse(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix})),t)}),Ase=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),RUe=e=>({"&-outlined":te(I(I({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Ase(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Ase(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:I({},WE(e))}})}),hse="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",pse=(e,t)=>({outline:`${be(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:be(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),gse=(e,t)=>({"&, & input, & textarea":{color:t.color},[hse]:pse(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),IU=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":I({background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[hse]:pse(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:gse(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:gse(e,{color:e.colorWarning,affixColor:e.colorWarningAffix})},t)}},mse=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!=null?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},vse=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:te(I({},mse(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),RU=(e,t)=>({"&-filled":I(I(I(te(I({},mse(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText})),{[`&${e.componentCls}-disabled, &[disabled]`]:I({},WE(e))}),vse(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix})),vse(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix})),t)}),yse=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),NUe=e=>({"&-filled":te(I(I({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},yse(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),yse(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),bse=(e,t)=>({background:e.colorBgContainer,borderWidth:`${be(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),xse=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:te(I({},bse(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),NU=(e,t)=>({"&-underlined":I(I(I(te(I({},bse(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),xse(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix})),xse(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix})),t)}),PU=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),LU=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${be(t)} ${be(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},FU=e=>({padding:`${be(e.paddingBlockSM)} ${be(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),I4=(e,t={})=>te(I({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${be(e.paddingBlock)} ${be(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},PU(e.colorTextPlaceholder)),{"&-lg":I(I({},LU(e)),t.largeStyle),"&-sm":I(I({},FU(e)),t.smallStyle),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),PUe=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:I({},LU(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:I({},FU(e)),[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${be(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${be(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${be(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${be(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${be(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:te(I({display:"block"},fA()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:`inline-block`,padding:`0 ${Q(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:`transparent`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}})}},Ole=dd(`Breadcrumb`,e=>Dle(bl(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));K();var kle=[`breadcrumbName`,`children`],Ale=[`breadcrumbName`];function jle(e){let{breadcrumbName:t,children:n}=e,r=q(e,kle),i=G({title:t},r);return n&&(i.menu={items:n.map(e=>{let{breadcrumbName:t}=e;return G(G({},q(e,Ale)),{},{title:t})})}),i}function Mle(e,t){return(0,J.useMemo)(()=>e||(t?t.map(jle):null),[e,t])}K();var Nle=[`prefixCls`,`separator`,`style`,`className`,`rootClassName`,`routes`,`items`,`children`,`itemRender`,`params`,`classNames`,`styles`,`dropdownIcon`],Ple=(e,t)=>{if(t===void 0)return t;let n=(t||``).replace(/^\//,``);return Object.keys(e).forEach(t=>{n=n.replace(`:${t}`,e[t])}),n},Hx=e=>{var t,n;let{prefixCls:r,separator:i,style:a,className:o,rootClassName:s,routes:c,items:l,children:u,itemRender:d,params:f={},classNames:p,styles:m,dropdownIcon:h}=e,g=q(e,Nle),{getPrefixCls:_,direction:v,className:y,style:b,classNames:x,styles:S,separator:C,dropdownIcon:w}=ko(`breadcrumb`),T=(t=i==null?C:i)==null?`/`:t,E=(n=h==null?w:h)==null?J.createElement(jy,null):n,D,O=_(`breadcrumb`,r),[k,A]=Ole(O),j=Mle(l,c),M=J.useMemo(()=>G(G({},e),{},{separator:T}),[e,T]),N=yp(b),P=yp(a),[F,I]=xp([x,p],[S,N,m,P],{props:M}),L=Cle(O,d);if(j&&j.length>0){let e=[],t=l||c;D=j.map((n,r)=>{let{path:i,key:a,type:o,menu:s,onClick:c,className:l,style:u,separator:d,dropdownProps:p}=n,m=Ple(f,i);m!==void 0&&e.push(m);let h=a==null?r:a;if(o===`separator`)return J.createElement(Rx,{key:h},d);let g={},_=r===j.length-1;s&&(g.menu=s);let{href:v}=n;return e.length&&m!==void 0&&(v=`#/${e.join(`/`)}`),J.createElement(Bx,G(G(G({key:h},g),Oa(n,{data:!0,aria:!0})),{},{className:l,style:u,dropdownProps:p,dropdownIcon:E,href:v,separator:_?``:T,onClick:c,prefixCls:O}),L(n,f,t,e,v))})}else if(u){let e=Ia(u).length;D=Ia(u).map((t,n)=>t&&pm(t,{separator:n===e-1?``:T,key:n}))}let R=Z(O,y,{[`${O}-rtl`]:v===`rtl`},o,s,F.root,k,A),z=G({},I.root),B=J.useMemo(()=>({classNames:F,styles:I}),[F,I]);return J.createElement(db.Provider,{value:B},J.createElement(`nav`,G({className:R,style:z},g),J.createElement(`ol`,null,D)))};Hx.Item=Vx,Hx.Separator=Rx;var Ux=pg,Fle=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Rle=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),zle=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),Ble=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Vle=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch(e){return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Wx=u(Fle()),Hle=u(Ile()),Ule=u(Lle()),Wle=u(Rle()),Gle=u(zle()),Kle=u(Ble()),qle=u(Vle());Wx.default.extend(qle.default),Wx.default.extend(Kle.default),Wx.default.extend(Hle.default),Wx.default.extend(Ule.default),Wx.default.extend(Wle.default),Wx.default.extend(Gle.default),Wx.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var Jle={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},Gx=e=>Jle[e]||e.split(`_`)[0],Kx=e=>!Wx.default.isDayjs(e)||e instanceof Wx.default?e:(0,Wx.default)(e.valueOf()),Yle={getNow:()=>{let e=(0,Wx.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,Wx.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Kx(e).endOf(`month`),getWeekDay:e=>{let t=Kx(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Kx(e).year(),getMonth:e=>Kx(e).month(),getDate:e=>Kx(e).date(),getHour:e=>Kx(e).hour(),getMinute:e=>Kx(e).minute(),getSecond:e=>Kx(e).second(),getMillisecond:e=>Kx(e).millisecond(),addYear:(e,t)=>Kx(e).add(t,`year`),addMonth:(e,t)=>Kx(e).add(t,`month`),addDate:(e,t)=>Kx(e).add(t,`day`),setYear:(e,t)=>Kx(e).year(t),setMonth:(e,t)=>Kx(e).month(t),setDate:(e,t)=>Kx(e).date(t),setHour:(e,t)=>Kx(e).hour(t),setMinute:(e,t)=>Kx(e).minute(t),setSecond:(e,t)=>Kx(e).second(t),setMillisecond:(e,t)=>Kx(e).millisecond(t),isAfter:(e,t)=>Kx(e).isAfter(Kx(t)),isValidate:e=>Kx(e).isValid(),locale:{getWeekFirstDay:e=>(0,Wx.default)().locale(Gx(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Kx(t).locale(Gx(e)).weekday(0),getWeek:(e,t)=>Kx(t).locale(Gx(e)).week(),getShortWeekDays:e=>(0,Wx.default)().locale(Gx(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Wx.default)().locale(Gx(e)).localeData().monthsShort(),format:(e,t,n)=>Kx(t).locale(Gx(e)).format(n),parse:(e,t,n)=>{let r=Gx(e);for(let e=0;e{e||f()}},o)}function Yx(e,t,n=`0`){let r=String(e);for(;r.length{e[t]!==void 0&&(n[t]=e[t])}),n}function $x(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function eS(e,t,n){let r=n===void 0?t[t.length-1]:n,i=t.find(t=>e[t]);return r===i?void 0:e[i]}function tS(e){return Qx(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}K();function nS(e,t,n,r){let i=J.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return J.useCallback((e,t)=>i(e,G(G({},t),{},{range:r})),[i,r])}function rS(e,t,n=[]){let[r,i]=J.useState([!1,!1]);return[J.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>Zx(n,t,e))}]}K();function iS(e,t,n,r,i){let a=``,o=[];return e&&o.push(i?`hh`:`HH`),t&&o.push(`mm`),n&&o.push(`ss`),a=o.join(`:`),r&&(a+=`.SSS`),i&&(a+=` A`),a}function Qle(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=iS(t,n,r,i,a);return G(G({},e),{},{fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`})}function aS(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return J.useMemo(()=>Qle(e,n,r,i,a,o),[e,n,r,i,a,o])}K();function oS(e,t,n){return n==null?t.some(t=>e.includes(t)):n}var $le=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function eue(e){let t=Qx(e,$le),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function tue(e){return e&&typeof e==`string`}function sS(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function cS(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var c,l,u;let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a=(c=a)==null?n:c,o=(l=o)==null?n:l,s=(u=s)==null?n:u}return[a,o,s,i]}function lS(e){let{showTime:t}=e,[n,r]=eue(e),i=t&&typeof t==`object`?t:{},a=G(G({defaultOpenValue:i.defaultOpenValue||i.defaultValue},n),i),{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=sS(s,c,l,o);return[s,c,l]=cS(u,s,c,l,o),[a,G(G({},a),{},{showHour:s,showMinute:c,showSecond:l,showMillisecond:o}),a.format,r]}function uS(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=$x(e,i,null),s=[t,n];for(let e=0;eMath.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function pS(e,t,n){return dS(t,n,()=>e.getYear(t)===e.getYear(n))}function mS(e,t){return Math.floor(e.getMonth(t)/3)+1}function rue(e,t,n){return dS(t,n,()=>pS(e,t,n)&&mS(e,t)===mS(e,n))}function hS(e,t,n){return dS(t,n,()=>pS(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function gS(e,t,n){return dS(t,n,()=>pS(e,t,n)&&hS(e,t,n)&&e.getDate(t)===e.getDate(n))}function _S(e,t,n){return dS(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function vS(e,t,n){return dS(t,n,()=>gS(e,t,n)&&_S(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function yS(e,t,n,r){return dS(n,r,()=>pS(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function bS(e,t,n,r,i){switch(i){case`date`:return gS(e,n,r);case`week`:return yS(e,t.locale,n,r);case`month`:return hS(e,n,r);case`quarter`:return rue(e,n,r);case`year`:return pS(e,n,r);case`decade`:return fS(e,n,r);case`time`:return _S(e,n,r);default:return vS(e,n,r)}}function xS(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function SS(e,t,n,r,i){return bS(e,t,n,r,i)?!0:e.isAfter(n,r)}function iue(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function CS(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function wS(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function aue(e,t,n,r,i){return qr((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!bS(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!bS(e,t,i,a,o.type)))}function oue(e,t,n){return J.useMemo(()=>{let r=Xx($x(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function sue(e,t,n){return typeof e[0]==`function`||n?!0:t}K();function cue(e,t,n,r){return qr((i,a)=>{let o=G({type:t},a);if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){var s;let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:c,disabledSeconds:l,disabledMilliseconds:u}=((s=r.disabledTime)==null?void 0:s.call(r,i,t,{from:o.from}))||{},{disabledHours:d,disabledMinutes:f,disabledSeconds:p}=r,m=n||d,h=c||f,g=l||p,_=e.getHour(i),v=e.getMinute(i),y=e.getSecond(i),b=e.getMillisecond(i);if(m&&m().includes(_)||h&&h(_).includes(v)||g&&g(_,v).includes(y)||u&&u(_,v,y).includes(b))return!0}return!1})}K();function TS(e,t=!1){return J.useMemo(()=>{let n=e&&Xx(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function ES(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:h,format:g,inputReadOnly:_,disabledDate:v,minDate:y,maxDate:b,showTime:x,value:S,defaultValue:C,pickerValue:w,defaultPickerValue:T}=e,E=TS(S),D=TS(C),O=TS(w),k=TS(T),A=i===`date`&&x?`datetime`:i,j=A===`time`||A===`datetime`,M=j||h,N=m==null?j:m,[P,F,I,L]=lS(e),R=aS(r,F),z=J.useMemo(()=>uS(A,I,L,P,R),[A,I,L,P,R]),B=J.useMemo(()=>G(G({},e),{},{previewValue:o,prefixCls:a,locale:R,picker:i,styles:s,classNames:c,order:l,components:G({input:d},u),clearIcon:nue(a,f,p),showTime:z,value:E,defaultValue:D,pickerValue:O,defaultPickerValue:k},t==null?void 0:t()),[e]),[V,H]=oue(A,R,g),U=sue(V,_,h),ee=aue(n,r,v,y,b),te=cue(n,i,ee,z);return[J.useMemo(()=>G(G({},B),{},{needConfirm:N,inputReadOnly:U,disabledDate:ee}),[B,N,U,ee]),A,M,V,H,te]}function lue(e,t,n){let[r,i]=$r(t,e),[,a]=J.useState({}),o=qr(e=>{i(e),a({})}),s=J.useRef(e),c=J.useRef(),l=()=>{Fa.cancel(c.current)},u=qr(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=qr((e,t)=>{l(),s.current=e,e||t?u():c.current=Fa(u)});return J.useEffect(()=>l,[]),[r,d]}function DS(e,t,n=[],r){let[i,a]=lue(!n.every(e=>e)&&e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function OS(e){let t=J.useRef();return J.useImperativeHandle(e,()=>{var e;return{nativeElement:(e=t.current)==null?void 0:e.nativeElement,focus:e=>{var n;(n=t.current)==null||n.focus(e)},blur:()=>{var e;(e=t.current)==null||e.blur()}}}),t}function kS(e,t){return J.useMemo(()=>e||(t?(_a(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function AS(e,t,n=1){let r=J.useRef(t);r.current=t,Zr(()=>{if(e)r.current(e);else{let t=Fa(()=>{r.current(e)},n);return()=>{Fa.cancel(t)}}},[e])}function jS(e,t=[],n=!1){let[r,i]=J.useState(0),[a,o]=J.useState(!1),s=J.useRef([]),c=J.useRef(null),l=J.useRef(null),u=e=>{c.current=e};return AS(a||n,()=>{a||(s.current=[],u(null))}),J.useEffect(()=>{a&&s.current.push(r)},[a,r]),[a,e=>{o(e)},e=>(e&&(l.current=e),l.current),r,i,n=>{let r=s.current,i=new Set(r.filter(e=>n[e]||t[e])),a=+(r[r.length-1]===0);return i.size>=2||e[a]?null:a},s.current,u,e=>c.current===e]}K();function uue(e,t,n,r,i,a){let o=n[n.length-1];return(s,c)=>{let[l,u]=e,d=G(G({},c),{},{from:eS(e,n)});return o===1&&t[0]&&l&&!bS(r,i,l,s,d.type)&&r.isAfter(l,s)||o===0&&t[1]&&u&&!bS(r,i,u,s,d.type)&&r.isAfter(s,u)?!0:a==null?void 0:a(s,d)}}function MS(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var NS=[];function PS(e,t,n,r,i,a,o,s,c=NS,l=NS,u=NS,d,f,p){let m=o===`time`,h=a||0,g=t=>{let r=e.getNow();return m&&(r=wS(e,r)),c[t]||n[t]||r},[_,v]=l,[y,b]=$r(()=>g(0),_),[x,S]=$r(()=>g(1),v),C=J.useMemo(()=>{let t=[y,x][h];return m?t:wS(e,t,u[h])},[m,y,x,h,e,u]),w=(n,i=`panel`)=>{let a=[b,S][h];a(n);let s=[y,x];s[h]=n,d&&(!bS(e,t,y,s[0],o)||!bS(e,t,x,s[1],o))&&d(s,{source:i,range:h===1?`end`:`start`,mode:r})},T=(n,r)=>{if(s){let i={date:`month`,week:`month`,month:`year`,quarter:`year`}[o];if(i&&!bS(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return MS(e,o,r,-1)}return r},E=J.useRef(null);return Xr(()=>{if(i&&!c[h]){let t=m?null:e.getNow();if(E.current!==null&&E.current!==h?t=[y,x][h^1]:n[h]?t=h===0?n[0]:T(n[0],n[1]):n[h^1]&&(t=n[h^1]),t){f&&e.isAfter(f,t)&&(t=f);let n=s?MS(e,o,t,1):t;p&&e.isAfter(n,p)&&(t=s?MS(e,o,p,-1):p),w(t,`reset`)}}},[i,h,n[h]]),J.useEffect(()=>{i?E.current=h:E.current=null},[i,h]),Xr(()=>{i&&c&&c[h]&&w(c[h],`reset`)},[i,h]),[C,w]}function FS(e,t){let n=J.useRef(e),[,r]=J.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var due=[];function IS(e,t,n){return[r=>r.map(r=>CS(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;at.isAfter(e,n)?1:-1)}function fue(e){let[t,n]=FS(e),r=qr(()=>{n(e)});return J.useEffect(()=>{r()},[e]),[t,n]}function RS(e,t,n,r,i,a,o,s,c){let[l,u]=$r(a,o),d=l||due,[f,p]=fue(d),[m,h]=IS(e,t,n);return[d,u,f,qr(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=LS(n.filter(e=>e),e));let[a,o]=h(f(),n);if(!a&&(p(n),s)){let e=m(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(f())}]}function zS(e,t,n,r,i,a,o,s,c,l){let{generateConfig:u,locale:d,picker:f,onChange:p,allowEmpty:m,order:h}=e,g=!a.some(e=>e)&&h,[_,v]=IS(u,d,o),[y,b]=FS(t),x=qr(()=>{b(t)});J.useEffect(()=>{x()},[t]);let S=qr(e=>{let r=e===null,o=[...e||y()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t!e);p(r&&e?null:o,e?null:_(o))}}return T}),C=qr((e,t)=>{let n=Zx(y(),e,r()[e]);b(n),t&&S()}),w=!s&&!c;return AS(!w,()=>{w&&(S(),i(t),x())},2),[C,S]}function BS(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function pue(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}K();function VS(){return[]}function HS(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);(!e||!r)&&o.push({label:Yx(n,a),value:n,disabled:e})}return o}function US(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=J.useMemo(()=>n||e.getNow(),[n,e]),m=J.useCallback(e=>{let t=(l==null?void 0:l(e))||{};return[t.disabledHours||u||VS,t.disabledMinutes||d||VS,t.disabledSeconds||f||VS,t.disabledMilliseconds||VS]},[l,u,d,f]),[h,g,_,v]=J.useMemo(()=>m(p),[p,m]),y=J.useCallback((e,t,n,l)=>{let u=HS(0,23,i,c,e());return[r?u.map(e=>G(G({},e),{},{label:Yx(e.value%12||12,2)})):u,e=>HS(0,59,a,c,t(e)),(e,t)=>HS(0,59,o,c,n(e,t)),(e,t,n)=>HS(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[b,x,S,C]=J.useMemo(()=>y(h,g,_,v),[y,h,g,_,v]);return[(t,n)=>{let r=()=>b,i=x,a=S,o=C;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=y(e,t,s,c);r=()=>l,i=u,a=d,o=f}return pue(t,r,i,a,o,e)},b,x,S,C]}function mue(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:m=`button`,classNames:h,styles:g}=J.useContext(qx),_=u.getNow(),[v]=US(u,a,_),y=r==null?void 0:r(t),b=d(_,{type:t}),x=()=>{if(!b){let e=v(_);s(e)}},S=`${f}-now`,C=`${S}-btn`,w=i&&J.createElement(`li`,{className:S},J.createElement(`a`,{className:Z(C,b&&`${C}-disabled`),"aria-disabled":b,onClick:x},n===`date`?p.today:p.now)),T=l&&J.createElement(`li`,{className:`${f}-ok`},J.createElement(m,{disabled:c,onClick:o},p.ok)),E=(w||T)&&J.createElement(`ul`,{className:`${f}-ranges`},w,T);return!y&&!E?null:J.createElement(`div`,{className:Z(`${f}-footer`,h.popup.footer),style:g.popup.footer},y&&J.createElement(`div`,{className:`${f}-footer-extra`},y),E)}function WS(e,t,n){function r(r,i){let a=r.findIndex(r=>bS(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var GS=J.createContext(null),KS=J.createContext(null);function qS(){return J.useContext(KS)}function JS(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v}=e,{classNames:y,styles:b}=J.useContext(GS),x=r.getNow();return[{now:x,values:f,pickerValue:p,prefixCls:n,classNames:y,styles:b,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v},x]}var YS=J.createContext({});K();function XS(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:m,styles:h,panelType:g,now:_,disabledDate:v,cellRender:y,onHover:b,hoverValue:x,hoverRangeValue:S,generateConfig:C,values:w,locale:T,onSelect:E}=qS(),D=f||v,O=`${p}-cell`,{onCellDblClick:k}=J.useContext(YS),A=e=>w.some(t=>t&&bS(C,T,e,t,g)),j=[];for(let e=0;ebS(C,T,f,e,g)),[`${O}-in-range`]:w&&!j&&!M,[`${O}-range-start`]:j,[`${O}-range-end`]:M,[`${p}-cell-selected`]:!S&&g!==`week`&&A(f)},l(f))),style:h.item,onClick:()=>{v||E(f)},onDoubleClick:()=>{!v&&k&&k()},onMouseEnter:()=>{v||b==null||b(f)},onMouseLeave:()=>{v||b==null||b(null)}},y?y(f,{prefixCls:p,originNode:P,today:_,type:g,locale:T}):P))}j.push(J.createElement(`tr`,{key:e,className:o==null?void 0:o(u)},t))}return J.createElement(`div`,{className:Z(`${p}-body`,m.body),style:h.body},J.createElement(`table`,{className:Z(`${p}-content`,m.content),style:h.content},u&&J.createElement(`thead`,null,J.createElement(`tr`,null,u)),J.createElement(`tbody`,null,j)))}var ZS={visibility:`hidden`};function QS(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=`‹`,nextIcon:d=`›`,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:m,maxDate:h,generateConfig:g,locale:_,pickerValue:v,panelType:y}=qS(),b=`${s}-header`,{hidePrev:x,hideNext:S,hideHeader:C}=J.useContext(YS),w=J.useMemo(()=>{if(!m||!t||!a)return!1;let e=a(t(-1,v));return!SS(g,_,e,m,y)},[m,t,v,a,g,_,y]),T=J.useMemo(()=>{if(!m||!n||!a)return!1;let e=a(n(-1,v));return!SS(g,_,e,m,y)},[m,n,v,a,g,_,y]),E=J.useMemo(()=>{if(!h||!t||!i)return!1;let e=i(t(1,v));return!SS(g,_,h,e,y)},[h,t,v,i,g,_,y]),D=J.useMemo(()=>{if(!h||!n||!i)return!1;let e=i(n(1,v));return!SS(g,_,h,e,y)},[h,n,v,i,g,_,y]),O=e=>{t&&r(t(e,v))},k=e=>{n&&r(n(e,v))};if(C)return null;let A=`${b}-prev-btn`,j=`${b}-next-btn`,M=`${b}-super-prev-btn`,N=`${b}-super-next-btn`;return J.createElement(`div`,{className:Z(b,c.header),style:l.header},n&&J.createElement(`button`,{type:`button`,"aria-label":_.previousYear,onClick:()=>k(-1),tabIndex:-1,className:Z(M,T&&`${M}-disabled`),disabled:T,style:x?ZS:{}},f),t&&J.createElement(`button`,{type:`button`,"aria-label":_.previousMonth,onClick:()=>O(-1),tabIndex:-1,className:Z(A,w&&`${A}-disabled`),disabled:w,style:x?ZS:{}},u),J.createElement(`div`,{className:`${b}-view`},o),t&&J.createElement(`button`,{type:`button`,"aria-label":_.nextMonth,onClick:()=>O(1),tabIndex:-1,className:Z(j,E&&`${j}-disabled`),disabled:E,style:S?ZS:{}},d),n&&J.createElement(`button`,{type:`button`,"aria-label":_.nextYear,onClick:()=>k(1),tabIndex:-1,className:Z(N,D&&`${N}-disabled`),disabled:D,style:S?ZS:{}},p))}function $S(){return $S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=l==null?void 0:l(e,{type:`week`});return J.createElement(`td`,{key:`week`,className:Z(m,`${m}-week`,{[`${m}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d==null||d(e)},onMouseLeave:()=>{t||d==null||d(null)}},J.createElement(`div`,{className:`${m}-inner`},i.locale.getWeek(r.locale,e)))}:null,C=[],w=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);S&&C.push(J.createElement(`th`,{key:`empty`},J.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)C.push(J.createElement(`th`,{key:e},w[(e+v)%7]));let T=(e,t)=>i.addDate(e,t),E=e=>CS(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),D=e=>({[`${t}-cell-in-view`]:hS(i,e,a),[`${t}-cell-today`]:gS(i,e,_)}),O=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),k=J.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},CS(a,{locale:r,format:r.yearFormat,generateConfig:i})),A=J.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?CS(a,{locale:r,format:r.monthFormat,generateConfig:i}):O[x]),j=r.monthBeforeYear?[A,k]:[k,A];return J.createElement(KS.Provider,{value:g},J.createElement(`div`,{className:Z(p,f&&`${p}-show-week`)},J.createElement(QS,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},j),J.createElement(XS,$S({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:b,headerCells:C,getCellDate:T,getCellText:E,getCellClassName:D,prefixColumn:S,cellSelection:!h}))))}var hue=1/3;function gue(e,t){let n=J.useRef(!1),r=J.useRef(null),i=J.useRef(null),a=()=>n.current,o=()=>{Fa.cancel(r.current),n.current=!1},s=J.useRef();return[qr(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!Li(a)){s.current<=5&&(r.current=Fa(l));return}let p=t+(f-t)*hue,m=Math.abs(f-p);if(i.current!==null&&i.current[e,t,n].join(`,`)).join(`;`)}function tC(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:m}=qS(),h=`${l}-time-panel`,g=`${l}-time-panel-cell`,_=J.useRef(null),v=J.useRef(),y=()=>{clearTimeout(v.current)},[b,x,S]=gue(_,n==null?r:n);Xr(()=>(b(),y(),()=>{x(),y()}),[n,r,vue(t)]);let C=e=>{y();let n=e.target;!S()&&c&&(v.current=setTimeout(()=>{let e=_.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?9007199254740991:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=i.findIndex(e=>e===o),c=t[s];c&&!c.disabled&&a(c.value)},_ue))},w=`${h}-column`;return J.createElement(`ul`,{className:w,ref:_,"data-type":i,onScroll:C},t.map(({label:e,value:t,disabled:r})=>{let c=J.createElement(`div`,{className:`${g}-inner`},e);return J.createElement(`li`,{key:t,style:m.item,className:Z(g,p.item,{[`${g}-selected`]:n===t,[`${g}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},pickerValue:h}=qS(),g=(u==null?void 0:u[0])||null,{onCellDblClick:_}=J.useContext(YS),[v,y,b,x,S]=US(d,e,g),C=e=>[g&&d[e](g),h&&d[e](h)],[w,T]=C(`getHour`),[E,D]=C(`getMinute`),[O,k]=C(`getSecond`),[A,j]=C(`getMillisecond`),M=w===null?null:rC(w)?`am`:`pm`,N=J.useMemo(()=>a?rC(w)?y.filter(e=>rC(e.value)):y.filter(e=>!rC(e.value)):y,[w,y,a]),P=(e,t)=>{var n;let r=e.filter(e=>!e.disabled);return t==null?r==null||(n=r[0])==null?void 0:n.value:t},F=P(y,w),I=J.useMemo(()=>b(F),[b,F]),L=P(I,E),R=J.useMemo(()=>x(F,L),[x,F,L]),z=P(R,O),B=J.useMemo(()=>S(F,L,z),[S,F,L,z]),V=P(B,A),H=J.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?CS(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:y.every(e=>e.disabled||!rC(e.value))},{label:r(n,`PM`),value:`pm`,disabled:y.every(e=>e.disabled||rC(e.value))}]},[y,a,d,f]),U=e=>{let t=v(e);p(t)},ee=J.useMemo(()=>{let e=g||h||d.getNow(),t=e=>e!=null;return t(w)?(e=d.setHour(e,w),e=d.setMinute(e,E),e=d.setSecond(e,O),e=d.setMillisecond(e,A)):t(T)?(e=d.setHour(e,T),e=d.setMinute(e,D),e=d.setSecond(e,k),e=d.setMillisecond(e,j)):t(F)&&(e=d.setHour(e,F),e=d.setMinute(e,L),e=d.setSecond(e,z),e=d.setMillisecond(e,V)),e},[g,h,w,E,O,A,F,L,z,V,T,D,k,j,d]),te=(e,t)=>e===null?null:d[t](ee,e),ne=e=>te(e,`setHour`),re=e=>te(e,`setMinute`),ie=e=>te(e,`setSecond`),ae=e=>te(e,`setMillisecond`),oe=e=>e===null?null:e===`am`&&!rC(w)?d.setHour(ee,w-12):e===`pm`&&rC(w)?d.setHour(ee,w+12):ee,se=e=>{U(ne(e))},ce=e=>{U(re(e))},le=e=>{U(ie(e))},ue=e=>{U(ae(e))},de=e=>{U(oe(e))},fe=e=>{m(ne(e))},pe=e=>{m(re(e))},me=e=>{m(ie(e))},he=e=>{m(ae(e))},W=e=>{m(oe(e))},ge={onDblClick:_,changeOnScroll:o};return J.createElement(`div`,{className:Z(`${s}-content`,c.content),style:l.content},t&&J.createElement(tC,nC({units:N,value:w,optionalValue:T,type:`hour`,onChange:se,onHover:fe},ge)),n&&J.createElement(tC,nC({units:I,value:E,optionalValue:D,type:`minute`,onChange:ce,onHover:pe},ge)),r&&J.createElement(tC,nC({units:R,value:O,optionalValue:k,type:`second`,onChange:le,onHover:me},ge)),i&&J.createElement(tC,nC({units:B,value:A,optionalValue:j,type:`millisecond`,onChange:ue,onHover:he},ge)),a&&J.createElement(tC,nC({units:H,value:M,type:`meridiem`,onChange:de,onHover:W},ge)))}function iC(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=JS(e,`time`);return J.createElement(KS.Provider,{value:c},J.createElement(`div`,{className:Z(s)},J.createElement(QS,null,n?CS(n,{locale:r,format:o,generateConfig:i}):`\xA0`),J.createElement(yue,a)))}function aC(){return aC=Object.assign?Object.assign.bind():function(e){for(var t=1;ta?wS(n,e,a):wS(n,e,o);return J.createElement(`div`,{className:c},J.createElement(eC,aC({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s==null||s(e&&u(e))}})),J.createElement(iC,e))}function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),h=e=>{let t=n.cellYearFormat;return`${CS(e,{locale:n,format:t,generateConfig:r})}-${CS(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=e=>({[`${t}-cell-in-view`]:fS(r,e,d)||fS(r,e,f)||xS(r,d,f,e)}),_=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,v=`${CS(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${CS(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return J.createElement(KS.Provider,{value:c},J.createElement(`div`,{className:s},J.createElement(QS,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},v),J.createElement(XS,oC({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}function sC(){return sC=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?CS(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),h=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,g=J.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},CS(i,{locale:n,format:n.yearFormat,generateConfig:r}));return J.createElement(KS.Provider,{value:l},J.createElement(`div`,{className:c},J.createElement(QS,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},g),J.createElement(XS,sC({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function cC(){return cC=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(e,t*3),d=e=>CS(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=J.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},CS(i,{locale:n,format:n.yearFormat,generateConfig:r}));return J.createElement(KS.Provider,{value:c},J.createElement(`div`,{className:s},J.createElement(QS,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),J.createElement(XS,cC({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function lC(){return lC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t={};if(o){let[r,i]=o,a=yS(n,s,r,e),l=yS(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&xS(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>yS(n,s,e,t))),Z(c,{[`${c}-selected`]:!o&&yS(n,s,i,e)},t)}}))}function uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),h=(e,t)=>r.addYear(e,t),g=e=>CS(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),_=e=>({[`${t}-cell-in-view`]:pS(r,e,f)||pS(r,e,p)||xS(r,f,p,e)}),v=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,y=J.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},CS(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,CS(p,{locale:n,format:n.yearFormat,generateConfig:r}));return J.createElement(KS.Provider,{value:l},J.createElement(`div`,{className:c},J.createElement(QS,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},y),J.createElement(XS,uC({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}K();function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:M.current}));let[N,P,F,I]=lS(e),L=aS(i,P),R=y===`date`&&b?`datetime`:y,z=J.useMemo(()=>uS(R,F,I,N,L),[R,F,I,N,L]),B=a.getNow(),[V,H]=$r(y||`date`,_),U=V===`date`&&z?`datetime`:V,ee=WS(a,i,R),[te,ne]=$r(u,d),re=J.useMemo(()=>{let e=Xx(te).filter(e=>e);return l?e:e.slice(0,1)},[te,l]),ie=qr(e=>{ne(e),f&&(e===null||re.length!==e.length||re.some((t,n)=>!bS(a,i,t,e[n],R)))&&(f==null||f(l?e:e[0]))}),ae=qr(e=>{if(p==null||p(e),V===y){let t=l?ee(re,e):[e];ie(t)}}),[oe,se]=$r(m||re[0]||B,h);J.useEffect(()=>{re[0]&&!h&&se(re[0])},[re[0]]);let ce=(e,t)=>{v==null||v(e||h,t||V)},le=(e,t=!1)=>{se(e),g==null||g(e),t&&ce(e)},ue=(e,t)=>{H(e),t&&le(t),ce(t,e)},de=e=>{if(ae(e),le(e),V!==y){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[y]||n,i=r[r.indexOf(V)+1];i&&ue(i,e)}},fe=J.useMemo(()=>{let e,t;return Array.isArray(S)?[e,t]=S:e=S,!e&&!t?null:(e=e||t,t=t||e,a.isAfter(e,t)?[t,e]:[e,t])},[S,a]),pe=nS(C,w,T),me=E[U]||Eue[U]||eC,he=J.useMemo(()=>{var e,t,i,a;return{classNames:(e=(t=k==null?void 0:k.popup)==null?n:t)==null?{}:e,styles:(i=(a=A==null?void 0:A.popup)==null?r:a)==null?{}:i}},[k,n,A,r]),W=J.useContext(YS),ge=J.useMemo(()=>G(G({},W),{},{hideHeader:D}),[W,D]),_e=`${j}-panel`,K=Qx(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return J.createElement(GS.Provider,{value:he},J.createElement(YS.Provider,{value:ge},J.createElement(`div`,{ref:M,tabIndex:c,className:Z(_e,{[`${_e}-rtl`]:o===`rtl`})},J.createElement(me,dC({},K,{showTime:z,prefixCls:j,locale:L,generateConfig:a,onModeChange:ue,pickerValue:oe,onPickerValueChange:e=>{le(e,!0)},value:re[0],onSelect:de,values:re,cellRender:pe,hoverRangeValue:fe,hoverValue:x})))))}var fC=J.memo(J.forwardRef(Due));K();function pC(){return pC=Object.assign?Object.assign.bind():function(e){for(var t=1;tMS(u,t,e,n),[u,t]),f=J.useMemo(()=>d(r,1),[r,d]),p=e=>{i(d(e,-1))},m={onCellDblClick:()=>{a&&o()}},h=t===`time`,g=G(G({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return s?g.hoverRangeValue=c:g.hoverValue=c,n?J.createElement(`div`,{className:`${l}-panels`},J.createElement(YS.Provider,{value:G(G({},m),{},{hideNext:!0})},J.createElement(fC,g)),J.createElement(YS.Provider,{value:G(G({},m),{},{hidePrev:!0})},J.createElement(fC,pC({},g,{pickerValue:f,onPickerValueChange:p})))):J.createElement(YS.Provider,{value:G({},m)},J.createElement(fC,g))}function mC(e){return typeof e==`function`?e():e}function kue(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?J.createElement(`div`,{className:`${t}-presets`},J.createElement(`ul`,null,n.map(({label:e,value:t},n)=>J.createElement(`li`,{key:n,onClick:()=>{r(mC(t))},onMouseEnter:()=>{i(mC(t))},onMouseLeave:()=>{i(null)}},e)))):null}K();function hC(){return hC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.width&&j(e.width)},[L,R,z]=l,[B,V]=J.useState(0);J.useEffect(()=>{V(10)},[L]),J.useEffect(()=>{if(s&&k.current){var e;let t=((e=O.current)==null?void 0:e.offsetWidth)||0,n=k.current.getBoundingClientRect();if(!n.height||n.right<0){V(e=>Math.max(0,e-1));return}let r=(D?R-t:L)-n.left;if(F(r),A&&Ae)}let U=J.useMemo(()=>H(Xx(_)),[_]),ee=a===`time`&&!U.length,te=J.useMemo(()=>ee?H([b]):U,[ee,U,b]),ne=ee?b:U,re=J.useMemo(()=>!te.length||te.some(e=>y(e)),[te,y]),ie=J.createElement(`div`,{className:`${T}-panel-layout`},J.createElement(kue,{prefixCls:T,presets:u,onClick:f,onHover:d}),J.createElement(`div`,null,J.createElement(Oue,hC({},e,{value:ne})),J.createElement(mue,hC({},e,{showNow:!c&&o,invalid:re,onSubmit:()=>{ee&&v(b),x(),S()}}))));r&&(ie=r(ie));let ae=`${E}-container`,oe=`marginLeft`,se=`marginRight`,ce=J.createElement(`div`,{onMouseDown:h,tabIndex:-1,className:Z(ae,`${T}-${i}-panel-container`,C==null||(t=C.popup)==null?void 0:t.container),style:G({[D?se:oe]:M,[D?oe:se]:`auto`},w==null||(n=w.popup)==null?void 0:n.container),onFocus:p,onBlur:m},ie);return s&&(ce=J.createElement(`div`,{onMouseDown:h,ref:k,className:Z(`${T}-range-wrapper`,`${T}-${a}-range-wrapper`)},J.createElement(`div`,{ref:O,className:`${T}-range-arrow`,style:{left:P}}),J.createElement(go,{onResize:I},ce))),ce}K();function _C(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:h,onOpenChange:g,onKeyDown:_,onChange:v,activeHelp:y,name:b,autoComplete:x,id:S,value:C,invalid:w,placeholder:T,disabled:E,activeIndex:D,allHelp:O,picker:k}=e,A=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},j=n[0],M=J.useCallback(e=>CS(e,{locale:a,format:j,generateConfig:i}),[a,i,j]),N=J.useMemo(()=>C.map(M),[C,M]),P=J.useMemo(()=>{let e=k===`time`?8:10,t=typeof j==`function`?j(i.getNow()).length:j.length;return Math.max(e,t)+2},[j,k,i]),F=e=>{for(let t=0;t{function i(e){return n===void 0?e:e[n]}let a=G(G({},Oa(e,{aria:!0,data:!0})),{},{format:r,validateFormat:e=>!!F(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:x,size:P,id:i(S),value:i(N)||``,invalid:i(w),placeholder:i(T),active:D===n,helped:O||y&&D===n,disabled:i(E),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=F(e);if(t){m(!1,n),v(t,n);return}m(!!e,n)},onHelp:()=>{g(!0,{index:n})},onKeyDown:e=>{let t=!1;if(_==null||_(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:g(!1,{index:n});break;case`Enter`:h||g(!0);break}}},t==null?void 0:t({valueTexts:N}));return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},M]}var Aue=[`onMouseEnter`,`onMouseLeave`];function vC(e){return J.useMemo(()=>Qx(e,Aue),[e])}var jue=[`icon`];function yC(){return yC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault()},onClick:e=>{e.stopPropagation(),n()}}),t)}ge();var CC=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],wC=`顧`,Nue=class{constructor(e){W(this,`format`,void 0),W(this,`maskFormat`,void 0),W(this,`cells`,void 0),W(this,`maskCells`,void 0),this.format=e;let t=CC.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>wC.repeat(e.length));let r=RegExp(`(${CC.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=CC.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:m=!1,invalid:h,clearIcon:g}=e,_=q(e,Fue),{value:v,onFocus:y,onBlur:b,onMouseUp:x}=e,{prefixCls:S,input:C=`input`,classNames:w,styles:T}=J.useContext(qx),E=`${S}-input`,[D,O]=J.useState(!1),[k,A]=J.useState(v),[j,M]=J.useState(``),[N,P]=J.useState(null),[F,I]=J.useState(null),L=k||``;J.useEffect(()=>{A(v)},[v]);let R=J.useRef(null),z=J.useRef(null),B=J.useRef(!1);J.useImperativeHandle(t,()=>({nativeElement:R.current,inputElement:z.current,focus:e=>{z.current.focus(e)},blur:()=>{z.current.blur()}}));let V=J.useMemo(()=>new Nue(o||``),[o]),[H,U]=J.useMemo(()=>u?[0,0]:V.getSelection(N),[V,N,u]),ee=e=>{e&&e!==o&&e!==v&&d()},te=qr(e=>{s(e)&&c(e),A(e),ee(e)}),ne=e=>{if(!o){let t=e.target.value;ee(t),A(t),c(t)}},re=e=>{if(B.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&te(t)},ie=()=>{B.current=!0},ae=e=>{let{selectionStart:t}=e.target,n=V.getMaskCellIndex(t);P(n),I({}),x==null||x(e),B.current=!1},oe=e=>{O(!0),P(0),M(``),y(e)},se=e=>{b(e)},ce=e=>{O(!1),se(e)};AS(r,()=>{!r&&!m&&A(v)});let le=e=>{e.key===`Enter`&&s(L)&&f(),p==null||p(e)},ue=e=>{if(B.current){e.preventDefault();return}le(e);let{key:t}=e,n=null,r=null,i=U-H,a=o.slice(H,U),s=e=>{P(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,V.size()-1),n})},c=e=>{let[t,n,r]=Pue(a),i=L.slice(H,U),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=j+t,r=n);break}if(n!==null&&(M(n),n.length>=i&&(s(1),M(``))),r!==null){let e=L.slice(0,H)+Yx(r,i)+L.slice(U);te(e.slice(0,o.length))}I({})},de=J.useRef();Xr(()=>{if(!(!D||!o||B.current)){if(!V.match(L)){te(o);return}return z.current.setSelectionRange(H,U),de.current=Fa(()=>{z.current.setSelectionRange(H,U)}),()=>{Fa.cancel(de.current)}}},[V,o,D,L,N,H,U,F,te]);let fe=o?{onFocus:oe,onBlur:ce,onKeyDown:ue,onMouseDown:ie,onMouseUp:ae,onPaste:re}:{};return J.createElement(`div`,{ref:R,className:Z(E,{[`${E}-active`]:r&&i,[`${E}-placeholder`]:u},n)},J.createElement(C,TC({ref:z,"aria-invalid":h,autoComplete:`off`},_,{onKeyDown:le,onBlur:se},fe,{value:L,onChange:ne,className:w.input,style:T.input})),J.createElement(bC,{icon:a}),g)});K();var Iue=`id.prefix.clearIcon.suffixIcon.separator.activeIndex.activeHelp.allHelp.focused.onFocus.onBlur.onKeyDown.locale.generateConfig.placeholder.className.style.onClick.onClear.value.onChange.onSubmit.onInputChange.format.maskFormat.preserveInvalidOnBlur.onInvalid.disabled.invalid.inputReadOnly.direction.onOpenChange.onActiveInfo.placement.onMouseDown.required.aria-required.autoFocus.tabIndex`.split(`.`),Lue=[`index`];function DC(){return DC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),re=J.useRef(),ie=J.useRef(),ae=J.useRef(),oe=e=>{var t;return(t=[ie,ae][e])==null?void 0:t.current};J.useImperativeHandle(t,()=>({nativeElement:re.current,focus:e=>{if(typeof e==`object`){var t;let n=e||{},{index:r=0}=n,i=q(n,Lue);(t=oe(r))==null||t.focus(i)}else{var n;(n=oe(e==null?0:e))==null||n.focus()}},blur:()=>{var e,t;(e=oe(0))==null||e.blur(),(t=oe(1))==null||t.blur()}}));let se=vC(V),ce=J.useMemo(()=>Array.isArray(g)?g:[g,g],[g]),[le]=_C(G(G({},e),{},{id:ne,placeholder:ce})),[ue,de]=J.useState({position:`absolute`,width:0}),fe=qr(()=>{let e=oe(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=re.current.getBoundingClientRect(),r=t.left-n.left;de(e=>G(G({},e),{},{width:t.width,left:r})),P([t.left,t.right,n.width])}});J.useEffect(()=>{fe()},[s]);let pe=i&&(x[0]&&!k[0]||x[1]&&!k[1]),me=z&&!k[0],he=z&&!me&&!k[1];return J.createElement(go,{onResize:fe},J.createElement(`div`,DC({},se,{className:Z(U,`${U}-range`,{[`${U}-focused`]:u,[`${U}-disabled`]:k.every(e=>e),[`${U}-invalid`]:A.some(e=>e),[`${U}-rtl`]:H},_),style:v,ref:re,onClick:y,onMouseDown:e=>{let{target:t}=e;t!==ie.current.inputElement&&t!==ae.current.inputElement&&e.preventDefault(),I==null||I(e)}}),r&&J.createElement(`div`,{className:Z(`${U}-prefix`,ee.prefix),style:te.prefix},r),J.createElement(EC,DC({ref:ie},le(0),{className:`${U}-input-start`,autoFocus:me,tabIndex:B,"date-range":`start`})),J.createElement(`div`,{className:`${U}-range-separator`},o),J.createElement(EC,DC({ref:ae},le(1),{className:`${U}-input-end`,autoFocus:he,tabIndex:B,"date-range":`end`})),J.createElement(`div`,{className:`${U}-active-bar`,style:ue}),J.createElement(bC,{icon:a}),pe&&J.createElement(SC,{icon:i,onClear:b})))}var zue=J.forwardRef(Rue);K();function OC(e,t){return(0,J.useMemo)(()=>[G(G({},e),{},{popup:(e==null?void 0:e.popup)||{}}),G(G({},t),{},{popup:(t==null?void 0:t.popup)||{}})],[e,t])}K();function kC(){return kC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{disabled:t,allowEmpty:n}=e;return{disabled:AC(t,!1),allowEmpty:AC(n,!1)}}),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,defaultValue:p,value:m,needConfirm:h,onClear:g,onKeyDown:_,disabled:v,allowEmpty:y,disabledDate:b,minDate:x,maxDate:S,defaultOpen:C,open:w,onOpenChange:T,locale:E,generateConfig:D,picker:O,showNow:k,showToday:A,showTime:j,mode:M,onPanelChange:N,onCalendarChange:P,onOk:F,defaultPickerValue:I,pickerValue:L,onPickerValueChange:R,inputReadOnly:z,suffixIcon:B,onFocus:V,onBlur:H,presets:U,ranges:ee,components:te,cellRender:ne,dateRender:re,monthCellRender:ie,onClick:ae}=n,oe=OS(t),[se,ce]=OC(d,u),[le,ue]=DS(w,C,v,T),de=(e,t)=>{(v.some(e=>!e)||!e)&&ue(e,t)},[fe,pe,me,he,W]=RS(D,E,a,!0,!1,p,m,P,F),ge=me(),[_e,K,ve,q,ye,be,xe,Se,Ce]=jS(v,y,le),we=(e,t)=>{K(!0),V==null||V(e,{range:jC(t==null?q:t)})},Te=(e,t)=>{K(!1),H==null||H(e,{range:jC(t==null?q:t)})},Ee=J.useMemo(()=>{if(!j)return null;let{disabledTime:e}=j,t=e?t=>{let n=jC(q),r=eS(ge,xe,q);return e(t,n,{from:r})}:void 0;return G(G({},j),{},{disabledTime:t})},[j,q,ge,xe]),[De,Oe]=$r([O,O],M),ke=De[q]||O,Ae=ke===`date`&&Ee?`datetime`:ke,je=Ae===O&&Ae!==`time`,Me=BS(O,ke,k,A,!0),[Ne,Pe]=zS(n,fe,pe,me,he,v,a,_e,le,s),Fe=uue(ge,v,xe,D,E,b),[Ie,Le]=rS(ge,s,y),[Re,ze]=PS(D,E,ge,De,le,q,r,je,I,L,Ee==null?void 0:Ee.defaultOpenValue,R,x,S),Be=qr((e,t,n)=>{let r=Zx(De,q,t);if((r[0]!==De[0]||r[1]!==De[1])&&Oe(r),N&&n!==!1){let t=[...ge];e&&(t[q]=e),N(t,r)}}),Ve=(e,t)=>Zx(ge,t,e),He=(e,t)=>{let n=ge;e&&(n=Ve(e,q)),Se(q);let r=be(n);he(n),Ne(q,r===null),r===null?de(!1,{force:!0}):t||oe.current.focus({index:r})},Ue=e=>{var t;let n=e.target.getRootNode();if(!oe.current.nativeElement.contains((t=n.activeElement)==null?document.activeElement:t)){let e=v.findIndex(e=>!e);e>=0&&oe.current.focus({index:e})}de(!0),ae==null||ae(e)},We=()=>{Pe(null),de(!1,{force:!0}),g==null||g()},[Ge,Ke]=J.useState(null),[qe,Je]=J.useState(null),Ye=J.useMemo(()=>qe||ge,[ge,qe]);J.useEffect(()=>{le||Je(null)},[le]);let[Xe,Ze]=J.useState([0,0,0]),Qe=(e,t)=>{f===`hover`&&(Je(e),Ke(t))},$e=kS(U,ee),et=e=>{Qe(e,`preset`)},tt=e=>{Pe(e)&&(ve(`preset-click`),de(!1,{force:!0}))},nt=e=>{He(e)},rt=e=>{Qe(e?Ve(e,q):null,`cell`)},it=e=>{de(!0),we(e)},at=()=>{ve(`panel`)},ot=e=>{let t=Zx(ge,q,e);he(t),!h&&!i&&r===Ae&&He(e)},st=()=>{de(!1)},ct=nS(ne,re,ie,jC(q)),lt=ge[q]||null,ut=qr(e=>s(e,{activeIndex:q})),dt=J.useMemo(()=>{let e=Oa(n,!1);return Ca(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),ft=J.createElement(gC,kC({},dt,{showNow:Me,showTime:Ee,range:!0,multiplePanel:je,activeInfo:Xe,disabledDate:Fe,onFocus:it,onBlur:Te,onPanelMouseDown:at,picker:O,mode:ke,internalMode:Ae,onPanelChange:Be,format:o,value:lt,isInvalid:ut,onChange:null,onSelect:ot,pickerValue:Re,defaultOpenValue:Xx(j==null?void 0:j.defaultOpenValue)[q],onPickerValueChange:ze,hoverValue:Ye,onHover:rt,needConfirm:h,onSubmit:He,onOk:W,presets:$e,onPresetHover:et,onPresetSubmit:tt,onNow:nt,cellRender:ct,classNames:se,styles:ce})),pt=(e,t)=>{let n=Ve(e,t);he(n)},mt=()=>{ve(`input`)},ht=(e,t)=>{let n=xe.length,r=xe[n-1];if(n&&r!==t&&h&&!y[r]&&!Ce(r)&&ge[r]){oe.current.focus({index:r});return}ve(`input`),de(!0,{inherit:!0}),q!==t&&le&&!h&&i&&He(null,!0),ye(t),we(e,t)},gt=(e,t)=>{if(de(!1),!h&&ve()===`input`){let e=be(ge);Ne(q,e===null)}Te(e,t)},_t=(e,t)=>{e.key===`Tab`&&He(null,!0),_==null||_(e,t)},vt=J.useMemo(()=>({prefixCls:c,locale:E,generateConfig:D,button:te.button,input:te.input,classNames:se,styles:ce}),[c,E,D,te.button,te.input,se,ce]);return Xr(()=>{le&&q!==void 0&&Be(null,O,!1)},[le,q,O]),Xr(()=>{let e=ve();!le&&e===`input`&&(de(!1),He(null,!0)),!le&&i&&!h&&e===`panel`&&(de(!0),He())},[le]),J.createElement(qx.Provider,{value:vt},J.createElement(Jx,kC({},tS(n),{popupElement:ft,popupStyle:ce.popup.root,popupClassName:Z(l,se.popup.root),visible:le,onClose:st,range:!0}),J.createElement(zue,kC({},n,{ref:oe,className:Z(n.className,l,se.root),style:G(G({},ce.root),n.style),suffixIcon:B,activeIndex:_e||le?q:null,activeHelp:!!qe,allHelp:!!qe&&Ge===`preset`,focused:_e,onFocus:ht,onBlur:gt,onKeyDown:_t,onSubmit:He,value:Ye,maskFormat:o,onChange:pt,onInputChange:mt,format:a,inputReadOnly:z,disabled:v,open:le,onOpenChange:de,onClick:Ue,onClear:We,invalid:Ie,onInvalid:Le,onActiveInfo:Ze}))))}var Vue=J.forwardRef(Bue);function Hue(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return J.createElement(`span`,{className:Z(`${d}-item`),title:typeof e==`string`?e:null},J.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&J.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function m(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function h(e){return p(`+ ${e.length} ...`)}return J.createElement(`div`,{className:u},J.createElement(Bv,{prefixCls:f,data:n,renderItem:m,renderRest:h,itemKey:e=>a(e),maxCount:s}),!n.length&&J.createElement(`span`,{className:`${t}-selection-placeholder`},l))}K();var Uue=`id.open.prefix.clearIcon.suffixIcon.activeHelp.allHelp.focused.onFocus.onBlur.onKeyDown.locale.generateConfig.placeholder.className.style.onClick.onClear.internalPicker.value.onChange.onSubmit.onInputChange.multiple.maxTagCount.tagRender.format.maskFormat.preserveInvalidOnBlur.onInvalid.disabled.invalid.inputReadOnly.direction.onOpenChange.onMouseDown.required.aria-required.autoFocus.tabIndex.removeIcon`.split(`.`);function MC(){return MC=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:ie.current,focus:e=>{var t;(t=ae.current)==null||t.focus(e)},blur:()=>{var e;(e=ae.current)==null||e.blur()}}));let oe=vC(U),se=e=>{S([e])},ce=e=>{let t=x.filter(t=>t&&!bS(m,p,t,e,b));S(t),r||C()},[le,ue]=_C(G(G({},e),{},{onChange:se}),({valueTexts:e})=>({value:e[0]||``,active:l})),de=!!(a&&x.length&&!M),fe=T?J.createElement(J.Fragment,null,J.createElement(Hue,{prefixCls:te,value:x,onRemove:ce,formatDate:ue,maxTagCount:E,tagRender:D,disabled:M,removeIcon:H,placeholder:h}),J.createElement(`input`,{className:`${te}-multiple-input`,value:x.map(ue).join(`,`),ref:ae,readOnly:!0,autoFocus:B,tabIndex:V}),J.createElement(bC,{icon:o}),de&&J.createElement(SC,{icon:a,onClear:y})):J.createElement(EC,MC({ref:ae},le(),{autoFocus:B,tabIndex:V,suffixIcon:o,clearIcon:de&&J.createElement(SC,{icon:a,onClear:y}),showActiveCls:!1}));return J.createElement(`div`,MC({},oe,{className:Z(te,{[`${te}-multiple`]:T,[`${te}-focused`]:l,[`${te}-disabled`]:M,[`${te}-invalid`]:N,[`${te}-rtl`]:ee},g),style:_,ref:ie,onClick:v,onMouseDown:e=>{var t;let{target:n}=e;n!==((t=ae.current)==null?void 0:t.inputElement)&&e.preventDefault(),L==null||L(e)}}),i&&J.createElement(`div`,{className:Z(`${te}-prefix`,ne.prefix),style:re.prefix},i),fe)}var Gue=J.forwardRef(Wue);K();function NC(){return NC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(F){let r=G({},n);delete r.range,F(ue(e),ue(t),r)}},e=>{I==null||I(ue(e))}),q=_e(),[ye,be,xe,Se]=jS([b]),Ce=e=>{be(!0),te==null||te(e,{})},we=e=>{be(!1),ne==null||ne(e,{})},[Te,Ee]=$r(k,N),De=Te===`date`&&M?`datetime`:Te,Oe=BS(k,Te,A,j),ke=_&&((e,t)=>{_(ue(e),ue(t))}),[,Ae]=zS(G(G({},n),{},{onChange:ke}),W,ge,_e,K,[],a,ye,me,s),[je,Me]=rS(q,s),Ne=J.useMemo(()=>je.some(e=>e),[je]),[Pe,Fe]=PS(O,D,q,[Te],me,Se,r,!1,R,z,Xx(M==null?void 0:M.defaultOpenValue),(e,t)=>{if(B){let n=G(G({},t),{},{mode:t.mode[0]});delete n.range,B(e[0],n)}},S,C),Ie=qr((e,t,n)=>{if(Ee(t),P&&n!==!1){let n=e||q[q.length-1];P(n,t)}}),Le=()=>{Ae(_e()),he(!1,{force:!0})},Re=e=>{!b&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),he(!0),ce==null||ce(e)},ze=()=>{Ae(null),he(!1,{force:!0}),le.current.focus(),v==null||v()},[Be,Ve]=J.useState(null),[He,Ue]=J.useState(null),We=J.useMemo(()=>{let e=[He,...q].filter(e=>e);return L?e:e.slice(0,1)},[q,He,L]),Ge=J.useMemo(()=>!L&&He?[He]:q.filter(e=>e),[q,He,L]);J.useEffect(()=>{me||Ue(null)},[me]);let Ke=(e,t)=>{f===`hover`&&(Ue(e),Ve(t))},qe=kS(re),Je=e=>{Ke(e,`preset`)},Ye=e=>{let t=L?de(_e(),e):[e];Ae(t)&&!L&&he(!1,{force:!0})},Xe=e=>{Ye(e)},Ze=e=>{Ke(e,`cell`)},Qe=e=>{he(!0),Ce(e)},$e=e=>{if(xe(`panel`),L&&De!==k)return;let t=L?de(_e(),e):[e];K(t),!g&&!i&&r===De&&Le()},et=()=>{he(!1)},tt=nS(ae,oe,se),nt=J.useMemo(()=>{let e=Oa(n,!1);return G(G({},Ca(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`])),{},{multiple:n.multiple})},[n]),rt=J.createElement(gC,NC({},nt,{showNow:Oe,showTime:M,disabledDate:x,onFocus:Qe,onBlur:we,picker:k,mode:Te,internalMode:De,onPanelChange:Ie,format:o,value:q,isInvalid:s,onChange:null,onSelect:$e,pickerValue:Pe,defaultOpenValue:M==null?void 0:M.defaultOpenValue,onPickerValueChange:Fe,hoverValue:We,onHover:Ze,needConfirm:g,onSubmit:Le,onOk:ve,presets:qe,onPresetHover:Je,onPresetSubmit:Ye,onNow:Xe,cellRender:tt,classNames:fe,styles:pe})),it=e=>{K(e)},at=()=>{xe(`input`)},ot=e=>{xe(`input`),he(!0,{inherit:!0}),Ce(e)},st=e=>{he(!1),we(e)},ct=(e,t)=>{e.key===`Tab`&&Le(),y==null||y(e,t)},lt=J.useMemo(()=>({prefixCls:c,locale:D,generateConfig:O,button:ie.button,input:ie.input,classNames:fe,styles:pe}),[c,D,O,ie.button,ie.input,fe,pe]);return Xr(()=>{me&&Se!==void 0&&Ie(null,k,!1)},[me,Se,k]),Xr(()=>{let e=xe();!me&&e===`input`&&(he(!1),Le()),!me&&i&&!g&&e===`panel`&&Le()},[me]),J.createElement(qx.Provider,{value:lt},J.createElement(Jx,NC({},tS(n),{popupElement:rt,popupStyle:pe.popup.root,popupClassName:Z(l,fe.popup.root),visible:me,onClose:et}),J.createElement(Gue,NC({},n,{ref:le,className:Z(n.className,l,fe.root),style:G(G({},pe.root),n.style),suffixIcon:H,removeIcon:U,tagRender:ee,activeHelp:!!He,allHelp:!!He&&Be===`preset`,focused:ye,onFocus:ot,onBlur:st,onKeyDown:ct,onSubmit:Le,value:Ge,maskFormat:o,onChange:it,onInputChange:at,internalPicker:r,format:a,inputReadOnly:V,disabled:b,open:me,onOpenChange:he,onClick:Re,onClear:ze,invalid:Ne,onInvalid:e=>{Me(e,0)}}))))}var que=J.forwardRef(Kue),Jue=[`parentNode`],Yue=`form_item`;function PC(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function FC(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:Jue.includes(n)?`${Yue}_${n}`:n}function IC(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}K();var Xue=[`focus`];function LC(e){return PC(e).join(`_`)}function RC(e,t){let n=Ii(t.getFieldInstance(e));if(n)return n;let r=FC(PC(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function zC(e){let[t]=p_(),n=J.useRef({}),r=J.useMemo(()=>e==null?G(G({},t),{},{__INTERNAL__:{itemRef:e=>t=>{let r=LC(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n}=t,i=q(t,Xue),a=RC(e,r);a&&(Ap(a,G({scrollMode:`if-needed`,block:`nearest`},i)),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);if(up(t==null?void 0:t.focus))t.focus();else{var n,i;(n=RC(e,r))==null||(i=n.focus)==null||i.call(n)}},getFieldInstance:e=>{let t=LC(e);return n.current[t]}}):e,[e,t]);return[r]}var BC=J.createContext(void 0),Zue=BC.Provider,VC=J.createContext(void 0),Que=VC.Provider;K();var $ue=[`prefixCls`,`className`,`style`,`checked`,`disabled`,`defaultChecked`,`type`,`title`,`onChange`];function HC(){return HC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u}=e,d=q(e,$ue),f=(0,J.useRef)(null),p=(0,J.useRef)(null),[m,h]=$r(s,a);(0,J.useImperativeHandle)(t,()=>({focus:e=>{var t;(t=f.current)==null||t.focus(e)},blur:()=>{var e;(e=f.current)==null||e.blur()},input:f.current,nativeElement:p.current}));let g=Z(n,r,{[`${n}-checked`]:m,[`${n}-disabled`]:o});return J.createElement(`span`,{className:g,title:l,style:i,ref:p},J.createElement(`input`,HC({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||h(t.target.checked),u==null||u({target:G(G({},e),{},{type:c,checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!m,type:c})))});function WC(e){let t=J.useRef(null),n=()=>{Fa.cancel(t.current),t.current=null};return[()=>{n(),t.current=Fa(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}K();var ede=e=>{let{componentCls:t,antCls:n,lineWidth:r,borderRadius:i,borderRadiusLG:a,borderRadiusSM:o,calc:s}=e,c=`${t}-group`,l=`${t}-button-wrapper`,u=`${n}-badge`,d=e=>({[`> ${u}`]:{width:`auto`},[`> ${u} > ${l}`]:{width:`100%`},[`> ${u}:not(:last-child)`]:{marginBlockEnd:s(r).mul(-1).equal()},[`> ${u} > ${l}:not(:last-child)`]:{marginBlockEnd:0},[`> ${u}:first-child > ${l}`]:{borderStartStartRadius:e,borderStartEndRadius:e,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${u}:last-child > ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:e,borderEndEndRadius:e},[`> ${u}:not(:first-child):not(:last-child) > ${l}`]:{borderRadius:0},[`> ${u}:first-child:last-child > ${l}`]:{borderRadius:e}});return{[c]:G(G({},td(e)),{},{display:`inline-block`,fontSize:0,[`&${c}-rtl`]:{direction:`rtl`},[`&${c}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":G(G({display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`&:has(> ${l}, > ${u} > ${l})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0}},d(i)),{},{[`&${c}-large`]:G({},d(a)),[`&${c}-small`]:G({},d(o))})})}},tde=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:G(G({},td(e)),{},{display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},"&-block":{flex:1,justifyContent:`center`},[t]:G(G({},td(e)),{},{position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${Q(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:ad(e)}),[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},nde=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:Q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${Q(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Q(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:Q(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:Q(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:A(i).mul(-1).equal()},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:_,borderStartEndRadius:_},"&:last-child":{borderEndStartRadius:_,borderEndEndRadius:_},"&:first-child:last-child":{borderRadius:_}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g},"&:last-child":{borderEndStartRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":ad(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},GC=dd(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Q(n)} ${t}`,i=bl(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ede(i),tde(i),nde(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}});K();var rde=[`prefixCls`,`className`,`rootClassName`,`children`,`style`,`title`,`classNames`,`styles`,`checked`],KC=J.forwardRef((e,t)=>{var n;let r=J.useContext(BC),i=J.useContext(VC),{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=ko(`radio`),d=hi(t,J.useRef(null)),{isFormItemInput:f}=J.useContext(b_),p=t=>{var n,i;(n=e.onChange)==null||n.call(e,t),r==null||(i=r.onChange)==null||i.call(r,t)},{prefixCls:m,className:h,rootClassName:g,children:_,style:v,title:y,classNames:b,styles:x,checked:S}=e,C=q(e,rde),w=a(`radio`,m),T=((r==null?void 0:r.optionType)||i)===`button`,E=T?`${w}-button`:w,D=Fp(w),[O,k]=GC(w,D),A=G({},C),j=J.useContext(gm),M=`checked`in e,N=S;if(r){var P;A.name=r.name,A.onChange=p,N=e.value===r.value,A.disabled=(P=A.disabled)==null?r.disabled:P}(M||r)&&(A.checked=N),A.disabled=(n=A.disabled)==null?j:n;let F=G(G(G({},e),A),{},{checked:N}),I=yp(c),L=yp(v),[R,z]=xp([l,b],[u,I,x,L],{props:F}),B=Z(`${E}-wrapper`,{[`${E}-wrapper-checked`]:N,[`${E}-wrapper-disabled`]:A.disabled,[`${E}-wrapper-rtl`]:o===`rtl`,[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(r!=null&&r.block)},s,h,g,R.root,O,k,D),[V,H]=WC(A.onClick);return J.createElement(_h,{component:`Radio`,disabled:A.disabled},J.createElement(`label`,{className:B,style:z.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:V},J.createElement(UC,G(G({},A),{},{className:Z(R.icon,{[ph]:!T}),style:z.icon,type:`radio`,prefixCls:E,ref:d,onClick:H})),op(_)?J.createElement(`span`,{className:Z(`${E}-label`,R.label),style:z.label},_):null))});K();var ide=J.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=J.useContext(Eo),{name:i}=J.useContext(b_),a=ii(LC(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:m,id:h,optionType:g,name:_=a,defaultValue:v,value:y,block:b=!1,onChange:x,onMouseEnter:S,onMouseLeave:C,onFocus:w,onBlur:T,orientation:E,vertical:D,role:O=`radiogroup`}=e,[k,A]=$r(v,y),j=J.useCallback(t=>{let n=k,r=t.target.value;`value`in e||A(r),r!==n&&(x==null||x(t))},[k,A,x]),M=n(`radio`,o),N=`${M}-group`,P=Fp(M),[F,I]=GC(M,P),L=f;l&&l.length>0&&(L=l.map(e=>typeof e==`string`||sp(e)?J.createElement(KC,{key:e.toString(),prefixCls:M,disabled:d,value:e,checked:k===e},e):J.createElement(KC,{key:`radio-group-value-options-${e.value}`,prefixCls:M,disabled:e.disabled||d,value:e.value,checked:k===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let R=vh(p),[,z]=Hm(E,D),B=Z(N,`${N}-${u}`,{[`${N}-large`]:R===`large`,[`${N}-small`]:R===`small`,[`${N}-rtl`]:r===`rtl`,[`${N}-block`]:b},s,c,F,I,P),V=J.useMemo(()=>({onChange:j,value:k,disabled:d,name:_,optionType:g,block:b}),[j,k,d,_,g,b]);return J.createElement(`div`,G(G({},Oa(e,{aria:!0,data:!0})),{},{role:O,className:Z(B,{[`${M}-group-vertical`]:z}),style:m,onMouseEnter:S,onMouseLeave:C,onFocus:w,onBlur:T,id:h,ref:t}),J.createElement(Zue,{value:V},L))}),ade=J.memo(ide);K();var ode=[`prefixCls`],sde=J.forwardRef((e,t)=>{let{getPrefixCls:n}=J.useContext(Eo),{prefixCls:r}=e,i=q(e,ode),a=n(`radio`,r);return J.createElement(Que,{value:`button`},J.createElement(KC,G(G({prefixCls:a},i),{},{type:`radio`,ref:t})))}),qC=KC;qC.Button=sde,qC.Group=ade,qC.__ANT_RADIO=!0;function JC(e){return bl(e,{inputAffixPadding:e.paddingXXS})}var YC=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}};K();var cde=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),XC=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":G({},cde(bl(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled})))}),ZC=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),QC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:G(G({},ZC(e,t)),{},{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),$C=(e,t)=>({"&-outlined":G(G(G(G({},ZC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{},{[`&${e.componentCls}-disabled, &[disabled]`]:G({},XC(e))},QC(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix})),QC(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix})),t)}),ew=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lde=e=>({"&-outlined":G(G(G({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ew(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText})),ew(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{},{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:G({},XC(e))}})}),tw=`&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)`,nw=(e,t)=>({outline:`${Q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:Q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),rw=(e,t)=>({"&, & input, & textarea":{color:t.color},[tw]:nw(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),iw=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":G({background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[tw]:nw(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:rw(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:rw(e,{color:e.colorWarning,affixColor:e.colorWarningAffix})},t)}},aw=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)==null?`unset`:n},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},ow=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:G(G({},aw(e,t)),{},{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),sw=(e,t)=>({"&-filled":G(G(G(G({},aw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText})),{},{[`&${e.componentCls}-disabled, &[disabled]`]:G({},XC(e))},ow(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix})),ow(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix})),t)}),cw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ude=e=>({"&-filled":G(G(G({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}}},cw(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),cw(e,{status:`warning`,addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{},{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),lw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),uw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:G(G({},lw(e,t)),{},{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),dw=(e,t)=>({"&-underlined":G(G(G(G({},lw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{},{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`,"&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:`not-allowed`}},uw(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix})),uw(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix})),t)});K();var fw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),pw=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Q(t)} ${Q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},mw=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hw=(e,t={})=>G(G({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},fw(e.colorTextPlaceholder)),{},{"&-lg":G(G({},pw(e)),t.largeStyle),"&-sm":G(G({},mw(e)),t.smallStyle),"&-rtl, &-textarea-rtl":{direction:`rtl`}}),dde=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:G({},pw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:G({},mw(e)),[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:G(G({display:`block`},id()),{},{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select, + `]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, @@ -231,53 +228,53 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}})}},LUe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:te(I(I(I(I(I(I({},zr(e)),I4(e)),MU(e)),RU(e)),IU(e)),NU(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},FUe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":I({color:e.colorIcon,borderRadius:e.borderRadiusSM},sc(e)),"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${be(e.inputAffixPadding)}`}}}},kUe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a}=e,s=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[s]:I(te(I({},I4(e)),{display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:"inline-flex",color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}}),FUe(e)),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},DUe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:te(I(I({},zr(e)),PUe(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":te(I(I({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},RUe(e)),NUe(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},HUe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},wse=Br(["Input","Shared"],e=>{const t=dr(e,Yg(e));return[LUe(t),kUe(t)]},Xg,{resetFont:!1}),Cse=Br(["Input","Component"],e=>{const t=dr(e,Yg(e));return[DUe(t),HUe(t),$b(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Xg,{resetFont:!1}),UUe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:be(t),itemLineHeight:be(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},jUe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:["font-size","line-height","height"].map(d=>`${d} ${i}`).join(", "),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":te(I({},Fg()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},kU=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=UUe(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:be(o.itemLineHeight)}}}]},zUe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=dr(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=dr(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[kU(i,"small"),kU(e),kU(o,"large"),{[`${t}${t}-multiple`]:te(I({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:I({position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"},Wa)}},jUe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},QUe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:d,cellBgDisabled:A,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:be(r),borderRadius:i,transition:`background-color ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), - &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${be(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}})}},fde=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:G(G(G(G(G(G(G({},td(e)),hw(e)),$C(e)),sw(e)),iw(e)),dw(e)),{},{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}})}},pde=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":G({color:e.colorIcon,borderRadius:e.borderRadiusSM},ad(e)),"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Q(e.inputAffixPadding)}`}}}},mde=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:G(G({},hw(e)),{},{display:`inline-flex`,"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:`inline-flex`,color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}}},pde(e)),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},hde=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:G(G(G({},td(e)),dde(e)),{},{"&-rtl":{direction:`rtl`},"&-wrapper":G(G(G({display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},lde(e)),ude(e)),{},{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},gde=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},gw=dd([`Input`,`Shared`],e=>{let t=bl(e,JC(e));return[fde(t),mde(t)]},YC,{resetFont:!1}),_w=dd([`Input`,`Component`],e=>{let t=bl(e,JC(e));return[hde(t),gde(t),fg(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},YC,{resetFont:!1});K();var _de=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:Q(t),itemLineHeight:Q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},vde=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":G(G({},nd()),{},{display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}})}}}};K();var vw=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=_de(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Q(a.itemLineHeight)}}}]},yde=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=bl(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=bl(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[vw(i,`small`),vw(e),vw(a,`large`),{[`${t}${t}-multiple`]:G(G({width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:G({position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`},ed)}},vde(e)),{},{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}})}]};K();var bde=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:Q(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Q(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, + &-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:d,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:A}},[`&-disabled${t}-today ${n}::before`]:{borderColor:d}}},VUe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:d,borderRadiusLG:A,colorPrimary:h,colorTextHeading:p,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:b,textHeight:x,motionDurationMid:C,colorIconHover:S,fontWeightStrong:B,cellHeight:E,pickerCellPaddingVertical:_,colorTextDisabled:M,colorText:R,fontSize:T,motionDurationSlow:L,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:k,borderRadiusSM:H,colorTextLightSolid:D,cellHoverBg:U,timeColumnHeight:j,timeColumnWidth:Q,timeCellHeight:K,controlItemBgActive:z,marginXXS:V,pickerDatePanelPaddingHorizontal:Y,pickerControlIconMargin:Z}=e,W=e.calc(a).mul(7).add(e.calc(Y).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:A,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${be(l)}`,color:p,borderBottom:`${be(f)} ${d} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:be(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:T,"&:hover":{color:S},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:B,lineHeight:be(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:"absolute",top:Z,insetInlineStart:Z,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(_).mul(2)).equal(),color:R,verticalAlign:"middle"}},"&-cell":I({padding:`${be(_)} 0`,color:M,cursor:"pointer","&-in-view":{color:R}},QUe(e)),"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${be(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:k}},"&-decade-panel":{[r]:{padding:`0 ${be(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${be(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${be(l)} ${be(Y)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${C}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:U},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Rr(D).setA(.5).toHexString()},[r]:{color:D}}},"&-range-hover td:before":{background:z}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${be(l)} ${be(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${be(f)} ${d} ${v}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${L}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:Q,margin:`${be(c)} 0`,padding:0,overflowY:"auto",textAlign:"start",listStyle:"none",transition:`background-color ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${be(K)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${be(f)} ${d} ${v}`},"&-active":{background:new Rr(z).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(Q).sub(e.calc(V).mul(2)).equal(),height:K,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(Q).sub(K).div(2).equal(),color:R,lineHeight:be(K),borderRadius:H,cursor:"pointer",transition:`background-color ${C}`,"&:hover":{background:U}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:M,background:"transparent",cursor:"not-allowed"}}}}}}}}},KUe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${be(r)} ${c} ${u}`,"&-extra":{padding:`0 ${be(i)}`,lineHeight:be(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${be(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:be(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:be(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},WUe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},GUe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:o,lineWidth:a}=e,s=o*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Rr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Rr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},qUe=e=>te(I(I(I({},Xg(e)),GUe(e)),WM(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),YUe=e=>{const{componentCls:t}=e;return{[t]:[I(I(I(I({},MU(e)),NU(e)),RU(e)),IU(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},DU=(e,t)=>({padding:`${be(e)} ${be(t)}`}),XUe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e,[i]=go(e.antCls,"date-picker");return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i("affix-color")]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i("affix-color")]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},ZUe=e=>{var Z;const{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:o,colorBorder:a,borderRadius:s,motionDurationMid:l,colorTextDisabled:c,colorTextPlaceholder:u,colorTextQuaternary:f,fontSizeLG:d,inputFontSizeLG:A,fontSizeSM:h,inputFontSizeSM:p,controlHeightSM:v,paddingInlineSM:y,paddingXS:b,marginXS:x,colorIcon:C,lineWidthBold:S,colorPrimary:B,motionDurationSlow:E,zIndexPopup:_,paddingXXS:M,sizePopupArrow:R,colorBgElevated:T,borderRadiusLG:L,boxShadowSecondary:P,borderRadiusSM:k,colorSplit:H,cellHoverBg:D,presetsWidth:U,presetsMaxWidth:j,boxShadowPopoverArrow:Q,fontHeight:K,lineHeightLG:z}=e,[V,Y]=go(n,"date-picker");return[{[t]:te(I(I({[V("affix-color")]:"inherit"},zr(e)),DU(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:["border","box-shadow","background-color"].map(W=>`${W} ${l}`).join(", "),[`${t}-prefix`]:{color:Y("affix-color"),flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":te(I({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(Z=e.inputFontSize)!=null?Z:e.fontSize,lineHeight:e.lineHeight,transition:`all ${l}`},PU(u)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:c,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:u}}},"&-large":te(I({},DU(e.paddingBlockLG,e.paddingInlineLG)),{borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:A!=null?A:d,lineHeight:z}}),"&-small":te(I({},DU(e.paddingBlockSM,e.paddingInlineSM)),{borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:p!=null?p:h}}),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:f,lineHeight:1,pointerEvents:"none",transition:["opacity","color"].map(W=>`${W} ${l}`).join(", "),"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:f,lineHeight:1,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0,appearance:"none",transform:"translateY(-50%)",cursor:"pointer",opacity:0,pointerEvents:"none",transition:["opacity","color"].map(W=>`${W} ${l}`).join(", "),"> *":{verticalAlign:"top"},"&:hover":{color:C},"&:focus-visible":I({color:e.colorIcon,borderRadius:e.borderRadiusSM},sc(e))},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:"auto"},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:d,color:f,fontSize:d,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:C},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:S,background:B,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${be(b)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y}}},"&-dropdown":te(I(I({},zr(e)),VUe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, - &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, - &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:fE},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:cE},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:dE},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:uE},[`${t}-panel > ${t}-time-panel`]:{paddingTop:M},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:te(I({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${E} ease-out`},moe(e,T,Q)),{"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:L,boxShadow:P,transition:`margin ${E}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:U,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:`${be(i)} ${o} ${H}`,li:te(I({},Wa),{borderRadius:k,paddingInline:b,paddingBlock:e.calc(v).sub(K).div(2).equal(),cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:x},"&:hover":{background:D}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:a}}}}),"&-dropdown-range":{padding:`${be(e.calc(R).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},qu(e,"slide-up"),qu(e,"slide-down"),Ob(e,"move-up"),Ob(e,"move-down")]},Sse=Br("DatePicker",e=>{const t=dr(Yg(e),WUe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[KUe(t),ZUe(t),YUe(t),XUe(t),zUe(t),$b(e,{focusElCls:`${e.componentCls}-focused`})]},qUe);var R4={},Ese;function JUe(){if(Ese)return R4;Ese=1,Object.defineProperty(R4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};return R4.default=e,R4}var e7e=JUe();const t7e=_t(e7e);function HU(){return HU=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,HU({},e,{ref:t,icon:t7e})),Bse=g.forwardRef(n7e),UU=g.createContext(null),r7e=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:o,align:a="center"}=i,[s,l]=g.useState(),c=g.useRef(),u=Be.useCallback(d=>typeof o=="function"?o(d):typeof o=="number"?o:d,[o]);function f(){Kn.cancel(c.current)}return g.useEffect(()=>{const d={};if(t)if(n){d.width=u(t.width);const A=r?"right":"left";a==="start"&&(d[A]=t[A]),a==="center"&&(d[A]=t[A]+t.width/2,d.transform=r?"translateX(50%)":"translateX(-50%)"),a==="end"&&(d[A]=t[A]+t.width,d.transform="translateX(-100%)")}else d.height=u(t.height),a==="start"&&(d.top=t.top),a==="center"&&(d.top=t.top+t.height/2,d.transform="translateY(-50%)"),a==="end"&&(d.top=t.top+t.height,d.transform="translateY(-100%)");return f(),c.current=Kn(()=>{s&&d&&Object.keys(d).every(h=>{const p=d[h],v=s[h];return typeof p=="number"&&typeof v=="number"?Math.round(p)===Math.round(v):p===v})||l(d)}),f},[JSON.stringify(t),n,r,a,u]),{style:s}},Ose={width:0,height:0,left:0,top:0};function i7e(e,t,n){return g.useMemo(()=>{var a,s;const r=new Map,i=t.get((a=e[0])==null?void 0:a.key)||Ose,o=i.left+i.width;for(let l=0;lr.key).join("_"),t,n])}function $se(e,t){const n=g.useRef(e),[,r]=g.useState({});function i(o){const a=typeof o=="function"?o(n.current):o;a!==n.current&&t(a,n.current),n.current=a,r({})}return[n.current,i]}const o7e=.1,_se=.01,N4=20,Tse=na(.995,N4);function a7e(e,t){const[n,r]=g.useState(),[i,o]=g.useState(0),[a,s]=g.useState(0),[l,c]=g.useState(),u=g.useRef();function f(y){const{screenX:b,screenY:x}=y.touches[0];r({x:b,y:x}),window.clearInterval(u.current)}function d(y){if(!n)return;const{screenX:b,screenY:x}=y.touches[0];r({x:b,y:x});const C=b-n.x,S=x-n.y;t(C,S);const B=Date.now();o(B),s(B-i),c({x:C,y:S})}function A(){if(n&&(r(null),c(null),l)){const y=l.x/a,b=l.y/a,x=Math.abs(y),C=Math.abs(b);if(Math.max(x,C){if(Math.abs(S)<_se&&Math.abs(B)<_se){window.clearInterval(u.current);return}S*=Tse,B*=Tse,t(S*N4,B*N4)},N4)}}const h=g.useRef();function p(y){const{deltaX:b,deltaY:x}=y;let C=0;const S=Math.abs(b),B=Math.abs(x);S===B?C=h.current==="x"?b:x:S>B?(C=b,h.current="x"):(C=x,h.current="y"),t(-C,-C)&&y.preventDefault()}const v=g.useRef(null);v.current={onTouchStart:f,onTouchMove:d,onTouchEnd:A,onWheel:p},g.useEffect(()=>{function y(S){v.current.onTouchStart(S)}function b(S){v.current.onTouchMove(S)}function x(S){v.current.onTouchEnd(S)}function C(S){v.current.onWheel(S)}return document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",x,{passive:!0}),e.current.addEventListener("touchstart",y,{passive:!0}),e.current.addEventListener("wheel",C,{passive:!1}),()=>{document.removeEventListener("touchmove",b),document.removeEventListener("touchend",x)}},[])}function Mse(e){const[t,n]=g.useState(0),r=g.useRef(0),i=g.useRef();return i.current=e,DS(()=>{var o;(o=i.current)==null||o.call(i)},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function s7e(e){const t=g.useRef([]),[,n]=g.useState({}),r=g.useRef(typeof e=="function"?e():e),i=Mse(()=>{let a=r.current;t.current.forEach(s=>{a=s(a)}),t.current=[],r.current=a,n({})});function o(a){t.current.push(a),i()}return[r.current,o]}const Ise={width:0,height:0,left:0,top:0,right:0};function l7e(e,t,n,r,i,o,{tabs:a,tabPosition:s,rtl:l}){let c,u,f;return["top","bottom"].includes(s)?(c="width",u=l?"right":"left",f=Math.abs(n)):(c="height",u="top",f=-n),g.useMemo(()=>{if(!a.length)return[0,0];const d=a.length;let A=d;for(let p=0;pMath.floor(f+t)){A=p-1;break}}let h=0;for(let p=d-1;p>=0;p-=1)if((e.get(a[p].key)||Ise)[u]A?[0,-1]:[h,A]},[e,t,r,i,o,f,s,a.map(d=>d.key).join("_"),l])}function Rse(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const c7e="TABS_DQ";function Nse(e){return String(e).replace(/"/g,c7e)}function jU(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const Pse=g.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:i,style:o}=e;return!r||r.showAdd===!1?null:g.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:a=>{r.onEdit("add",{event:a})}},r.addIcon||"+")}),Lse=g.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let o,a={};return typeof i=="object"&&!g.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?g.createElement("div",{className:`${r}-extra-content`,ref:t},o):null});function zU(){return zU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{prefixCls:n,id:r,tabs:i,locale:o,mobile:a,more:s={},style:l,className:c,editable:u,tabBarGutter:f,rtl:d,removeAriaLabel:A,onTabClick:h,getPopupContainer:p,popupClassName:v,popupStyle:y,classNames:b,styles:x}=e,[C,S]=g.useState(!1),[B,E]=g.useState(null),{icon:_="More"}=s,M=`${r}-more-popup`,R=`${n}-dropdown`,T=B!==null?`${M}-${B}`:null,L=o==null?void 0:o.dropdownAriaLabel;function P(K,z){K.preventDefault(),K.stopPropagation(),u.onEdit("remove",{key:z,event:K})}const k=g.createElement(jb,{onClick:({key:K,domEvent:z})=>{h(K,z),S(!1)},prefixCls:`${R}-menu`,id:M,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[B],"aria-label":L!==void 0?L:"expanded dropdown"},i.map(K=>{const{closable:z,disabled:V,closeIcon:Y,key:Z,label:W}=K,J=jU(z,Y,u,V);return g.createElement(RE,{key:Z,id:`${M}-${Z}`,role:"option","aria-controls":r&&`${r}-panel-${Z}`,disabled:V},g.createElement("span",null,W),J&&g.createElement("button",{type:"button","aria-label":A||"remove",tabIndex:0,className:Ae(`${R}-menu-item-remove`,b==null?void 0:b.remove),style:x==null?void 0:x.remove,onClick:ee=>{ee.stopPropagation(),P(ee,Z)}},Y||u.removeIcon||"×"))}));function H(K){const z=i.filter(Z=>!Z.disabled);let V=z.findIndex(Z=>Z.key===B)||0;const Y=z.length;for(let Z=0;Z{const K=document.getElementById(T);K!=null&&K.scrollIntoView&&K.scrollIntoView(!1)},[T,B]),g.useEffect(()=>{C||E(null)},[C]);const U={marginInlineStart:f};i.length||(U.visibility="hidden",U.order=1);const j=Ae(v,{[`${R}-rtl`]:d}),Q=a?null:g.createElement(Toe,zU({prefixCls:R,overlay:k,visible:i.length?C:!1,onVisibleChange:S,overlayClassName:j,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:p},s),g.createElement("button",{type:"button",className:`${n}-nav-more`,style:U,"aria-haspopup":"listbox","aria-controls":M,id:`${r}-more`,"aria-expanded":C,onKeyDown:D},_));return g.createElement("div",{className:Ae(`${n}-nav-operations`,c),style:l,ref:t},Q,g.createElement(Pse,{prefixCls:n,locale:o,editable:u}))}),f7e=g.memo(u7e,(e,t)=>t.tabMoving),d7e=e=>{const{prefixCls:t,id:n,active:r,focus:i,tab:{key:o,label:a,disabled:s,closeIcon:l,icon:c},closable:u,renderWrapper:f,removeAriaLabel:d,editable:A,onClick:h,onFocus:p,onBlur:v,onKeyDown:y,onMouseDown:b,onMouseUp:x,styles:C,classNames:S,tabCount:B,currentPosition:E}=e,_=`${t}-tab`,M=jU(u,l,A,s);function R(H){s||h(H)}function T(H){H.preventDefault(),H.stopPropagation(),A.onEdit("remove",{key:o,event:H})}const L=g.useMemo(()=>c&&typeof a=="string"?g.createElement("span",null,a):a,[a,c]),P=g.useRef(null);g.useEffect(()=>{i&&P.current&&P.current.focus()},[i]);const k=g.createElement("div",{key:o,"data-node-key":Nse(o),className:Ae(_,S==null?void 0:S.item,{[`${_}-with-remove`]:M,[`${_}-active`]:r,[`${_}-disabled`]:s,[`${_}-focus`]:i}),style:C==null?void 0:C.item,onClick:R},g.createElement("div",{ref:P,role:"tab","aria-selected":r,id:n&&`${n}-tab-${o}`,className:`${_}-btn`,"aria-controls":n&&`${n}-panel-${o}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:H=>{H.stopPropagation(),R(H)},onKeyDown:y,onMouseDown:b,onMouseUp:x,onFocus:p,onBlur:v},i&&g.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${E} of ${B}`),c&&g.createElement("span",{className:`${_}-icon`},c),a&&L),M&&g.createElement("button",{type:"button","aria-label":d||"remove",tabIndex:r?0:-1,className:Ae(`${_}-remove`,S==null?void 0:S.remove),style:C==null?void 0:C.remove,onClick:H=>{H.stopPropagation(),T(H)}},l||A.removeIcon||"×"));return f?f(k):k};function QU(){return QU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:o}=e,{width:a,height:s,left:l,top:c}=e.getBoundingClientRect();return Math.abs(a-n)<1?[a,s,l-t.left,c-t.top]:[n,r,o,i]},Vb=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:i}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,i]}return[t,n]},P4=(e,t)=>e[t?0:1],Fse=g.forwardRef((e,t)=>{const{className:n,style:r,id:i,animated:o,activeKey:a,rtl:s,extra:l,editable:c,locale:u,tabPosition:f,tabBarGutter:d,children:A,onTabClick:h,onTabScroll:p,indicator:v,classNames:y,styles:b}=e,{prefixCls:x,tabs:C}=g.useContext(UU),S=g.useRef(null),B=g.useRef(null),E=g.useRef(null),_=g.useRef(null),M=g.useRef(null),R=g.useRef(null),T=g.useRef(null),L=f==="top"||f==="bottom",[P,k]=$se(0,(De,ze)=>{L&&p&&p({direction:De>ze?"left":"right"})}),[H,D]=$se(0,(De,ze)=>{!L&&p&&p({direction:De>ze?"top":"bottom"})}),[U,j]=g.useState([0,0]),[Q,K]=g.useState([0,0]),[z,V]=g.useState([0,0]),[Y,Z]=g.useState([0,0]),[W,J]=s7e(new Map),ee=i7e(C,W,Q[0]),ne=P4(U,L),re=P4(Q,L),ue=P4(z,L),de=P4(Y,L),se=Math.floor(ne)le?le:De}const we=g.useRef(null),[me,Ee]=g.useState();function Ce(){Ee(Date.now())}function pe(){we.current&&clearTimeout(we.current)}a7e(_,(De,ze)=>{function bt(lt,At){lt(ut=>ve(ut+At))}return se?(L?bt(k,De):bt(D,ze),pe(),Ce(),!0):!1}),g.useEffect(()=>(pe(),me&&(we.current=setTimeout(()=>{Ee(0)},100)),pe),[me]);const[Oe,xe]=l7e(ee,ce,L?P:H,re,ue,de,te(I({},e),{tabs:C})),Me=yn((De=a)=>{const ze=ee.get(De)||{width:0,height:0,left:0,right:0,top:0};if(L){let bt=P;s?ze.rightP+ce&&(bt=ze.right+ze.width-ce):ze.left<-P?bt=-ze.left:ze.left+ze.width>-P+ce&&(bt=-(ze.left+ze.width-ce)),D(0),k(ve(bt))}else{let bt=H;ze.top<-H?bt=-ze.top:ze.top+ze.height>-H+ce&&(bt=-(ze.top+ze.height-ce)),k(0),D(ve(bt))}}),[Se,Pe]=g.useState(),[Le,He]=g.useState(!1),Ne=C.filter(De=>!De.disabled).map(De=>De.key),at=De=>{const ze=Ne.indexOf(Se||a),bt=Ne.length,lt=(ze+De+bt)%bt,At=Ne[lt];Pe(At)},Ue=(De,ze)=>{const bt=Ne.indexOf(De),lt=C.find(ut=>ut.key===De);jU(lt==null?void 0:lt.closable,lt==null?void 0:lt.closeIcon,c,lt==null?void 0:lt.disabled)&&(ze.preventDefault(),ze.stopPropagation(),c.onEdit("remove",{key:De,event:ze}),bt===Ne.length-1?at(-1):at(1))},et=(De,ze)=>{He(!0),ze.button===1&&Ue(De,ze)},We=De=>{const{code:ze}=De,bt=s&&L,lt=Ne[0],At=Ne[Ne.length-1];switch(ze){case"ArrowLeft":{L&&at(bt?1:-1);break}case"ArrowRight":{L&&at(bt?-1:1);break}case"ArrowUp":{De.preventDefault(),L||at(-1);break}case"ArrowDown":{De.preventDefault(),L||at(1);break}case"Home":{De.preventDefault(),Pe(lt);break}case"End":{De.preventDefault(),Pe(At);break}case"Enter":case"Space":{De.preventDefault(),h(Se!=null?Se:a,De);break}case"Backspace":case"Delete":{Ue(Se,De);break}}},Je={};L?Je.marginInlineStart=d:Je.marginTop=d;const dt=C.map((De,ze)=>{const{key:bt}=De;return g.createElement(d7e,{id:i,prefixCls:x,key:bt,tab:De,classNames:{item:y==null?void 0:y.item,remove:y==null?void 0:y.remove},styles:{item:ze===0?b==null?void 0:b.item:I(I({},Je),b==null?void 0:b.item),remove:b==null?void 0:b.remove},closable:De.closable,editable:c,active:bt===a,focus:bt===Se,renderWrapper:A,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:Ne.length,currentPosition:ze+1,onClick:lt=>{h(bt,lt)},onKeyDown:We,onFocus:()=>{Le||Pe(bt),Me(bt),Ce(),_.current&&(s||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:()=>{Pe(void 0)},onMouseDown:lt=>et(bt,lt),onMouseUp:()=>{He(!1)}})}),wt=()=>J(()=>{var bt;const De=new Map,ze=(bt=M.current)==null?void 0:bt.getBoundingClientRect();return C.forEach(({key:lt})=>{var ut;const At=(ut=M.current)==null?void 0:ut.querySelector(`[data-node-key="${Nse(lt)}"]`);if(At){const[ft,Kt,An,pn]=A7e(At,ze);De.set(lt,{width:ft,height:Kt,left:An,top:pn})}}),De});g.useEffect(()=>{wt()},[C.map(De=>De.key).join("_")]);const Bt=Mse(()=>{const De=Vb(S),ze=Vb(B),bt=Vb(E);j([De[0]-ze[0]-bt[0],De[1]-ze[1]-bt[1]]);const lt=Vb(T);V(lt);const At=Vb(R);Z(At);const ut=Vb(M);K([ut[0]-lt[0],ut[1]-lt[1]]),wt()}),qt=C.slice(0,Oe),jt=C.slice(xe+1),nn=[...qt,...jt],Jt=ee.get(a),{style:Ot}=r7e({activeTabOffset:Jt,horizontal:L,indicator:v,rtl:s});g.useEffect(()=>{Me()},[a,ie,le,Rse(Jt),Rse(ee),L]),g.useEffect(()=>{Bt()},[s]);const sn=!!nn.length,Vt=`${x}-nav-wrap`;let xt,qe,it,Pt;return L?s?(qe=P>0,xt=P!==le):(xt=P<0,qe=P!==ie):(it=H<0,Pt=H!==ie),g.createElement(Bl,{onResize:Bt},g.createElement("div",{ref:ed(t,S),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:Ae(`${x}-nav`,n,y==null?void 0:y.header),style:I(I({},b==null?void 0:b.header),r),onKeyDown:()=>{Ce()}},g.createElement(Lse,{ref:B,position:"left",extra:l,prefixCls:x}),g.createElement(Bl,{onResize:Bt},g.createElement("div",{className:Ae(Vt,{[`${Vt}-ping-left`]:xt,[`${Vt}-ping-right`]:qe,[`${Vt}-ping-top`]:it,[`${Vt}-ping-bottom`]:Pt}),ref:_},g.createElement(Bl,{onResize:Bt},g.createElement("div",{ref:M,className:`${x}-nav-list`,style:{transform:`translate(${P}px, ${H}px)`,transition:me?"none":void 0}},dt,g.createElement(Pse,{ref:T,prefixCls:x,locale:u,editable:c,style:te(I({},dt.length===0?void 0:Je),{visibility:sn?"hidden":null})}),g.createElement("div",{className:Ae(`${x}-ink-bar`,y==null?void 0:y.indicator,{[`${x}-ink-bar-animated`]:o.inkBar}),style:I(I({},Ot),b==null?void 0:b.indicator)}))))),g.createElement(f7e,QU({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:R,prefixCls:x,tabs:nn,className:!sn&&ge,popupStyle:b==null?void 0:b.popup,tabMoving:!!me})),g.createElement(Lse,{ref:E,position:"right",extra:l,prefixCls:x})))}),h7e=n=>{var r=n,{renderTabBar:e}=r,t=Ze(r,["renderTabBar"]);return e?e(t,Fse):g.createElement(Fse,t)},p7e=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,id:o,active:a,tabKey:s,children:l}=e,c=g.Children.count(l)>0;return g.createElement("div",{id:o&&`${o}-panel-${s}`,role:"tabpanel",tabIndex:a&&c?0:-1,"aria-labelledby":o&&`${o}-tab-${s}`,"aria-hidden":!a,style:i,className:Ae(n,a&&`${n}-active`,r),ref:t},l)});function L4(){return L4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:o,bodyStyle:a,bodyClassName:s,contentStyle:l,contentClassName:c}=e,{prefixCls:u,tabs:f}=g.useContext(UU),d=r.tabPane,A=`${u}-body`,h=`${u}-content`;return g.createElement("div",{className:Ae(`${A}-holder`)},g.createElement("div",{className:Ae(A,`${A}-${i}`,{[`${A}-animated`]:d},s),style:a},f.map(p=>{const E=p,{key:v,forceRender:y,style:b,className:x,destroyOnHidden:C}=E,S=Ze(E,["key","forceRender","style","className","destroyOnHidden"]),B=v===n;return g.createElement(sl,L4({key:v,visible:B,forceRender:y,removeOnLeave:!!(o!=null?o:C),leavedClassName:`${h}-hidden`},r.tabPaneMotion),({style:_,className:M},R)=>g.createElement(p7e,L4({},S,{prefixCls:h,id:t,tabKey:v,animated:d,active:B,style:I(I(I({},l),b),_),className:Ae(c,x,M),ref:R})))})))};function m7e(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=I({inkBar:!0},typeof e=="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function GE(){return GE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var ne;const ee=e,{id:n,prefixCls:r="rc-tabs",className:i,items:o,direction:a,activeKey:s,defaultActiveKey:l,editable:c,animated:u,tabPosition:f="top",tabBarGutter:d,tabBarStyle:A,tabBarExtraContent:h,locale:p,more:v,destroyOnHidden:y,renderTabBar:b,onChange:x,onTabClick:C,onTabScroll:S,getPopupContainer:B,popupClassName:E,indicator:_,classNames:M,styles:R}=ee,T=Ze(ee,["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyOnHidden","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator","classNames","styles"]),L=g.useMemo(()=>(o||[]).filter(re=>re&&typeof re=="object"&&"key"in re),[o]),P=a==="rtl",k=m7e(u),[H,D]=g.useState(!1);g.useEffect(()=>{D(iRe())},[]);const[U,j]=Fr(l!=null?l:(ne=L[0])==null?void 0:ne.key,s),[Q,K]=g.useState(()=>L.findIndex(re=>re.key===U));g.useEffect(()=>{var ue;let re=L.findIndex(de=>de.key===U);re===-1&&(re=Math.max(0,Math.min(Q,L.length-1)),j((ue=L[re])==null?void 0:ue.key)),K(re)},[L.map(re=>re.key).join("_"),U,Q]);const[z,V]=Fr(null,n);g.useEffect(()=>{n||(V(`rc-tabs-${kse}`),kse+=1)},[]);function Y(re,ue){C==null||C(re,ue);const de=re!==U;j(re),de&&(x==null||x(re))}const Z={id:z,activeKey:U,animated:k,tabPosition:f,rtl:P,mobile:H},W=te(I({},Z),{editable:c,locale:p,more:v,tabBarGutter:d,onTabClick:Y,onTabScroll:S,extra:h,style:A,getPopupContainer:B,popupClassName:Ae(E,M==null?void 0:M.popup),indicator:_,styles:R,classNames:M}),J=g.useMemo(()=>({tabs:L,prefixCls:r}),[L,r]);return g.createElement(UU.Provider,{value:J},g.createElement("div",GE({ref:t,id:n,className:Ae(r,`${r}-${f}`,{[`${r}-mobile`]:H,[`${r}-editable`]:c,[`${r}-rtl`]:P},i)},T),g.createElement(h7e,GE({},W,{renderTabBar:b})),g.createElement(g7e,GE({destroyOnHidden:y},Z,{bodyStyle:R==null?void 0:R.body,bodyClassName:M==null?void 0:M.body,contentStyle:R==null?void 0:R.content,contentClassName:M==null?void 0:M.content,animated:k}))))}),y7e={motionAppear:!1,motionEnter:!0,motionLeave:!0};function b7e(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=I({inkBar:!0},Zn(t)?t:{}),n.tabPane&&(n.tabPaneMotion=te(I({},y7e),{motionName:Yh(e,"switch")})),n}function x7e(e){return e.filter(t=>t)}function w7e(e,t){if(e)return e.map(r=>{var i;return te(I({},r),{destroyOnHidden:(i=r.destroyOnHidden)!=null?i:r.destroyInactiveTabPane})});const n=pa(t).map(r=>{if(g.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=Ze(i,["tab"]);return te(I({key:String(o)},l),{label:s})}return null});return x7e(n)}const C7e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[qu(e,"slide-up"),qu(e,"slide-down")]]},S7e=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${be(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:sc(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:be(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:be(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadiusLG)} 0 0 ${be(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},E7e=e=>{const{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:te(I({},zr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},xde=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${Q(c)}`,color:h,borderBottom:`${Q(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:Q(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:Q(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":G({padding:`${Q(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E}},bde(e)),"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${Q(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${Q(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${Q(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Q(c)} ${Q(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Hl(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Q(c)} ${Q(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${Q(d)} ${f} ${g}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${Q(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${Q(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${Q(d)} ${f} ${g}`},"&-active":{background:new Hl(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:Q(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},Sde=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Q(r)} ${l} ${u}`,"&-extra":{padding:`0 ${Q(i)}`,lineHeight:Q(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${Q(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:Q(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:Q(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}};K();var Cde=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},wde=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Hl(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Hl(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},Tde=e=>G(G(G(G({},YC(e)),wde(e)),qy(e)),{},{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});K();var Ede=e=>{let{componentCls:t}=e;return{[t]:[G(G(G(G({},$C(e)),dw(e)),sw(e)),iw(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};K();var yw=(e,t)=>({padding:`${Q(e)} ${Q(t)}`}),Dde=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=md(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},Ode=e=>{var t;let{componentCls:n,antCls:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:c,motionDurationMid:l,colorTextDisabled:u,colorTextPlaceholder:d,colorTextQuaternary:f,fontSizeLG:p,inputFontSizeLG:m,fontSizeSM:h,inputFontSizeSM:g,controlHeightSM:_,paddingInlineSM:v,paddingXS:y,marginXS:b,colorIcon:x,lineWidthBold:S,colorPrimary:C,motionDurationSlow:w,zIndexPopup:T,paddingXXS:E,sizePopupArrow:D,colorBgElevated:O,borderRadiusLG:k,boxShadowSecondary:A,borderRadiusSM:j,colorSplit:M,cellHoverBg:N,presetsWidth:P,presetsMaxWidth:F,boxShadowPopoverArrow:I,fontHeight:L,lineHeightLG:R}=e,[z,B]=md(r,`date-picker`);return[{[n]:G(G(G({[z(`affix-color`)]:`inherit`},td(e)),yw(e.paddingBlock,e.paddingInline)),{},{position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:c,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${l}`).join(`, `),[`${n}-prefix`]:{color:B(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":G(G({position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:(t=e.inputFontSize)==null?e.fontSize:t,lineHeight:e.lineHeight,transition:`all ${l}`},fw(d)),{},{flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:u,cursor:`not-allowed`}}),"&-placeholder":{"> input":{color:d}}},"&-large":G(G({},yw(e.paddingBlockLG,e.paddingInlineLG)),{},{borderRadius:e.borderRadiusLG,[`${n}-input > input`]:{fontSize:m==null?p:m,lineHeight:R}}),"&-small":G(G({},yw(e.paddingBlockSM,e.paddingInlineSM)),{},{borderRadius:e.borderRadiusSM,[`${n}-input > input`]:{fontSize:g==null?h:g}}),[`${n}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(y).div(2).equal(),color:f,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${l}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:b}}},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:f,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${l}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:x},"&:focus-visible":G({color:e.colorIcon,borderRadius:e.borderRadiusSM},ad(e))},"&:hover, &:focus-within":{[`${n}-clear`]:{opacity:1,pointerEvents:`auto`},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:p,color:f,fontSize:p,verticalAlign:`top`,cursor:`default`,[`${n}-focused &`]:{color:x},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:S,background:C,opacity:0,transition:`all ${w} ease-out`,pointerEvents:`none`},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:`center`,padding:`0 ${Q(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:i},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:v}}},"&-dropdown":G(G(G({},td(e)),xde(e)),{},{pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,[`&${n}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${n}-dropdown-placement-bottomLeft, + &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${n}-dropdown-placement-topLeft, + &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:`none`}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight, + &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft, + &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Rh},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight, + &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft, + &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Ih},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:`none`},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft, + &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:zh},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft, + &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Lh},[`${n}-panel > ${n}-time-panel`]:{paddingTop:E},[`${n}-range-wrapper`]:{display:`flex`,position:`relative`},[`${n}-range-arrow`]:G(G({position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${w} ease-out`},Jy(e,O,I)),{},{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:O,borderRadius:k,boxShadow:A,transition:`margin ${w}`,display:`inline-block`,pointerEvents:`auto`,[`${n}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${n}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:P,maxWidth:F,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:y,borderInlineEnd:`${Q(a)} ${o} ${M}`,li:G(G({},ed),{},{borderRadius:j,paddingInline:y,paddingBlock:e.calc(_).sub(L).div(2).equal(),cursor:`pointer`,transition:`all ${w}`,"+ li":{marginTop:b},"&:hover":{background:N}})}},[`${n}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Q(e.calc(D).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${n}-separator`]:{transform:`scale(-1, 1)`},[`${n}-footer`]:{"&-extra":{direction:`rtl`}}}})},Wh(e,`slide-up`),Wh(e,`slide-down`),Fh(e,`move-up`),Fh(e,`move-down`)]},bw=dd(`DatePicker`,e=>{let t=bl(JC(e),Cde(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Sde(t),Ode(t),Ede(t),Dde(t),yde(t),fg(e,{focusElCls:`${e.componentCls}-focused`})]},Tde),kde=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`}}))());function xw(){return xw=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,xw({},e,{ref:t,icon:kde.default}))),Cw=(0,J.createContext)(null),Ade=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,J.useState)(),l=(0,J.useRef)(),u=J.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Fa.cancel(l.current)}return(0,J.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Fa(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}};K();var ww={width:0,height:0,left:0,top:0};function jde(e,t,n){return(0,J.useMemo)(()=>{var n;let r=new Map,i=t.get((n=e[0])==null?void 0:n.key)||ww,a=i.left+i.width;for(let n=0;ne.key).join(`_`),t,n])}function Tw(e,t){let n=J.useRef(e),[,r]=J.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var Mde=.1,Ew=.01,Dw=20,Ow=Math.pow(.995,Dw);function Nde(e,t){let[n,r]=(0,J.useState)(),[i,a]=(0,J.useState)(0),[o,s]=(0,J.useState)(0),[c,l]=(0,J.useState)(),u=(0,J.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n)){if(Math.abs(r)o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,J.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},J.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function kw(e){let[t,n]=(0,J.useState)(0),r=(0,J.useRef)(0),i=(0,J.useRef)();return i.current=e,Zr(()=>{var e;(e=i.current)==null||e.call(i)},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function Pde(e){let t=(0,J.useRef)([]),[,n]=(0,J.useState)({}),r=(0,J.useRef)(typeof e==`function`?e():e),i=kw(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Aw={width:0,height:0,left:0,top:0,right:0};function Fde(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,J.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;iMath.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Aw)[u]r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function jw(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Ide=`TABS_DQ`;function Mw(e){return String(e).replace(/"/g,Ide)}function Nw(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Pw=J.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:J.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),Fw=J.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!J.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?J.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null}),{ESC:Lde,TAB:Rde}=aa;function zde({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=J.useRef(!1),o=()=>{if(e){var r,i;(r=t.current)==null||(i=r.focus)==null||i.call(r),n==null||n(!1)}},s=()=>{var e;return(e=i.current)!=null&&e.focus?(i.current.focus(),a.current=!0,!0):!1},c=e=>{switch(e.keyCode){case Lde:o();break;case Rde:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};J.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Fa(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Bde=(0,J.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,J.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=hi(t,bi(a));return J.createElement(J.Fragment,null,r&&J.createElement(`div`,{className:`${i}-arrow`}),J.cloneElement(a,{ref:_i(a)?o:void 0}))}),Iw={adjustX:1,adjustY:1},Lw=[0,0],Vde={topLeft:{points:[`bl`,`tl`],overflow:Iw,offset:[0,-4],targetOffset:Lw},top:{points:[`bc`,`tc`],overflow:Iw,offset:[0,-4],targetOffset:Lw},topRight:{points:[`br`,`tr`],overflow:Iw,offset:[0,-4],targetOffset:Lw},bottomLeft:{points:[`tl`,`bl`],overflow:Iw,offset:[0,4],targetOffset:Lw},bottom:{points:[`tc`,`bc`],overflow:Iw,offset:[0,4],targetOffset:Lw},bottomRight:{points:[`tr`,`br`],overflow:Iw,offset:[0,4],targetOffset:Lw}},Hde=[`arrow`,`prefixCls`,`transitionName`,`animation`,`align`,`placement`,`placements`,`getPopupContainer`,`showAction`,`hideAction`,`overlayClassName`,`overlayStyle`,`visible`,`trigger`,`autoFocus`,`overlay`,`children`,`onVisibleChange`];function Rw(){return Rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n;let{arrow:r=!1,prefixCls:i=`rc-dropdown`,transitionName:a,animation:o,align:s,placement:c=`bottomLeft`,placements:l=Vde,getPopupContainer:u,showAction:d,hideAction:f,overlayClassName:p,overlayStyle:m,visible:h,trigger:g=[`hover`],autoFocus:_,overlay:v,children:y,onVisibleChange:b}=e,x=q(e,Hde),[S,C]=J.useState(),w=`visible`in e?h:S,T=o?`${i}-${o}`:a,E=J.useRef(null),D=J.useRef(null),O=J.useRef(null);J.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),b==null||b(e)};zde({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:_,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>J.createElement(Bde,{ref:D,overlay:v,prefixCls:i,arrow:r}),M=()=>typeof v==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=J.cloneElement(y,{className:Z((n=y.props)==null?void 0:n.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${i}-open`:t})()),ref:_i(y)?hi(O,bi(y)):void 0}),F=f;return!F&&g.indexOf(`contextMenu`)!==-1&&(F=[`click`]),J.createElement(gv,Rw({builtinPlacements:l},x,{prefixCls:i,ref:E,popupClassName:Z(p,{[`${i}-show-arrow`]:r}),popupStyle:m,action:g,showAction:d,hideAction:F,popupPlacement:c,popupAlign:s,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:u}),P)});function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_,classNames:v,styles:y}=e,[b,x]=(0,J.useState)(!1),[S,C]=(0,J.useState)(null),{icon:w=`More`}=s,T=`${r}-more-popup`,E=`${n}-dropdown`,D=S===null?null:`${T}-${S}`,O=a==null?void 0:a.dropdownAriaLabel;function k(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let A=J.createElement(fx,{onClick:({key:e,domEvent:t})=>{m(e,t),x(!1)},prefixCls:`${E}-menu`,id:T,tabIndex:-1,role:`listbox`,"aria-activedescendant":D,selectedKeys:[S],"aria-label":O===void 0?`expanded dropdown`:O},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=Nw(t,i,u,n);return J.createElement(Yb,{key:a,id:`${T}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},J.createElement(`span`,null,o),s&&J.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:Z(`${E}-menu-item-remove`,v==null?void 0:v.remove),style:y==null?void 0:y.remove,onClick:e=>{e.stopPropagation(),k(e,a)}},i||u.removeIcon||`×`))}));function j(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===S)||0,r=t.length;for(let i=0;i{let e=document.getElementById(D);e!=null&&e.scrollIntoView&&e.scrollIntoView(!1)},[D,S]),(0,J.useEffect)(()=>{b||C(null)},[b]);let N={marginInlineStart:d};i.length||(N.visibility=`hidden`,N.order=1);let P=Z(g,{[`${E}-rtl`]:f}),F=o?null:J.createElement(Ude,zw({prefixCls:E,overlay:A,visible:i.length?b:!1,onVisibleChange:x,overlayClassName:P,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),J.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:N,"aria-haspopup":`listbox`,"aria-controls":T,id:`${r}-more`,"aria-expanded":b,onKeyDown:M},w));return J.createElement(`div`,{className:Z(`${n}-nav-operations`,l),style:c,ref:t},F,J.createElement(Pw,{prefixCls:n,locale:a,editable:u}))}),Gde=J.memo(Wde,(e,t)=>t.tabMoving),Kde=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:v,onMouseUp:y,styles:b,classNames:x,tabCount:S,currentPosition:C}=e,w=`${t}-tab`,T=Nw(u,c,p,s);function E(e){s||m(e)}function D(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let O=J.useMemo(()=>l&&typeof o==`string`?J.createElement(`span`,null,o):o,[o,l]),k=J.useRef(null);J.useEffect(()=>{i&&k.current&&k.current.focus()},[i]);let A=J.createElement(`div`,{key:a,"data-node-key":Mw(a),className:Z(w,x==null?void 0:x.item,{[`${w}-with-remove`]:T,[`${w}-active`]:r,[`${w}-disabled`]:s,[`${w}-focus`]:i}),style:b==null?void 0:b.item,onClick:E},J.createElement(`div`,{ref:k,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${w}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),E(e)},onKeyDown:_,onMouseDown:v,onMouseUp:y,onFocus:h,onBlur:g},i&&J.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${C} of ${S}`),l&&J.createElement(`span`,{className:`${w}-icon`},l),o&&O),T&&J.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:Z(`${w}-remove`,x==null?void 0:x.remove),style:b==null?void 0:b.remove,onClick:e=>{e.stopPropagation(),D(e)}},c||p.removeIcon||`×`));return d?d(A):A};K();function Bw(){return Bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},Vw=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},Hw=(e,t)=>e[+!t],Uw=J.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:v}=e,{prefixCls:y,tabs:b}=J.useContext(Cw),x=(0,J.useRef)(null),S=(0,J.useRef)(null),C=(0,J.useRef)(null),w=(0,J.useRef)(null),T=(0,J.useRef)(null),E=(0,J.useRef)(null),D=(0,J.useRef)(null),O=d===`top`||d===`bottom`,[k,A]=Tw(0,(e,t)=>{O&&h&&h({direction:e>t?`left`:`right`})}),[j,M]=Tw(0,(e,t)=>{!O&&h&&h({direction:e>t?`top`:`bottom`})}),[N,P]=(0,J.useState)([0,0]),[F,I]=(0,J.useState)([0,0]),[L,R]=(0,J.useState)([0,0]),[z,B]=(0,J.useState)([0,0]),[V,H]=Pde(new Map),U=jde(b,V,F[0]),ee=Hw(N,O),te=Hw(F,O),ne=Hw(L,O),re=Hw(z,O),ie=Math.floor(ee)ce?ce:e}let ue=(0,J.useRef)(null),[de,fe]=(0,J.useState)();function pe(){fe(Date.now())}function me(){ue.current&&clearTimeout(ue.current)}Nde(w,(e,t)=>{function n(e,t){e(e=>le(e+t))}return ie?(O?n(A,e):n(M,t),me(),pe(),!0):!1}),(0,J.useEffect)(()=>(me(),de&&(ue.current=setTimeout(()=>{fe(0)},100)),me),[de]);let[he,W]=Fde(U,ae,O?k:j,te,ne,re,G(G({},e),{},{tabs:b})),ge=qr((e=o)=>{let t=U.get(e)||{width:0,height:0,left:0,right:0,top:0};if(O){let e=k;s?t.rightk+ae&&(e=t.right+t.width-ae):t.left<-k?e=-t.left:t.left+t.width>-k+ae&&(e=-(t.left+t.width-ae)),M(0),A(le(e))}else{let e=j;t.top<-j?e=-t.top:t.top+t.height>-j+ae&&(e=-(t.top+t.height-ae)),A(0),M(le(e))}}),[_e,K]=(0,J.useState)(),[ve,q]=(0,J.useState)(!1),ye=b.filter(e=>!e.disabled).map(e=>e.key),be=e=>{let t=ye.indexOf(_e||o),n=ye.length,r=(t+e+n)%n,i=ye[r];K(i)},xe=(e,t)=>{let n=ye.indexOf(e),r=b.find(t=>t.key===e);Nw(r==null?void 0:r.closable,r==null?void 0:r.closeIcon,l,r==null?void 0:r.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===ye.length-1?be(-1):be(1))},Se=(e,t)=>{q(!0),t.button===1&&xe(e,t)},Ce=e=>{let{code:t}=e,n=s&&O,r=ye[0],i=ye[ye.length-1];switch(t){case`ArrowLeft`:O&&be(n?1:-1);break;case`ArrowRight`:O&&be(n?-1:1);break;case`ArrowUp`:e.preventDefault(),O||be(-1);break;case`ArrowDown`:e.preventDefault(),O||be(1);break;case`Home`:e.preventDefault(),K(r);break;case`End`:e.preventDefault(),K(i);break;case`Enter`:case`Space`:e.preventDefault(),m(_e==null?o:_e,e);break;case`Backspace`:case`Delete`:xe(_e,e);break}},we={};O?we.marginInlineStart=f:we.marginTop=f;let Te=b.map((e,t)=>{let{key:n}=e;return J.createElement(Kde,{id:i,prefixCls:y,key:n,tab:e,classNames:{item:_==null?void 0:_.item,remove:_==null?void 0:_.remove},styles:{item:t===0?v==null?void 0:v.item:G(G({},we),v==null?void 0:v.item),remove:v==null?void 0:v.remove},closable:e.closable,editable:l,active:n===o,focus:n===_e,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:ye.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:Ce,onFocus:()=>{ve||K(n),ge(n),pe(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:()=>{K(void 0)},onMouseDown:e=>Se(n,e),onMouseUp:()=>{q(!1)}})}),Ee=()=>H(()=>{var e;let t=new Map,n=(e=T.current)==null?void 0:e.getBoundingClientRect();return b.forEach(({key:e})=>{var r;let i=(r=T.current)==null?void 0:r.querySelector(`[data-node-key="${Mw(e)}"]`);if(i){let[r,a,o,s]=qde(i,n);t.set(e,{width:r,height:a,left:o,top:s})}}),t});(0,J.useEffect)(()=>{Ee()},[b.map(e=>e.key).join(`_`)]);let De=kw(()=>{let e=Vw(x),t=Vw(S),n=Vw(C);P([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=Vw(D);R(r);let i=Vw(E);B(i);let a=Vw(T);I([a[0]-r[0],a[1]-r[1]]),Ee()}),Oe=b.slice(0,he),ke=b.slice(W+1),Ae=[...Oe,...ke],je=U.get(o),{style:Me}=Ade({activeTabOffset:je,horizontal:O,indicator:g,rtl:s});(0,J.useEffect)(()=>{ge()},[o,se,ce,jw(je),jw(U),O]),(0,J.useEffect)(()=>{De()},[s]);let Ne=!!Ae.length,Pe=`${y}-nav-wrap`,Fe,Ie,Le,Re;return O?s?(Ie=k>0,Fe=k!==ce):(Fe=k<0,Ie=k!==se):(Le=j<0,Re=j!==se),J.createElement(go,{onResize:De},J.createElement(`div`,{ref:gi(t,x),role:`tablist`,"aria-orientation":O?`horizontal`:`vertical`,className:Z(`${y}-nav`,n,_==null?void 0:_.header),style:G(G({},v==null?void 0:v.header),r),onKeyDown:()=>{pe()}},J.createElement(Fw,{ref:S,position:`left`,extra:c,prefixCls:y}),J.createElement(go,{onResize:De},J.createElement(`div`,{className:Z(Pe,{[`${Pe}-ping-left`]:Fe,[`${Pe}-ping-right`]:Ie,[`${Pe}-ping-top`]:Le,[`${Pe}-ping-bottom`]:Re}),ref:w},J.createElement(go,{onResize:De},J.createElement(`div`,{ref:T,className:`${y}-nav-list`,style:{transform:`translate(${k}px, ${j}px)`,transition:de?`none`:void 0}},Te,J.createElement(Pw,{ref:D,prefixCls:y,locale:u,editable:l,style:G(G({},Te.length===0?void 0:we),{},{visibility:Ne?`hidden`:null})}),J.createElement(`div`,{className:Z(`${y}-ink-bar`,_==null?void 0:_.indicator,{[`${y}-ink-bar-animated`]:a.inkBar}),style:G(G({},Me),v==null?void 0:v.indicator)}))))),J.createElement(Gde,Bw({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:E,prefixCls:y,tabs:Ae,className:!Ne&&oe,popupStyle:v==null?void 0:v.popup,tabMoving:!!de})),J.createElement(Fw,{ref:C,position:`right`,extra:c,prefixCls:y})))}),Jde=[`renderTabBar`],Yde=e=>{let{renderTabBar:t}=e,n=q(e,Jde);return t?t(n,Uw):J.createElement(Uw,n)},Xde=J.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=J.Children.count(c)>0;return J.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:Z(n,o&&`${n}-active`,r),ref:t},c)});K();var Zde=[`key`,`forceRender`,`style`,`className`,`destroyOnHidden`];function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,bodyStyle:o,bodyClassName:s,contentStyle:c,contentClassName:l}=e,{prefixCls:u,tabs:d}=J.useContext(Cw),f=r.tabPane,p=`${u}-body`,m=`${u}-content`;return J.createElement(`div`,{className:Z(`${p}-holder`)},J.createElement(`div`,{className:Z(p,`${p}-${i}`,{[`${p}-animated`]:f},s),style:o},d.map(e=>{let{key:i,forceRender:o,style:s,className:u,destroyOnHidden:d}=e,p=q(e,Zde),h=i===n;return J.createElement(ip,Ww({key:i,visible:h,forceRender:o,removeOnLeave:!!(a==null?d:a),leavedClassName:`${m}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>J.createElement(Xde,Ww({},p,{prefixCls:m,id:t,tabKey:i,animated:f,active:h,style:G(G(G({},c),s),e),className:Z(l,u,n),ref:r})))})))};K();function $de(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:G({inkBar:!0},typeof e==`object`?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}K();var efe=[`id`,`prefixCls`,`className`,`items`,`direction`,`activeKey`,`defaultActiveKey`,`editable`,`animated`,`tabPosition`,`tabBarGutter`,`tabBarStyle`,`tabBarExtraContent`,`locale`,`more`,`destroyOnHidden`,`renderTabBar`,`onChange`,`onTabClick`,`onTabScroll`,`getPopupContainer`,`popupClassName`,`indicator`,`classNames`,`styles`];function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n;let{id:r,prefixCls:i=`rc-tabs`,className:a,items:o,direction:s,activeKey:c,defaultActiveKey:l,editable:u,animated:d,tabPosition:f=`top`,tabBarGutter:p,tabBarStyle:m,tabBarExtraContent:h,locale:g,more:_,destroyOnHidden:v,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:T,classNames:E,styles:D}=e,O=q(e,efe),k=J.useMemo(()=>(o||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[o]),A=s===`rtl`,j=$de(d),[M,N]=(0,J.useState)(!1);(0,J.useEffect)(()=>{N(Sa())},[]);let[P,F]=$r(l==null?(n=k[0])==null?void 0:n.key:l,c),[I,L]=(0,J.useState)(()=>k.findIndex(e=>e.key===P));(0,J.useEffect)(()=>{let e=k.findIndex(e=>e.key===P);if(e===-1){var t;e=Math.max(0,Math.min(I,k.length-1)),F((t=k[e])==null?void 0:t.key)}L(e)},[k.map(e=>e.key).join(`_`),P,I]);let[R,z]=$r(null,r);(0,J.useEffect)(()=>{r||(z(`rc-tabs-${Kw}`),Kw+=1)},[]);function B(e,t){x==null||x(e,t);let n=e!==P;F(e),n&&(b==null||b(e))}let V={id:R,activeKey:P,animated:j,tabPosition:f,rtl:A,mobile:M},H=G(G({},V),{},{editable:u,locale:g,more:_,tabBarGutter:p,onTabClick:B,onTabScroll:S,extra:h,style:m,getPopupContainer:C,popupClassName:Z(w,E==null?void 0:E.popup),indicator:T,styles:D,classNames:E}),U=J.useMemo(()=>({tabs:k,prefixCls:i}),[k,i]);return J.createElement(Cw.Provider,{value:U},J.createElement(`div`,Gw({ref:t,id:r,className:Z(i,`${i}-${f}`,{[`${i}-mobile`]:M,[`${i}-editable`]:u,[`${i}-rtl`]:A},a)},O),J.createElement(Yde,Gw({},H,{renderTabBar:y})),J.createElement(Qde,Gw({destroyOnHidden:v},V,{bodyStyle:D==null?void 0:D.body,bodyClassName:E==null?void 0:E.body,contentStyle:D==null?void 0:D.content,contentClassName:E==null?void 0:E.content,animated:j}))))});K();var nfe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function rfe(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:G({inkBar:!0},lp(t)?t:{}),n.tabPane&&(n.tabPaneMotion=G(G({},nfe),{},{motionName:fh(e,`switch`)})),n}K();var ife=[`tab`];function afe(e){return e.filter(e=>e)}function ofe(e,t){return e?e.map(e=>{var t;return G(G({},e),{},{destroyOnHidden:(t=e.destroyOnHidden)==null?e.destroyInactiveTabPane:t})}):afe(Ia(t).map(e=>{if(J.isValidElement(e)){let{key:t,props:n}=e,r=n||{},{tab:i}=r,a=q(r,ife);return G(G({key:String(t)},a),{},{label:i})}return null}))}var sfe=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Wh(e,`slide-up`),Wh(e,`slide-down`)]]};K();var cfe=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Q(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ad(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Q(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},lfe=e=>{let{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:G(G({},td(e)),{},{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft, &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft, &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom, &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom, &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight, - &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:cE},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Ih},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft, &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top, &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:fE},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Rh},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft, &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom, - &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:uE},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft, + &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Lh},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft, &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top, - &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:dE},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${be(i)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":te(I({},Wa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${be(e.paddingXXS)} ${be(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},B7e=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,motionDurationSlow:s,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${be(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(c=>`${c} ${s}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(c=>`${c} ${s}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:be(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},O7e=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:o,horizontalItemPaddingSM:a,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${be(e.borderRadius)} ${be(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${be(e.borderRadius)} ${be(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be(e.borderRadius)} ${be(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadius)} 0 0 ${be(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},$7e=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":I({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},lc(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s},[`&${c}-focus ${c}-btn:focus-visible`]:sc(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},_7e=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:o(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},T7e=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:te(I(te(I({},zr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:I({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},lc(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),$7e(e)),{[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:te(I({},lc(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},M7e=Br("Tabs",e=>{const t=dr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${be(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${be(e.horizontalItemGutter)}`});return[O7e(t),_7e(t),B7e(t),E7e(t),S7e(t),T7e(t),C7e(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:o}=e,a=t||o,s=n||i,l=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),I7e=()=>null,F4=g.forwardRef((e,t)=>{var we,me,Ee,Ce,pe,Oe,xe,Me,Se,Pe,Le,He;const ve=e,{type:n,className:r,rootClassName:i,size:o,onEdit:a,hideAdd:s,centered:l,addIcon:c,removeIcon:u,moreIcon:f,more:d,popupClassName:A,children:h,items:p,animated:v,style:y,indicatorSize:b,indicator:x,classNames:C,styles:S,destroyInactiveTabPane:B,destroyOnHidden:E,tabPlacement:_,tabPosition:M}=ve,R=Ze(ve,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","classNames","styles","destroyInactiveTabPane","destroyOnHidden","tabPlacement","tabPosition"]),{prefixCls:T}=R,{getPrefixCls:L,direction:P,getPopupContainer:k,className:H,style:D,classNames:U,styles:j}=or("tabs"),{tabs:Q}=g.useContext(Un),K=L("tabs",T),z=So(K),[V,Y]=M7e(K,z),Z=g.useRef(null);g.useImperativeHandle(t,()=>({nativeElement:Z.current}));let W;n==="editable-card"&&(W={onEdit:(Ne,{key:at,event:Ue})=>{a==null||a(Ne==="add"?Ue:at,Ne)},removeIcon:(we=u!=null?u:Q==null?void 0:Q.removeIcon)!=null?we:g.createElement(Dg,null),addIcon:(c!=null?c:Q==null?void 0:Q.addIcon)||g.createElement(Bse,null),showAdd:s!==!0});const J=L(),ee=aa(o),ne=w7e(p,h),re=b7e(K,v),ue={align:(Ee=x==null?void 0:x.align)!=null?Ee:(me=Q==null?void 0:Q.indicator)==null?void 0:me.align,size:(xe=(Oe=(Ce=x==null?void 0:x.size)!=null?Ce:b)!=null?Oe:(pe=Q==null?void 0:Q.indicator)==null?void 0:pe.size)!=null?xe:Q==null?void 0:Q.indicatorSize},de=g.useMemo(()=>{var Ue;const Ne=(Ue=_!=null?_:M)!=null?Ue:void 0,at=P==="rtl";switch(Ne){case"start":return at?"right":"left";case"end":return at?"left":"right";default:return Ne}},[_,M,P]),se=te(I({},e),{size:ee,tabPlacement:de,items:ne}),ce=Ar(D),ge=Ar(y),[ie,le]=vr([U,C],[j,ce,S,ge],{props:se},{popup:{_default:"root"}});return g.createElement(v7e,te(I({ref:Z,direction:P,getPopupContainer:k},R),{items:ne,className:Ae({[`${K}-large`]:ee==="large",[`${K}-small`]:ee==="small",[`${K}-card`]:["card","editable-card"].includes(n),[`${K}-editable-card`]:n==="editable-card",[`${K}-centered`]:l},H,r,i,ie.root,V,Y,z),classNames:te(I({},ie),{popup:Ae(A,V,Y,z,(Me=ie.popup)==null?void 0:Me.root)}),styles:le,style:le.root,editable:W,more:I({icon:(He=(Le=(Pe=(Se=Q==null?void 0:Q.more)==null?void 0:Se.icon)!=null?Pe:Q==null?void 0:Q.moreIcon)!=null?Le:f)!=null?He:g.createElement(s4,null),transitionName:`${J}-slide-up`},d),prefixCls:K,animated:re,indicator:ue,destroyOnHidden:E!=null?E:B,tabPosition:de}))});F4.TabPane=I7e;const Dse=i=>{var o=i,{prefixCls:e,className:t,hoverable:n=!0}=o,r=Ze(o,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=g.useContext(Un),s=a("card",e),l=Ae(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return g.createElement("div",te(I({},r),{className:l}))},R7e=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return te(I({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${be(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`},fA()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":te(I({display:"inline-block",flex:1},Wa),{[` + &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:zh},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Q(i)} 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":G(G({},ed),{},{display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}})}})}},ufe=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:Q(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},dfe=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},ffe=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":G({flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},od(e)),"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:ad(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},pfe=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},mfe=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:G(G(G({},td(e)),{},{display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:G({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},od(e,-3))},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`}},ffe(e)),{},{[`${t}-body`]:{position:`relative`,width:`100%`},[`${t}-body-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-content`]:G(G({},od(e)),{},{"&-hidden":{display:`none`}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},hfe=dd(`Tabs`,e=>{let t=bl(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Q(e.horizontalItemGutter)}`});return[dfe(t),pfe(t),ufe(t),lfe(t),cfe(t),mfe(t),sfe(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),gfe=()=>null;K();var _fe=[`type`,`className`,`rootClassName`,`size`,`onEdit`,`hideAdd`,`centered`,`addIcon`,`removeIcon`,`moreIcon`,`more`,`popupClassName`,`children`,`items`,`animated`,`style`,`indicatorSize`,`indicator`,`classNames`,`styles`,`destroyInactiveTabPane`,`destroyOnHidden`,`tabPlacement`,`tabPosition`],qw=J.forwardRef((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f;let{type:p,className:m,rootClassName:h,size:g,onEdit:_,hideAdd:v,centered:y,addIcon:b,removeIcon:x,moreIcon:S,more:C,popupClassName:w,children:T,items:E,animated:D,style:O,indicatorSize:k,indicator:A,classNames:j,styles:M,destroyInactiveTabPane:N,destroyOnHidden:P,tabPlacement:F,tabPosition:I}=e,L=q(e,_fe),{prefixCls:R}=L,{getPrefixCls:z,direction:B,getPopupContainer:V,className:H,style:U,classNames:ee,styles:te}=ko(`tabs`),{tabs:ne}=J.useContext(Eo),re=z(`tabs`,R),ie=Fp(re),[ae,oe]=hfe(re,ie),se=J.useRef(null);J.useImperativeHandle(t,()=>({nativeElement:se.current}));let ce;if(p===`editable-card`){var le;ce={onEdit:(e,{key:t,event:n})=>{_==null||_(e===`add`?n:t,e)},removeIcon:(le=x==null?ne==null?void 0:ne.removeIcon:x)==null?J.createElement(rf,null):le,addIcon:(b==null?ne==null?void 0:ne.addIcon:b)||J.createElement(Sw,null),showAdd:v!==!0}}let ue=z(),de=vh(g),fe=ofe(E,T),pe=rfe(re,D),me={align:(n=A==null?void 0:A.align)==null?ne==null||(r=ne.indicator)==null?void 0:r.align:n,size:(i=(a=(o=A==null?void 0:A.size)==null?k:o)==null?ne==null||(s=ne.indicator)==null?void 0:s.size:a)==null?ne==null?void 0:ne.indicatorSize:i},he=J.useMemo(()=>{var e;let t=(e=F==null?I:F)==null?void 0:e,n=B===`rtl`;switch(t){case`start`:return n?`right`:`left`;case`end`:return n?`left`:`right`;default:return t}},[F,I,B]),W=G(G({},e),{},{size:de,tabPlacement:he,items:fe}),ge=yp(U),_e=yp(O),[K,ve]=xp([ee,j],[te,ge,M,_e],{props:W},{popup:{_default:`root`}});return J.createElement(tfe,G(G({ref:se,direction:B,getPopupContainer:V},L),{},{items:fe,className:Z({[`${re}-large`]:de===`large`,[`${re}-small`]:de===`small`,[`${re}-card`]:[`card`,`editable-card`].includes(p),[`${re}-editable-card`]:p===`editable-card`,[`${re}-centered`]:y},H,m,h,K.root,ae,oe,ie),classNames:G(G({},K),{},{popup:Z(w,ae,oe,ie,(c=K.popup)==null?void 0:c.root)}),styles:ve,style:ve.root,editable:ce,more:G({icon:(l=(u=(d=ne==null||(f=ne.more)==null?void 0:f.icon)==null?ne==null?void 0:ne.moreIcon:d)==null?S:u)==null?J.createElement(Cx,null):l,transitionName:`${ue}-slide-up`},C),prefixCls:re,animated:pe,indicator:me,destroyOnHidden:P==null?N:P,tabPosition:he}))});qw.TabPane=gfe,K();var vfe=[`prefixCls`,`className`,`hoverable`],Jw=e=>{let{prefixCls:t,className:n,hoverable:r=!0}=e,i=q(e,vfe),{getPrefixCls:a}=J.useContext(Eo),o=a(`card`,t),s=Z(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return J.createElement(`div`,G(G({},i),{},{className:s}))};K();var yfe=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return G(G({display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${Q(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},id()),{},{"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":G(G({display:`inline-block`,flex:1},ed),{},{[` > ${n}-typography, > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},N7e=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${be(i)} 0 0 0 ${n}, - 0 ${be(i)} 0 0 ${n}, - ${be(i)} ${be(i)} 0 0 ${n}, - ${be(i)} 0 0 0 ${n} inset, - 0 ${be(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},P7e=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return te(I({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${be(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`},fA()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:be(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:be(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${o}`}}})},L7e=e=>te(I({margin:`${be(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},fA()),{"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":I({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Wa),"&-description":{color:e.colorTextDescription}}),F7e=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${be(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${be(e.padding)} ${be(i)}`}}},k7e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},D7e=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s,motionDurationMid:l}=e;return{[t]:te(I({},zr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:R7e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:N7e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:P7e(e),[`${t}-meta`]:L7e(e)}),[`${t}-bordered`]:{border:`${be(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(c=>`${c} ${l}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:F7e(e),[`${t}-loading`]:k7e(e),[`${t}-rtl`]:{direction:"rtl"}}},H7e=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${be(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},U7e=Br("Card",e=>{const t=dr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[D7e(t),H7e(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!=null?t:e.paddingLG,headerPadding:(n=e.headerPadding)!=null?n:e.paddingLG}}),j7e=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return g.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return g.createElement("li",{style:{width:`${100/n.length}%`},key:a},g.createElement("span",null,i))}))},z7e=g.forwardRef((e,t)=>{const Se=e,{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f,variant:d,size:A,type:h,cover:p,actions:v,tabList:y,children:b,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:S,hoverable:B,tabProps:E={},classNames:_,styles:M}=Se,R=Ze(Se,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:T,direction:L,className:P,style:k,classNames:H,styles:D}=or("card"),[U]=ep("card",d,f),j=aa(A),Q=te(I({},e),{size:j,variant:U}),K=Ar(k),z=Ar(o),[V,Y]=vr([H,_],[D,K,M,z],{props:Q}),Z=Pe=>{var Le;(Le=e.onTabChange)==null||Le.call(e,Pe)},W=g.useMemo(()=>pa(b),[b]),J=g.useMemo(()=>W.some(Pe=>g.isValidElement(Pe)&&Pe.type===Dse),[W]),ee=T("card",n),[ne,re]=U7e(ee),ue=g.createElement(Qg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),de=x!==void 0,se=te(I({},E),{[de?"activeKey":"defaultActiveKey"]:de?x:C,tabBarExtraContent:S});let ce;const ge=j!=="small"?"large":j,ie=y?g.createElement(F4,te(I({size:ge},se),{className:`${ee}-head-tabs`,onChange:Z,items:y.map(He=>{var Ne=He,{tab:Pe}=Ne,Le=Ze(Ne,["tab"]);return I({label:Pe},Le)})})):null;if(c||a||ie){const Pe=Ae(`${ee}-head`,V.header),Le=Ae(`${ee}-head-title`,V.title),He=Ae(`${ee}-extra`,V.extra),Ne=I(I({},s),Y.header);ce=g.createElement("div",{className:Pe,style:Ne},g.createElement("div",{className:`${ee}-head-wrapper`},c&&g.createElement("div",{className:Le,style:Y.title},c),a&&g.createElement("div",{className:He,style:Y.extra},a)),ie)}const le=Ae(`${ee}-cover`,V.cover),ve=p?g.createElement("div",{className:le,style:Y.cover},p):null,we=Ae(`${ee}-body`,V.body),me=I(I({},l),Y.body),Ee=u||W.length?g.createElement("div",{className:we,style:me},u?ue:b):null,Ce=Ae(`${ee}-actions`,V.actions),pe=v!=null&&v.length?g.createElement(j7e,{actionClasses:Ce,actionStyle:Y.actions,actions:v}):null,Oe=ti(R,["onTabChange"]),xe=Ae(ee,P,{[`${ee}-loading`]:u,[`${ee}-bordered`]:U!=="borderless",[`${ee}-hoverable`]:B,[`${ee}-contain-grid`]:J,[`${ee}-contain-tabs`]:y==null?void 0:y.length,[`${ee}-small`]:j==="small",[`${ee}-type-${h}`]:!!h,[`${ee}-rtl`]:L==="rtl"},r,i,ne,re,V.root),Me=I({},Y.root);return g.createElement("div",te(I({ref:t},Oe),{className:xe,style:Me}),ce,ve,Ee,pe)}),Q7e=e=>{const H=e,{prefixCls:t,className:n,avatar:r,title:i,description:o,style:a,classNames:s,styles:l}=H,c=Ze(H,["prefixCls","className","avatar","title","description","style","classNames","styles"]),{getPrefixCls:u,className:f,style:d,classNames:A,styles:h}=or("cardMeta"),v=`${u("card",t)}-meta`,y=Ar(d),b=Ar(a),[x,C]=vr([A,s],[h,y,l,b],{props:e}),S=Ae(v,n,f,x.root),B=I({},C.root),E=Ae(`${v}-avatar`,x.avatar),_=Ae(`${v}-title`,x.title),M=Ae(`${v}-description`,x.description),R=Ae(`${v}-section`,x.section),T=r?g.createElement("div",{className:E,style:C.avatar},r):null,L=i?g.createElement("div",{className:_,style:C.title},i):null,P=o?g.createElement("div",{className:M,style:C.description},o):null,k=L||P?g.createElement("div",{className:R,style:C.section},L,P):null;return g.createElement("div",te(I({},c),{className:S,style:B}),T,k)},Iv=z7e;Iv.Grid=Dse,Iv.Meta=Q7e;function V7e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vA(e,t){if(e==null)return{};var n,r,i=V7e(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;re?s?(d=Date.now(),o||(u=setTimeout(c?B:S,e))):S():o!==!0&&(u=setTimeout(c?B:S,c===void 0?e-C:e))}return p.cancel=h,p}function W7e(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return K7e(e,t,{debounceMode:o!==!1})}const VU=g.createContext(null),G7e=g.createContext({}),q7e=e=>{const{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return Be.createElement("div",{style:i})},Y7e=({prefixCls:e,level:t,isStart:n,isEnd:r})=>{const i=`${e}-indent-unit`,o=[];for(let a=0;a{if(!Z7e(i))return ao(!i,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:o}=i,u=i.props,{children:a}=u,s=Ze(u,["children"]),l=I({key:o},s),c=t(a);return c.length&&(l.children=c),l}).filter(i=>i)}return t(e)}function KU(e,t,n){const{_title:r,key:i,children:o}=Kb(n),a=new Set(t===!0?[]:t),s=[];function l(c,u=null){return c.map((f,d)=>{const A=Hse(u?u.pos:"0",d),h=qE(f[i],A);let p;for(let y=0;yd[o]:typeof o=="function"&&(u=d=>o(d)):u=(d,A)=>qE(d[s],A);function f(d,A,h,p){const v=d?d[c]:e,y=d?Hse(h.pos,A):"0",b=d?[...p,d]:[];if(d){const x=u(d,y),C={node:d,index:A,pos:y,key:x,parentPos:h.node?h.pos:null,level:h.level+1,nodes:b};t(C)}v&&v.forEach((x,C)=>{f(x,C,{node:d,pos:y,level:h?h.level+1:-1},b)})}f(null)}function WU(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:o,fieldNames:a}={},s){const l=i||s,c={},u={};let f={posEntities:c,keyEntities:u};return t&&(f=t(f)||f),J7e(e,d=>{const{node:A,index:h,pos:p,key:v,parentPos:y,level:b,nodes:x}=d,C={node:A,nodes:x,index:h,key:v,pos:p,level:b},S=qE(v,p);c[p]=C,u[S]=C,C.parent=c[y],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),n&&n(C,f)},{externalGetKey:l,childrenPropName:o,fieldNames:a}),r&&r(f),f}function jse(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function YE(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:o,halfCheckedKeys:a,dragOverNodeKey:s,dropPosition:l,keyEntities:c}){const u=cc(c,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:a.indexOf(e)!==-1,pos:String(u?u.pos:""),dragOver:s===e&&l===0,dragOverGapTop:s===e&&l===-1,dragOverGapBottom:s===e&&l===1}}function us(e){const{data:t,expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:d,eventKey:A}=e,h=te(I({},t),{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:d,key:A});return"props"in h||Object.defineProperty(h,"props",{get(){return ao(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function GU(){return GU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var Le,He;const Pe=e,{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:o,dragOverGapBottom:a,isLeaf:s,isStart:l,isEnd:c,expanded:u,selected:f,checked:d,halfChecked:A,loading:h,domRef:p,active:v,data:y,onMouseMove:b,selectable:x,treeId:C}=Pe,S=Ze(Pe,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable","treeId"]),B=lee(C,t),E=Be.useContext(VU),{classNames:_,styles:M}=E||{},R=Be.useContext(G7e),T=Be.useRef(null),[L,P]=Be.useState(!1),k=!!(E.disabled||e.disabled||(Le=R.nodeDisabled)!=null&&Le.call(R,y)),H=Be.useMemo(()=>!E.checkable||e.checkable===!1?!1:E.checkable,[E.checkable,e.checkable]),D=Ne=>{k||E.onNodeSelect(Ne,us(e))},U=Ne=>{k||!H||e.disableCheckbox||E.onNodeCheck(Ne,us(e),!d)},j=Be.useMemo(()=>typeof x=="boolean"?x:E.selectable,[x,E.selectable]),Q=Ne=>{E.onNodeClick(Ne,us(e)),j?D(Ne):U(Ne)},K=Ne=>{E.onNodeDoubleClick(Ne,us(e))},z=Ne=>{E.onNodeMouseEnter(Ne,us(e))},V=Ne=>{E.onNodeMouseLeave(Ne,us(e))},Y=Ne=>{E.onNodeContextMenu(Ne,us(e))},Z=Be.useMemo(()=>!!(E.draggable&&(!E.draggable.nodeDraggable||E.draggable.nodeDraggable(y))),[E.draggable,y]),W=Ne=>{Ne.stopPropagation(),P(!0),E.onNodeDragStart(Ne,e);try{Ne.dataTransfer.setData("text/plain","")}catch(at){}},J=Ne=>{Ne.preventDefault(),Ne.stopPropagation(),E.onNodeDragEnter(Ne,e)},ee=Ne=>{Ne.preventDefault(),Ne.stopPropagation(),E.onNodeDragOver(Ne,e)},ne=Ne=>{Ne.stopPropagation(),E.onNodeDragLeave(Ne,e)},re=Ne=>{Ne.stopPropagation(),P(!1),E.onNodeDragEnd(Ne,e)},ue=Ne=>{Ne.preventDefault(),Ne.stopPropagation(),P(!1),E.onNodeDrop(Ne,e)},de=Ne=>{h||E.onNodeExpand(Ne,us(e))},se=Be.useMemo(()=>{const{children:Ne}=cc(E.keyEntities,t)||{};return!!(Ne||[]).length},[E.keyEntities,t]),ce=Be.useMemo(()=>jse(s,E.loadData,se,e.loaded),[s,E.loadData,se,e.loaded]);Be.useEffect(()=>{h||typeof E.loadData=="function"&&u&&!ce&&!e.loaded&&E.onNodeLoad(us(e))},[h,E.loadData,E.onNodeLoad,u,ce,e]);const ge=Be.useMemo(()=>{var Ne;return(Ne=E.draggable)!=null&&Ne.icon?Be.createElement("span",{className:`${E.prefixCls}-draggable-icon`},E.draggable.icon):null},[E.draggable]),ie=Ne=>{const at=e.switcherIcon||E.switcherIcon;return typeof at=="function"?at(te(I({},e),{isLeaf:Ne})):at},le=()=>{if(ce){const at=ie(!0);return at!==!1?Be.createElement("span",{className:Ae(`${E.prefixCls}-switcher`,`${E.prefixCls}-switcher-noop`,_==null?void 0:_.itemSwitcher),style:M==null?void 0:M.itemSwitcher},at):null}const Ne=ie(!1);return Ne!==!1?Be.createElement("span",{onClick:de,className:Ae(`${E.prefixCls}-switcher`,`${E.prefixCls}-switcher_${u?zse:Qse}`,_==null?void 0:_.itemSwitcher),style:M==null?void 0:M.itemSwitcher},Ne):null},ve=Be.useMemo(()=>{if(!H)return null;const Ne=typeof H!="boolean"?H:null;return Be.createElement("span",{className:Ae(`${E.prefixCls}-checkbox`,{[`${E.prefixCls}-checkbox-checked`]:d,[`${E.prefixCls}-checkbox-indeterminate`]:!d&&A,[`${E.prefixCls}-checkbox-disabled`]:k||e.disableCheckbox}),onClick:U,role:"checkbox","aria-checked":A?"mixed":d,"aria-disabled":k||e.disableCheckbox,"aria-labelledby":B},Ne)},[H,d,A,k,e.disableCheckbox,B]),we=Be.useMemo(()=>ce?null:u?zse:Qse,[ce,u]),me=Be.useMemo(()=>Be.createElement("span",{className:Ae(_==null?void 0:_.itemIcon,`${E.prefixCls}-iconEle`,`${E.prefixCls}-icon__${we||"docu"}`,{[`${E.prefixCls}-icon_loading`]:h}),style:M==null?void 0:M.itemIcon}),[E.prefixCls,we,h]),Ee=Be.useMemo(()=>{const Ne=!!E.draggable;return!e.disabled&&Ne&&E.dragOverNodeKey===t?E.dropIndicatorRender({dropPosition:E.dropPosition,dropLevelOffset:E.dropLevelOffset,indent:E.indent,prefixCls:E.prefixCls,direction:E.direction}):null},[E.dropPosition,E.dropLevelOffset,E.indent,E.prefixCls,E.direction,E.draggable,E.dragOverNodeKey,E.dropIndicatorRender]),Ce=Be.useMemo(()=>{const{title:Ne=e9e}=e,at=`${E.prefixCls}-node-content-wrapper`;let Ue;if(E.showIcon){const We=e.icon||E.icon;Ue=We?Be.createElement("span",{className:Ae(_==null?void 0:_.itemIcon,`${E.prefixCls}-iconEle`,`${E.prefixCls}-icon__customize`),style:M==null?void 0:M.itemIcon},typeof We=="function"?We(e):We):me}else E.loadData&&h&&(Ue=me);let et;return typeof Ne=="function"?et=Ne(y):E.titleRender?et=E.titleRender(y):et=Ne,Be.createElement("span",{ref:T,title:typeof Ne=="string"?Ne:"",className:Ae(at,`${at}-${we||"normal"}`,{[`${E.prefixCls}-node-selected`]:!k&&(f||L)}),onMouseEnter:z,onMouseLeave:V,onContextMenu:Y,onClick:Q,onDoubleClick:K},Ue,Be.createElement("span",{className:Ae(`${E.prefixCls}-title`,_==null?void 0:_.itemTitle),style:M==null?void 0:M.itemTitle},et),Ee)},[E.prefixCls,E.showIcon,e,E.icon,me,E.titleRender,y,we,z,V,Y,Q,K]),pe=Co(S,{aria:!0,data:!0}),{level:Oe}=cc(E.keyEntities,t)||{},xe=c[c.length-1],Me=!k&&Z,Se=E.draggingNodeKey===t;return Be.createElement("div",GU({ref:p,role:"treeitem",id:B,"aria-expanded":ce?void 0:u,"aria-selected":j&&!k?f:void 0,"aria-checked":H&&!k?A?"mixed":d:void 0,"aria-disabled":k,className:Ae(n,`${E.prefixCls}-treenode`,_==null?void 0:_.item,{[`${E.prefixCls}-treenode-disabled`]:k,[`${E.prefixCls}-treenode-switcher-${u?"open":"close"}`]:!s,[`${E.prefixCls}-treenode-checkbox-checked`]:d,[`${E.prefixCls}-treenode-checkbox-indeterminate`]:A,[`${E.prefixCls}-treenode-selected`]:f,[`${E.prefixCls}-treenode-loading`]:h,[`${E.prefixCls}-treenode-active`]:v,[`${E.prefixCls}-treenode-leaf-last`]:xe,[`${E.prefixCls}-treenode-draggable`]:Z,dragging:Se,"drop-target":E.dropTargetKey===t,"drop-container":E.dropContainerKey===t,"drag-over":!k&&i,"drag-over-gap-top":!k&&o,"drag-over-gap-bottom":!k&&a,"filter-node":(He=E.filterTreeNode)==null?void 0:He.call(E,us(e)),[`${E.prefixCls}-treenode-leaf`]:ce}),style:I(I({},r),M==null?void 0:M.item),draggable:Me,onDragStart:Me?W:void 0,onDragEnter:Z?J:void 0,onDragOver:Z?ee:void 0,onDragLeave:Z?ne:void 0,onDrop:Z?ue:void 0,onDragEnd:Z?re:void 0,onMouseMove:b},pe),Be.createElement(X7e,{prefixCls:E.prefixCls,level:Oe,isStart:l,isEnd:c}),ge,le(),ve,Ce)};XE.isTreeNode=1;function t9e(e,t){const[n,r]=g.useState(!1);ar(()=>{if(n)return e(),()=>{t()}},[n]),ar(()=>(r(!0),()=>{r(!1)}),[])}function ZE(){return ZE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const C=e,{className:n,style:r,motion:i,motionNodes:o,motionType:a,onMotionStart:s,onMotionEnd:l,active:c,treeNodeRequiredProps:u}=C,f=Ze(C,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),[d,A]=g.useState(!0),{prefixCls:h}=g.useContext(VU),p=o&&a!=="hide";ar(()=>{o&&p!==d&&A(p)},[o]);const v=()=>{o&&s()},y=g.useRef(!1),b=()=>{o&&!y.current&&(y.current=!0,l())};t9e(v,b);const x=S=>{p===S&&b()};return o?g.createElement(sl,ZE({ref:t,visible:d},i,{motionAppear:a==="show",onVisibleChanged:x}),({className:S,style:B},E)=>g.createElement("div",{ref:E,className:Ae(`${h}-treenode-motion`,S),style:B},o.map(_=>{const H=_,{data:D}=H,M=Ze(D,[]),{title:R,key:T,isStart:L,isEnd:P}=H;delete M.children;const k=YE(T,u);return g.createElement(XE,ZE({},M,k,{title:R,active:c,data:_.data,key:T,isStart:L,isEnd:P}))}))):g.createElement(XE,ZE({domRef:t,className:n,style:r},f,{active:c}))});function r9e(e=[],t=[]){const n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(o,a){const s=new Map;o.forEach(c=>{s.set(c,!0)});const l=a.filter(c=>!s.has(c));return l.length===1?l[0]:null}return na.key===n),i=e[r+1],o=t.findIndex(a=>a.key===n);if(i){const a=t.findIndex(s=>s.key===i.key);return t.slice(o+1,a)}return t.slice(o+1)}function k4(){return k4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const ge=e,{prefixCls:n,data:r,selectable:i,checkable:o,expandedKeys:a,selectedKeys:s,checkedKeys:l,loadedKeys:c,loadingKeys:u,halfCheckedKeys:f,keyEntities:d,disabled:A,dragging:h,dragOverNodeKey:p,dropPosition:v,motion:y,height:b,itemHeight:x,virtual:C,scrollWidth:S,focusable:B,activeItem:E,tabIndex:_,onKeyDown:M,onFocus:R,onBlur:T,onMouseDown:L,onActiveChange:P,onListChangeStart:k,onListChangeEnd:H}=ge,D=Ze(ge,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","tabIndex","onKeyDown","onFocus","onBlur","onMouseDown","onActiveChange","onListChangeStart","onListChangeEnd"]),U=lA(),j=g.useRef(null),Q=g.useRef(null);g.useImperativeHandle(t,()=>({scrollTo:ie=>{j.current.scrollTo(ie)},getIndentWidth:()=>Q.current.offsetWidth}));const[K,z]=g.useState(a),[V,Y]=g.useState(r),[Z,W]=g.useState(r),[J,ee]=g.useState([]),[ne,re]=g.useState(null),ue=g.useRef(r);ue.current=r;function de(){const ie=ue.current;Y(ie),W(ie),ee([]),re(null),H()}ar(()=>{z(a);const ie=r9e(K,a);if(ie.key!==null)if(ie.add){const le=V.findIndex(({key:me})=>me===ie.key),ve=Gse(Vse(V,r,ie.key),C,b,x),we=V.slice();we.splice(le+1,0,Wse),W(we),ee(ve),re("show")}else{const le=r.findIndex(({key:me})=>me===ie.key),ve=Gse(Vse(r,V,ie.key),C,b,x),we=r.slice();we.splice(le+1,0,Wse),W(we),ee(ve),re("hide")}else V!==r&&(Y(r),W(r))},[a,r]),g.useEffect(()=>{h||de()},[h]);const se=y?Z:r,ce={expandedKeys:a,selectedKeys:s,loadedKeys:c,loadingKeys:u,checkedKeys:l,halfCheckedKeys:f,dragOverNodeKey:p,dropPosition:v,keyEntities:d};return g.createElement(g.Fragment,null,g.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:`${n}-indent`},g.createElement("div",{ref:Q,className:`${n}-indent-unit`}))),g.createElement(UM,k4({},D,{data:se,itemKey:qse,height:b,fullHeight:!1,virtual:C,itemHeight:x,scrollWidth:S,prefixCls:`${n}-list`,ref:j,role:"tree",tabIndex:B!==!1&&!A?_:void 0,"aria-activedescendant":E?lee(U,E.key):void 0,onKeyDown:M,onFocus:R,onBlur:T,onMouseDown:L,onVisibleChange:ie=>{ie.every(le=>qse(le)!==Rv)&&de()}}),ie=>{const xe=ie,{pos:le,data:Me}=xe,ve=Ze(Me,[]),{title:we,key:me,isStart:Ee,isEnd:Ce}=xe,pe=qE(me,le);delete ve.key,delete ve.children;const Oe=YE(pe,ce);return g.createElement(n9e,k4({},ve,Oe,{title:we,active:!!E&&me===E.key,pos:le,data:ie.data,isStart:Ee,isEnd:Ce,motion:y,motionNodes:me===Rv?J:null,motionType:ne,onMotionStart:k,onMotionEnd:de,treeNodeRequiredProps:ce,treeId:U,onMouseMove:()=>{P(null)}}))}))});function yA(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function rp(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function YU(e){return e.split("-")}function o9e(e,t){const n=[],r=cc(t,e);function i(o=[]){o.forEach(({key:a,children:s})=>{n.push(a),i(s)})}return i(r.children),n}function a9e(e){if(e.parent){const t=YU(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function s9e(e){const t=YU(e.pos);return Number(t[t.length-1])===0}function Yse(e,t,n,r,i,o,a,s,l,c){var R;const{clientX:u,clientY:f}=e,{top:d,height:A}=e.target.getBoundingClientRect(),p=((c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-u)-12)/r,v=l.filter(T=>{var L,P;return(P=(L=s[T])==null?void 0:L.children)==null?void 0:P.length});let y=cc(s,n.eventKey);if(fk.key===y.key),L=T<=0?0:T-1,P=a[L].key;y=cc(s,P)}const b=y.key,x=y,C=y.key;let S=0,B=0;if(!v.includes(b))for(let T=0;T-1.5?o({dragNode:E,dropNode:_,dropPosition:1})?S=1:M=!1:o({dragNode:E,dropNode:_,dropPosition:0})?S=0:o({dragNode:E,dropNode:_,dropPosition:1})?S=1:M=!1:o({dragNode:E,dropNode:_,dropPosition:1})?S=1:M=!1,{dropPosition:S,dropLevelOffset:B,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:C,dropContainerKey:S===0?null:((R=y.parent)==null?void 0:R.key)||null,dropAllowed:M}}function Xse(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function XU(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return ao(!1,"`checkedKeys` is not an array or an object"),null;return t}function ZU(e,t){const n=new Set;function r(i){if(n.has(i))return;const o=cc(t,i);if(!o)return;n.add(i);const{parent:a,node:s}=o;s.disabled||a&&r(a.key)}return(e||[]).forEach(i=>{r(i)}),[...n]}function Zse(e,t){const n=new Set;return e.forEach(r=>{t.has(r)||n.add(r)}),n}function l9e(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function c9e(e,t,n,r){const i=new Set(e),o=new Set;for(let s=0;s<=n;s+=1)(t.get(s)||new Set).forEach(c=>{const{key:u,node:f,children:d=[]}=c;i.has(u)&&!r(f)&&d.filter(A=>!r(A.node)).forEach(A=>{i.add(A.key)})});const a=new Set;for(let s=n;s>=0;s-=1)(t.get(s)||new Set).forEach(c=>{const{parent:u,node:f}=c;if(r(f)||!c.parent||a.has(c.parent.key))return;if(r(c.parent.node)){a.add(u.key);return}let d=!0,A=!1;(u.children||[]).filter(h=>!r(h.node)).forEach(({key:h})=>{const p=i.has(h);d&&!p&&(d=!1),!A&&(p||o.has(h))&&(A=!0)}),d&&i.add(u.key),A&&o.add(u.key),a.add(u.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Zse(o,i))}}function u9e(e,t,n,r,i){const o=new Set(e);let a=new Set(t);for(let l=0;l<=r;l+=1)(n.get(l)||new Set).forEach(u=>{const{key:f,node:d,children:A=[]}=u;!o.has(f)&&!a.has(f)&&!i(d)&&A.filter(h=>!i(h.node)).forEach(h=>{o.delete(h.key)})});a=new Set;const s=new Set;for(let l=r;l>=0;l-=1)(n.get(l)||new Set).forEach(u=>{const{parent:f,node:d}=u;if(i(d)||!u.parent||s.has(u.parent.key))return;if(i(u.parent.node)){s.add(f.key);return}let A=!0,h=!1;(f.children||[]).filter(p=>!i(p.node)).forEach(({key:p})=>{const v=o.has(p);A&&!v&&(A=!1),!h&&(v||a.has(p))&&(h=!0)}),A||o.delete(f.key),h&&a.add(f.key),s.add(f.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Zse(a,o))}}function Wb(e,t,n,r){const i=[];let o;r?o=r:o=l9e;const a=new Set(e.filter(u=>{const f=!!cc(n,u);return f||i.push(u),f})),s=new Map;let l=0;Object.keys(n).forEach(u=>{const f=n[u],{level:d}=f;let A=s.get(d);A||(A=new Set,s.set(d,A)),A.add(f),l=Math.max(l,d)}),ao(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(u=>`'${u}'`).join(", ")}`);let c;return t===!0?c=c9e(a,s,l,o):c=u9e(a,t.halfCheckedKeys,s,l,o),c}function JU(){return JU=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{expandedKeys:i,keyEntities:o}=this.state,{onDragStart:a}=this.props,{eventKey:s}=r;this.dragNodeProps=r,this.dragStartMousePosition={x:n.clientX,y:n.clientY};const l=yA(i,s);this.setState({draggingNodeKey:s,dragChildrenKeys:o9e(s,o),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(l),window.addEventListener("dragend",this.onWindowDragEnd),a==null||a({event:n,node:us(r)})});ke(this,"onNodeDragEnter",(n,r)=>{const{expandedKeys:i,keyEntities:o,dragChildrenKeys:a,flattenNodes:s,indent:l}=this.state,{onDragEnter:c,onExpand:u,allowDrop:f,direction:d}=this.props,{pos:A,eventKey:h}=r;if(this.currentMouseOverDroppableNodeKey!==h&&(this.currentMouseOverDroppableNodeKey=h),!this.dragNodeProps){this.resetDragState();return}const{dropPosition:p,dropLevelOffset:v,dropTargetKey:y,dropContainerKey:b,dropTargetPos:x,dropAllowed:C,dragOverNodeKey:S}=Yse(n,this.dragNodeProps,r,l,this.dragStartMousePosition,f,s,o,i,d);if(a.includes(y)||!C){this.resetDragState();return}if(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(B=>{clearTimeout(this.delayedDragEnterLogic[B])}),this.dragNodeProps.eventKey!==r.eventKey&&(n.persist(),this.delayedDragEnterLogic[A]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let B=[...i];const E=cc(o,r.eventKey);E&&(E.children||[]).length&&(B=rp(i,r.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(B),u==null||u(B,{node:us(r),expanded:!0,nativeEvent:n.nativeEvent})},800)),this.dragNodeProps.eventKey===y&&v===0){this.resetDragState();return}this.setState({dragOverNodeKey:S,dropPosition:p,dropLevelOffset:v,dropTargetKey:y,dropContainerKey:b,dropTargetPos:x,dropAllowed:C}),c==null||c({event:n,node:us(r),expandedKeys:i})});ke(this,"onNodeDragOver",(n,r)=>{const{dragChildrenKeys:i,flattenNodes:o,keyEntities:a,expandedKeys:s,indent:l}=this.state,{onDragOver:c,allowDrop:u,direction:f}=this.props;if(!this.dragNodeProps)return;const{dropPosition:d,dropLevelOffset:A,dropTargetKey:h,dropContainerKey:p,dropTargetPos:v,dropAllowed:y,dragOverNodeKey:b}=Yse(n,this.dragNodeProps,r,l,this.dragStartMousePosition,u,o,a,s,f);i.includes(h)||!y||(this.dragNodeProps.eventKey===h&&A===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():d===this.state.dropPosition&&A===this.state.dropLevelOffset&&h===this.state.dropTargetKey&&p===this.state.dropContainerKey&&v===this.state.dropTargetPos&&y===this.state.dropAllowed&&b===this.state.dragOverNodeKey||this.setState({dropPosition:d,dropLevelOffset:A,dropTargetKey:h,dropContainerKey:p,dropTargetPos:v,dropAllowed:y,dragOverNodeKey:b}),c==null||c({event:n,node:us(r)}))});ke(this,"onNodeDragLeave",(n,r)=>{this.currentMouseOverDroppableNodeKey===r.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:i}=this.props;i==null||i({event:n,node:us(r)})});ke(this,"onWindowDragEnd",n=>{this.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)});ke(this,"onNodeDragEnd",(n,r)=>{const{onDragEnd:i}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),i==null||i({event:n,node:us(r)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)});ke(this,"onNodeDrop",(n,r,i=!1)=>{var p;const{dragChildrenKeys:o,dropPosition:a,dropTargetKey:s,dropTargetPos:l,dropAllowed:c}=this.state;if(!c)return;const{onDrop:u}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),s===null)return;const f=te(I({},YE(s,this.getTreeNodeRequiredProps())),{active:((p=this.getActiveItem())==null?void 0:p.key)===s,data:cc(this.state.keyEntities,s).node}),d=o.includes(s);ao(!d,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const A=YU(l),h={event:n,node:us(f),dragNode:this.dragNodeProps?us(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:a!==0,dropPosition:a+Number(A[A.length-1])};i||u==null||u(h),this.dragNodeProps=null});ke(this,"cleanDragState",()=>{const{draggingNodeKey:n}=this.state;n!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null});ke(this,"triggerExpandActionExpand",(n,r)=>{const{expandedKeys:i,flattenNodes:o}=this.state,{expanded:a,key:s,isLeaf:l}=r;if(l||n.shiftKey||n.metaKey||n.ctrlKey)return;const c=o.filter(f=>f.key===s)[0],u=us(te(I({},YE(s,this.getTreeNodeRequiredProps())),{data:c.data}));this.setExpandedKeys(a?yA(i,s):rp(i,s)),this.onNodeExpand(n,u)});ke(this,"onNodeClick",(n,r)=>{const{onClick:i,expandAction:o}=this.props;o==="click"&&this.triggerExpandActionExpand(n,r),i==null||i(n,r)});ke(this,"onNodeDoubleClick",(n,r)=>{const{onDoubleClick:i,expandAction:o}=this.props;o==="doubleClick"&&this.triggerExpandActionExpand(n,r),i==null||i(n,r)});ke(this,"onNodeSelect",(n,r)=>{let{selectedKeys:i}=this.state;const{keyEntities:o,fieldNames:a}=this.state,{onSelect:s,multiple:l}=this.props,{selected:c}=r,u=r[a.key],f=!c;f?l?i=rp(i,u):i=[u]:i=yA(i,u);const d=i.map(A=>{const h=cc(o,A);return h?h.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:i}),s==null||s(i,{event:"select",selected:f,node:r,selectedNodes:d,nativeEvent:n.nativeEvent})});ke(this,"onNodeCheck",(n,r,i)=>{const{keyEntities:o,checkedKeys:a,halfCheckedKeys:s}=this.state,{checkStrictly:l,onCheck:c}=this.props,{key:u}=r;let f;const d={event:"check",node:r,checked:i,nativeEvent:n.nativeEvent};if(l){const A=i?rp(a,u):yA(a,u),h=yA(s,u);f={checked:A,halfChecked:h},d.checkedNodes=A.map(p=>cc(o,p)).filter(Boolean).map(p=>p.node),this.setUncontrolledState({checkedKeys:A})}else{let{checkedKeys:A,halfCheckedKeys:h}=Wb([...a,u],!0,o);if(!i){const p=new Set(A);p.delete(u),{checkedKeys:A,halfCheckedKeys:h}=Wb(Array.from(p),{halfCheckedKeys:h},o)}f=A,d.checkedNodes=[],d.checkedNodesPositions=[],d.halfCheckedKeys=h,A.forEach(p=>{const v=cc(o,p);if(!v)return;const{node:y,pos:b}=v;d.checkedNodes.push(y),d.checkedNodesPositions.push({node:y,pos:b})}),this.setUncontrolledState({checkedKeys:A},!1,{halfCheckedKeys:h})}c==null||c(f,d)});ke(this,"onNodeLoad",n=>{var s;const{key:r}=n,{keyEntities:i}=this.state,o=cc(i,r);if((s=o==null?void 0:o.children)!=null&&s.length)return;const a=new Promise((l,c)=>{this.setState(({loadedKeys:u=[],loadingKeys:f=[]})=>{const{loadData:d,onLoad:A}=this.props;return!d||u.includes(r)||f.includes(r)?null:(d(n).then(()=>{const{loadedKeys:p}=this.state,v=rp(p,r);A==null||A(v,{event:"load",node:n}),this.setUncontrolledState({loadedKeys:v}),this.setState(y=>({loadingKeys:yA(y.loadingKeys,r)})),l()}).catch(p=>{if(this.setState(v=>({loadingKeys:yA(v.loadingKeys,r)})),this.loadingRetryTimes[r]=(this.loadingRetryTimes[r]||0)+1,this.loadingRetryTimes[r]>=f9e){const{loadedKeys:v}=this.state;ao(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:rp(v,r)}),l()}c(p)}),{loadingKeys:rp(f,r)})})});return a.catch(()=>{}),a});ke(this,"onNodeMouseEnter",(n,r)=>{const{onMouseEnter:i}=this.props;i==null||i({event:n,node:r})});ke(this,"onNodeMouseLeave",(n,r)=>{const{onMouseLeave:i}=this.props;i==null||i({event:n,node:r})});ke(this,"onNodeContextMenu",(n,r)=>{const{onRightClick:i}=this.props;i&&(n.preventDefault(),i({event:n,node:r}))});ke(this,"onMouseDown",n=>{this.focusedByMouse=!0;const{onMouseDown:r}=this.props;r==null||r(n)});ke(this,"onGlobalMouseUp",()=>{this.focusedByMouse=!1});ke(this,"onFocus",(...n)=>{var l;const{onFocus:r,disabled:i}=this.props,{activeKey:o,selectedKeys:a,flattenNodes:s}=this.state;if(!this.focusedByMouse&&!i&&o===null){const c=a.find(u=>s.some(f=>f.key===u));c!==void 0?this.onActiveChange(c):this.onActiveChange(((l=s==null?void 0:s[0])==null?void 0:l.key)||null)}r==null||r(...n)});ke(this,"onBlur",(...n)=>{const{onBlur:r}=this.props;this.onActiveChange(null),r==null||r(...n)});ke(this,"getTreeNodeRequiredProps",()=>{const{expandedKeys:n,selectedKeys:r,loadedKeys:i,loadingKeys:o,checkedKeys:a,halfCheckedKeys:s,dragOverNodeKey:l,dropPosition:c,keyEntities:u}=this.state;return{expandedKeys:n||[],selectedKeys:r||[],loadedKeys:i||[],loadingKeys:o||[],checkedKeys:a||[],halfCheckedKeys:s||[],dragOverNodeKey:l,dropPosition:c,keyEntities:u}});ke(this,"setExpandedKeys",n=>{const{treeData:r,fieldNames:i}=this.state,o=KU(r,n,i);this.setUncontrolledState({expandedKeys:n,flattenNodes:o},!0)});ke(this,"onNodeExpand",(n,r)=>{let{expandedKeys:i}=this.state;const{listChanging:o,fieldNames:a}=this.state,{onExpand:s,loadData:l}=this.props,{expanded:c}=r,u=r[a.key];if(o)return;const f=i.includes(u),d=!c;if(ao(c&&f||!c&&!f,"Expand state not sync with index check"),i=d?rp(i,u):yA(i,u),this.setExpandedKeys(i),s==null||s(i,{node:r,expanded:d,nativeEvent:n.nativeEvent}),d&&l){const A=this.onNodeLoad(r);A&&A.then(()=>{const h=KU(this.state.treeData,i,a);this.setUncontrolledState({flattenNodes:h})}).catch(()=>{const{expandedKeys:h}=this.state,p=yA(h,u);this.setExpandedKeys(p)})}});ke(this,"onListChangeStart",()=>{this.setUncontrolledState({listChanging:!0})});ke(this,"onListChangeEnd",()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})});ke(this,"onActiveChange",n=>{const{activeKey:r}=this.state,{onActiveChange:i,itemScrollOffset:o=0}=this.props;r!==n&&(this.setState({activeKey:n}),n!==null&&this.scrollTo({key:n,offset:o}),i==null||i(n))});ke(this,"getActiveItem",()=>{const{activeKey:n,flattenNodes:r}=this.state;return n===null?null:r.find(({key:i})=>i===n)||null});ke(this,"offsetActiveKey",n=>{const{flattenNodes:r,activeKey:i}=this.state;let o=r.findIndex(({key:s})=>s===i);o===-1&&n<0&&(o=r.length),o=(o+n+r.length)%r.length;const a=r[o];if(a){const{key:s}=a;this.onActiveChange(s)}else this.onActiveChange(null)});ke(this,"onKeyDown",n=>{var h,p,v;const{activeKey:r,expandedKeys:i,checkedKeys:o,flattenNodes:a,keyEntities:s}=this.state,{onKeyDown:l,checkable:c,selectable:u,disabled:f,loadData:d}=this.props;if(f)return;switch(n.key){case"ArrowUp":{this.offsetActiveKey(-1),n.preventDefault();break}case"ArrowDown":{this.offsetActiveKey(1),n.preventDefault();break}case"Home":{this.onActiveChange((h=a==null?void 0:a[0])==null?void 0:h.key),n.preventDefault();break}case"End":{this.onActiveChange((p=a==null?void 0:a[a.length-1])==null?void 0:p.key),n.preventDefault();break}}const A=this.getActiveItem();if(A&&A.data){const y=this.getTreeNodeRequiredProps(),b=us(te(I({},YE(r,y)),{data:A.data,active:!0})),x=cc(s,r),C=!!((v=x==null?void 0:x.children)!=null&&v.length),S=!jse(A.data.isLeaf,d,C,b.loaded),B=c&&!b.disabled&&b.checkable!==!1&&!b.disableCheckbox,E=!c&&u&&!b.disabled&&b.selectable!==!1;switch(n.key){case"ArrowLeft":{S&&i.includes(r)?this.onNodeExpand({},b):A.parent&&this.onActiveChange(A.parent.key),n.preventDefault();break}case"ArrowRight":{S&&!i.includes(r)?this.onNodeExpand({},b):A.children&&A.children.length&&this.onActiveChange(A.children[0].key),n.preventDefault();break}case"Enter":{S?(n.preventDefault(),this.onNodeExpand({},b)):B?o.includes(r)||(n.preventDefault(),this.onNodeCheck({},b,!0)):E&&!b.selected&&(n.preventDefault(),this.onNodeSelect({},b));break}case" ":{B?(n.preventDefault(),this.onNodeCheck({},b,!o.includes(r))):E&&(n.preventDefault(),this.onNodeSelect({},b));break}}}l==null||l(n)});ke(this,"setUncontrolledState",(n,r=!1,i=null)=>{if(!this.destroyed){let o=!1,a=!0;const s={};Object.keys(n).forEach(l=>{if(this.props.hasOwnProperty(l)){a=!1;return}o=!0,s[l]=n[l]}),o&&(!r||a)&&this.setState(I(I({},s),i))}});ke(this,"scrollTo",n=>{this.listRef.current.scrollTo(n)})}componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:n,itemScrollOffset:r=0}=this.props;n!==void 0&&n!==this.state.activeKey&&(this.setState({activeKey:n}),n!==null&&this.scrollTo({key:n,offset:r}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(n,r){const{prevProps:i}=r,o={prevProps:n};function a(u){return!i&&n.hasOwnProperty(u)||i&&i[u]!==n[u]}let s,{fieldNames:l}=r;if(a("fieldNames")&&(l=Kb(n.fieldNames),o.fieldNames=l),a("treeData")?{treeData:s}=n:a("children")&&(ao(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),s=Use(n.children)),s){o.treeData=s;const u=WU(s,{fieldNames:l});o.keyEntities=I({[Rv]:Kse},u.keyEntities)}const c=o.keyEntities||r.keyEntities;if(a("expandedKeys")||i&&a("autoExpandParent"))o.expandedKeys=n.autoExpandParent||!i&&n.defaultExpandParent?ZU(n.expandedKeys,c):n.expandedKeys;else if(!i&&n.defaultExpandAll){const u=I({},c);delete u[Rv];const f=[];Object.keys(u).forEach(d=>{const A=u[d];A.children&&A.children.length&&f.push(A.key)}),o.expandedKeys=f}else!i&&n.defaultExpandedKeys&&(o.expandedKeys=n.autoExpandParent||n.defaultExpandParent?ZU(n.defaultExpandedKeys,c):n.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,s||o.expandedKeys){const u=KU(s||r.treeData,o.expandedKeys||r.expandedKeys,l);o.flattenNodes=u}if(n.selectable&&(a("selectedKeys")?o.selectedKeys=Xse(n.selectedKeys,n):!i&&n.defaultSelectedKeys&&(o.selectedKeys=Xse(n.defaultSelectedKeys,n))),n.checkable){let u;if(a("checkedKeys")?u=XU(n.checkedKeys)||{}:!i&&n.defaultCheckedKeys?u=XU(n.defaultCheckedKeys)||{}:s&&(u=XU(n.checkedKeys)||{checkedKeys:r.checkedKeys,halfCheckedKeys:r.halfCheckedKeys}),u){let{checkedKeys:f=[],halfCheckedKeys:d=[]}=u;n.checkStrictly||({checkedKeys:f,halfCheckedKeys:d}=Wb(f,!0,c)),o.checkedKeys=f,o.halfCheckedKeys=d}}return a("loadedKeys")&&(o.loadedKeys=n.loadedKeys),o}resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}render(){const{flattenNodes:n,keyEntities:r,draggingNodeKey:i,dropLevelOffset:o,dropContainerKey:a,dropTargetKey:s,dropPosition:l,dragOverNodeKey:c,indent:u}=this.state,{prefixCls:f,className:d,style:A,styles:h,classNames:p,showLine:v,focusable:y,tabIndex:b=0,selectable:x,showIcon:C,icon:S,switcherIcon:B,draggable:E,checkable:_,checkStrictly:M,disabled:R,motion:T,loadData:L,filterTreeNode:P,height:k,itemHeight:H,scrollWidth:D,virtual:U,titleRender:j,dropIndicatorRender:Q,onContextMenu:K,onScroll:z,direction:V,rootClassName:Y,rootStyle:Z}=this.props,W=Co(this.props,{aria:!0,data:!0});let J;E&&(typeof E=="object"?J=E:typeof E=="function"?J={nodeDraggable:E}:J={});const ee={styles:h,classNames:p,prefixCls:f,selectable:x,showIcon:C,icon:S,switcherIcon:B,draggable:J,draggingNodeKey:i,checkable:_,checkStrictly:M,disabled:R,keyEntities:r,dropLevelOffset:o,dropContainerKey:a,dropTargetKey:s,dropPosition:l,dragOverNodeKey:c,indent:u,direction:V,dropIndicatorRender:Q,loadData:L,filterTreeNode:P,titleRender:j,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return g.createElement(VU.Provider,{value:ee},g.createElement("div",{className:Ae(f,d,Y,{[`${f}-show-line`]:v}),style:Z},g.createElement(i9e,JU({ref:this.listRef,prefixCls:f,style:A,data:n,disabled:R,selectable:x,checkable:!!_,motion:T,dragging:i!==null,height:k,itemHeight:H,virtual:U,focusable:y,tabIndex:b,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:K,onScroll:z,scrollWidth:D},this.getTreeNodeRequiredProps(),W))))}},ke(c5,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:q7e,allowDrop:()=>!0,expandAction:!1}),ke(c5,"TreeNode",XE),c5);const A9e=e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,o="@media (hover: hover) and (pointer: fine)";return[{[`${t}-group`]:te(I({},zr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[i]:te(I({},zr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0}}),[t]:te(I(te(I({},zr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${be(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none"}),Xh()),{"&:after":I({boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${be(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},Xh()),[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:sc(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[o]:{[` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},bfe=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:` + ${Q(i)} 0 0 0 ${n}, + 0 ${Q(i)} 0 0 ${n}, + ${Q(i)} ${Q(i)} 0 0 ${n}, + ${Q(i)} 0 0 0 ${n} inset, + 0 ${Q(i)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},xfe=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return G(G({margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},id()),{},{"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${a}`}}})},Sfe=e=>G(G({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`},id()),{},{"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":G({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ed),"&-description":{color:e.colorTextDescription}}),Cfe=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(i)}`}}},wfe=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Tfe=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:G(G({},td(e)),{},{position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:yfe(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:bfe(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:xfe(e),[`${t}-meta`]:Sfe(e)}),[`${t}-bordered`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Cfe(e),[`${t}-loading`]:wfe(e),[`${t}-rtl`]:{direction:`rtl`}}},Efe=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Q(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},Dfe=dd(`Card`,e=>{let t=bl(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Tfe(t),Efe(t)]},e=>{var t,n;return{headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)==null?e.paddingLG:t,headerPadding:(n=e.headerPadding)==null?e.paddingLG:n}});K();var Ofe=[`prefixCls`,`className`,`rootClassName`,`style`,`extra`,`headStyle`,`bodyStyle`,`title`,`loading`,`bordered`,`variant`,`size`,`type`,`cover`,`actions`,`tabList`,`children`,`activeTabKey`,`defaultActiveTabKey`,`tabBarExtraContent`,`hoverable`,`tabProps`,`classNames`,`styles`],kfe=[`tab`],Afe=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return J.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return J.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},J.createElement(`span`,null,e))}))},jfe=J.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:v,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:x,hoverable:S,tabProps:C={},classNames:w,styles:T}=e,E=q(e,Ofe),{getPrefixCls:D,direction:O,className:k,style:A,classNames:j,styles:M}=ko(`card`),[N]=Sy(`card`,f,d),P=vh(p),F=G(G({},e),{},{size:P,variant:N}),I=yp(A),L=yp(a),[R,z]=xp([j,w],[M,I,T,L],{props:F}),B=t=>{var n;(n=e.onTabChange)==null||n.call(e,t)},V=J.useMemo(()=>Ia(v),[v]),H=J.useMemo(()=>V.some(e=>J.isValidElement(e)&&e.type===Jw),[V]),U=D(`card`,n),[ee,te]=Dfe(U),ne=J.createElement(j_,{loading:!0,active:!0,paragraph:{rows:4},title:!1},v),re=y!==void 0,ie=G(G({},C),{},{[re?`activeKey`:`defaultActiveKey`]:re?y:b,tabBarExtraContent:x}),ae,oe=P===`small`?P:`large`,se=_?J.createElement(qw,G(G({size:oe},ie),{},{className:`${U}-head-tabs`,onChange:B,items:_.map(e=>{let{tab:t}=e,n=q(e,kfe);return G({label:t},n)})})):null;if(l||o||se){let e=Z(`${U}-head`,R.header),t=Z(`${U}-head-title`,R.title),n=Z(`${U}-extra`,R.extra),r=G(G({},s),z.header);ae=J.createElement(`div`,{className:e,style:r},J.createElement(`div`,{className:`${U}-head-wrapper`},l&&J.createElement(`div`,{className:t,style:z.title},l),o&&J.createElement(`div`,{className:n,style:z.extra},o)),se)}let ce=Z(`${U}-cover`,R.cover),le=h?J.createElement(`div`,{className:ce,style:z.cover},h):null,ue=Z(`${U}-body`,R.body),de=G(G({},c),z.body),fe=u||V.length?J.createElement(`div`,{className:ue,style:de},u?ne:v):null,pe=Z(`${U}-actions`,R.actions),me=g!=null&&g.length?J.createElement(Afe,{actionClasses:pe,actionStyle:z.actions,actions:g}):null,he=Ca(E,[`onTabChange`]),W=Z(U,k,{[`${U}-loading`]:u,[`${U}-bordered`]:N!==`borderless`,[`${U}-hoverable`]:S,[`${U}-contain-grid`]:H,[`${U}-contain-tabs`]:_==null?void 0:_.length,[`${U}-small`]:P===`small`,[`${U}-type-${m}`]:!!m,[`${U}-rtl`]:O===`rtl`},r,i,ee,te,R.root),ge=G({},z.root);return J.createElement(`div`,G(G({ref:t},he),{},{className:W,style:ge}),ae,le,fe,me)});K();var Mfe=[`prefixCls`,`className`,`avatar`,`title`,`description`,`style`,`classNames`,`styles`],Nfe=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c}=e,l=q(e,Mfe),{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=ko(`cardMeta`),h=`${u(`card`,t)}-meta`,g=yp(f),_=yp(o),[v,y]=xp([p,s],[m,g,c,_],{props:e}),b=Z(h,n,d,v.root),x=G({},y.root),S=Z(`${h}-avatar`,v.avatar),C=Z(`${h}-title`,v.title),w=Z(`${h}-description`,v.description),T=Z(`${h}-section`,v.section),E=r?J.createElement(`div`,{className:S,style:y.avatar},r):null,D=i?J.createElement(`div`,{className:C,style:y.title},i):null,O=a?J.createElement(`div`,{className:w,style:y.description},a):null,k=D||O?J.createElement(`div`,{className:T,style:y.section},D,O):null;return J.createElement(`div`,G(G({},l),{},{className:b,style:x}),E,k)},Yw=jfe;Yw.Grid=Jw,Yw.Meta=Nfe;function Pfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Xw(e,t){if(e==null)return{};var n,r,i=Pfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re?s?(f=Date.now(),a||(u=setTimeout(l?h:m,e))):m():a!==!0&&(u=setTimeout(l?h:m,l===void 0?e-c:e))}return h.cancel=m,h}function Ife(e,t,n){var r=(n||{}).atBegin;return Ffe(e,t,{debounceMode:(r!==void 0&&r)!==!1})}var Zw=J.createContext(null),Lfe=J.createContext({}),Rfe=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return J.createElement(`div`,{style:i})},zfe=J.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e{if(!Vfe(e))return _a(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,r=e.props,{children:i}=r,a=q(r,Bfe),o=G({key:n},a),s=t(i);return s.length&&(o.children=s),o}).filter(e=>e)}return t(e)}function rT(e,t,n){let{_title:r,key:i,children:a}=tT(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=$w(n?n.pos:`0`,u),f=eT(l[i],d),p;for(let e=0;ee[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>eT(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?$w(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function iT(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Hfe(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=eT(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function aT(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function oT(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=Qw(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function sT(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m=G(G({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p});return`props`in m||Object.defineProperty(m,"props",{get(){return _a(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}K();var Ufe=[`eventKey`,`className`,`style`,`dragOver`,`dragOverGapTop`,`dragOverGapBottom`,`isLeaf`,`isStart`,`isEnd`,`expanded`,`selected`,`checked`,`halfChecked`,`loading`,`domRef`,`active`,`data`,`onMouseMove`,`selectable`,`treeId`];function cT(){return cT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t,n;let{eventKey:r,className:i,style:a,dragOver:o,dragOverGapTop:s,dragOverGapBottom:c,isLeaf:l,isStart:u,isEnd:d,expanded:f,selected:p,checked:m,halfChecked:h,loading:g,domRef:_,active:v,data:y,onMouseMove:b,selectable:x,treeId:S}=e,C=q(e,Ufe),w=ni(S,r),T=J.useContext(Zw),{classNames:E,styles:D}=T||{},O=J.useContext(Lfe),k=J.useRef(null),[A,j]=J.useState(!1),M=!!(T.disabled||e.disabled||(t=O.nodeDisabled)!=null&&t.call(O,y)),N=J.useMemo(()=>!T.checkable||e.checkable===!1?!1:T.checkable,[T.checkable,e.checkable]),P=t=>{M||T.onNodeSelect(t,sT(e))},F=t=>{M||!N||e.disableCheckbox||T.onNodeCheck(t,sT(e),!m)},I=J.useMemo(()=>typeof x==`boolean`?x:T.selectable,[x,T.selectable]),L=t=>{T.onNodeClick(t,sT(e)),I?P(t):F(t)},R=t=>{T.onNodeDoubleClick(t,sT(e))},z=t=>{T.onNodeMouseEnter(t,sT(e))},B=t=>{T.onNodeMouseLeave(t,sT(e))},V=t=>{T.onNodeContextMenu(t,sT(e))},H=J.useMemo(()=>!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(y))),[T.draggable,y]),U=t=>{t.stopPropagation(),j(!0),T.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch(e){}},ee=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragEnter(t,e)},te=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragOver(t,e)},ne=t=>{t.stopPropagation(),T.onNodeDragLeave(t,e)},re=t=>{t.stopPropagation(),j(!1),T.onNodeDragEnd(t,e)},ie=t=>{t.preventDefault(),t.stopPropagation(),j(!1),T.onNodeDrop(t,e)},ae=t=>{g||T.onNodeExpand(t,sT(e))},oe=J.useMemo(()=>{let{children:e}=Qw(T.keyEntities,r)||{};return!!(e||[]).length},[T.keyEntities,r]),se=J.useMemo(()=>aT(l,T.loadData,oe,e.loaded),[l,T.loadData,oe,e.loaded]);J.useEffect(()=>{g||typeof T.loadData==`function`&&f&&!se&&!e.loaded&&T.onNodeLoad(sT(e))},[g,T.loadData,T.onNodeLoad,f,se,e]);let ce=J.useMemo(()=>{var e;return(e=T.draggable)!=null&&e.icon?J.createElement(`span`,{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null},[T.draggable]),le=t=>{let n=e.switcherIcon||T.switcherIcon;return typeof n==`function`?n(G(G({},e),{},{isLeaf:t})):n},ue=()=>{if(se){let e=le(!0);return e===!1?null:J.createElement(`span`,{className:Z(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher-noop`,E==null?void 0:E.itemSwitcher),style:D==null?void 0:D.itemSwitcher},e)}let e=le(!1);return e===!1?null:J.createElement(`span`,{onClick:ae,className:Z(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${f?lT:uT}`,E==null?void 0:E.itemSwitcher),style:D==null?void 0:D.itemSwitcher},e)},de=J.useMemo(()=>{if(!N)return null;let t=typeof N==`boolean`?null:N;return J.createElement(`span`,{className:Z(`${T.prefixCls}-checkbox`,{[`${T.prefixCls}-checkbox-checked`]:m,[`${T.prefixCls}-checkbox-indeterminate`]:!m&&h,[`${T.prefixCls}-checkbox-disabled`]:M||e.disableCheckbox}),onClick:F,role:`checkbox`,"aria-checked":h?`mixed`:m,"aria-disabled":M||e.disableCheckbox,"aria-labelledby":w},t)},[N,m,h,M,e.disableCheckbox,w]),fe=J.useMemo(()=>se?null:f?lT:uT,[se,f]),pe=J.useMemo(()=>J.createElement(`span`,{className:Z(E==null?void 0:E.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${fe||`docu`}`,{[`${T.prefixCls}-icon_loading`]:g}),style:D==null?void 0:D.itemIcon}),[T.prefixCls,fe,g]),me=J.useMemo(()=>{let t=!!T.draggable;return!e.disabled&&t&&T.dragOverNodeKey===r?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),he=J.useMemo(()=>{let{title:t=Wfe}=e,n=`${T.prefixCls}-node-content-wrapper`,r;if(T.showIcon){let t=e.icon||T.icon;r=t?J.createElement(`span`,{className:Z(E==null?void 0:E.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__customize`),style:D==null?void 0:D.itemIcon},typeof t==`function`?t(e):t):pe}else T.loadData&&g&&(r=pe);let i;return i=typeof t==`function`?t(y):T.titleRender?T.titleRender(y):t,J.createElement(`span`,{ref:k,title:typeof t==`string`?t:``,className:Z(n,`${n}-${fe||`normal`}`,{[`${T.prefixCls}-node-selected`]:!M&&(p||A)}),onMouseEnter:z,onMouseLeave:B,onContextMenu:V,onClick:L,onDoubleClick:R},r,J.createElement(`span`,{className:Z(`${T.prefixCls}-title`,E==null?void 0:E.itemTitle),style:D==null?void 0:D.itemTitle},i),me)},[T.prefixCls,T.showIcon,e,T.icon,pe,T.titleRender,y,fe,z,B,V,L,R]),W=Oa(C,{aria:!0,data:!0}),{level:ge}=Qw(T.keyEntities,r)||{},_e=d[d.length-1],K=!M&&H,ve=T.draggingNodeKey===r;return J.createElement(`div`,cT({ref:_,role:`treeitem`,id:w,"aria-expanded":se?void 0:f,"aria-selected":I&&!M?p:void 0,"aria-checked":N&&!M?h?`mixed`:m:void 0,"aria-disabled":M,className:Z(i,`${T.prefixCls}-treenode`,E==null?void 0:E.item,{[`${T.prefixCls}-treenode-disabled`]:M,[`${T.prefixCls}-treenode-switcher-${f?`open`:`close`}`]:!l,[`${T.prefixCls}-treenode-checkbox-checked`]:m,[`${T.prefixCls}-treenode-checkbox-indeterminate`]:h,[`${T.prefixCls}-treenode-selected`]:p,[`${T.prefixCls}-treenode-loading`]:g,[`${T.prefixCls}-treenode-active`]:v,[`${T.prefixCls}-treenode-leaf-last`]:_e,[`${T.prefixCls}-treenode-draggable`]:H,dragging:ve,"drop-target":T.dropTargetKey===r,"drop-container":T.dropContainerKey===r,"drag-over":!M&&o,"drag-over-gap-top":!M&&s,"drag-over-gap-bottom":!M&&c,"filter-node":(n=T.filterTreeNode)==null?void 0:n.call(T,sT(e)),[`${T.prefixCls}-treenode-leaf`]:se}),style:G(G({},a),D==null?void 0:D.item),draggable:K,onDragStart:K?U:void 0,onDragEnter:H?ee:void 0,onDragOver:H?te:void 0,onDragLeave:H?ne:void 0,onDrop:H?ie:void 0,onDragEnd:H?re:void 0,onMouseMove:b},W),J.createElement(zfe,{prefixCls:T.prefixCls,level:ge,isStart:u,isEnd:d}),ce,ue(),de,he)};dT.isTreeNode=1;function Gfe(e,t){let[n,r]=J.useState(!1);Xr(()=>{if(n)return e(),()=>{t()}},[n]),Xr(()=>(r(!0),()=>{r(!1)}),[])}var Kfe=[`className`,`style`,`motion`,`motionNodes`,`motionType`,`onMotionStart`,`onMotionEnd`,`active`,`treeNodeRequiredProps`];function fT(){return fT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u}=e,d=q(e,Kfe),[f,p]=J.useState(!0),{prefixCls:m}=J.useContext(Zw),h=a&&o!==`hide`;Xr(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=J.useRef(!1),v=()=>{a&&!_.current&&(_.current=!0,c())};return Gfe(g,v),a?J.createElement(ip,fT({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},n)=>J.createElement(`div`,{ref:n,className:Z(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:t,title:n,key:r,isStart:i,isEnd:a}=e,o=tt({},(et(t),t));delete o.children;let s=oT(r,u);return J.createElement(dT,fT({},o,s,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):J.createElement(dT,fT({domRef:t,className:n,style:r},d,{active:l}))});function Jfe(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return ne.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}var Yfe=`prefixCls.data.selectable.checkable.expandedKeys.selectedKeys.checkedKeys.loadedKeys.loadingKeys.halfCheckedKeys.keyEntities.disabled.dragging.dragOverNodeKey.dropPosition.motion.height.itemHeight.virtual.scrollWidth.focusable.activeItem.tabIndex.onKeyDown.onFocus.onBlur.onMouseDown.onActiveChange.onListChangeStart.onListChangeEnd`.split(`.`);function mT(){return mT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:v,itemHeight:y,virtual:b,scrollWidth:x,focusable:S,activeItem:C,tabIndex:w,onKeyDown:T,onFocus:E,onBlur:D,onMouseDown:O,onActiveChange:k,onListChangeStart:A,onListChangeEnd:j}=e,M=q(e,Yfe),N=ii(),P=J.useRef(null),F=J.useRef(null);J.useImperativeHandle(t,()=>({scrollTo:e=>{P.current.scrollTo(e)},getIndentWidth:()=>F.current.offsetWidth}));let[I,L]=J.useState(o),[R,z]=J.useState(r),[B,V]=J.useState(r),[H,U]=J.useState([]),[ee,te]=J.useState(null),ne=J.useRef(r);ne.current=r;function re(){let e=ne.current;z(e),V(e),U([]),te(null),j()}Xr(()=>{L(o);let e=Jfe(I,o);if(e.key!==null)if(e.add){let t=R.findIndex(({key:t})=>t===e.key),n=Zfe(pT(R,r,e.key),b,v,y),i=R.slice();i.splice(t+1,0,Xfe),V(i),U(n),te(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=Zfe(pT(r,R,e.key),b,v,y),i=r.slice();i.splice(t+1,0,Xfe),V(i),U(n),te(`hide`)}else R!==r&&(z(r),V(r))},[o,r]),J.useEffect(()=>{m||re()},[m]);let ie=_?B:r,ae={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return J.createElement(J.Fragment,null,J.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},J.createElement(`div`,{className:`${n}-indent`},J.createElement(`div`,{ref:F,className:`${n}-indent-unit`}))),J.createElement(oy,mT({},M,{data:ie,itemKey:Qfe,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:x,prefixCls:`${n}-list`,ref:P,role:`tree`,tabIndex:S!==!1&&!p?w:void 0,"aria-activedescendant":C?ni(N,C.key):void 0,onKeyDown:T,onFocus:E,onBlur:D,onMouseDown:O,onVisibleChange:e=>{e.every(e=>Qfe(e)!==hT)&&re()}}),e=>{let{pos:t,data:n,title:r,key:i,isStart:a,isEnd:o}=e,s=tt({},(et(n),n)),c=eT(i,t);delete s.key,delete s.children;let l=oT(c,ae);return J.createElement(qfe,mT({},s,l,{title:r,active:!!C&&i===C.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===hT?H:null,motionType:ee,onMotionStart:A,onMotionEnd:re,treeNodeRequiredProps:ae,treeId:N,onMouseMove:()=>{k(null)}}))}))});function vT(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function yT(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function bT(e){return e.split(`-`)}function epe(e,t){let n=[],r=Qw(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function tpe(e){if(e.parent){let t=bT(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function npe(e){let t=bT(e.pos);return Number(t[t.length-1])===0}function rpe(e,t,n,r,i,a,o,s,c,l){var u;let{clientX:d,clientY:f}=e,{top:p,height:m}=e.target.getBoundingClientRect(),h=((l===`rtl`?-1:1)*(((i==null?void 0:i.x)||0)-d)-12)/r,g=c.filter(e=>{var t;return(t=s[e])==null||(t=t.children)==null?void 0:t.length}),_=Qw(s,n.eventKey);if(fe.key===_.key),t=o[e<=0?0:e-1].key;_=Qw(s,t)}let v=_.key,y=_,b=_.key,x=0,S=0;if(!g.includes(v))for(let e=0;e-1.5?a({dragNode:C,dropNode:w,dropPosition:1})?x=1:T=!1:a({dragNode:C,dropNode:w,dropPosition:0})?x=0:a({dragNode:C,dropNode:w,dropPosition:1})?x=1:T=!1:a({dragNode:C,dropNode:w,dropPosition:1})?x=1:T=!1,{dropPosition:x,dropLevelOffset:S,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:b,dropContainerKey:x===0?null:((u=_.parent)==null?void 0:u.key)||null,dropAllowed:T}}function ipe(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function xT(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return _a(!1,"`checkedKeys` is not an array or an object"),null;return t}function ST(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=Qw(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}function ape(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function ope(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function spe(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(ape(a,i))}}function cpe(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(ape(o,a))}}function CT(e,t,n,r){let i=[],a;a=r||ope;let o=new Set(e.filter(e=>{let t=!!Qw(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),_a(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?spe(o,s,c,a):cpe(o,t.halfCheckedKeys,s,c,a),l}ge(),K();function wT(){return wT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=vT(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:epe(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i==null||i({event:e,node:sT(t)})}),W(this,`onNodeDragEnter`,(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=rpe(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=Qw(r,t.eventKey);a&&(a.children||[]).length&&(i=yT(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c==null||c(i,{node:sT(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s==null||s({event:e,node:sT(t),expandedKeys:n})}),W(this,`onNodeDragOver`,(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=rpe(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s==null||s({event:e,node:sT(t)}))}),W(this,`onNodeDragLeave`,(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n==null||n({event:e,node:sT(t)})}),W(this,`onWindowDragEnd`,e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)}),W(this,`onNodeDragEnd`,(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n==null||n({event:e,node:sT(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)}),W(this,`onNodeDrop`,(e,t,n=!1)=>{var r;let{dragChildrenKeys:i,dropPosition:a,dropTargetKey:o,dropTargetPos:s,dropAllowed:c}=this.state;if(!c)return;let{onDrop:l}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),o===null)return;let u=G(G({},oT(o,this.getTreeNodeRequiredProps())),{},{active:((r=this.getActiveItem())==null?void 0:r.key)===o,data:Qw(this.state.keyEntities,o).node});_a(!i.includes(o),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let d=bT(s),f={event:e,node:sT(u),dragNode:this.dragNodeProps?sT(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(i),dropToGap:a!==0,dropPosition:a+Number(d[d.length-1])};n||l==null||l(f),this.dragNodeProps=null}),W(this,`cleanDragState`,()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null}),W(this,`triggerExpandActionExpand`,(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=sT(G(G({},oT(a,this.getTreeNodeRequiredProps())),{},{data:s.data}));this.setExpandedKeys(i?vT(n,a):yT(n,a)),this.onNodeExpand(e,c)}),W(this,`onNodeClick`,(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n==null||n(e,t)}),W(this,`onNodeDoubleClick`,(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n==null||n(e,t)}),W(this,`onNodeSelect`,(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?yT(n,c):[c]:vT(n,c);let u=n.map(e=>{let t=Qw(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a==null||a(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})}),W(this,`onNodeCheck`,(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?yT(i,c):vT(i,c);l={checked:e,halfChecked:vT(a,c)},u.checkedNodes=e.map(e=>Qw(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=CT([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=CT(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=Qw(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s==null||s(l,u)}),W(this,`onNodeLoad`,e=>{var t;let{key:n}=e,{keyEntities:r}=this.state,i=Qw(r,n);if(!(i==null||(t=i.children)==null)&&t.length)return;let a=new Promise((t,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(n)||a.includes(n)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=yT(r,n);s==null||s(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:vT(e.loadingKeys,n)})),t()}).catch(e=>{if(this.setState(e=>({loadingKeys:vT(e.loadingKeys,n)})),this.loadingRetryTimes[n]=(this.loadingRetryTimes[n]||0)+1,this.loadingRetryTimes[n]>=lpe){let{loadedKeys:e}=this.state;_a(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:yT(e,n)}),t()}r(e)}),{loadingKeys:yT(a,n)})})});return a.catch(()=>{}),a}),W(this,`onNodeMouseEnter`,(e,t)=>{let{onMouseEnter:n}=this.props;n==null||n({event:e,node:t})}),W(this,`onNodeMouseLeave`,(e,t)=>{let{onMouseLeave:n}=this.props;n==null||n({event:e,node:t})}),W(this,`onNodeContextMenu`,(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))}),W(this,`onMouseDown`,e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t==null||t(e)}),W(this,`onGlobalMouseUp`,()=>{this.focusedByMouse=!1}),W(this,`onFocus`,(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));if(e!==void 0)this.onActiveChange(e);else{var o;this.onActiveChange((a==null||(o=a[0])==null?void 0:o.key)||null)}}t==null||t(...e)}),W(this,`onBlur`,(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t==null||t(...e)}),W(this,`getTreeNodeRequiredProps`,()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}}),W(this,`setExpandedKeys`,e=>{let{treeData:t,fieldNames:n}=this.state,r=rT(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)}),W(this,`onNodeExpand`,(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(_a(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?yT(n,c):vT(n,c),this.setExpandedKeys(n),a==null||a(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=rT(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=vT(e,c);this.setExpandedKeys(t)})}}),W(this,`onListChangeStart`,()=>{this.setUncontrolledState({listChanging:!0})}),W(this,`onListChangeEnd`,()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})}),W(this,`onActiveChange`,e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n==null||n(e))}),W(this,`getActiveItem`,()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null}),W(this,`offsetActiveKey`,e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)}),W(this,`onKeyDown`,e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:var d;this.onActiveChange(i==null||(d=i[0])==null?void 0:d.key),e.preventDefault();break;case`End`:var f;this.onActiveChange(i==null||(f=i[i.length-1])==null?void 0:f.key),e.preventDefault();break}let p=this.getActiveItem();if(p&&p.data){var m;let i=sT(G(G({},oT(t,this.getTreeNodeRequiredProps())),{},{data:p.data,active:!0})),o=Qw(a,t),l=!!(!(o==null||(m=o.children)==null)&&m.length),d=!aT(p.data.isLeaf,u,l,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,h=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:d&&n.includes(t)?this.onNodeExpand({},i):p.parent&&this.onActiveChange(p.parent.key),e.preventDefault();break;case`ArrowRight`:d&&!n.includes(t)?this.onNodeExpand({},i):p.children&&p.children.length&&this.onActiveChange(p.children[0].key),e.preventDefault();break;case`Enter`:d?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):h&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):h&&(e.preventDefault(),this.onNodeSelect({},i));break}}o==null||o(e)}),W(this,`setUncontrolledState`,(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState(G(G({},a),n))}}),W(this,`scrollTo`,e=>{this.listRef.current.scrollTo(e)})}componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener(`mouseup`,this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),window.removeEventListener(`mouseup`,this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=tT(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(_a(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=nT(e.children)),a){r.treeData=a;let e=iT(a,{fieldNames:o});r.keyEntities=G({[hT]:_T},e.keyEntities)}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?ST(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e=G({},s);delete e[hT];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?ST(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=rT(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=ipe(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=ipe(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=xT(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=xT(e.defaultCheckedKeys)||{}:a&&(o=xT(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=CT(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:x,checkable:S,checkStrictly:C,disabled:w,motion:T,loadData:E,filterTreeNode:D,height:O,itemHeight:k,scrollWidth:A,virtual:j,titleRender:M,dropIndicatorRender:N,onContextMenu:P,onScroll:F,direction:I,rootClassName:L,rootStyle:R}=this.props,z=Oa(this.props,{aria:!0,data:!0}),B;x&&(B=typeof x==`object`?x:typeof x==`function`?{nodeDraggable:x}:{});let V={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:B,draggingNodeKey:n,checkable:S,checkStrictly:C,disabled:w,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:I,dropIndicatorRender:N,loadData:E,filterTreeNode:D,titleRender:M,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return J.createElement(Zw.Provider,{value:V},J.createElement(`div`,{className:Z(l,u,L,{[`${l}-show-line`]:m}),style:R},J.createElement($fe,wT({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:w,selectable:_,checkable:!!S,motion:T,dragging:n!==null,height:O,itemHeight:k,virtual:j,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:P,onScroll:F,scrollWidth:A},this.getTreeNodeRequiredProps(),z))))}};W(TT,`defaultProps`,{prefixCls:`rc-tree`,showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Rfe,allowDrop:()=>!0,expandAction:!1}),W(TT,`TreeNode`,dT);var upe=TT;K();var dpe=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:G(G({},td(e)),{},{display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[i]:G(G({},td(e)),{},{display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}}),[t]:G(G(G({},td(e)),{},{position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${Q(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`},Gh()),{},{"&:after":G({boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${Q(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},Gh()),[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:ad(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[a]:{[` ${i}:not(${i}-disabled), ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":I({opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},Xh()),[o]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},[o]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function Jse(e,t){const n=dr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return A9e(n)}const ele=Br("Checkbox",(e,{prefixCls:t})=>[Jse(t,e)]),tle=Be.createContext(null),h9e=(e,t)=>{var ie;const ge=e,{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:o,onMouseLeave:a,skipGroup:s=!1,disabled:l,rootClassName:c,className:u,style:f,classNames:d,styles:A,name:h,value:p,checked:v,defaultChecked:y,onChange:b}=ge,x=Ze(ge,["prefixCls","children","indeterminate","onMouseEnter","onMouseLeave","skipGroup","disabled","rootClassName","className","style","classNames","styles","name","value","checked","defaultChecked","onChange"]),{getPrefixCls:C,direction:S,className:B,style:E,classNames:_,styles:M}=or("checkbox"),R=g.useContext(tle),{isFormItemInput:T}=g.useContext(Ya),L=g.useContext(qa),P=(ie=(R==null?void 0:R.disabled)||l)!=null?ie:L,[k,H]=Fr(y,v);let D=k;const U=yn(le=>{H(le.target.checked),b==null||b(le),!s&&(R!=null&&R.toggleOption)&&R.toggleOption({label:r,value:p})});R&&!s&&(D=R.value.includes(p));const j=g.useRef(null),Q=ed(t,j);g.useEffect(()=>{if(!(s||!R))return R.registerValue(p),()=>{R.cancelValue(p)}},[p,s]),g.useEffect(()=>{var le;(le=j.current)!=null&&le.input&&(j.current.input.indeterminate=i)},[i]);const K=C("checkbox",n),z=So(K),[V,Y]=ele(K,z),Z=I({},x),W=te(I({},e),{indeterminate:i,disabled:P,checked:D}),J=Ar(E),ee=Ar(f),[ne,re]=vr([_,d],[M,J,A,ee],{props:W}),ue=Ae(`${K}-wrapper`,{[`${K}-rtl`]:S==="rtl",[`${K}-wrapper-checked`]:D,[`${K}-wrapper-disabled`]:P,[`${K}-wrapper-in-form-item`]:T},B,u,ne.root,c,Y,z,V),de=Ae(ne.icon,{[`${K}-indeterminate`]:i},$M,V),[se,ce]=use(Z.onClick);return g.createElement(sE,{component:"Checkbox",disabled:P},g.createElement("label",{className:ue,style:re.root,onMouseEnter:o,onMouseLeave:a,onClick:se},g.createElement(cse,te(I({},Z),{name:!s&&R?R.name:h,checked:D,onClick:ce,onChange:U,prefixCls:K,className:de,style:re.icon,disabled:P,ref:Q,value:p})),qi(r)&&g.createElement("span",{className:Ae(`${K}-label`,ne.label),style:re.label},r)))},nle=g.forwardRef(h9e),p9e=g.forwardRef((e,t)=>{const H=e,{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c,role:u="group"}=H,f=Ze(H,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange","role"]),{getPrefixCls:d,direction:A}=g.useContext(Un),[h,p]=g.useState(f.value||n||[]),[v,y]=g.useState([]);g.useEffect(()=>{"value"in f&&p(f.value||[])},[f.value]);const b=g.useMemo(()=>i.map(D=>typeof D=="string"||mo(D)?{label:D,value:D}:D),[i]),x=D=>{y(U=>U.filter(j=>j!==D))},C=D=>{y(U=>[].concat(en(U),[D]))},S=D=>{const U=h.indexOf(D.value),j=en(h);U===-1?j.push(D.value):j.splice(U,1),"value"in f||p(j),c==null||c(j.filter(Q=>v.includes(Q)).sort((Q,K)=>{const z=b.findIndex(Y=>Y.value===Q),V=b.findIndex(Y=>Y.value===K);return z-V}))},B=d("checkbox",o),E=`${B}-group`,_=So(B),[M,R]=ele(B,_),T=ti(f,["value","disabled"]),L=i.length?b.map(D=>g.createElement(nle,{prefixCls:B,key:D.value.toString(),disabled:"disabled"in D?D.disabled:f.disabled,value:D.value,checked:h.includes(D.value),onChange:D.onChange,className:Ae(`${E}-item`,D.className),style:D.style,title:D.title,id:D.id,required:D.required},D.label)):r,P=g.useMemo(()=>({toggleOption:S,value:h,disabled:f.disabled,name:f.name,registerValue:C,cancelValue:x}),[S,h,f.disabled,f.name,C,x]),k=Ae(E,{[`${E}-rtl`]:A==="rtl"},a,s,R,_,M);return g.createElement("div",te(I({className:k,style:l,role:u},T),{ref:t}),g.createElement(tle.Provider,{value:P},L))}),Zu=nle;Zu.Group=p9e,Zu.__ANT_CHECKBOX=!0;const rle=g.createContext({});function ile(e){return e==="auto"?"1 1 auto":mo(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const wr=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(Un),{gutter:i,wrap:o}=g.useContext(rle),R=e,{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:d,children:A,flex:h,style:p}=R,v=Ze(R,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),b=n(),[x,C]=Lke(y),[S]=go(b,"col"),B={};let E={};goe.forEach(T=>{let L={};const P=e[T];mo(P)?L.span=P:Zn(P)&&(L=P||{}),delete v[T],E=te(I({},E),{[`${y}-${T}-${L.span}`]:oa(L.span),[`${y}-${T}-order-${L.order}`]:L.order||L.order===0,[`${y}-${T}-offset-${L.offset}`]:L.offset||L.offset===0,[`${y}-${T}-push-${L.push}`]:L.push||L.push===0,[`${y}-${T}-pull-${L.pull}`]:L.pull||L.pull===0,[`${y}-rtl`]:r==="rtl"}),L.flex&&(E[`${y}-${T}-flex`]=!0,B[S(`${T}-flex`)]=ile(L.flex))});const _=Ae(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},d,E,x,C),M={};if(i!=null&&i[0]){const T=mo(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`;M.paddingInline=T}return h&&(M.flex=ile(h),o===!1&&!M.minWidth&&(M.minWidth=0)),g.createElement("div",te(I({},v),{style:I(I(I({},M),p),B),className:_,ref:t}),A)});function g9e(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((o,a)=>{if(Zn(o))for(let s=0;s{const[n,r]=g.useState(()=>AA(e)?e:""),i=()=>{if(AA(e)&&r(e),!!Zn(e))for(let o=0;o{i()},[JSON.stringify(e),t]),n},$i=g.forwardRef((e,t)=>{const M=e,{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=M,u=Ze(M,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=g.useContext(Un),A=KM(!0,null),h=ole(i,A),p=ole(r,A),v=f("row",n),[y,b]=Pke(v),x=g9e(l,A),C=Ae(v,{[`${v}-no-wrap`]:c===!1,[`${v}-${p}`]:p,[`${v}-${h}`]:h,[`${v}-rtl`]:d==="rtl"},o,y,b),S={};if(x!=null&&x[0]){const R=mo(x[0])?`${x[0]/-2}px`:`calc(${x[0]} / -2)`;S.marginInline=R}const[B,E]=x;S.rowGap=E;const _=g.useMemo(()=>({gutter:[B,E],wrap:c}),[B,E,c]);return g.createElement(rle.Provider,{value:_},g.createElement("div",te(I({},u),{className:C,style:I(I({},S),a),ref:t}),s))}),m9e=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},v9e=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e,l=`${t}-rail`;return{[t]:te(I({},zr(e)),{borderBlockStart:`${be(i)} solid ${r}`,[l]:{borderBlockStart:`${be(i)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${be(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${be(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${be(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${l}-start, ${l}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${l}-start`]:{width:`calc(${a} * 100%)`},[`${l}-end`]:{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${l}-start`]:{width:`calc(100% - ${a} * 100%)`},[`${l}-end`]:{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${be(i)} 0 0`,[l]:{borderBlockStart:`${be(i)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${l}-start, ${l}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${be(i)} 0 0`,[l]:{borderBlockStart:`${be(i)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${l}-start`]:{width:0},[`${l}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${l}-start`]:{width:"100%"},[`${l}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},y9e=Br("Divider",e=>{const t=dr(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[v9e(t),m9e(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),b9e=["left","right","center","start","end"],Ju=e=>{const{getPrefixCls:t,direction:n,className:r,style:i,classNames:o,styles:a}=or("divider"),J=e,{prefixCls:s,type:l,orientation:c,vertical:u,titlePlacement:f,orientationMargin:d,className:A,rootClassName:h,children:p,dashed:v,variant:y="solid",plain:b,style:x,size:C,classNames:S,styles:B}=J,E=Ze(J,["prefixCls","type","orientation","vertical","titlePlacement","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size","classNames","styles"]),_=t("divider",s),M=`${_}-rail`,[R,T]=y9e(_),L=aa(C),P=!!p,k=b9e.includes(c||""),H=g.useMemo(()=>{const ee=f!=null?f:k?c:"center";return ee==="left"?n==="rtl"?"end":"start":ee==="right"?n==="rtl"?"start":"end":ee},[n,c,f,k]),D=H==="start"&&d!=null,U=H==="end"&&d!=null,[j,Q]=aE(c,u,l),K=te(I({},e),{orientation:j,titlePlacement:H,size:L}),[z,V]=vr([o,S],[a,B],{props:K}),Y=Ae(_,r,R,T,`${_}-${j}`,{[`${_}-with-text`]:P,[`${_}-with-text-${H}`]:P,[`${_}-dashed`]:!!v,[`${_}-${y}`]:y!=="solid",[`${_}-plain`]:!!b,[`${_}-rtl`]:n==="rtl",[`${_}-no-default-orientation-margin-start`]:D,[`${_}-no-default-orientation-margin-end`]:U,[`${_}-md`]:L==="medium"||L==="middle",[`${_}-sm`]:L==="small",[M]:!p,[z.rail]:z.rail&&!p},A,h,z.root),Z=g.useMemo(()=>mo(d)?d:/^\d+$/.test(d)?Number(d):d,[d]),W={marginInlineStart:D?Z:void 0,marginInlineEnd:U?Z:void 0};return g.createElement("div",te(I({className:Y,style:I(I(I(I({},i),V.root),p?{}:V.rail),x)},E),{role:"separator"}),p&&!Q&&g.createElement(g.Fragment,null,g.createElement("div",{className:Ae(M,`${M}-start`,z.rail),style:V.rail}),g.createElement("span",{className:Ae(`${_}-inner-text`,z.content),style:I(I({},W),V.content)},p),g.createElement("div",{className:Ae(M,`${M}-end`,z.rail),style:V.rail})))};var D4={},ale;function x9e(){if(ale)return D4;ale=1,Object.defineProperty(D4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};return D4.default=e,D4}var w9e=x9e();const C9e=_t(w9e);function e7(){return e7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,e7({},e,{ref:t,icon:C9e})),E9e=g.forwardRef(S9e);var H4={},sle;function B9e(){if(sle)return H4;sle=1,Object.defineProperty(H4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};return H4.default=e,H4}var O9e=B9e();const $9e=_t(O9e);function t7(){return t7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,t7({},e,{ref:t,icon:$9e})),T9e=g.forwardRef(_9e);function n7(){return typeof BigInt=="function"}function lle(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Nv(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function U4(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function cle(e){var t=e.toLowerCase().split("e"),n=mr(t,2),r=n[0],i=n[1],o=i===void 0?"0":i,a=r.startsWith("-"),s=a?r.slice(1):r,l=s.split("."),c=mr(l,2),u=c[0],f=u===void 0?"0":u,d=c[1],A=d===void 0?"":d,h="".concat(f).concat(A).replace(/^0+/,"")||"0";return{decimal:A,digits:h,exponent:Number(o),integer:f,negative:a}}function M9e(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,o=e.negative;if(n==="0")return"0";var a=i.replace(/^0+/,"").length,s=(t.match(/^0*/)||[""])[0].length,l=a||-s,c=l+r,u="";return c<=0?u="0.".concat("0".repeat(-c)).concat(n):c>=n.length?u="".concat(n).concat("0".repeat(c-n.length)):u="".concat(n.slice(0,c),".").concat(n.slice(c)),"".concat(o?"-":"").concat(u)}function ule(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Pv(e){var t=String(e);return U4(e)?ule(cle(t)):t.includes(".")&&r7(t)?t.length-t.indexOf(".")-1:0}function j4(e){var t=String(e);if(U4(e)){if(e>Number.MAX_SAFE_INTEGER)return String(n7()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e100?M9e(n):e.toFixed(r)}return Nv(t).fullStr}function r7(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var I9e=(function(){function e(t){if(Lt(this,e),ln(this,"origin",""),ln(this,"negative",void 0),ln(this,"integer",void 0),ln(this,"decimal",void 0),ln(this,"decimalLen",void 0),ln(this,"empty",void 0),ln(this,"nan",void 0),lle(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(U4(n)&&(n=Number(n)),n=typeof n=="string"?n:j4(n),r7(n)){var r=Nv(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return Ft(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,i){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),a=this.alignDecimal(o),s=n.alignDecimal(o),l=r(a,s).toString(),c=i(o),u=Nv(l),f=u.negativeStr,d=u.trimStr,A="".concat(f).concat(d.padStart(c+1,"0"));return new e("".concat(A.slice(0,-c),".").concat(A.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(i,o){return i+o},function(i){return i})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(i,o){return i*o},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Nv("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),R9e=(function(){function e(t){if(Lt(this,e),ln(this,"origin",""),ln(this,"number",void 0),ln(this,"empty",void 0),lle(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Ft(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":U4(this.number)&&Pv(this.number)>100?String(this.number):j4(this.number):this.origin}}]),e})();function sd(e){return n7()?new I9e(e):new R9e(e)}function z4(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=Nv(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=sd(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return z4(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function N9e(e,t){const n=g.useRef(null);function r(){try{const{selectionStart:o,selectionEnd:a,value:s}=e,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch(o){}}function i(){if(e&&n.current&&t)try{const{value:o}=e,{beforeTxt:a,afterTxt:s,start:l}=n.current;let c=o.length;if(o.startsWith(a))c=a.length;else if(o.endsWith(s))c=o.length-n.current.afterTxt.length;else{const u=a[l-1],f=o.indexOf(u,l-1);f!==-1&&(c=f+1)}e.setSelectionRange(c,c)}catch(o){ao(!1,`Something warning of cursor restore. Please fire issue about this: ${o.message}`)}}return[r,i]}const P9e=200,L9e=600;function fle({prefixCls:e,action:t,children:n,disabled:r,className:i,style:o,onStep:a}){const s=t==="up",l=g.useRef(),c=g.useRef([]),u=()=>{clearTimeout(l.current)},f=p=>{p.preventDefault(),u(),a(s,"handler");function v(){a(s,"handler"),l.current=setTimeout(v,P9e)}l.current=setTimeout(v,L9e)};g.useEffect(()=>()=>{u(),c.current.forEach(p=>{Kn.cancel(p)})},[]);const d=`${e}-action`,A=Ae(d,`${d}-${t}`,{[`${d}-${t}-disabled`]:r},i),h=()=>c.current.push(Kn(u));return g.createElement("span",{unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h,onMouseDown:p=>{f(p)},"aria-label":s?"Increase Value":"Decrease Value","aria-disabled":r,className:A,style:o},n||g.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function dle(e){const t=typeof e=="number"?j4(e):Nv(e).fullStr;return t.includes(".")?Nv(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const F9e=(()=>{const e=g.useRef(0),t=()=>{Kn.cancel(e.current)};return g.useEffect(()=>t,[]),n=>{t(),e.current=Kn(()=>{n()})}});function JE(){return JE=Object.assign?Object.assign.bind():function(e){for(var t=1;te||t.isEmpty()?t.toString():t.toNumber(),hle=e=>{const t=sd(e);return t.isInvalidate()?null:t},k9e=g.forwardRef((e,t)=>{const Vt=e,{mode:n="input",prefixCls:r="rc-input-number",className:i,style:o,classNames:a,styles:s,min:l,max:c,step:u=1,defaultValue:f,value:d,disabled:A,readOnly:h,upHandler:p,downHandler:v,keyboard:y,changeOnWheel:b=!1,controls:x=!0,prefix:C,suffix:S,stringMode:B,parser:E,formatter:_,precision:M,decimalSeparator:R,onChange:T,onInput:L,onPressEnter:P,onStep:k,onMouseDown:H,onClick:D,onMouseUp:U,onMouseLeave:j,onMouseMove:Q,onMouseEnter:K,onMouseOut:z,changeOnBlur:V=!0}=Vt,Y=Ze(Vt,["mode","prefixCls","className","style","classNames","styles","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","prefix","suffix","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","onMouseDown","onClick","onMouseUp","onMouseLeave","onMouseMove","onMouseEnter","onMouseOut","changeOnBlur"]),[Z,W]=g.useState(!1),J=g.useRef(!1),ee=g.useRef(!1),ne=g.useRef(!1),re=g.useRef(null),ue=g.useRef(null);g.useImperativeHandle(t,()=>lRe(ue.current,{focus:xt=>{M6(ue.current,xt)},blur:()=>{var xt;(xt=ue.current)==null||xt.blur()},nativeElement:re.current}));const[de,se]=g.useState(()=>sd(d!=null?d:f));function ce(xt){d===void 0&&se(xt)}const ge=g.useCallback((xt,qe)=>{if(!qe)return M>=0?M:Math.max(Pv(xt),Pv(u))},[M,u]),ie=g.useCallback(xt=>{const qe=String(xt);if(E)return E(qe);let it=qe;return R&&(it=it.replace(R,".")),it.replace(/[^\w.-]+/g,"")},[E,R]),le=g.useRef(""),ve=g.useCallback((xt,qe)=>{if(_)return _(xt,{userTyping:qe,input:String(le.current)});let it=typeof xt=="number"?j4(xt):xt;if(!qe){const Pt=ge(it,qe);r7(it)&&(R||Pt>=0)&&(it=z4(it,R||".",Pt))}return it},[_,ge,R]),[we,me]=g.useState(()=>{const xt=f!=null?f:d;return de.isInvalidate()&&["string","number"].includes(typeof xt)?Number.isNaN(xt)?"":xt:ve(de.toString(),!1)});le.current=we;function Ee(xt,qe){me(ve(xt.isInvalidate()?xt.toString(!1):xt.toString(!qe),qe))}const Ce=g.useMemo(()=>hle(c),[c,M]),pe=g.useMemo(()=>hle(l),[l,M]),Oe=g.useMemo(()=>!Ce||!de||de.isInvalidate()?!1:Ce.lessEquals(de),[Ce,de]),xe=g.useMemo(()=>!pe||!de||de.isInvalidate()?!1:de.lessEquals(pe),[pe,de]),[Me,Se]=N9e(ue.current,Z),Pe=xt=>Ce&&!xt.lessEquals(Ce)?Ce:pe&&!pe.lessEquals(xt)?pe:null,Le=xt=>!Pe(xt),He=(xt,qe)=>{let it=xt,Pt=Le(it)||it.isEmpty();if(!it.isEmpty()&&!qe&&(it=Pe(it)||it,Pt=!0),!h&&!A&&Pt){const De=it.toString(),ze=ge(De,qe);return ze>=0&&(it=sd(z4(De,".",ze)),Le(it)||(it=sd(z4(De,".",ze,!0)))),it.equals(de)||(ce(it),T==null||T(it.isEmpty()?null:Ale(B,it)),d===void 0&&Ee(it,qe)),it}return de},Ne=F9e(),at=xt=>{if(Me(),le.current=xt,me(xt),!ee.current){const qe=ie(xt),it=sd(qe);it.isNaN()||He(it,!0)}L==null||L(xt),Ne(()=>{let qe=xt;E||(qe=xt.replace(/。/g,".")),qe!==xt&&at(qe)})},Ue=()=>{ee.current=!0},et=()=>{ee.current=!1,at(ue.current.value)},We=xt=>{at(xt.target.value)},Je=yn((xt,qe)=>{var ze;if(xt&&Oe||!xt&&xe)return;J.current=!1;let it=sd(ne.current?dle(u):u);xt||(it=it.negate());const Pt=(de||sd(0)).add(it.toString()),De=He(Pt,!1);k==null||k(Ale(B,De),{offset:ne.current?dle(u):u,type:xt?"up":"down",emitter:qe}),(ze=ue.current)==null||ze.focus()}),dt=xt=>{const qe=sd(ie(we));let it;qe.isNaN()?it=He(de,xt):it=He(qe,xt),d!==void 0?Ee(de,!1):it.isNaN()||Ee(it,!1)},wt=()=>{J.current=!0},Bt=xt=>{const{key:qe,shiftKey:it}=xt;J.current=!0,ne.current=it,qe==="Enter"&&(ee.current||(J.current=!1),dt(!1),P==null||P(xt)),y!==!1&&!ee.current&&["Up","ArrowUp","Down","ArrowDown"].includes(qe)&&(Je(qe==="Up"||qe==="ArrowUp","keyboard"),xt.preventDefault())},qt=()=>{J.current=!1,ne.current=!1};g.useEffect(()=>{if(b&&Z){const xt=it=>{Je(it.deltaY<0,"wheel"),it.preventDefault()},qe=ue.current;if(qe)return qe.addEventListener("wheel",xt,{passive:!1}),()=>qe.removeEventListener("wheel",xt)}});const jt=()=>{V&&dt(!1),W(!1),J.current=!1},nn=xt=>{ue.current&&xt.target!==ue.current&&(ue.current.focus(),xt.preventDefault()),H==null||H(xt)};DS(()=>{de.isInvalidate()||Ee(de,!1)},[M,_]),DS(()=>{const xt=sd(d);se(xt);const qe=sd(ie(we));(!xt.equals(qe)||!J.current||_)&&Ee(xt,J.current)},[d]),DS(()=>{_&&Se()},[we]);const Jt={prefixCls:r,onStep:Je,className:a==null?void 0:a.action,style:s==null?void 0:s.action},Ot=g.createElement(fle,JE({},Jt,{action:"up",disabled:Oe}),p),sn=g.createElement(fle,JE({},Jt,{action:"down",disabled:xe}),v);return g.createElement("div",{ref:re,className:Ae(r,`${r}-mode-${n}`,i,a==null?void 0:a.root,{[`${r}-focused`]:Z,[`${r}-disabled`]:A,[`${r}-readonly`]:h,[`${r}-not-a-number`]:de.isNaN(),[`${r}-out-of-range`]:!de.isInvalidate()&&!Le(de)}),style:I(I({},s==null?void 0:s.root),o),onMouseDown:nn,onMouseUp:U,onMouseLeave:j,onMouseMove:Q,onMouseEnter:K,onMouseOut:z,onClick:D,onFocus:()=>{W(!0)},onBlur:jt,onKeyDown:Bt,onKeyUp:qt,onCompositionStart:Ue,onCompositionEnd:et,onBeforeInput:wt},n==="spinner"&&x&&sn,C!==void 0&&g.createElement("div",{className:Ae(`${r}-prefix`,a==null?void 0:a.prefix),style:s==null?void 0:s.prefix},C),g.createElement("input",JE({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":de.isInvalidate()?null:de.toString(),step:u,ref:ue,className:Ae(`${r}-input`,a==null?void 0:a.input),style:s==null?void 0:s.input,value:we,onChange:We,disabled:A,readOnly:h},Y)),S!==void 0&&g.createElement("div",{className:Ae(`${r}-suffix`,a==null?void 0:a.suffix),style:s==null?void 0:s.suffix},S),n==="spinner"&&x&&Ot,n==="input"&&x&&g.createElement("div",{className:Ae(`${r}-actions`,a==null?void 0:a.actions),style:s==null?void 0:s.actions},Ot,sn))}),D9e=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:o,fontSizeLG:a,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:f,antCls:d}=e,[A,h]=go(d,"space-addon");return{[t]:[te(I({},zr(e)),{display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:r,margin:0,borderWidth:f,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:a,borderRadius:l},"&-small":{paddingInline:o,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}}),{[A("addon-border-color")]:i,[A("addon-background")]:u,[A("addon-border-color-outlined")]:i,[A("addon-background-filled")]:u,borderColor:h("addon-border-color"),background:h("addon-background"),"&-variant-outlined":{[A("addon-border-color")]:h("addon-border-color-outlined")},"&-variant-filled":{[A("addon-border-color")]:"transparent",[A("addon-background")]:h("addon-background-filled"),[`&${t}-disabled`]:{[A("addon-border-color")]:i,[A("addon-background")]:u}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[A("addon-border-color-outlined")]:e.colorError,[A("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[A("addon-border-color-outlined")]:e.colorWarning,[A("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},H9e=Br("Addon",e=>[D9e(e),$b(e,{focus:!1})]),ple=Be.forwardRef((e,t)=>{const x=e,{className:n,children:r,style:i,prefixCls:o,variant:a="outlined",disabled:s,status:l}=x,c=Ze(x,["className","children","style","prefixCls","variant","disabled","status"]),{getPrefixCls:u,direction:f}=Be.useContext(Un),d=u("space-addon",o),[A,h]=H9e(d),{compactItemClassnames:p,compactSize:v}=hA(d,f),y=Jh(d,l),b=Ae(d,A,p,h,`${d}-variant-${a}`,y,{[`${d}-${v}`]:v,[`${d}-disabled`]:s},n);return Be.createElement("div",I({ref:t,className:b,style:i},c),r)}),U9e=e=>{var r;const t=(r=e.handleVisible)!=null?r:"auto",n=e.controlHeightSM-e.lineWidth*2;return te(I({},Xg(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Rr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===!0?1:0,handleVisibleWidth:t===!0?n:0})},j9e=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,colorError:s,paddingInlineSM:l,paddingBlockSM:c,paddingBlockLG:u,paddingInlineLG:f,colorIcon:d,colorTextDisabled:A,motionDurationMid:h,handleHoverColor:p,handleOpacity:v,paddingInline:y,paddingBlock:b,handleBg:x,handleActiveBg:C,inputAffixPadding:S,borderRadiusSM:B,controlWidth:E,handleBorderColor:_,filledHandleBg:M,lineHeightLG:R,antCls:T}=e,L=`${be(n)} ${r} ${_}`,[P,k]=go(T,"input-number");return[{[t]:te(I(I(I(I(te(I(I({},zr(e)),I4(e)),{[P("input-padding-block")]:be(b),[P("input-padding-inline")]:be(y),display:"inline-flex",width:E,margin:0,paddingBlock:0,borderRadius:i}),MU(e,{[`${t}-actions`]:{background:x,[`${t}-action-down`]:{borderBlockStart:L}}})),RU(e,{[`${t}-actions`]:{background:M,[`${t}-action-down`]:{borderBlockStart:L}},"&:focus-within":{[`${t}-actions`]:{background:x}}})),NU(e,{[`${t}-actions`]:{background:x,[`${t}-action-down`]:{borderBlockStart:L}}})),IU(e)),{[`&${t}-borderless`]:{paddingBlock:0,[P("input-padding-block")]:be(e.calc(b).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[P("input-padding-block")]:be(e.calc(c).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[P("input-padding-block")]:be(e.calc(u).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:te(I(te(I({},zr(e)),{width:"100%",paddingBlock:k("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit"}),PU(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}}),[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}})},{[t]:{[`${t}-action`]:te(I({},Fg()),{userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${h} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:C},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:p},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:A}}),"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${h}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:d,height:"50%",borderInlineStart:L,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:k("input-padding-inline"),"&-up":{borderInlineStart:L},"&-down":{borderInlineEnd:L}},[`${t}-input`]:{textAlign:"center",paddingInline:k("input-padding-inline")}}}},{[t]:{"&-lg":{[P("input-padding-block")]:be(u),[P("input-padding-inline")]:be(f),paddingBlock:0,fontSize:a,lineHeight:R},"&-sm":{[P("input-padding-block")]:be(c),[P("input-padding-inline")]:be(l),paddingBlock:0,fontSize:o,borderRadius:B}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:S},[`${t}-suffix`]:{height:"100%",marginInlineStart:S,transition:`margin ${h}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},z9e=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},Q9e=Br("InputNumber",e=>{const t=dr(e,Yg(e));return[j9e(t),z9e(t),$b(t)]},U9e,{unitless:{handleOpacity:!0},resetFont:!1}),V9e=g.forwardRef((e,t)=>{const n=g.useRef(null);g.useImperativeHandle(t,()=>n.current);const de=e,{rootClassName:r,size:i,disabled:o,prefixCls:a,addonBefore:s,addonAfter:l,prefix:c,suffix:u,bordered:f,readOnly:d,status:A,controls:h=!0,variant:p,className:v,style:y,classNames:b,styles:x,mode:C}=de,S=Ze(de,["rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant","className","style","classNames","styles","mode"]),{direction:B,className:E,style:_,styles:M,classNames:R}=or("inputNumber"),T=g.useContext(qa),L=o!=null?o:T,P=g.useMemo(()=>!h||L||d?!1:h,[h,L,d]),{compactSize:k,compactItemClassnames:H}=hA(a,B);let D=C==="spinner"?g.createElement(Bse,null):g.createElement(T9e,null),U=C==="spinner"?g.createElement(E9e,null):g.createElement(OE,null);const j=typeof P=="boolean"?P:void 0;Zn(P)&&(D=P.upIcon||D,U=P.downIcon||U);const{hasFeedback:Q,isFormItemInput:K,feedbackIcon:z}=g.useContext(Ya),V=aa(se=>{var ce;return(ce=i!=null?i:k)!=null?ce:se}),[Y,Z]=ep("inputNumber",p,f),W=Q&&g.createElement(g.Fragment,null,z),J=te(I({},e),{size:V,disabled:L,controls:P}),ee=Ar(_),ne=Ar(y),[re,ue]=vr([R,b],[M,ee,x,ne],{props:J});return g.createElement(k9e,I({ref:n,mode:C,disabled:L,className:Ae(v,r,re.root,E,H,Jh(a,A,Q),{[`${a}-${Y}`]:Z,[`${a}-lg`]:V==="large",[`${a}-sm`]:V==="small",[`${a}-rtl`]:B==="rtl",[`${a}-in-form-item`]:K,[`${a}-without-controls`]:!P}),style:ue.root,upHandler:D,downHandler:U,prefixCls:a,readOnly:d,controls:j,prefix:c,suffix:W||u,classNames:re,styles:ue},S))}),gle=g.forwardRef((e,t)=>{const b=e,{addonBefore:n,addonAfter:r,prefixCls:i,className:o,status:a,rootClassName:s}=b,l=Ze(b,["addonBefore","addonAfter","prefixCls","className","status","rootClassName"]),{getPrefixCls:c}=or("inputNumber"),u=c("input-number",i),{status:f}=g.useContext(Ya),d=Vg(f,a),A=So(u),[h,p]=Q9e(u,A),v=n||r,y=g.createElement(V9e,te(I({ref:t},l),{prefixCls:u,status:d,className:Ae(p,A,h,o),rootClassName:v?void 0:s}));if(v){const x=B=>B?g.createElement(ple,{className:Ae(`${u}-addon`,p,h),variant:e.variant,disabled:e.disabled,status:d},g.createElement(Zh,{form:!0},B)):null,C=x(n),S=x(r);return g.createElement(x8,{rootClassName:s},C,y,S)}return y}),i7=gle,K9e=e=>g.createElement(kc,{theme:{components:{InputNumber:{handleVisible:!0}}}},g.createElement(gle,I({},e)));i7._InternalPanelDoNotUseOrYouWillBeFired=K9e;function W9e(e){return!!(e.addonBefore||e.addonAfter)}function G9e(e){return!!(e.prefix||e.suffix||e.allowClear)}function mle(e,t,n){const r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...o)=>{t.setSelectionRange(...o)},i}function Q4(e,t,n,r){if(!n)return;let i=t;if(t.type==="click"){i=mle(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=mle(t,e,r),n(i);return}n(i)}function o7(){return o7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var Q,K,z;const{inputElement:n,children:r,prefixCls:i,prefix:o,suffix:a,addonBefore:s,addonAfter:l,className:c,style:u,disabled:f,readOnly:d,focused:A,triggerFocus:h,allowClear:p,value:v,handleReset:y,hidden:b,classes:x,classNames:C,dataAttrs:S,styles:B,components:E,onClear:_}=e,M=r!=null?r:n,R=(E==null?void 0:E.affixWrapper)||"span",T=(E==null?void 0:E.groupWrapper)||"span",L=(E==null?void 0:E.wrapper)||"span",P=(E==null?void 0:E.groupAddon)||"span",k=g.useRef(null),H=V=>{var Y;(Y=k.current)!=null&&Y.contains(V.target)&&(h==null||h())},D=G9e(e);let U=g.cloneElement(M,{value:v,className:Ae((Q=M.props)==null?void 0:Q.className,!D&&(C==null?void 0:C.variant))||null});const j=g.useRef(null);if(Be.useImperativeHandle(t,()=>({nativeElement:j.current||k.current})),D){let V=null;if(p){const J=!f&&!d&&v&&!(typeof p=="object"&&p.disabled),ee=`${i}-clear-icon`,ne=typeof p=="object"&&(p!=null&&p.clearIcon)?p.clearIcon:"✖";V=Be.createElement("button",{type:"button",onClick:re=>{y==null||y(re),_==null||_()},onMouseDown:re=>re.preventDefault(),className:Ae(ee,{[`${ee}-hidden`]:!J,[`${ee}-has-suffix`]:!!a},C==null?void 0:C.clear),style:B==null?void 0:B.clear},ne)}const Y=`${i}-affix-wrapper`,Z=Ae(Y,{[`${i}-disabled`]:f,[`${Y}-disabled`]:f,[`${Y}-focused`]:A,[`${Y}-readonly`]:d,[`${Y}-input-with-clear-btn`]:a&&p&&v},x==null?void 0:x.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),W=(a||p)&&Be.createElement("span",{className:Ae(`${i}-suffix`,C==null?void 0:C.suffix),style:B==null?void 0:B.suffix},V,a);U=Be.createElement(R,o7({className:Z,style:B==null?void 0:B.affixWrapper,onClick:H},S==null?void 0:S.affixWrapper,{ref:k}),o&&Be.createElement("span",{className:Ae(`${i}-prefix`,C==null?void 0:C.prefix),style:B==null?void 0:B.prefix},o),U,W)}if(W9e(e)){const V=`${i}-group`,Y=`${V}-addon`,Z=`${V}-wrapper`,W=Ae(`${i}-wrapper`,V,x==null?void 0:x.wrapper,C==null?void 0:C.wrapper),J=Ae(Z,{[`${Z}-disabled`]:f},x==null?void 0:x.group,C==null?void 0:C.groupWrapper);U=Be.createElement(T,{className:J,ref:j},Be.createElement(L,{className:W},s&&Be.createElement(P,{className:Y},s),U,l&&Be.createElement(P,{className:Y},l)))}return Be.cloneElement(U,{className:Ae((K=U.props)==null?void 0:K.className,c)||null,style:I(I({},(z=U.props)==null?void 0:z.style),u),hidden:b})});function yle(e,t){return g.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n=I(I({},n),e);const o=n,{show:r}=o,i=Ze(o,["show"]);return te(I({},i),{show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:i.strategy||(a=>a.length)})},[e,t])}function ble({countConfig:e,value:t,maxLength:n}){return g.useMemo(()=>{var l;const r=(l=e.max)!=null?l:n,i=e.strategy(t),o=!!r&&i>r,a=Number(r)>0,s=e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${a?` / ${r}`:""}`:void 0;return{mergedMax:r,isOutOfRange:o,dataCount:s}},[e,n,t])}function xle({countConfig:e,getTarget:t}){const[n,r]=g.useState(null),i=g.useRef(t);return g.useEffect(()=>{i.current=t},[t]),g.useEffect(()=>{var a;n&&((a=i.current())==null||a.setSelectionRange(...n),r(null))},[n]),g.useCallback((a,s)=>{var c,u;let l=a;return!s&&e.exceedFormatter&&e.max&&e.strategy(a)>e.max&&(l=e.exceedFormatter(a,{max:e.max}),a!==l&&r([((c=i.current())==null?void 0:c.selectionStart)||0,((u=i.current())==null?void 0:u.selectionEnd)||0])),l},[e])}function wle(e,t){const[n,r]=Fr(e,t),i=n==null?"":String(n);return{value:n,setValue:r,formatValue:i}}function V4(){return V4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const se=e,{autoComplete:n,onChange:r,onFocus:i,onBlur:o,onPressEnter:a,onKeyDown:s,onKeyUp:l,prefixCls:c="rc-input",disabled:u,htmlSize:f,className:d,maxLength:A,suffix:h,showCount:p,count:v,type:y="text",classes:b,classNames:x,styles:C,onCompositionStart:S,onCompositionEnd:B}=se,E=Ze(se,["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"]),[_,M]=g.useState(!1),R=g.useRef(!1),T=g.useRef(!1),L=g.useRef(null),P=g.useRef(null),k=ce=>{L.current&&M6(L.current,ce)},{setValue:H,formatValue:D}=wle(e.defaultValue,e.value),U=yle(v,p),{isOutOfRange:j,dataCount:Q}=ble({countConfig:U,value:D,maxLength:A}),K=xle({countConfig:U,getTarget:()=>L.current});g.useImperativeHandle(t,()=>{var ce;return{focus:k,blur:()=>{var ge;(ge=L.current)==null||ge.blur()},setSelectionRange:(ge,ie,le)=>{var ve;(ve=L.current)==null||ve.setSelectionRange(ge,ie,le)},select:()=>{var ge;(ge=L.current)==null||ge.select()},input:L.current,nativeElement:((ce=P.current)==null?void 0:ce.nativeElement)||L.current}}),g.useEffect(()=>{T.current&&(T.current=!1),M(ce=>ce&&u?!1:ce)},[u]);const z=(ce,ge,ie)=>{const le=K(ge,R.current);ie.source==="compositionEnd"&&ge===le||(H(le),L.current&&Q4(L.current,ce,r,le))},V=ce=>{z(ce,ce.target.value,{source:"change"})},Y=ce=>{R.current=!1,z(ce,ce.currentTarget.value,{source:"compositionEnd"}),B==null||B(ce)},Z=ce=>{a&&ce.key==="Enter"&&!T.current&&!ce.nativeEvent.isComposing&&(T.current=!0,a(ce)),s==null||s(ce)},W=ce=>{ce.key==="Enter"&&(T.current=!1),l==null||l(ce)},J=ce=>{M(!0),i==null||i(ce)},ee=ce=>{T.current&&(T.current=!1),M(!1),o==null||o(ce)},ne=ce=>{H(""),k(),L.current&&Q4(L.current,ce,r)},re=j&&`${c}-out-of-range`,ue=()=>{const ce=ti(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Be.createElement("input",V4({autoComplete:n},ce,{onChange:V,onFocus:J,onBlur:ee,onKeyDown:Z,onKeyUp:W,className:Ae(c,{[`${c}-disabled`]:u},x==null?void 0:x.input),style:C==null?void 0:C.input,ref:L,size:f,type:y,onCompositionStart:ge=>{R.current=!0,S==null||S(ge)},onCompositionEnd:Y}))},de=()=>h||U.show?Be.createElement(Be.Fragment,null,U.show&&Be.createElement("span",{className:Ae(`${c}-show-count-suffix`,{[`${c}-show-count-has-suffix`]:!!h},x==null?void 0:x.count),style:I({},C==null?void 0:C.count)},Q),h):null;return Be.createElement(vle,V4({},E,{prefixCls:c,className:Ae(d,re),handleReset:ne,value:D,focused:_,triggerFocus:k,suffix:de(),disabled:u,classes:b,classNames:x,styles:C,ref:P}),ue())}),Y9e=` + `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":G({opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},Gh()),[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function fpe(e,t){return dpe(bl(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var ppe=dd(`Checkbox`,(e,{prefixCls:t})=>[fpe(t,e)]),mpe=J.createContext(null);K();var hpe=[`prefixCls`,`children`,`indeterminate`,`onMouseEnter`,`onMouseLeave`,`skipGroup`,`disabled`,`rootClassName`,`className`,`style`,`classNames`,`styles`,`name`,`value`,`checked`,`defaultChecked`,`onChange`],gpe=J.forwardRef((e,t)=>{var n;let{prefixCls:r,children:i,indeterminate:a=!1,onMouseEnter:o,onMouseLeave:s,skipGroup:c=!1,disabled:l,rootClassName:u,className:d,style:f,classNames:p,styles:m,name:h,value:g,checked:_,defaultChecked:v,onChange:y}=e,b=q(e,hpe),{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=ko(`checkbox`),D=J.useContext(mpe),{isFormItemInput:O}=J.useContext(b_),k=J.useContext(gm),A=(n=(D==null?void 0:D.disabled)||l)==null?k:n,[j,M]=$r(v,_),N=j,P=qr(e=>{M(e.target.checked),y==null||y(e),!c&&D!=null&&D.toggleOption&&D.toggleOption({label:i,value:g})});D&&!c&&(N=D.value.includes(g));let F=J.useRef(null),I=gi(t,F);J.useEffect(()=>{if(!(c||!D))return D.registerValue(g),()=>{D.cancelValue(g)}},[g,c]),J.useEffect(()=>{var e;(e=F.current)!=null&&e.input&&(F.current.input.indeterminate=a)},[a]);let L=x(`checkbox`,r),R=Fp(L),[z,B]=ppe(L,R),V=G({},b),H=G(G({},e),{},{indeterminate:a,disabled:A,checked:N}),U=yp(w),ee=yp(f),[te,ne]=xp([T,p],[E,U,m,ee],{props:H}),re=Z(`${L}-wrapper`,{[`${L}-rtl`]:S===`rtl`,[`${L}-wrapper-checked`]:N,[`${L}-wrapper-disabled`]:A,[`${L}-wrapper-in-form-item`]:O},C,d,te.root,u,B,R,z),ie=Z(te.icon,{[`${L}-indeterminate`]:a},ph,z),[ae,oe]=WC(V.onClick);return J.createElement(_h,{component:`Checkbox`,disabled:A},J.createElement(`label`,{className:re,style:ne.root,onMouseEnter:o,onMouseLeave:s,onClick:ae},J.createElement(UC,G(G({},V),{},{name:!c&&D?D.name:h,checked:N,onClick:oe,onChange:P,prefixCls:L,className:ie,style:ne.icon,disabled:A,ref:I,value:g})),op(i)&&J.createElement(`span`,{className:Z(`${L}-label`,te.label),style:ne.label},i)))});K();var _pe=[`defaultValue`,`children`,`options`,`prefixCls`,`className`,`rootClassName`,`style`,`onChange`,`role`],vpe=J.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`}=e,d=q(e,_pe),{getPrefixCls:f,direction:p}=J.useContext(Eo),[m,h]=J.useState(d.value||n||[]),[g,_]=J.useState([]);J.useEffect(()=>{`value`in d&&h(d.value||[])},[d.value]);let v=J.useMemo(()=>i.map(e=>typeof e==`string`||sp(e)?{label:e,value:e}:e),[i]),y=e=>{_(t=>t.filter(t=>t!==e))},b=e=>{_(t=>[].concat(Co(t),[e]))},x=e=>{let t=m.indexOf(e.value),n=Co(m);t===-1?n.push(e.value):n.splice(t,1),`value`in d||h(n),l==null||l(n.filter(e=>g.includes(e)).sort((e,t)=>v.findIndex(t=>t.value===e)-v.findIndex(e=>e.value===t)))},S=f(`checkbox`,a),C=`${S}-group`,w=Fp(S),[T,E]=ppe(S,w),D=Ca(d,[`value`,`disabled`]),O=i.length?v.map(e=>J.createElement(gpe,{prefixCls:S,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:Z(`${C}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,k=J.useMemo(()=>({toggleOption:x,value:m,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:y}),[x,m,d.disabled,d.name,b,y]),A=Z(C,{[`${C}-rtl`]:p===`rtl`},o,s,E,w,T);return J.createElement(`div`,G(G({className:A,style:c,role:u},D),{},{ref:t}),J.createElement(mpe.Provider,{value:k},O))}),ET=gpe;ET.Group=vpe,ET.__ANT_CHECKBOX=!0;var ype=(0,J.createContext)({});K();var bpe=[`prefixCls`,`span`,`order`,`offset`,`push`,`pull`,`className`,`children`,`flex`,`style`];function xpe(e){return e===`auto`?`1 1 auto`:sp(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var DT=J.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=J.useContext(Eo),{gutter:i,wrap:a}=J.useContext(ype),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h}=e,g=q(e,bpe),_=n(`col`,o),v=n(),[y,b]=Aae(_),[x]=md(v,`col`),S={},C={};Ry.forEach(t=>{let n={},i=e[t];sp(i)?n.span=i:lp(i)&&(n=i||{}),delete g[t],C=G(G({},C),{},{[`${_}-${t}-${n.span}`]:ap(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`}),n.flex&&(C[`${_}-${t}-flex`]=!0,S[x(`${t}-flex`)]=xpe(n.flex))});let w=Z(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,C,y,b),T={};return i!=null&&i[0]&&(T.paddingInline=sp(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(T.flex=xpe(m),a===!1&&!T.minWidth&&(T.minWidth=0)),J.createElement(`div`,G(G({},g),{},{style:G(G(G({},T),h),S),className:w,ref:t}),p)});function Spe(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(lp(e))for(let r=0;r{let[n,r]=J.useState(()=>cp(e)?e:``),i=()=>{if(cp(e)&&r(e),lp(e))for(let n=0;n{i()},[JSON.stringify(e),t]),n},Tpe=J.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l}=e,u=q(e,Cpe),{getPrefixCls:d,direction:f}=J.useContext(Eo),p=By(!0,null),m=wpe(i,p),h=wpe(r,p),g=d(`row`,n),[_,v]=Oae(g),y=Spe(c,p),b=Z(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,v),x={};y!=null&&y[0]&&(x.marginInline=sp(y[0])?`${y[0]/-2}px`:`calc(${y[0]} / -2)`);let[S,C]=y;x.rowGap=C;let w=J.useMemo(()=>({gutter:[S,C],wrap:l}),[S,C,l]);return J.createElement(ype.Provider,{value:w},J.createElement(`div`,G(G({},u),{},{className:b,style:G(G({},x),o),ref:t}),s))}),OT=DT;K();var Epe=e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Dpe=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e,c=`${t}-rail`;return{[t]:G(G({},td(e)),{},{borderBlockStart:`${Q(i)} solid ${r}`,[c]:{borderBlockStart:`${Q(i)} solid ${r}`},"&-vertical":{position:`relative`,top:`-0.06em`,display:`inline-block`,height:`0.9em`,marginInline:s,marginBlock:0,verticalAlign:`middle`,borderTop:0,borderInlineStart:`${Q(i)} solid ${r}`},"&-horizontal":{display:`flex`,clear:`both`,width:`100%`,minWidth:`100%`,margin:`${Q(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:`flex`,alignItems:`center`,margin:`${Q(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:`nowrap`,textAlign:`center`,borderBlockStart:`0 ${r}`,[`${c}-start, ${c}-end`]:{width:`50%`,borderBlockStartColor:`inherit`,borderBlockEnd:0,content:`''`}},[`&-horizontal${t}-with-text-start`]:{[`${c}-start`]:{width:`calc(${o} * 100%)`},[`${c}-end`]:{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${c}-start`]:{width:`calc(100% - ${o} * 100%)`},[`${c}-end`]:{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:`inline-block`,paddingBlock:0,paddingInline:a},"&-dashed":{background:`none`,borderColor:r,borderStyle:`dashed`,borderWidth:`${Q(i)} 0 0`,[c]:{borderBlockStart:`${Q(i)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${c}-start, ${c}-end`]:{borderStyle:`dashed none none`}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:`none`,borderColor:r,borderStyle:`dotted`,borderWidth:`${Q(i)} 0 0`,[c]:{borderBlockStart:`${Q(i)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:`dotted none none`}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${c}-start`]:{width:0},[`${c}-end`]:{width:`100%`},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${c}-start`]:{width:`100%`},[`${c}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Ope=dd(`Divider`,e=>{let t=bl(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Dpe(t),Epe(t)]},e=>({textPaddingInline:`1em`,orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});K();var kpe=[`prefixCls`,`type`,`orientation`,`vertical`,`titlePlacement`,`orientationMargin`,`className`,`rootClassName`,`children`,`dashed`,`variant`,`plain`,`style`,`size`,`classNames`,`styles`],Ape=[`left`,`right`,`center`,`start`,`end`],kT=e=>{let{getPrefixCls:t,direction:n,className:r,style:i,classNames:a,styles:o}=ko(`divider`),{prefixCls:s,type:c,orientation:l,vertical:u,titlePlacement:d,orientationMargin:f,className:p,rootClassName:m,children:h,dashed:g,variant:_=`solid`,plain:v,style:y,size:b,classNames:x,styles:S}=e,C=q(e,kpe),w=t(`divider`,s),T=`${w}-rail`,[E,D]=Ope(w),O=vh(b),k=!!h,A=Ape.includes(l||``),j=J.useMemo(()=>{let e=d==null?A?l:`center`:d;return e===`left`?n===`rtl`?`end`:`start`:e===`right`?n===`rtl`?`start`:`end`:e},[n,l,d,A]),M=j===`start`&&f!=null,N=j===`end`&&f!=null,[P,F]=Hm(l,u,c),I=G(G({},e),{},{orientation:P,titlePlacement:j,size:O}),[L,R]=xp([a,x],[o,S],{props:I}),z=Z(w,r,E,D,`${w}-${P}`,{[`${w}-with-text`]:k,[`${w}-with-text-${j}`]:k,[`${w}-dashed`]:!!g,[`${w}-${_}`]:_!==`solid`,[`${w}-plain`]:!!v,[`${w}-rtl`]:n===`rtl`,[`${w}-no-default-orientation-margin-start`]:M,[`${w}-no-default-orientation-margin-end`]:N,[`${w}-md`]:O===`medium`||O===`middle`,[`${w}-sm`]:O===`small`,[T]:!h,[L.rail]:L.rail&&!h},p,m,L.root),B=J.useMemo(()=>sp(f)?f:/^\d+$/.test(f)?Number(f):f,[f]),V={marginInlineStart:M?B:void 0,marginInlineEnd:N?B:void 0};return J.createElement(`div`,G(G({className:z,style:G(G(G(G({},i),R.root),h?{}:R.rail),y)},C),{},{role:`separator`}),h&&!F&&J.createElement(J.Fragment,null,J.createElement(`div`,{className:Z(T,`${T}-start`,L.rail),style:R.rail}),J.createElement(`span`,{className:Z(`${w}-inner-text`,L.content),style:G(G({},V),R.content)},h),J.createElement(`div`,{className:Z(T,`${T}-end`,L.rail),style:R.rail})))},jpe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`minus`,theme:`outlined`}}))());function AT(){return AT=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,AT({},e,{ref:t,icon:jpe.default}))),Npe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z`}}]},name:`up`,theme:`outlined`}}))());function jT(){return jT=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,jT({},e,{ref:t,icon:Npe.default})));function MT(){return typeof BigInt==`function`}function Fpe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function NT(e){var t=e.trim(),n=t.startsWith(`-`);n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,`$1`).replace(/\.0*$/,``).replace(/^0+/,``),t.startsWith(`.`)&&(t=`0${t}`);var r=t||`0`,i=r.split(`.`),a=i[0]||`0`,o=i[1]||`0`;a===`0`&&o===`0`&&(n=!1);var s=n?`-`:``;return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:`${s}${r}`}}function PT(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function Ipe(e){var t=qc(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=qc((a?n.slice(1):n).split(`.`),2),s=o[0],c=s===void 0?`0`:s,l=o[1],u=l===void 0?``:l;return{decimal:u,digits:`${c}${u}`.replace(/^0+/,``)||`0`,exponent:Number(i),integer:c,negative:a}}function Lpe(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,a=e.negative;if(n===`0`)return`0`;var o=i.replace(/^0+/,``).length,s=(t.match(/^0*/)||[``])[0].length,c=(o||-s)+r,l=``;return l=c<=0?`0.${`0`.repeat(-c)}${n}`:c>=n.length?`${n}${`0`.repeat(c-n.length)}`:`${n.slice(0,c)}.${n.slice(c)}`,`${a?`-`:``}${l}`}function Rpe(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function FT(e){var t=String(e);return PT(e)?Rpe(Ipe(t)):t.includes(`.`)&<(t)?t.length-t.indexOf(`.`)-1:0}function IT(e){var t=String(e);if(PT(e)){if(e>9007199254740991)return String(MT()?BigInt(e).toString():9007199254740991);if(e<-9007199254740991)return String(MT()?BigInt(e).toString():-9007199254740991);var n=Ipe(t),r=Rpe(n);t=r>100?Lpe(n):e.toFixed(r)}return NT(t).fullStr}function LT(e){return typeof e==`number`?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var zpe=function(){function e(t){if($c(this,e),Xc(this,`origin`,``),Xc(this,`negative`,void 0),Xc(this,`integer`,void 0),Xc(this,`decimal`,void 0),Xc(this,`decimalLen`,void 0),Xc(this,`empty`,void 0),Xc(this,`nan`,void 0),Fpe(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(PT(n)&&(n=Number(n)),n=typeof n==`string`?n:IT(n),LT(n)){var r=NT(n);this.negative=r.negative;var i=r.trimStr.split(`.`);this.integer=BigInt(i[0]);var a=i[1]||`0`;this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return tl(e,[{key:`getMark`,value:function(){return this.negative?`-`:``}},{key:`getIntegerStr`,value:function(){return this.integer.toString()}},{key:`getDecimalStr`,value:function(){return this.decimal.toString().padStart(this.decimalLen,`0`)}},{key:`alignDecimal`,value:function(e){var t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}},{key:`negate`,value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:`cal`,value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),s=NT(a),c=`${s.negativeStr}${s.trimStr.padStart(o+1,`0`)}`;return new e(`${c.slice(0,-o)}.${c.slice(-o)}`)}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:`multi`,value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return e*2})}},{key:`isEmpty`,value:function(){return this.empty}},{key:`isNaN`,value:function(){return this.nan}},{key:`isInvalidate`,value:function(){return this.isEmpty()||this.isNaN()}},{key:`equals`,value:function(e){return this.toString()===(e==null?void 0:e.toString())}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:NT(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),Bpe=function(){function e(t){if($c(this,e),Xc(this,`origin`,``),Xc(this,`number`,void 0),Xc(this,`empty`,void 0),Fpe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return tl(e,[{key:`negate`,value:function(){return new e(-this.toNumber())}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>9007199254740991)return new e(9007199254740991);if(r<-9007199254740991)return new e(-9007199254740991);var i=Math.max(FT(this.number),FT(n));return new e(r.toFixed(i))}},{key:`multi`,value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>9007199254740991)return new e(9007199254740991);if(r<-9007199254740991)return new e(-9007199254740991);var i=Math.max(FT(this.number),FT(n));return new e(r.toFixed(i))}},{key:`isEmpty`,value:function(){return this.empty}},{key:`isNaN`,value:function(){return Number.isNaN(this.number)}},{key:`isInvalidate`,value:function(){return this.isEmpty()||this.isNaN()}},{key:`equals`,value:function(e){return this.toNumber()===(e==null?void 0:e.toNumber())}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.number}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:PT(this.number)&&FT(this.number)>100?String(this.number):IT(this.number):this.origin}}]),e}();function Vpe(e){return MT()?new zpe(e):new Bpe(e)}function RT(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(e===``)return``;var i=NT(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,c=`${t}${s}`,l=`${a}${o}`;if(n>=0){var u=Number(s[n]);return u>=5&&!r?RT(Vpe(e).add(`${a}0.${`0`.repeat(n)}${10-u}`).toString(),t,n,r):n===0?l:`${l}${t}${s.padEnd(n,`0`).slice(0,n)}`}return c===`.0`?l:`${l}${c}`}var zT=Vpe;function Hpe(e,t){let n=(0,J.useRef)(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e,a=i.substring(0,t),o=i.substring(r);n.current={start:t,end:r,value:i,beforeTxt:a,afterTxt:o}}catch(e){}}function i(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){_a(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var Upe=200,Wpe=600;function Gpe({prefixCls:e,action:t,children:n,disabled:r,className:i,style:a,onStep:o}){let s=t===`up`,c=J.useRef(),l=J.useRef([]),u=()=>{clearTimeout(c.current)},d=e=>{e.preventDefault(),u(),o(s,`handler`);function t(){o(s,`handler`),c.current=setTimeout(t,Upe)}c.current=setTimeout(t,Wpe)};J.useEffect(()=>()=>{u(),l.current.forEach(e=>{Fa.cancel(e)})},[]);let f=`${e}-action`,p=Z(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),m=()=>l.current.push(Fa(u));return J.createElement(`span`,{unselectable:`on`,role:`button`,onMouseUp:m,onMouseLeave:m,onMouseDown:e=>{d(e)},"aria-label":s?`Increase Value`:`Decrease Value`,"aria-disabled":r,className:p,style:a},n||J.createElement(`span`,{unselectable:`on`,className:`${e}-action-${t}-inner`}))}function Kpe(e){let t=typeof e==`number`?IT(e):NT(e).fullStr;return t.includes(`.`)?NT(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var qpe=(()=>{let e=(0,J.useRef)(0),t=()=>{Fa.cancel(e.current)};return(0,J.useEffect)(()=>t,[]),n=>{t(),e.current=Fa(()=>{n()})}});K();var Jpe=`mode.prefixCls.className.style.classNames.styles.min.max.step.defaultValue.value.disabled.readOnly.upHandler.downHandler.keyboard.changeOnWheel.controls.prefix.suffix.stringMode.parser.formatter.precision.decimalSeparator.onChange.onInput.onPressEnter.onStep.onMouseDown.onClick.onMouseUp.onMouseLeave.onMouseMove.onMouseEnter.onMouseOut.changeOnBlur`.split(`.`);function BT(){return BT=Object.assign?Object.assign.bind():function(e){for(var t=1;te||t.isEmpty()?t.toString():t.toNumber(),Xpe=e=>{let t=zT(e);return t.isInvalidate()?null:t},Zpe=J.forwardRef((e,t)=>{let{mode:n=`input`,prefixCls:r=`rc-input-number`,className:i,style:a,classNames:o,styles:s,min:c,max:l,step:u=1,defaultValue:d,value:f,disabled:p,readOnly:m,upHandler:h,downHandler:g,keyboard:_,changeOnWheel:v=!1,controls:y=!0,prefix:b,suffix:x,stringMode:S,parser:C,formatter:w,precision:T,decimalSeparator:E,onChange:D,onInput:O,onPressEnter:k,onStep:A,onMouseDown:j,onClick:M,onMouseUp:N,onMouseLeave:P,onMouseMove:F,onMouseEnter:I,onMouseOut:L,changeOnBlur:R=!0}=e,z=q(e,Jpe),[B,V]=J.useState(!1),H=J.useRef(!1),U=J.useRef(!1),ee=J.useRef(!1),te=J.useRef(null),ne=J.useRef(null);J.useImperativeHandle(t,()=>ka(ne.current,{focus:e=>{Bi(ne.current,e)},blur:()=>{var e;(e=ne.current)==null||e.blur()},nativeElement:te.current}));let[re,ie]=J.useState(()=>zT(f==null?d:f));function ae(e){f===void 0&&ie(e)}let oe=J.useCallback((e,t)=>{if(!t)return T>=0?T:Math.max(FT(e),FT(u))},[T,u]),se=J.useCallback(e=>{let t=String(e);if(C)return C(t);let n=t;return E&&(n=n.replace(E,`.`)),n.replace(/[^\w.-]+/g,``)},[C,E]),ce=J.useRef(``),le=J.useCallback((e,t)=>{if(w)return w(e,{userTyping:t,input:String(ce.current)});let n=typeof e==`number`?IT(e):e;if(!t){let e=oe(n,t);LT(n)&&(E||e>=0)&&(n=RT(n,E||`.`,e))}return n},[w,oe,E]),[ue,de]=J.useState(()=>{let e=d==null?f:d;return re.isInvalidate()&&[`string`,`number`].includes(typeof e)?Number.isNaN(e)?``:e:le(re.toString(),!1)});ce.current=ue;function fe(e,t){de(le(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}let pe=J.useMemo(()=>Xpe(l),[l,T]),me=J.useMemo(()=>Xpe(c),[c,T]),he=J.useMemo(()=>!pe||!re||re.isInvalidate()?!1:pe.lessEquals(re),[pe,re]),W=J.useMemo(()=>!me||!re||re.isInvalidate()?!1:re.lessEquals(me),[me,re]),[ge,_e]=Hpe(ne.current,B),K=e=>pe&&!e.lessEquals(pe)?pe:me&&!me.lessEquals(e)?me:null,ve=e=>!K(e),ye=(e,t)=>{let n=e,r=ve(n)||n.isEmpty();if(!n.isEmpty()&&!t&&(n=K(n)||n,r=!0),!m&&!p&&r){let e=n.toString(),r=oe(e,t);return r>=0&&(n=zT(RT(e,`.`,r)),ve(n)||(n=zT(RT(e,`.`,r,!0)))),n.equals(re)||(ae(n),D==null||D(n.isEmpty()?null:Ype(S,n)),f===void 0&&fe(n,t)),n}return re},be=qpe(),xe=e=>{if(ge(),ce.current=e,de(e),!U.current){let t=zT(se(e));t.isNaN()||ye(t,!0)}O==null||O(e),be(()=>{let t=e;C||(t=e.replace(/。/g,`.`)),t!==e&&xe(t)})},Se=()=>{U.current=!0},Ce=()=>{U.current=!1,xe(ne.current.value)},we=e=>{xe(e.target.value)},Te=qr((e,t)=>{var n;if(e&&he||!e&&W)return;H.current=!1;let r=zT(ee.current?Kpe(u):u);e||(r=r.negate());let i=(re||zT(0)).add(r.toString()),a=ye(i,!1);A==null||A(Ype(S,a),{offset:ee.current?Kpe(u):u,type:e?`up`:`down`,emitter:t}),(n=ne.current)==null||n.focus()}),Ee=e=>{let t=zT(se(ue)),n;n=t.isNaN()?ye(re,e):ye(t,e),f===void 0?n.isNaN()||fe(n,!1):fe(re,!1)},De=()=>{H.current=!0},Oe=e=>{let{key:t,shiftKey:n}=e;H.current=!0,ee.current=n,t===`Enter`&&(U.current||(H.current=!1),Ee(!1),k==null||k(e)),_!==!1&&!U.current&&[`Up`,`ArrowUp`,`Down`,`ArrowDown`].includes(t)&&(Te(t===`Up`||t===`ArrowUp`,`keyboard`),e.preventDefault())},ke=()=>{H.current=!1,ee.current=!1};J.useEffect(()=>{if(v&&B){let e=e=>{Te(e.deltaY<0,`wheel`),e.preventDefault()},t=ne.current;if(t)return t.addEventListener(`wheel`,e,{passive:!1}),()=>t.removeEventListener(`wheel`,e)}});let Ae=()=>{R&&Ee(!1),V(!1),H.current=!1},je=e=>{ne.current&&e.target!==ne.current&&(ne.current.focus(),e.preventDefault()),j==null||j(e)};Zr(()=>{re.isInvalidate()||fe(re,!1)},[T,w]),Zr(()=>{let e=zT(f);ie(e);let t=zT(se(ue));(!e.equals(t)||!H.current||w)&&fe(e,H.current)},[f]),Zr(()=>{w&&_e()},[ue]);let Me={prefixCls:r,onStep:Te,className:o==null?void 0:o.action,style:s==null?void 0:s.action},Ne=J.createElement(Gpe,BT({},Me,{action:`up`,disabled:he}),h),Pe=J.createElement(Gpe,BT({},Me,{action:`down`,disabled:W}),g);return J.createElement(`div`,{ref:te,className:Z(r,`${r}-mode-${n}`,i,o==null?void 0:o.root,{[`${r}-focused`]:B,[`${r}-disabled`]:p,[`${r}-readonly`]:m,[`${r}-not-a-number`]:re.isNaN(),[`${r}-out-of-range`]:!re.isInvalidate()&&!ve(re)}),style:G(G({},s==null?void 0:s.root),a),onMouseDown:je,onMouseUp:N,onMouseLeave:P,onMouseMove:F,onMouseEnter:I,onMouseOut:L,onClick:M,onFocus:()=>{V(!0)},onBlur:Ae,onKeyDown:Oe,onKeyUp:ke,onCompositionStart:Se,onCompositionEnd:Ce,onBeforeInput:De},n===`spinner`&&y&&Pe,b!==void 0&&J.createElement(`div`,{className:Z(`${r}-prefix`,o==null?void 0:o.prefix),style:s==null?void 0:s.prefix},b),J.createElement(`input`,BT({autoComplete:`off`,role:`spinbutton`,"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":re.isInvalidate()?null:re.toString(),step:u,ref:ne,className:Z(`${r}-input`,o==null?void 0:o.input),style:s==null?void 0:s.input,value:ue,onChange:we,disabled:p,readOnly:m},z)),x!==void 0&&J.createElement(`div`,{className:Z(`${r}-suffix`,o==null?void 0:o.suffix),style:s==null?void 0:s.suffix},x),n===`spinner`&&y&&Ne,n===`input`&&y&&J.createElement(`div`,{className:Z(`${r}-actions`,o==null?void 0:o.actions),style:s==null?void 0:s.actions},Ne,Pe))});K();var Qpe=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=md(f,`space-addon`);return{[t]:[G(G({},td(e)),{},{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}}),{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},$pe=dd(`Addon`,e=>[Qpe(e),fg(e,{focus:!1})]);K();var eme=[`className`,`children`,`style`,`prefixCls`,`variant`,`disabled`,`status`],tme=J.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c}=e,l=q(e,eme),{getPrefixCls:u,direction:d}=J.useContext(Eo),f=u(`space-addon`,a),[p,m]=$pe(f),{compactItemClassnames:h,compactSize:g}=bh(f,d),_=hy(f,c),v=Z(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return J.createElement(`div`,G({ref:t,className:v,style:i},l),r)});K();var nme=e=>{var t;let n=(t=e.handleVisible)==null?`auto`:t,r=e.controlHeightSM-e.lineWidth*2;return G(G({},YC(e)),{},{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Hl(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(n===!0),handleVisibleWidth:n===!0?r:0})};K();var rme=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,colorError:s,paddingInlineSM:c,paddingBlockSM:l,paddingBlockLG:u,paddingInlineLG:d,colorIcon:f,colorTextDisabled:p,motionDurationMid:m,handleHoverColor:h,handleOpacity:g,paddingInline:_,paddingBlock:v,handleBg:y,handleActiveBg:b,inputAffixPadding:x,borderRadiusSM:S,controlWidth:C,handleBorderColor:w,filledHandleBg:T,lineHeightLG:E,antCls:D}=e,O=`${Q(n)} ${r} ${w}`,[k,A]=md(D,`input-number`);return[{[t]:G(G(G(G(G(G(G({},td(e)),hw(e)),{},{[k(`input-padding-block`)]:Q(v),[k(`input-padding-inline`)]:Q(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i},$C(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}})),sw(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}})),dw(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}})),iw(e)),{},{[`&${t}-borderless`]:{paddingBlock:0,[k(`input-padding-block`)]:Q(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k(`input-padding-block`)]:Q(e.calc(l).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k(`input-padding-block`)]:Q(e.calc(u).add(n).equal())},"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:G(G(G({},td(e)),{},{width:`100%`,paddingBlock:A(`input-padding-block`),textAlign:`start`,backgroundColor:`transparent`,border:0,borderRadius:0,outline:0,transition:`all ${m} linear`,appearance:`textfield`,fontSize:`inherit`,lineHeight:`inherit`},fw(e.colorTextPlaceholder)),{},{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:`none`}}),[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:`not-allowed`,color:e.colorTextDisabled}})},{[t]:{[`${t}-action`]:G(G({},nd()),{},{userSelect:`none`,overflow:`hidden`,fontWeight:`bold`,lineHeight:0,textAlign:`center`,cursor:`pointer`,transition:`all ${m} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:b},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:`not-allowed`,color:p}}),"&-mode-input":{overflow:`hidden`,[`${t}-actions`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:`100%`,borderRadius:0,display:`flex`,flexDirection:`column`,alignItems:`stretch`,transition:`all ${m}`,overflow:`hidden`,[`${t}-action`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`auto`,height:`40%`,marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:f,height:`50%`,borderInlineStart:O,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:`60%`}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:`none`}}},[`&${t}-mode-spinner`]:{padding:0,width:`auto`,[`${t}-action`]:{flex:`none`,paddingInline:A(`input-padding-inline`),"&-up":{borderInlineStart:O},"&-down":{borderInlineEnd:O}},[`${t}-input`]:{textAlign:`center`,paddingInline:A(`input-padding-inline`)}}}},{[t]:{"&-lg":{[k(`input-padding-block`)]:Q(u),[k(`input-padding-inline`)]:Q(d),paddingBlock:0,fontSize:o,lineHeight:E},"&-sm":{[k(`input-padding-block`)]:Q(l),[k(`input-padding-inline`)]:Q(c),paddingBlock:0,fontSize:a,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:`flex`,flex:`none`,alignItems:`center`,alignSelf:`center`,pointerEvents:`none`},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:`100%`,marginInlineStart:x,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},ime=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},ame=dd(`InputNumber`,e=>{let t=bl(e,JC(e));return[rme(t),ime(t),fg(t)]},nme,{unitless:{handleOpacity:!0},resetFont:!1});K();var ome=[`rootClassName`,`size`,`disabled`,`prefixCls`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`bordered`,`readOnly`,`status`,`controls`,`variant`,`className`,`style`,`classNames`,`styles`,`mode`],sme=[`addonBefore`,`addonAfter`,`prefixCls`,`className`,`status`,`rootClassName`],cme=J.forwardRef((e,t)=>{let n=J.useRef(null);J.useImperativeHandle(t,()=>n.current);let{rootClassName:r,size:i,disabled:a,prefixCls:o,addonBefore:s,addonAfter:c,prefix:l,suffix:u,bordered:d,readOnly:f,status:p,controls:m=!0,variant:h,className:g,style:_,classNames:v,styles:y,mode:b}=e,x=q(e,ome),{direction:S,className:C,style:w,styles:T,classNames:E}=ko(`inputNumber`),D=J.useContext(gm),O=a==null?D:a,k=J.useMemo(()=>!m||O||f?!1:m,[m,O,f]),{compactSize:A,compactItemClassnames:j}=bh(o,S),M=b===`spinner`?J.createElement(Sw,null):J.createElement(Ppe,null),N=b===`spinner`?J.createElement(Mpe,null):J.createElement(jy,null),P=typeof k==`boolean`?k:void 0;lp(k)&&(M=k.upIcon||M,N=k.downIcon||N);let{hasFeedback:F,isFormItemInput:I,feedbackIcon:L}=J.useContext(b_),R=vh(e=>{var t;return(t=i==null?A:i)==null?e:t}),[z,B]=Sy(`inputNumber`,h,d),V=F&&J.createElement(J.Fragment,null,L),H=G(G({},e),{},{size:R,disabled:O,controls:k}),U=yp(w),ee=yp(_),[te,ne]=xp([E,v],[T,U,y,ee],{props:H});return J.createElement(Zpe,G({ref:n,mode:b,disabled:O,className:Z(g,r,te.root,C,j,hy(o,p,F),{[`${o}-${z}`]:B,[`${o}-lg`]:R===`large`,[`${o}-sm`]:R===`small`,[`${o}-rtl`]:S===`rtl`,[`${o}-in-form-item`]:I,[`${o}-without-controls`]:!k}),style:ne.root,upHandler:M,downHandler:N,prefixCls:o,readOnly:f,controls:P,prefix:l,suffix:V||u,classNames:te,styles:ne},x))}),lme=J.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s}=e,c=q(e,sme),{getPrefixCls:l}=ko(`inputNumber`),u=l(`input-number`,i),{status:d}=J.useContext(b_),f=gy(d,o),p=Fp(u),[m,h]=ame(u,p),g=n||r,_=J.createElement(cme,G(G({ref:t},c),{},{prefixCls:u,status:f,className:Z(h,p,m,a),rootClassName:g?void 0:s}));if(g){let t=t=>t?J.createElement(tme,{className:Z(`${u}-addon`,h,m),variant:e.variant,disabled:e.disabled,status:f},J.createElement(x_,{form:!0},t)):null,i=t(n),a=t(r);return J.createElement(xh,{rootClassName:s},i,_,a)}return _}),VT=lme;VT._InternalPanelDoNotUseOrYouWillBeFired=e=>J.createElement(Em,{theme:{components:{InputNumber:{handleVisible:!0}}}},J.createElement(lme,G({},e)));function ume(e){return!!(e.addonBefore||e.addonAfter)}function dme(e){return!!(e.prefix||e.suffix||e.allowClear)}function fme(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function HT(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=fme(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=fme(t,e,r),n(i);return}n(i)}K();function UT(){return UT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n,r,i;let{inputElement:a,children:o,prefixCls:s,prefix:c,suffix:l,addonBefore:u,addonAfter:d,className:f,style:p,disabled:m,readOnly:h,focused:g,triggerFocus:_,allowClear:v,value:y,handleReset:b,hidden:x,classes:S,classNames:C,dataAttrs:w,styles:T,components:E,onClear:D}=e,O=o==null?a:o,k=(E==null?void 0:E.affixWrapper)||`span`,A=(E==null?void 0:E.groupWrapper)||`span`,j=(E==null?void 0:E.wrapper)||`span`,M=(E==null?void 0:E.groupAddon)||`span`,N=(0,J.useRef)(null),P=e=>{var t;(t=N.current)!=null&&t.contains(e.target)&&(_==null||_())},F=dme(e),I=(0,J.cloneElement)(O,{value:y,className:Z((n=O.props)==null?void 0:n.className,!F&&(C==null?void 0:C.variant))||null}),L=(0,J.useRef)(null);if(J.useImperativeHandle(t,()=>({nativeElement:L.current||N.current})),F){let e=null;if(v){let t=!m&&!h&&y&&!(typeof v==`object`&&v.disabled),n=`${s}-clear-icon`,r=typeof v==`object`&&v&&v.clearIcon?v.clearIcon:`✖`;e=J.createElement(`button`,{type:`button`,onClick:e=>{b==null||b(e),D==null||D()},onMouseDown:e=>e.preventDefault(),className:Z(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!l},C==null?void 0:C.clear),style:T==null?void 0:T.clear},r)}let t=`${s}-affix-wrapper`,n=Z(t,{[`${s}-disabled`]:m,[`${t}-disabled`]:m,[`${t}-focused`]:g,[`${t}-readonly`]:h,[`${t}-input-with-clear-btn`]:l&&v&&y},S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),r=(l||v)&&J.createElement(`span`,{className:Z(`${s}-suffix`,C==null?void 0:C.suffix),style:T==null?void 0:T.suffix},e,l);I=J.createElement(k,UT({className:n,style:T==null?void 0:T.affixWrapper,onClick:P},w==null?void 0:w.affixWrapper,{ref:N}),c&&J.createElement(`span`,{className:Z(`${s}-prefix`,C==null?void 0:C.prefix),style:T==null?void 0:T.prefix},c),I,r)}if(ume(e)){let e=`${s}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=Z(`${s}-wrapper`,e,S==null?void 0:S.wrapper,C==null?void 0:C.wrapper),i=Z(n,{[`${n}-disabled`]:m},S==null?void 0:S.group,C==null?void 0:C.groupWrapper);I=J.createElement(A,{className:i,ref:L},J.createElement(j,{className:r},u&&J.createElement(M,{className:t},u),I,d&&J.createElement(M,{className:t},d)))}return J.cloneElement(I,{className:Z((r=I.props)==null?void 0:r.className,f)||null,style:G(G({},(i=I.props)==null?void 0:i.style),p),hidden:x})});K();var mme=[`show`];function hme(e,t){return J.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n=G(G({},n),e);let{show:r}=n,i=q(n,mme);return G(G({},i),{},{show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)})},[e,t])}function gme({countConfig:e,value:t,maxLength:n}){return J.useMemo(()=>{var r;let i=(r=e.max)==null?n:r,a=e.strategy(t),o=!!i&&a>i,s=Number(i)>0;return{mergedMax:i,isOutOfRange:o,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:a,maxLength:i}):`${a}${s?` / ${i}`:``}`:void 0}},[e,n,t])}function _me({countConfig:e,getTarget:t}){let[n,r]=J.useState(null),i=J.useRef(t);return J.useEffect(()=>{i.current=t},[t]),J.useEffect(()=>{if(n){var e;(e=i.current())==null||e.setSelectionRange(...n),r(null)}},[n]),J.useCallback((t,n)=>{let a=t;if(!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(a=e.exceedFormatter(t,{max:e.max}),t!==a)){var o,s;r([((o=i.current())==null?void 0:o.selectionStart)||0,((s=i.current())==null?void 0:s.selectionEnd)||0])}return a},[e])}function vme(e,t){let[n,r]=$r(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}K();var yme=[`autoComplete`,`onChange`,`onFocus`,`onBlur`,`onPressEnter`,`onKeyDown`,`onKeyUp`,`prefixCls`,`disabled`,`htmlSize`,`className`,`maxLength`,`suffix`,`showCount`,`count`,`type`,`classes`,`classNames`,`styles`,`onCompositionStart`,`onCompositionEnd`];function WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:v,classNames:y,styles:b,onCompositionStart:x,onCompositionEnd:S}=e,C=q(e,yme),[w,T]=(0,J.useState)(!1),E=(0,J.useRef)(!1),D=(0,J.useRef)(!1),O=(0,J.useRef)(null),k=(0,J.useRef)(null),A=e=>{O.current&&Bi(O.current,e)},{setValue:j,formatValue:M}=vme(e.defaultValue,e.value),N=hme(g,h),{isOutOfRange:P,dataCount:F}=gme({countConfig:N,value:M,maxLength:p}),I=_me({countConfig:N,getTarget:()=>O.current});(0,J.useImperativeHandle)(t,()=>{var e;return{focus:A,blur:()=>{var e;(e=O.current)==null||e.blur()},setSelectionRange:(e,t,n)=>{var r;(r=O.current)==null||r.setSelectionRange(e,t,n)},select:()=>{var e;(e=O.current)==null||e.select()},input:O.current,nativeElement:((e=k.current)==null?void 0:e.nativeElement)||O.current}}),(0,J.useEffect)(()=>{D.current&&(D.current=!1),T(e=>e&&u?!1:e)},[u]);let L=(e,t,n)=>{let i=I(t,E.current);n.source===`compositionEnd`&&t===i||(j(i),O.current&&HT(O.current,e,r,i))},R=e=>{L(e,e.target.value,{source:`change`})},z=e=>{E.current=!1,L(e,e.currentTarget.value,{source:`compositionEnd`}),S==null||S(e)},B=e=>{o&&e.key===`Enter`&&!D.current&&!e.nativeEvent.isComposing&&(D.current=!0,o(e)),s==null||s(e)},V=e=>{e.key===`Enter`&&(D.current=!1),c==null||c(e)},H=e=>{T(!0),i==null||i(e)},U=e=>{D.current&&(D.current=!1),T(!1),a==null||a(e)},ee=e=>{j(``),A(),O.current&&HT(O.current,e,r)},te=P&&`${l}-out-of-range`;return J.createElement(pme,WT({},C,{prefixCls:l,className:Z(f,te),handleReset:ee,value:M,focused:w,triggerFocus:A,suffix:m||N.show?J.createElement(J.Fragment,null,N.show&&J.createElement(`span`,{className:Z(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},y==null?void 0:y.count),style:G({},b==null?void 0:b.count)},F),m):null,disabled:u,classes:v,classNames:y,styles:b,ref:k}),(()=>{let t=Ca(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return J.createElement(`input`,WT({autoComplete:n},t,{onChange:R,onFocus:H,onBlur:U,onKeyDown:B,onKeyUp:V,className:Z(l,{[`${l}-disabled`]:u},y==null?void 0:y.input),style:b==null?void 0:b.input,ref:O,size:d,type:_,onCompositionStart:e=>{E.current=!0,x==null||x(e)},onCompositionEnd:z}))})())}),xme=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -288,43 +285,43 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,X9e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],a7={};let hu;function Z9e(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&a7[n])return a7[n];const r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:X9e.map(c=>`${c}:${r.getPropertyValue(c)}`).join(";"),paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(a7[n]=l),l}function J9e(e,t=!1,n=null,r=null){hu||(hu=document.createElement("textarea"),hu.setAttribute("tab-index","-1"),hu.setAttribute("aria-hidden","true"),hu.setAttribute("name","hiddenTextarea"),document.body.appendChild(hu)),e.getAttribute("wrap")?hu.setAttribute("wrap",e.getAttribute("wrap")):hu.removeAttribute("wrap");const{paddingSize:i,borderSize:o,boxSizing:a,sizingStyle:s}=Z9e(e,t);hu.setAttribute("style",`${s};${Y9e}`),hu.value=e.value||e.placeholder||"";let l,c,u,f=hu.scrollHeight;if(a==="border-box"?f+=o:a==="content-box"&&(f-=i),n!==null||r!==null){hu.value=" ";const A=hu.scrollHeight-i;n!==null&&(l=A*n,a==="border-box"&&(l=l+i+o),f=Math.max(l,f)),r!==null&&(c=A*r,a==="border-box"&&(c=c+i+o),u=f>c?void 0:"hidden",f=Math.min(c,f))}const d={height:f,overflowY:u,resize:"none"};return l&&(d.minHeight=l),c&&(d.maxHeight=c),d}function s7(){return s7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const H=e,{prefixCls:n,defaultValue:r,value:i,autoSize:o,onResize:a,className:s,style:l,disabled:c,onChange:u,onInternalAutoSize:f}=H,d=Ze(H,["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"]),[A,h]=Fr(r,i),p=A!=null?A:"",v=D=>{h(D.target.value),u==null||u(D)},y=g.useRef(null);g.useImperativeHandle(t,()=>({textArea:y.current}));const[b,x]=g.useMemo(()=>o&&typeof o=="object"?[o.minRows,o.maxRows]:[],[o]),C=!!o,[S,B]=g.useState(u7),[E,_]=g.useState(),M=()=>{B(l7)};ar(()=>{C&&M()},[i,b,x,C]),ar(()=>{if(S===l7)B(c7);else if(S===c7){const D=J9e(y.current,!1,b,x);B(u7),_(D)}},[S]);const R=g.useRef(void 0),T=()=>{R.current!==void 0&&Kn.cancel(R.current)},L=D=>{S===u7&&(a==null||a(D),o&&(T(),R.current=Kn(()=>{M()})))};g.useEffect(()=>T,[]);const P=C?E:null,k=I(I({},l),P);return(S===l7||S===c7)&&(k.overflowY="hidden",k.overflowX="hidden"),g.createElement(Bl,{onResize:L,disabled:!(o||a)},g.createElement("textarea",s7({},d,{ref:y,style:k,className:Ae(n,s,{[`${n}-disabled`]:c}),disabled:c,value:p,onChange:v})))});function f7(){return f7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var L=T,{defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:o,maxLength:a,onCompositionStart:s,onCompositionEnd:l,suffix:c,prefixCls:u="rc-textarea",showCount:f,count:d,className:A,style:h,disabled:p,hidden:v,classNames:y,styles:b,onResize:x,onClear:C,onPressEnter:S,readOnly:B,autoSize:E,onKeyDown:_}=L,M=Ze(L,["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"]);const[P,k]=Be.useState(!1),H=Be.useRef(!1),[D,U]=Be.useState(null),j=g.useRef(null),Q=g.useRef(null),K=()=>{var me;return((me=Q.current)==null?void 0:me.textArea)||null},{setValue:z,formatValue:V}=wle(e,t),Y=yle(d,f),{isOutOfRange:Z,dataCount:W}=ble({countConfig:Y,value:V,maxLength:a}),J=xle({countConfig:Y,getTarget:()=>{var me;return((me=Q.current)==null?void 0:me.textArea)||null}}),ee=()=>{var me;(me=K())==null||me.focus()};g.useImperativeHandle(R,()=>{var me;return{resizableTextArea:Q.current,focus:ee,blur:()=>{var Ee;(Ee=K())==null||Ee.blur()},nativeElement:((me=j.current)==null?void 0:me.nativeElement)||K()}}),g.useEffect(()=>{k(me=>!p&&me)},[p]);const ne=(me,Ee)=>{const Ce=J(Ee,H.current);z(Ce),Q4(me.currentTarget,me,i,Ce)},re=me=>{H.current=!0,s==null||s(me)},ue=me=>{H.current=!1,ne(me,me.currentTarget.value),l==null||l(me)},de=me=>{ne(me,me.target.value)},se=me=>{me.key==="Enter"&&S&&!me.nativeEvent.isComposing&&S(me),_==null||_(me)},ce=me=>{k(!0),n==null||n(me)},ge=me=>{k(!1),r==null||r(me)},ie=me=>{z(""),ee();const Ee=K();Ee&&Q4(Ee,me,i)};let le=c;Y.show&&(le=Be.createElement(Be.Fragment,null,le,Be.createElement("span",{className:Ae(`${u}-data-count`,y==null?void 0:y.count),style:b==null?void 0:b.count},W)));const ve=me=>{var Ee;x==null||x(me),(Ee=K())!=null&&Ee.style.height&&U(!0)},we=!E&&!f&&!o;return Be.createElement(vle,{ref:j,value:V,allowClear:o,handleReset:ie,suffix:le,prefixCls:u,classNames:te(I({},y),{affixWrapper:Ae(y==null?void 0:y.affixWrapper,{[`${u}-show-count`]:f,[`${u}-textarea-allow-clear`]:o})}),disabled:p,focused:P,className:Ae(A,Z&&`${u}-out-of-range`),style:I(I({},h),D&&!we?{height:"auto"}:{}),dataAttrs:typeof W=="string"?{affixWrapper:{"data-count":W}}:void 0,styles:b,hidden:v,readOnly:B,onClear:C},Be.createElement(eje,f7({},M,{autoSize:E,maxLength:a,onKeyDown:se,onChange:de,onFocus:ce,onBlur:ge,onCompositionStart:re,onCompositionEnd:ue,className:Ae(y==null?void 0:y.textarea),style:I({resize:h==null?void 0:h.resize},b==null?void 0:b.textarea),disabled:p,prefixCls:u,onResize:ve,ref:Q,readOnly:B})))});function Cle(e,t){const n=g.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,a,s;(i=e.current)!=null&&i.input&&((o=e.current)==null?void 0:o.input.getAttribute("type"))==="password"&&((a=e.current)!=null&&a.input.hasAttribute("value"))&&((s=e.current)==null||s.input.removeAttribute("value"))}))};return g.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function nje(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Gb=g.forwardRef((e,t)=>{const Ce=e,{prefixCls:n,bordered:r=!0,status:i,size:o,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:d,className:A,style:h,styles:p,rootClassName:v,onChange:y,classNames:b,variant:x}=Ce,C=Ze(Ce,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:B,allowClear:E,autoComplete:_,className:M,style:R,classNames:T,styles:L}=or("input"),P=S("input",n),k=g.useRef(null),H=So(P),[D,U]=wse(P,v);Cse(P,H);const{compactSize:j,compactItemClassnames:Q}=hA(P,B),K=aa(pe=>{var Oe;return(Oe=o!=null?o:j)!=null?Oe:pe}),z=Be.useContext(qa),V=a!=null?a:z,Y=te(I({},e),{size:K,disabled:V}),Z=Ar(R),W=Ar(h),[J,ee]=vr([T,b],[L,Z,p,W],{props:Y}),{status:ne,hasFeedback:re,feedbackIcon:ue}=g.useContext(Ya),de=Vg(ne,i),se=nje(e)||!!re;g.useRef(se);const ce=Cle(k,!0),ge=pe=>{ce(),s==null||s(pe)},ie=pe=>{ce(),l==null||l(pe)},le=pe=>{ce(),y==null||y(pe)},ve=(re||c)&&Be.createElement(Be.Fragment,null,c,re&&ue),we=EM({allowClear:u,contextAllowClear:E,componentName:"Input"}),[me,Ee]=ep("input",x,r);return Be.createElement(q9e,te(I({ref:il(t,k),prefixCls:P,autoComplete:_},C),{disabled:V,onBlur:ge,onFocus:ie,style:ee.root,styles:ee,suffix:ve,allowClear:we,className:Ae(A,v,U,H,Q,M,J.root),onChange:le,addonBefore:d&&Be.createElement(Zh,{form:!0,space:!0},d),addonAfter:f&&Be.createElement(Zh,{form:!0,space:!0},f),classNames:te(I({},J),{input:Ae({[`${P}-sm`]:K==="small",[`${P}-lg`]:K==="large",[`${P}-rtl`]:B==="rtl"},J.input,D),variant:Ae({[`${P}-${me}`]:Ee},Jh(P,de)),affixWrapper:Ae({[`${P}-affix-wrapper-sm`]:K==="small",[`${P}-affix-wrapper-lg`]:K==="large",[`${P}-affix-wrapper-rtl`]:B==="rtl"},D),wrapper:Ae({[`${P}-group-rtl`]:B==="rtl"},D),groupWrapper:Ae({[`${P}-group-wrapper-sm`]:K==="small",[`${P}-group-wrapper-lg`]:K==="large",[`${P}-group-wrapper-rtl`]:B==="rtl",[`${P}-group-wrapper-${me}`]:Ee},Jh(`${P}-group-wrapper`,de,re),D)})}))});function d7(e,t,n){return(e-t)/(n-t)}function A7(e,t,n,r){const i=d7(t,n,r),o={};switch(e){case"rtl":o.right=`${i*100}%`,o.transform="translateX(50%)";break;case"btt":o.bottom=`${i*100}%`,o.transform="translateY(50%)";break;case"ttb":o.top=`${i*100}%`,o.transform="translateY(-50%)";break;default:o.left=`${i*100}%`,o.transform="translateX(-50%)";break}return o}function Lv(e,t){return Array.isArray(e)?e[t]:e}const Fv=g.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{},isHandleDisabled:()=>!1}),rje=g.createContext({});function h7(){return h7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var Z,W;const Y=e,{prefixCls:n,value:r,valueIndex:i,onStartMove:o,onDelete:a,style:s,render:l,dragging:c,draggingDelete:u,onOffsetChange:f,onChangeComplete:d,onFocus:A,onMouseEnter:h}=Y,p=Ze(Y,["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"]),{min:v,max:y,direction:b,keyboard:x,range:C,tabIndex:S,ariaLabelForHandle:B,ariaLabelledByForHandle:E,ariaRequired:_,ariaValueTextFormatterForHandle:M,styles:R,classNames:T,isHandleDisabled:L}=g.useContext(Fv),P=L(i),k=`${n}-handle`,H=J=>{if(P){J.stopPropagation();return}o(J,i)},D=J=>{A==null||A(J,i)},U=J=>{h(J,i)},j=J=>{if(!P&&x){let ee;switch(J.which||J.keyCode){case dn.LEFT:ee=b==="ltr"||b==="btt"?-1:1;break;case dn.RIGHT:ee=b==="ltr"||b==="btt"?1:-1;break;case dn.UP:ee=b!=="ttb"?1:-1;break;case dn.DOWN:ee=b!=="ttb"?-1:1;break;case dn.HOME:ee="min";break;case dn.END:ee="max";break;case dn.PAGE_UP:ee=2;break;case dn.PAGE_DOWN:ee=-2;break;case dn.BACKSPACE:case dn.DELETE:a==null||a(i);break}ee!==void 0&&(J.preventDefault(),f(ee,i))}},Q=J=>{switch(J.which||J.keyCode){case dn.LEFT:case dn.RIGHT:case dn.UP:case dn.DOWN:case dn.HOME:case dn.END:case dn.PAGE_UP:case dn.PAGE_DOWN:d==null||d();break}},K=A7(b,r,v,y);let z={};i!==null&&(z={tabIndex:P?void 0:(Z=Lv(S,i))!=null?Z:void 0,role:"slider","aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":P,"aria-label":Lv(B,i),"aria-labelledby":Lv(E,i),"aria-required":Lv(_,i),"aria-valuetext":(W=Lv(M,i))==null?void 0:W(r),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:H,onTouchStart:H,onFocus:D,onMouseEnter:U,onKeyDown:j,onKeyUp:Q});let V=g.createElement("div",h7({ref:t,className:Ae(k,{[`${k}-${i+1}`]:i!==null&&C,[`${k}-dragging`]:c,[`${k}-dragging-delete`]:u,[`${k}-disabled`]:P},T.handle),style:I(I(I({},K),s),R.handle)},z,p));return l&&(V=l(V,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),V});function K4(){return K4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const B=e,{prefixCls:n,style:r,onStartMove:i,onOffsetChange:o,values:a,handleRender:s,activeHandleRender:l,draggingIndex:c,draggingDelete:u,onFocus:f}=B,d=Ze(B,["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"]),A=g.useRef({}),[h,p]=g.useState(!1),[v,y]=g.useState(-1),b=E=>{y(E),p(!0)},x=(E,_)=>{b(_),f==null||f(E)},C=(E,_)=>{b(_)};g.useImperativeHandle(t,()=>({focus:E=>{var _;(_=A.current[E])==null||_.focus()},hideHelp:()=>{fu.flushSync(()=>{p(!1)})}}));const S=I({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:x,onMouseEnter:C},d);return g.createElement(g.Fragment,null,a.map((E,_)=>{const M=c===_;return g.createElement(Sle,K4({ref:R=>{R?A.current[_]=R:delete A.current[_]},dragging:M,draggingDelete:M&&u,style:Lv(r,_),key:_,value:E,valueIndex:_},S))}),l&&h&&g.createElement(Sle,K4({key:"a11y"},S,{value:a[v],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:void 0,"aria-hidden":!0})))}),oje=e=>{const{prefixCls:t,style:n,children:r,value:i,onClick:o}=e,{min:a,max:s,direction:l,includedStart:c,includedEnd:u,included:f}=g.useContext(Fv),d=`${t}-text`,A=A7(l,i,a,s);return g.createElement("span",{className:Ae(d,{[`${d}-active`]:f&&c<=i&&i<=u}),style:I(I({},A),n),onMouseDown:h=>{h.stopPropagation()},onClick:()=>{o(i)}},r)},aje=e=>{const{prefixCls:t,marks:n=[],onClick:r}=e,i=`${t}-mark`;return n.length?g.createElement("div",{className:i},n.map(({value:o,style:a,label:s})=>g.createElement(oje,{key:o,prefixCls:i,style:a,value:o,onClick:r},s))):null},sje=e=>{const{prefixCls:t,value:n,style:r,activeStyle:i}=e,{min:o,max:a,direction:s,included:l,includedStart:c,includedEnd:u}=g.useContext(Fv),f=`${t}-dot`,d=l&&c<=n&&n<=u;let A=I(I({},A7(s,n,o,a)),typeof r=="function"?r(n):r);return d&&(A=I(I({},A),typeof i=="function"?i(n):i)),g.createElement("span",{className:Ae(f,{[`${f}-active`]:d}),style:A})},lje=e=>{const{prefixCls:t,marks:n,dots:r,style:i,activeStyle:o}=e,{min:a,max:s,step:l}=g.useContext(Fv),c=g.useMemo(()=>{const u=new Set;if(n.forEach(f=>{u.add(f.value)}),r&&l!==null){let f=a;for(;f<=s;)u.add(f),f+=l}return Array.from(u)},[a,s,l,r,n]);return g.createElement("div",{className:`${t}-step`},c.map(u=>g.createElement(sje,{prefixCls:t,key:u,value:u,style:i,activeStyle:o})))},Ele=e=>{const{prefixCls:t,style:n,start:r,end:i,index:o,onStartMove:a,replaceCls:s}=e,{direction:l,min:c,max:u,disabled:f,range:d,classNames:A}=g.useContext(Fv),h=`${t}-track`,p=d7(r,c,u),v=d7(i,c,u),y=C=>{!f&&a&&a(C,-1)},b={};switch(l){case"rtl":b.right=`${p*100}%`,b.width=`${v*100-p*100}%`;break;case"btt":b.bottom=`${p*100}%`,b.height=`${v*100-p*100}%`;break;case"ttb":b.top=`${p*100}%`,b.height=`${v*100-p*100}%`;break;default:b.left=`${p*100}%`,b.width=`${v*100-p*100}%`}const x=s||Ae(h,{[`${h}-${o+1}`]:o!==null&&d,[`${t}-track-draggable`]:a},A.track);return g.createElement("div",{className:x,style:I(I({},b),n),onMouseDown:y,onTouchStart:y})},cje=e=>{const{prefixCls:t,style:n,values:r,startPoint:i,onStartMove:o}=e,{included:a,range:s,min:l,styles:c,classNames:u,isHandleDisabled:f}=g.useContext(Fv),A=g.useMemo(()=>r.some((v,y)=>f(y)),[f,r])?void 0:o,h=g.useMemo(()=>{if(!s){if(r.length===0)return[];const y=i!=null?i:l,b=r[0];return[{start:Math.min(y,b),end:Math.max(y,b)}]}const v=[];for(let y=0;yg.createElement(Ele,{index:b,prefixCls:t,style:I(I({},Lv(n,b)),c.track),start:v,end:y,key:b,onStartMove:A})))},uje=e=>{const t=g.useCallback(r=>{var i;return typeof e=="boolean"?e:(i=e[r])!=null?i:!1},[e]),n=g.useCallback(r=>typeof e=="boolean"?[e,e&&r.length>0]:[r.length>0&&r.every((i,o)=>t(o)),r.some((i,o)=>t(o))],[e,t]);return g.useMemo(()=>[t,n],[t,n])},fje=130;function Ble(e){const t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function dje(e,t,n,r,i,o,a,s,l,c,u,f){const[d,A]=g.useState(null),[h,p]=g.useState(-1),[v,y]=g.useState(!1),[b,x]=g.useState(n),[C,S]=g.useState(n),B=g.useRef(null),E=g.useRef(null),_=g.useRef(null),{onDragStart:M,onDragChange:R}=g.useContext(rje);ar(()=>{h===-1&&x(n)},[n,h]),g.useEffect(()=>()=>{B.current&&document.removeEventListener("mousemove",B.current),E.current&&document.removeEventListener("mouseup",E.current),_.current&&(B.current&&_.current.removeEventListener("touchmove",B.current),E.current&&_.current.removeEventListener("touchend",E.current))},[]);const T=(H,D,U)=>{D!==void 0&&A(D),x(H);let j=H;U&&(j=H.filter((Q,K)=>K!==h)),a(j),R&&R({rawValues:H,deleteIndex:U?h:-1,draggingIndex:h,draggingValue:D})},L=yn((H,D,U)=>{if(H===-1){if(C.some((W,J)=>f(J)))return;const j=C[0],Q=C[C.length-1],K=r-j,z=i-Q;let V=D*(i-r);V=Math.max(V,K),V=Math.min(V,z),V=o(j+V)-j;const Z=C.map(W=>W+V);T(Z)}else{const j=(i-r)*D,Q=[...b];Q[H]=C[H];const K=l(Q,j,H,"dist");T(K.values,K.value,U)}}),P=(H,D,U)=>{H.stopPropagation();const j=U||n;if(f(D))return;const Q=j[D];p(D),A(Q),S(j),x(j),y(!1);const{pageX:K,pageY:z}=Ble(H);let V=!1;M&&M({rawValues:j,draggingIndex:D,draggingValue:Q});const Y=W=>{W.preventDefault();const{pageX:J,pageY:ee}=Ble(W),ne=J-K,re=ee-z,{width:ue,height:de}=e.current.getBoundingClientRect();let se,ce;switch(t){case"btt":se=-re/de,ce=ne;break;case"ttb":se=re/de,ce=ne;break;case"rtl":se=-ne/ue,ce=re;break;default:se=ne/ue,ce=re}V=c?Math.abs(ce)>fje&&u{W.preventDefault(),document.removeEventListener("mouseup",Z),document.removeEventListener("mousemove",Y),_.current&&(B.current&&_.current.removeEventListener("touchmove",B.current),E.current&&_.current.removeEventListener("touchend",E.current)),B.current=null,E.current=null,_.current=null,s(V),p(-1),y(!1)};document.addEventListener("mouseup",Z),document.addEventListener("mousemove",Y),H.currentTarget.addEventListener("touchend",Z),H.currentTarget.addEventListener("touchmove",Y),B.current=Y,E.current=Z,_.current=H.currentTarget},k=g.useMemo(()=>{const H=[...n].sort((K,z)=>K-z),D=[...b].sort((K,z)=>K-z),U={};D.forEach(K=>{U[K]=(U[K]||0)+1}),H.forEach(K=>{U[K]=(U[K]||0)-1});const j=c?1:0;return Object.values(U).reduce((K,z)=>K+Math.abs(z),0)<=j?b:n},[n,b,c]);return[h,d,v,k,P]}const qb=(e,t,n,r,i,o)=>{const a=typeof i=="number"?i:0;let s=n,l=r;for(let c=t-1;c>=0;c-=1)if(o(c)){s=e[c]+a;break}for(let c=t+1;c{let a=-1,s=r-n;return e.forEach((l,c)=>{if(o(c))return;const[u,f]=qb(e,c,n,r,i,o);if(u<=t&&t<=f){const d=Math.abs(t-l);d<=s&&(s=d,a=c)}}),a};function hje(e,t,n,r,i,o,a){const s=g.useCallback(h=>Math.max(e,Math.min(t,h)),[e,t]),l=g.useCallback(h=>{if(n!==null){const p=e+Math.round((s(h)-e)/n)*n,v=x=>(String(x).split(".")[1]||"").length,y=Math.max(v(n),v(t),v(e)),b=Number(p.toFixed(y));return e<=b&&b<=t?b:null}return null},[n,e,t,s]),c=g.useCallback(h=>{const p=s(h),v=r.map(x=>x.value);n!==null&&v.push(l(h)),v.push(e,t);let y=v[0],b=t-e;return v.forEach(x=>{const C=Math.abs(p-x);C<=b&&(y=x,b=C)}),y},[e,t,r,n,s,l]),u=(h,p,v,y="unit")=>{if(typeof p=="number"){let b;const x=h[v],C=x+p;let S=[];r.forEach(M=>{S.push(M.value)}),S.push(e,t),S.push(l(x));const B=p>0?1:-1;y==="unit"?S.push(l(x+B*n)):S.push(l(C)),S=S.filter(M=>M!==null).filter(M=>p<0?M<=x:M>=x),y==="unit"&&(S=S.filter(M=>M!==x));const E=y==="unit"?x:C;b=S[0];let _=Math.abs(b-E);if(S.forEach(M=>{const R=Math.abs(M-E);R<_&&(b=M,_=R)}),b===void 0)return p<0?e:t;if(y==="dist")return b;if(Math.abs(p)>1){const M=[...h];return M[v]=b,u(M,p-B,v,y)}return b}else{if(p==="min")return e;if(p==="max")return t}return t},f=(h,p,v,y="unit")=>{const b=h[v],x=u(h,p,v,y);return{value:x,changed:x!==b}},d=h=>o===null&&h===0||typeof o=="number"&&h{const b=h.map(c),x=b[v],[C,S]=qb(b,v,e,t,o,a),B=u(b,p,v,y);if(b[v]=B,C<=S?b[v]=Math.max(C,Math.min(S,b[v])):b[v]=x,i===!1){const E=o||0;v>0&&b[v-1]!==x&&(b[v]=Math.max(b[v],b[v-1]+E)),v0&&!a(E-1);E-=1){let _=!0;for(;d(b[E]-b[E-1])&&_;)({value:b[E-1],changed:_}=f(b,-1,E-1));const[M]=qb(b,E-1,e,t,o,a);b[E-1]=Math.max(b[E-1],M)}for(let E=b.length-1;E>0;E-=1){if(a(E)||a(E-1))continue;let _=!0;for(;d(b[E]-b[E-1])&&_;)({value:b[E-1],changed:_}=f(b,-1,E-1));const[M]=qb(b,E-1,e,t,o,a);b[E-1]=Math.max(b[E-1],M)}for(let E=0;E{if(e===!0||!e)return[!!e,!1,!1,0];const{editable:t,draggableTrack:n,minCount:r,maxCount:i}=e;return[!0,!!t,!t&&!!n,r||0,i]},[e])}const gje=g.forwardRef((e,t)=>{const{prefixCls:n="rc-slider",className:r,style:i,classNames:o,styles:a,id:s,disabled:l=!1,keyboard:c=!0,autoFocus:u,onFocus:f,onBlur:d,min:A=0,max:h=100,step:p=1,value:v,defaultValue:y,range:b,count:x,onChange:C,onBeforeChange:S,onAfterChange:B,onChangeComplete:E,allowCross:_=!0,pushable:M=!1,reverse:R,vertical:T,included:L=!0,startPoint:P,trackStyle:k,handleStyle:H,railStyle:D,dotStyle:U,activeDotStyle:j,marks:Q,dots:K,handleRender:z,activeHandleRender:V,track:Y,tabIndex:Z=0,ariaLabelForHandle:W,ariaLabelledByForHandle:J,ariaRequired:ee,ariaValueTextFormatterForHandle:ne}=e,re=g.useRef(null),ue=g.useRef(null),[de,se]=Fr(y,v),ce=g.useMemo(()=>T?R?"ttb":"btt":R?"rtl":"ltr",[R,T]),[ge,ie,le,ve,we]=pje(b),me=g.useMemo(()=>isFinite(A)?A:0,[A]),Ee=g.useMemo(()=>isFinite(h)?h:100,[h]),Ce=g.useMemo(()=>p!==null&&p<=0?1:p,[p]),pe=g.useMemo(()=>typeof M=="boolean"?M?Ce:!1:M>=0?M:!1,[M,Ce]),Oe=g.useMemo(()=>{const At=Q||{};return Object.keys(At).map(ut=>{const ft=At[ut],Kt={value:Number(ut)};return ft&&typeof ft=="object"&&!g.isValidElement(ft)&&("label"in ft||"style"in ft)?(Kt.style=ft.style,Kt.label=ft.label):Kt.label=ft,Kt}).filter(({label:ut})=>ut||typeof ut=="number").sort((ut,ft)=>ut.value-ft.value)},[Q]),[xe,Me]=uje(l),[Se,Pe]=hje(me,Ee,Ce,Oe,_,pe,xe),Le=g.useMemo(()=>{var Kt;const At=de==null?[]:Array.isArray(de)?de:[de],[ut=me]=At;let ft=de===null?[]:[ut];if(ge){if(ft=[...At],x||de===void 0){const An=x!==void 0&&x>=0?x+1:2;for(ft=ft.slice(0,An);ft.lengthAn-pn)}return ft.forEach((An,pn)=>{ft[pn]=Se(An)}),ft},[de,ge,me,x,Se]),[He,Ne]=g.useMemo(()=>Me(Le),[Me,Le]),at=ie&&!Ne,Ue=At=>ge?At:At[0],et=yn(At=>{const ut=[...At].sort((ft,Kt)=>ft-Kt);C&&!uu(ut,Le,!0)&&C(Ue(ut)),se(ut)}),We=yn(At=>{At&&re.current.hideHelp();const ut=Ue(Le);B==null||B(ut),ao(!B,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),E==null||E(ut)}),Je=At=>{if(He||!at||Le.length<=ve)return;const ut=[...Le];ut.splice(At,1),S==null||S(Ue(ut)),et(ut);const ft=Math.max(0,At-1);re.current.hideHelp(),re.current.focus(ft)},[dt,wt,Bt,qt,jt]=dje(ue,ce,Le,me,Ee,Se,et,We,Pe,at,ve,xe),nn=(At,ut)=>{var ft,Kt;if(!He){const An=Le.length?Aje(Le,At,me,Ee,pe,xe):0;if(An===-1)return;const pn=[...Le];let bn=0;const Sn=Le.length?Math.abs(At-Le[An]):Ee-me;Le.forEach(($n,Fn)=>{$n{At.preventDefault();const{width:ut,height:ft,left:Kt,top:An,bottom:pn,right:bn}=ue.current.getBoundingClientRect(),{clientX:Sn,clientY:Tn}=At;let lr;switch(ce){case"btt":lr=(pn-Tn)/ft;break;case"ttb":lr=(Tn-An)/ft;break;case"rtl":lr=(bn-Sn)/ut;break;default:lr=(Sn-Kt)/ut}const $n=me+lr*(Ee-me);nn(Se($n),At)},[Ot,sn]=g.useState(null),Vt=(At,ut)=>{if(!He&&!xe(ut)){const ft=Pe(Le,At,ut);S==null||S(Ue(Le)),et(ft.values),sn({value:ft.value,index:ut})}};g.useEffect(()=>{if(Ot!==null){const{value:At,index:ut}=Ot,ft=Le[ut]===At?ut:Le.indexOf(At);ft>=0&&re.current.focus(ft)}sn(null)},[Ot]);const xt=g.useMemo(()=>le&&Ce===null?!1:le,[le,Ce]),qe=yn((At,ut)=>{jt(At,ut),S==null||S(Ue(Le))}),it=dt!==-1;g.useEffect(()=>{if(!it){const At=Le.lastIndexOf(wt);re.current.focus(At)}},[it]);const Pt=g.useMemo(()=>[...qt].sort((At,ut)=>At-ut),[qt]),[De,ze]=g.useMemo(()=>ge?[Pt[0],Pt[Pt.length-1]]:[me,Pt[0]],[Pt,ge,me]);g.useImperativeHandle(t,()=>({focus:()=>{re.current.focus(0)},blur:()=>{var ut;const{activeElement:At}=document;(ut=ue.current)!=null&&ut.contains(At)&&(At==null||At.blur())}}));const bt=g.useRef(u);g.useEffect(()=>{bt.current&&re.current.focus(0)},[]);const lt=g.useMemo(()=>({min:me,max:Ee,direction:ce,disabled:He,keyboard:c,step:Ce,included:L,includedStart:De,includedEnd:ze,range:ge,tabIndex:Z,ariaLabelForHandle:W,ariaLabelledByForHandle:J,ariaRequired:ee,ariaValueTextFormatterForHandle:ne,styles:a||{},classNames:o||{},isHandleDisabled:xe}),[me,Ee,ce,He,c,Ce,L,De,ze,ge,Z,W,J,ee,ne,a,o,xe]);return g.createElement(Fv.Provider,{value:lt},g.createElement("div",{ref:ue,className:Ae(n,r,{[`${n}-disabled`]:He,[`${n}-vertical`]:T,[`${n}-horizontal`]:!T,[`${n}-with-marks`]:Oe.length}),style:i,onMouseDown:Jt,id:s},g.createElement("div",{className:Ae(`${n}-rail`,o==null?void 0:o.rail),style:I(I({},D),a==null?void 0:a.rail)}),Y!==!1&&g.createElement(cje,{prefixCls:n,style:k,values:Le,startPoint:P,onStartMove:xt?qe:void 0}),g.createElement(lje,{prefixCls:n,marks:Oe,dots:K,style:U,activeStyle:j}),g.createElement(ije,{ref:re,prefixCls:n,style:H,values:qt,draggingIndex:dt,draggingDelete:Bt,onStartMove:qe,onOffsetChange:Vt,onFocus:f,onBlur:d,handleRender:z,activeHandleRender:V,onChangeComplete:We,onDelete:at?Je:void 0}),g.createElement(aje,{prefixCls:n,marks:Oe,onClick:nn})))}),mje=g.createContext({}),Ole=g.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:i}=e,o=g.useRef(null),a=n&&!r,s=g.useRef(null);function l(){Kn.cancel(s.current),s.current=null}function c(){s.current=Kn(()=>{var u;(u=o.current)==null||u.forceAlign(),s.current=null})}return g.useEffect(()=>(a?c():l(),l),[a,e.title,i]),g.createElement(No,te(I({ref:il(o,t)},e),{open:a}))}),vje=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:A,handleLineWidth:h,handleLineWidthHover:p,motionDurationMid:v}=e,y={backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${be(h)} ${l}`,insetInlineStart:0,insetBlockStart:0};return{[t]:te(I({},zr(e)),{position:"relative",height:r,margin:`${be(a)} ${be(o)}`,padding:0,cursor:"pointer",touchAction:"none",userSelect:"none","&-vertical":{margin:`${be(o)} ${be(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${be(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${be(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map(b=>`${b} ${v}`).join(", ")},"&:hover, &:active, &:focus":{[`&:not(${t}-handle-disabled)::before`]:{insetInlineStart:c(f).sub(u).div(2).add(p).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(p).mul(-1).equal(),width:c(f).add(c(p).mul(2)).equal(),height:c(f).add(c(p).mul(2)).equal()},[`&:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${be(p)} ${d}`,outline:`6px solid ${A}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${be(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` +`,Sme=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],GT={},KT;function Cme(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&>[n])return GT[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:Sme.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(GT[n]=s),s}function wme(e,t=!1,n=null,r=null){KT||(KT=document.createElement(`textarea`),KT.setAttribute(`tab-index`,`-1`),KT.setAttribute(`aria-hidden`,`true`),KT.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(KT)),e.getAttribute(`wrap`)?KT.setAttribute(`wrap`,e.getAttribute(`wrap`)):KT.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=Cme(e,t);KT.setAttribute(`style`,`${s};${xme}`),KT.value=e.value||e.placeholder||``;let c,l,u,d=KT.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){KT.value=` `;let e=KT.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?void 0:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}K();var Tme=[`prefixCls`,`defaultValue`,`value`,`autoSize`,`onResize`,`className`,`style`,`disabled`,`onChange`,`onInternalAutoSize`];function qT(){return qT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d}=e,f=q(e,Tme),[p,m]=$r(r,i),h=p==null?``:p,g=e=>{m(e.target.value),u==null||u(e)},_=J.useRef(null);J.useImperativeHandle(t,()=>({textArea:_.current}));let[v,y]=J.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),b=!!a,[x,S]=J.useState(XT),[C,w]=J.useState(),T=()=>{S(JT)};Xr(()=>{b&&T()},[i,v,y,b]),Xr(()=>{if(x===JT)S(YT);else if(x===YT){let e=wme(_.current,!1,v,y);S(XT),w(e)}},[x]);let E=J.useRef(void 0),D=()=>{E.current!==void 0&&Fa.cancel(E.current)},O=e=>{x===XT&&(o==null||o(e),a&&(D(),E.current=Fa(()=>{T()})))};J.useEffect(()=>D,[]);let k=b?C:null,A=G(G({},c),k);return(x===JT||x===YT)&&(A.overflowY=`hidden`,A.overflowX=`hidden`),J.createElement(go,{onResize:O,disabled:!(a||o)},J.createElement(`textarea`,qT({},f,{ref:_,style:A,className:Z(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});K();var Dme=[`defaultValue`,`value`,`onFocus`,`onBlur`,`onChange`,`allowClear`,`maxLength`,`onCompositionStart`,`onCompositionEnd`,`suffix`,`prefixCls`,`showCount`,`count`,`className`,`style`,`disabled`,`hidden`,`classNames`,`styles`,`onResize`,`onClear`,`onPressEnter`,`readOnly`,`autoSize`,`onKeyDown`];function ZT(){return ZT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{defaultValue:n,value:r,onFocus:i,onBlur:a,onChange:o,allowClear:s,maxLength:c,onCompositionStart:l,onCompositionEnd:u,suffix:d,prefixCls:f=`rc-textarea`,showCount:p,count:m,className:h,style:g,disabled:_,hidden:v,classNames:y,styles:b,onResize:x,onClear:S,onPressEnter:C,readOnly:w,autoSize:T,onKeyDown:E}=e,D=q(e,Dme),[O,k]=J.useState(!1),A=J.useRef(!1),[j,M]=J.useState(null),N=(0,J.useRef)(null),P=(0,J.useRef)(null),F=()=>{var e;return((e=P.current)==null?void 0:e.textArea)||null},{setValue:I,formatValue:L}=vme(n,r),R=hme(m,p),{isOutOfRange:z,dataCount:B}=gme({countConfig:R,value:L,maxLength:c}),V=_me({countConfig:R,getTarget:()=>{var e;return((e=P.current)==null?void 0:e.textArea)||null}}),H=()=>{var e;(e=F())==null||e.focus()};(0,J.useImperativeHandle)(t,()=>{var e;return{resizableTextArea:P.current,focus:H,blur:()=>{var e;(e=F())==null||e.blur()},nativeElement:((e=N.current)==null?void 0:e.nativeElement)||F()}}),(0,J.useEffect)(()=>{k(e=>!_&&e)},[_]);let U=(e,t)=>{let n=V(t,A.current);I(n),HT(e.currentTarget,e,o,n)},ee=e=>{A.current=!0,l==null||l(e)},te=e=>{A.current=!1,U(e,e.currentTarget.value),u==null||u(e)},ne=e=>{U(e,e.target.value)},re=e=>{e.key===`Enter`&&C&&!e.nativeEvent.isComposing&&C(e),E==null||E(e)},ie=e=>{k(!0),i==null||i(e)},ae=e=>{k(!1),a==null||a(e)},oe=e=>{I(``),H();let t=F();t&&HT(t,e,o)},se=d;R.show&&(se=J.createElement(J.Fragment,null,se,J.createElement(`span`,{className:Z(`${f}-data-count`,y==null?void 0:y.count),style:b==null?void 0:b.count},B)));let ce=e=>{var t;x==null||x(e),(t=F())!=null&&t.style.height&&M(!0)},le=!T&&!p&&!s;return J.createElement(pme,{ref:N,value:L,allowClear:s,handleReset:oe,suffix:se,prefixCls:f,classNames:G(G({},y),{},{affixWrapper:Z(y==null?void 0:y.affixWrapper,{[`${f}-show-count`]:p,[`${f}-textarea-allow-clear`]:s})}),disabled:_,focused:O,className:Z(h,z&&`${f}-out-of-range`),style:G(G({},g),j&&!le?{height:`auto`}:{}),dataAttrs:typeof B==`string`?{affixWrapper:{"data-count":B}}:void 0,styles:b,hidden:v,readOnly:w,onClear:S},J.createElement(Eme,ZT({},D,{autoSize:T,maxLength:c,onKeyDown:re,onChange:ne,onFocus:ie,onBlur:ae,onCompositionStart:ee,onCompositionEnd:te,className:Z(y==null?void 0:y.textarea),style:G({resize:g==null?void 0:g.resize},b==null?void 0:b.textarea),disabled:_,prefixCls:f,onResize:ce,ref:P,readOnly:w})))}),kme=bme;function Ame(e,t){let n=(0,J.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,r;if((t=e.current)!=null&&t.input&&((n=e.current)==null?void 0:n.input.getAttribute(`type`))===`password`&&(r=e.current)!=null&&r.input.hasAttribute(`value`)){var i;(i=e.current)==null||i.input.removeAttribute(`value`)}}))};return(0,J.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[t]),r}function jme(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}K();var Mme=[`prefixCls`,`bordered`,`status`,`size`,`disabled`,`onBlur`,`onFocus`,`suffix`,`allowClear`,`addonAfter`,`addonBefore`,`className`,`style`,`styles`,`rootClassName`,`onChange`,`classNames`,`variant`],QT=(0,J.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:v,variant:y}=e,b=q(e,Mme),{getPrefixCls:x,direction:S,allowClear:C,autoComplete:w,className:T,style:E,classNames:D,styles:O}=ko(`input`),k=x(`input`,n),A=(0,J.useRef)(null),j=Fp(k),[M,N]=gw(k,g);_w(k,j);let{compactSize:P,compactItemClassnames:F}=bh(k,S),I=vh(e=>{var t;return(t=a==null?P:a)==null?e:t}),L=J.useContext(gm),R=o==null?L:o,z=G(G({},e),{},{size:I,disabled:R}),B=yp(E),V=yp(m),[H,U]=xp([D,v],[O,B,h,V],{props:z}),{status:ee,hasFeedback:te,feedbackIcon:ne}=(0,J.useContext)(b_),re=gy(ee,i);(0,J.useRef)(jme(e)||!!te);let ie=Ame(A,!0),ae=e=>{ie(),s==null||s(e)},oe=e=>{ie(),c==null||c(e)},se=e=>{ie(),_==null||_(e)},ce=(te||l)&&J.createElement(J.Fragment,null,l,te&&ne),le=Lm({allowClear:u,contextAllowClear:C,componentName:`Input`}),[ue,de]=Sy(`input`,y,r);return J.createElement(kme,G(G({ref:hi(t,A),prefixCls:k,autoComplete:w},b),{},{disabled:R,onBlur:ae,onFocus:oe,style:U.root,styles:U,suffix:ce,allowClear:le,className:Z(p,g,N,j,F,T,H.root),onChange:se,addonBefore:f&&J.createElement(x_,{form:!0,space:!0},f),addonAfter:d&&J.createElement(x_,{form:!0,space:!0},d),classNames:G(G({},H),{},{input:Z({[`${k}-sm`]:I===`small`,[`${k}-lg`]:I===`large`,[`${k}-rtl`]:S===`rtl`},H.input,M),variant:Z({[`${k}-${ue}`]:de},hy(k,re)),affixWrapper:Z({[`${k}-affix-wrapper-sm`]:I===`small`,[`${k}-affix-wrapper-lg`]:I===`large`,[`${k}-affix-wrapper-rtl`]:S===`rtl`},M),wrapper:Z({[`${k}-group-rtl`]:S===`rtl`},M),groupWrapper:Z({[`${k}-group-wrapper-sm`]:I===`small`,[`${k}-group-wrapper-lg`]:I===`large`,[`${k}-group-wrapper-rtl`]:S===`rtl`,[`${k}-group-wrapper-${ue}`]:de},hy(`${k}-group-wrapper`,re,te),M)})}))});function $T(e,t,n){return(e-t)/(n-t)}function eE(e,t,n,r){let i=$T(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`;break}return a}function tE(e,t){return Array.isArray(e)?e[t]:e}var nE=J.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{},isHandleDisabled:()=>!1}),Nme=J.createContext({});K();var Pme=[`prefixCls`,`value`,`valueIndex`,`onStartMove`,`onDelete`,`style`,`render`,`dragging`,`draggingDelete`,`onOffsetChange`,`onChangeComplete`,`onFocus`,`onMouseEnter`];function rE(){return rE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,value:r,valueIndex:i,onStartMove:a,onDelete:o,style:s,render:c,dragging:l,draggingDelete:u,onOffsetChange:d,onChangeComplete:f,onFocus:p,onMouseEnter:m}=e,h=q(e,Pme),{min:g,max:_,direction:v,keyboard:y,range:b,tabIndex:x,ariaLabelForHandle:S,ariaLabelledByForHandle:C,ariaRequired:w,ariaValueTextFormatterForHandle:T,styles:E,classNames:D,isHandleDisabled:O}=J.useContext(nE),k=O(i),A=`${n}-handle`,j=e=>{if(k){e.stopPropagation();return}a(e,i)},M=e=>{p==null||p(e,i)},N=e=>{m(e,i)},P=e=>{if(!k&&y){let t;switch(e.which||e.keyCode){case aa.LEFT:t=v===`ltr`||v===`btt`?-1:1;break;case aa.RIGHT:t=v===`ltr`||v===`btt`?1:-1;break;case aa.UP:t=v===`ttb`?-1:1;break;case aa.DOWN:t=v===`ttb`?1:-1;break;case aa.HOME:t=`min`;break;case aa.END:t=`max`;break;case aa.PAGE_UP:t=2;break;case aa.PAGE_DOWN:t=-2;break;case aa.BACKSPACE:case aa.DELETE:o==null||o(i);break}t!==void 0&&(e.preventDefault(),d(t,i))}},F=e=>{switch(e.which||e.keyCode){case aa.LEFT:case aa.RIGHT:case aa.UP:case aa.DOWN:case aa.HOME:case aa.END:case aa.PAGE_UP:case aa.PAGE_DOWN:f==null||f();break}},I=eE(v,r,g,_),L={};if(i!==null){var R,z;L={tabIndex:k||(R=tE(x,i))==null?void 0:R,role:`slider`,"aria-valuemin":g,"aria-valuemax":_,"aria-valuenow":r,"aria-disabled":k,"aria-label":tE(S,i),"aria-labelledby":tE(C,i),"aria-required":tE(w,i),"aria-valuetext":(z=tE(T,i))==null?void 0:z(r),"aria-orientation":v===`ltr`||v===`rtl`?`horizontal`:`vertical`,onMouseDown:j,onTouchStart:j,onFocus:M,onMouseEnter:N,onKeyDown:P,onKeyUp:F}}let B=J.createElement(`div`,rE({ref:t,className:Z(A,{[`${A}-${i+1}`]:i!==null&&b,[`${A}-dragging`]:l,[`${A}-dragging-delete`]:u,[`${A}-disabled`]:k},D.handle),style:G(G(G({},I),s),E.handle)},L,h));return c&&(B=c(B,{index:i,prefixCls:n,value:r,dragging:l,draggingDelete:u})),B});K();var Ime=[`prefixCls`,`style`,`onStartMove`,`onOffsetChange`,`values`,`handleRender`,`activeHandleRender`,`draggingIndex`,`draggingDelete`,`onFocus`];function iE(){return iE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,style:r,onStartMove:i,onOffsetChange:a,values:o,handleRender:s,activeHandleRender:c,draggingIndex:l,draggingDelete:u,onFocus:d}=e,f=q(e,Ime),p=J.useRef({}),[m,h]=J.useState(!1),[g,_]=J.useState(-1),v=e=>{_(e),h(!0)},y=(e,t)=>{v(t),d==null||d(e)},b=(e,t)=>{v(t)};J.useImperativeHandle(t,()=>({focus:e=>{var t;(t=p.current[e])==null||t.focus()},hideHelp:()=>{(0,Xa.flushSync)(()=>{h(!1)})}}));let x=G({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:y,onMouseEnter:b},f);return J.createElement(J.Fragment,null,o.map((e,t)=>{let n=l===t;return J.createElement(Fme,iE({ref:e=>{e?p.current[t]=e:delete p.current[t]},dragging:n,draggingDelete:n&&u,style:tE(r,t),key:t,value:e,valueIndex:t},x))}),c&&m&&J.createElement(Fme,iE({key:`a11y`},x,{value:o[g],valueIndex:null,dragging:l!==-1,draggingDelete:u,render:c,style:{pointerEvents:`none`},tabIndex:void 0,"aria-hidden":!0})))});K();var Rme=e=>{let{prefixCls:t,style:n,children:r,value:i,onClick:a}=e,{min:o,max:s,direction:c,includedStart:l,includedEnd:u,included:d}=J.useContext(nE),f=`${t}-text`,p=eE(c,i,o,s);return J.createElement(`span`,{className:Z(f,{[`${f}-active`]:d&&l<=i&&i<=u}),style:G(G({},p),n),onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(i)}},r)},zme=e=>{let{prefixCls:t,marks:n=[],onClick:r}=e,i=`${t}-mark`;return n.length?J.createElement(`div`,{className:i},n.map(({value:e,style:t,label:n})=>J.createElement(Rme,{key:e,prefixCls:i,style:t,value:e,onClick:r},n))):null};K();var Bme=e=>{let{prefixCls:t,value:n,style:r,activeStyle:i}=e,{min:a,max:o,direction:s,included:c,includedStart:l,includedEnd:u}=J.useContext(nE),d=`${t}-dot`,f=c&&l<=n&&n<=u,p=G(G({},eE(s,n,a,o)),typeof r==`function`?r(n):r);return f&&(p=G(G({},p),typeof i==`function`?i(n):i)),J.createElement(`span`,{className:Z(d,{[`${d}-active`]:f}),style:p})},Vme=e=>{let{prefixCls:t,marks:n,dots:r,style:i,activeStyle:a}=e,{min:o,max:s,step:c}=J.useContext(nE),l=J.useMemo(()=>{let e=new Set;if(n.forEach(t=>{e.add(t.value)}),r&&c!==null){let t=o;for(;t<=s;)e.add(t),t+=c}return Array.from(e)},[o,s,c,r,n]);return J.createElement(`div`,{className:`${t}-step`},l.map(e=>J.createElement(Bme,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})))};K();var Hme=e=>{let{prefixCls:t,style:n,start:r,end:i,index:a,onStartMove:o,replaceCls:s}=e,{direction:c,min:l,max:u,disabled:d,range:f,classNames:p}=J.useContext(nE),m=`${t}-track`,h=$T(r,l,u),g=$T(i,l,u),_=e=>{!d&&o&&o(e,-1)},v={};switch(c){case`rtl`:v.right=`${h*100}%`,v.width=`${g*100-h*100}%`;break;case`btt`:v.bottom=`${h*100}%`,v.height=`${g*100-h*100}%`;break;case`ttb`:v.top=`${h*100}%`,v.height=`${g*100-h*100}%`;break;default:v.left=`${h*100}%`,v.width=`${g*100-h*100}%`}let y=s||Z(m,{[`${m}-${a+1}`]:a!==null&&f,[`${t}-track-draggable`]:o},p.track);return J.createElement(`div`,{className:y,style:G(G({},v),n),onMouseDown:_,onTouchStart:_})};K();var Ume=e=>{let{prefixCls:t,style:n,values:r,startPoint:i,onStartMove:a}=e,{included:o,range:s,min:c,styles:l,classNames:u,isHandleDisabled:d}=J.useContext(nE),f=J.useMemo(()=>r.some((e,t)=>d(t)),[d,r])?void 0:a,p=J.useMemo(()=>{if(!s){if(r.length===0)return[];let e=i==null?c:i,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}let e=[];for(let t=0;tJ.createElement(Hme,{index:i,prefixCls:t,style:G(G({},tE(n,i)),l.track),start:e,end:r,key:i,onStartMove:f})))},Wme=e=>{let t=J.useCallback(t=>{var n;return typeof e==`boolean`?e:(n=e[t])!=null&&n},[e]),n=J.useCallback(n=>typeof e==`boolean`?[e,e&&n.length>0]:[n.length>0&&n.every((e,n)=>t(n)),n.some((e,n)=>t(n))],[e,t]);return J.useMemo(()=>[t,n],[t,n])},Gme=130;function Kme(e){let t=`targetTouches`in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function qme(e,t,n,r,i,a,o,s,c,l,u,d){let[f,p]=J.useState(null),[m,h]=J.useState(-1),[g,_]=J.useState(!1),[v,y]=J.useState(n),[b,x]=J.useState(n),S=J.useRef(null),C=J.useRef(null),w=J.useRef(null),{onDragStart:T,onDragChange:E}=J.useContext(Nme);Xr(()=>{m===-1&&y(n)},[n,m]),J.useEffect(()=>()=>{S.current&&document.removeEventListener(`mousemove`,S.current),C.current&&document.removeEventListener(`mouseup`,C.current),w.current&&(S.current&&w.current.removeEventListener(`touchmove`,S.current),C.current&&w.current.removeEventListener(`touchend`,C.current))},[]);let D=(e,t,n)=>{t!==void 0&&p(t),y(e);let r=e;n&&(r=e.filter((e,t)=>t!==m)),o(r),E&&E({rawValues:e,deleteIndex:n?m:-1,draggingIndex:m,draggingValue:t})},O=qr((e,t,n)=>{if(e===-1){if(b.some((e,t)=>d(t)))return;let e=b[0],n=b[b.length-1],o=r-e,s=i-n,c=t*(i-r);c=Math.max(c,o),c=Math.min(c,s),c=a(e+c)-e;let l=b.map(e=>e+c);D(l)}else{let a=(i-r)*t,o=[...v];o[e]=b[e];let s=c(o,a,e,`dist`);D(s.values,s.value,n)}});return[m,f,g,J.useMemo(()=>{let e=[...n].sort((e,t)=>e-t),t=[...v].sort((e,t)=>e-t),r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});let i=+!!l;return Object.values(r).reduce((e,t)=>e+Math.abs(t),0)<=i?v:n},[n,v,l]),(r,i,a)=>{r.stopPropagation();let o=a||n;if(d(i))return;let c=o[i];h(i),p(c),x(o),y(o),_(!1);let{pageX:f,pageY:m}=Kme(r),g=!1;T&&T({rawValues:o,draggingIndex:i,draggingValue:c});let b=n=>{n.preventDefault();let{pageX:r,pageY:a}=Kme(n),o=r-f,s=a-m,{width:c,height:d}=e.current.getBoundingClientRect(),p,h;switch(t){case`btt`:p=-s/d,h=o;break;case`ttb`:p=s/d,h=o;break;case`rtl`:p=-o/c,h=s;break;default:p=o/c,h=s}g=l?Math.abs(h)>Gme&&u{e.preventDefault(),document.removeEventListener(`mouseup`,E),document.removeEventListener(`mousemove`,b),w.current&&(S.current&&w.current.removeEventListener(`touchmove`,S.current),C.current&&w.current.removeEventListener(`touchend`,C.current)),S.current=null,C.current=null,w.current=null,s(g),h(-1),_(!1)};document.addEventListener(`mouseup`,E),document.addEventListener(`mousemove`,b),r.currentTarget.addEventListener(`touchend`,E),r.currentTarget.addEventListener(`touchmove`,b),S.current=b,C.current=E,w.current=r.currentTarget}]}var aE=(e,t,n,r,i,a)=>{let o=typeof i==`number`?i:0,s=n,c=r;for(let n=t-1;n>=0;--n)if(a(n)){s=e[n]+o;break}for(let n=t+1;n{let o=-1,s=r-n;return e.forEach((c,l)=>{if(a(l))return;let[u,d]=aE(e,l,n,r,i,a);if(u<=t&&t<=d){let e=Math.abs(t-c);e<=s&&(s=e,o=l)}}),o};function Yme(e,t,n,r,i,a,o){let s=J.useCallback(n=>Math.max(e,Math.min(t,n)),[e,t]),c=J.useCallback(r=>{if(n!==null){let i=e+Math.round((s(r)-e)/n)*n,a=e=>(String(e).split(`.`)[1]||``).length,o=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(o));return e<=c&&c<=t?c:null}return null},[n,e,t,s]),l=J.useCallback(i=>{let a=s(i),o=r.map(e=>e.value);n!==null&&o.push(c(i)),o.push(e,t);let l=o[0],u=t-e;return o.forEach(e=>{let t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,s,c]),u=(i,a,o,s=`unit`)=>{if(typeof a==`number`){let l,d=i[o],f=d+a,p=[];r.forEach(e=>{p.push(e.value)}),p.push(e,t),p.push(c(d));let m=a>0?1:-1;s===`unit`?p.push(c(d+m*n)):p.push(c(f)),p=p.filter(e=>e!==null).filter(e=>a<0?e<=d:e>=d),s===`unit`&&(p=p.filter(e=>e!==d));let h=s===`unit`?d:f;l=p[0];let g=Math.abs(l-h);if(p.forEach(e=>{let t=Math.abs(e-h);t1){let e=[...i];return e[o]=l,u(e,a-m,o,s)}return l}else if(a===`min`)return e;else if(a===`max`)return t;return t},d=(e,t,n,r=`unit`)=>{let i=e[n],a=u(e,t,n,r);return{value:a,changed:a!==i}},f=e=>a===null&&e===0||typeof a==`number`&&e{let p=n.map(l),m=p[s],[h,g]=aE(p,s,e,t,a,o);if(p[s]=u(p,r,s,c),h<=g?p[s]=Math.max(h,Math.min(g,p[s])):p[s]=m,i===!1){let e=a||0;s>0&&p[s-1]!==m&&(p[s]=Math.max(p[s],p[s-1]+e)),s0&&!o(n-1);--n){let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=aE(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=p.length-1;n>0;--n){if(o(n)||o(n-1))continue;let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=aE(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=0;n{if(e===!0||!e)return[!!e,!1,!1,0];let{editable:t,draggableTrack:n,minCount:r,maxCount:i}=e;return[!0,!!t,!t&&!!n,r||0,i]},[e])}K();var Zme=J.forwardRef((e,t)=>{let{prefixCls:n=`rc-slider`,className:r,style:i,classNames:a,styles:o,id:s,disabled:c=!1,keyboard:l=!0,autoFocus:u,onFocus:d,onBlur:f,min:p=0,max:m=100,step:h=1,value:g,defaultValue:_,range:v,count:y,onChange:b,onBeforeChange:x,onAfterChange:S,onChangeComplete:C,allowCross:w=!0,pushable:T=!1,reverse:E,vertical:D,included:O=!0,startPoint:k,trackStyle:A,handleStyle:j,railStyle:M,dotStyle:N,activeDotStyle:P,marks:F,dots:I,handleRender:L,activeHandleRender:R,track:z,tabIndex:B=0,ariaLabelForHandle:V,ariaLabelledByForHandle:H,ariaRequired:U,ariaValueTextFormatterForHandle:ee}=e,te=J.useRef(null),ne=J.useRef(null),[re,ie]=$r(_,g),ae=J.useMemo(()=>D?E?`ttb`:`btt`:E?`rtl`:`ltr`,[E,D]),[oe,se,ce,le,ue]=Xme(v),de=J.useMemo(()=>isFinite(p)?p:0,[p]),fe=J.useMemo(()=>isFinite(m)?m:100,[m]),pe=J.useMemo(()=>h!==null&&h<=0?1:h,[h]),me=J.useMemo(()=>typeof T==`boolean`?T?pe:!1:T>=0&&T,[T,pe]),he=J.useMemo(()=>{let e=F||{};return Object.keys(e).map(t=>{let n=e[t],r={value:Number(t)};return n&&typeof n==`object`&&!J.isValidElement(n)&&(`label`in n||`style`in n)?(r.style=n.style,r.label=n.label):r.label=n,r}).filter(({label:e})=>e||typeof e==`number`).sort((e,t)=>e.value-t.value)},[F]),[W,ge]=Wme(c),[_e,K]=Yme(de,fe,pe,he,w,me,W),ve=J.useMemo(()=>{let e=re==null?[]:Array.isArray(re)?re:[re],[t=de]=e,n=re===null?[]:[t];if(oe){if(n=[...e],y||re===void 0){let e=y!==void 0&&y>=0?y+1:2;for(n=n.slice(0,e);n.lengthe-t)}return n.forEach((e,t)=>{n[t]=_e(e)}),n},[re,oe,de,y,_e]),[q,ye]=J.useMemo(()=>ge(ve),[ge,ve]),be=se&&!ye,xe=e=>oe?e:e[0],Se=qr(e=>{let t=[...e].sort((e,t)=>e-t);b&&!ya(t,ve,!0)&&b(xe(t)),ie(t)}),Ce=qr(e=>{e&&te.current.hideHelp();let t=xe(ve);S==null||S(t),_a(!S,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),C==null||C(t)}),we=e=>{if(q||!be||ve.length<=le)return;let t=[...ve];t.splice(e,1),x==null||x(xe(t)),Se(t);let n=Math.max(0,e-1);te.current.hideHelp(),te.current.focus(n)},[Te,Ee,De,Oe,ke]=qme(ne,ae,ve,de,fe,_e,Se,Ce,K,be,le,W),Ae=(e,t)=>{if(!q){let i=ve.length?Jme(ve,e,de,fe,me,W):0;if(i===-1)return;let a=[...ve],o=0,s=ve.length?Math.abs(e-ve[i]):fe-de;ve.forEach((t,n)=>{t{e.preventDefault();let{width:t,height:n,left:r,top:i,bottom:a,right:o}=ne.current.getBoundingClientRect(),{clientX:s,clientY:c}=e,l;switch(ae){case`btt`:l=(a-c)/n;break;case`ttb`:l=(c-i)/n;break;case`rtl`:l=(o-s)/t;break;default:l=(s-r)/t}let u=de+l*(fe-de);Ae(_e(u),e)},[Me,Ne]=J.useState(null),Pe=(e,t)=>{if(!q&&!W(t)){let n=K(ve,e,t);x==null||x(xe(ve)),Se(n.values),Ne({value:n.value,index:t})}};J.useEffect(()=>{if(Me!==null){let{value:e,index:t}=Me,n=ve[t]===e?t:ve.indexOf(e);n>=0&&te.current.focus(n)}Ne(null)},[Me]);let Fe=J.useMemo(()=>ce&&pe===null?!1:ce,[ce,pe]),Ie=qr((e,t)=>{ke(e,t),x==null||x(xe(ve))}),Le=Te!==-1;J.useEffect(()=>{if(!Le){let e=ve.lastIndexOf(Ee);te.current.focus(e)}},[Le]);let Re=J.useMemo(()=>[...Oe].sort((e,t)=>e-t),[Oe]),[ze,Be]=J.useMemo(()=>oe?[Re[0],Re[Re.length-1]]:[de,Re[0]],[Re,oe,de]);J.useImperativeHandle(t,()=>({focus:()=>{te.current.focus(0)},blur:()=>{var e;let{activeElement:t}=document;(e=ne.current)!=null&&e.contains(t)&&(t==null||t.blur())}}));let Ve=J.useRef(u);J.useEffect(()=>{Ve.current&&te.current.focus(0)},[]);let He=J.useMemo(()=>({min:de,max:fe,direction:ae,disabled:q,keyboard:l,step:pe,included:O,includedStart:ze,includedEnd:Be,range:oe,tabIndex:B,ariaLabelForHandle:V,ariaLabelledByForHandle:H,ariaRequired:U,ariaValueTextFormatterForHandle:ee,styles:o||{},classNames:a||{},isHandleDisabled:W}),[de,fe,ae,q,l,pe,O,ze,Be,oe,B,V,H,U,ee,o,a,W]);return J.createElement(nE.Provider,{value:He},J.createElement(`div`,{ref:ne,className:Z(n,r,{[`${n}-disabled`]:q,[`${n}-vertical`]:D,[`${n}-horizontal`]:!D,[`${n}-with-marks`]:he.length}),style:i,onMouseDown:je,id:s},J.createElement(`div`,{className:Z(`${n}-rail`,a==null?void 0:a.rail),style:G(G({},M),o==null?void 0:o.rail)}),z!==!1&&J.createElement(Ume,{prefixCls:n,style:A,values:ve,startPoint:k,onStartMove:Fe?Ie:void 0}),J.createElement(Vme,{prefixCls:n,marks:he,dots:I,style:N,activeStyle:P}),J.createElement(Lme,{ref:te,prefixCls:n,style:j,values:Oe,draggingIndex:Te,draggingDelete:De,onStartMove:Ie,onOffsetChange:Pe,onFocus:d,onBlur:f,handleRender:L,activeHandleRender:R,onChangeComplete:Ce,onDelete:be?we:void 0}),J.createElement(zme,{prefixCls:n,marks:he,onClick:Ae})))}),Qme=(0,J.createContext)({});K();var $me=J.forwardRef((e,t)=>{let{open:n,draggingDelete:r,value:i}=e,a=(0,J.useRef)(null),o=n&&!r,s=(0,J.useRef)(null);function c(){Fa.cancel(s.current),s.current=null}function l(){s.current=Fa(()=>{var e;(e=a.current)==null||e.forceAlign(),s.current=null})}return J.useEffect(()=>(o?l():c(),c),[o,e.title,i]),J.createElement(ab,G(G({ref:hi(a,t)},e),{},{open:o}))});K();var ehe=e=>{let{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:c,calc:l,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:h,motionDurationMid:g}=e,_={backgroundColor:e.colorBgElevated,cursor:`not-allowed`,width:u,height:u,boxShadow:`0 0 0 ${Q(m)} ${c}`,insetInlineStart:0,insetBlockStart:0};return{[t]:G(G({},td(e)),{},{position:`relative`,height:r,margin:`${Q(o)} ${Q(a)}`,padding:0,cursor:`pointer`,touchAction:`none`,userSelect:`none`,"&-vertical":{margin:`${Q(a)} ${Q(o)}`},[`${t}-rail`]:{position:`absolute`,backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:`absolute`,transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:`content-box`,backgroundClip:`content-box`,border:`solid rgba(0,0,0,0)`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${Q(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:`absolute`,width:u,height:u,outline:`none`,userSelect:`none`,"&-dragging-delete":{opacity:0},"&::before":{content:`""`,position:`absolute`,insetInlineStart:l(m).mul(-1).equal(),insetBlockStart:l(m).mul(-1).equal(),width:l(u).add(l(m).mul(2)).equal(),height:l(u).add(l(m).mul(2)).equal(),backgroundColor:`transparent`},"&::after":{content:`""`,position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Q(m)} ${e.handleColor}`,outline:`0px solid transparent`,borderRadius:`50%`,cursor:`pointer`,transition:[`inset-inline-start`,`inset-block-start`,`width`,`height`,`box-shadow`,`outline`].map(e=>`${e} ${g}`).join(`, `)},"&:hover, &:active, &:focus":{[`&:not(${t}-handle-disabled)::before`]:{insetInlineStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),insetBlockStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),width:l(d).add(l(h).mul(2)).equal(),height:l(d).add(l(h).mul(2)).equal()},[`&:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${Q(h)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:`none`}},[`${t}-mark`]:{position:`absolute`,fontSize:e.fontSize},[`${t}-mark-text`]:{position:`absolute`,display:`inline-block`,color:e.colorTextDescription,textAlign:`center`,wordBreak:`keep-all`,cursor:`pointer`,userSelect:`none`,"&-active":{color:e.colorText}},[`${t}-step`]:{position:`absolute`,background:`transparent`,pointerEvents:`none`},[`${t}-dot`]:{position:`absolute`,width:i,height:i,backgroundColor:e.colorBgElevated,border:`${Q(m)} solid ${e.dotBorderColor}`,borderRadius:`50%`,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,pointerEvents:`auto`,"&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:I({},y),[` + `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:`none`,cursor:`not-allowed`},[`${t}-handle::after`]:G({},_),[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`${t}-handle-disabled::after`]:I({},y),[`&-tooltip ${n}-tooltip-container`]:{minWidth:"unset"}})}},$le=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",A=s(r).mul(3).sub(i).div(2).equal(),h=s(i).sub(r).div(2).equal(),p=t?{borderWidth:`${be(h)} 0`,transform:`translateY(${be(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${be(h)}`,transform:`translateX(${be(e.calc(h).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:I({},p),[`${n}-handle`]:{[f]:A},[`${n}-mark`]:{insetInlineStart:0,top:0,[d]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},yje=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:te(I({},$le(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},bje=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:te(I({},$le(e,!1)),{height:"100%"})}},xje=Br("Slider",e=>{const t=dr(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[vje(t),yje(t),bje(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new Rr(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new Rr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function p7(){const[e,t]=g.useState(!1),n=g.useRef(null),r=()=>{Kn.cancel(n.current)},i=o=>{r(),o?t(o):n.current=Kn(()=>{t(o)})};return g.useEffect(()=>r,[]),[e,i]}function wje(e){return e||e===null?e:t=>mo(t)?t.toString():""}const g7=Be.forwardRef((e,t)=>{const Oe=e,{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltip:l={},onChangeComplete:c,classNames:u,styles:f,vertical:d,orientation:A}=Oe,h=Ze(Oe,["prefixCls","range","className","rootClassName","style","disabled","tooltip","onChangeComplete","classNames","styles","vertical","orientation"]),[,p]=aE(A,d),{getPrefixCls:v,direction:y,className:b,style:x,classNames:C,styles:S,getPopupContainer:B}=or("slider"),E=Be.useContext(qa),_=s!=null?s:E,M=te(I({},e),{disabled:_,vertical:p}),R=Ar(x),T=Ar(a),[L,P]=vr([C,u],[S,R,f,T],{props:M}),{handleRender:k,direction:H}=Be.useContext(mje),U=(H||y)==="rtl",[j,Q]=p7(),[K,z]=p7(),V=I({},l),{open:Y,placement:Z,getPopupContainer:W,prefixCls:J,formatter:ee}=V,ne=Y,re=(j||K)&&ne!==!1,ue=wje(ee),[de,se]=p7(),ce=xe=>{c==null||c(xe),se(!1)},ge=(xe,Me)=>xe||(Me?U?"left":"right":"top"),ie=v("slider",n),[le,ve]=xje(ie),we=Ae(i,b,L.root,o,{[`${ie}-rtl`]:U,[`${ie}-lock`]:de},le,ve);U&&!p&&(h.reverse=!h.reverse),Be.useEffect(()=>{const xe=()=>{Kn(()=>{z(!1)},1)};return document.addEventListener("mouseup",xe),()=>{document.removeEventListener("mouseup",xe)}},[]);const me=r&&!ne,Ee=k||((xe,Me)=>{const{index:Se}=Me,Pe=xe.props;function Le(Ue,et,We){var Je,dt;We&&((Je=h[Ue])==null||Je.call(h,et)),(dt=Pe[Ue])==null||dt.call(Pe,et)}const He=te(I({},Pe),{onMouseEnter:Ue=>{Q(!0),Le("onMouseEnter",Ue)},onMouseLeave:Ue=>{Q(!1),Le("onMouseLeave",Ue)},onMouseDown:Ue=>{z(!0),se(!0),Le("onMouseDown",Ue)},onFocus:Ue=>{var et;z(!0),(et=h.onFocus)==null||et.call(h,Ue),Le("onFocus",Ue,!0)},onBlur:Ue=>{var et;z(!1),(et=h.onBlur)==null||et.call(h,Ue),Le("onBlur",Ue,!0)}}),Ne=Be.cloneElement(xe,He),at=(!!ne||re)&&ue!==null;return me?Ne:Be.createElement(Ole,te(I({},V),{prefixCls:v("tooltip",J),title:ue?ue(Me.value):void 0,value:Me.value,open:at,placement:ge(Z,p),key:Se,classNames:{root:`${ie}-tooltip`},getPopupContainer:W||B}),Ne)}),Ce=me?(xe,Me)=>{const Se=Be.cloneElement(xe,{style:te(I({},xe.props.style),{visibility:"hidden"})});return Be.createElement(Ole,te(I({},V),{prefixCls:v("tooltip",J),title:ue?ue(Me.value):void 0,open:ue!==null&&re,placement:ge(Z,p),key:"tooltip",classNames:{root:`${ie}-tooltip`},getPopupContainer:W||B,draggingDelete:Me.draggingDelete}),Se)}:void 0,pe=I({},P.root);return Be.createElement(gje,te(I({},h),{classNames:L,styles:P,step:h.step,range:r,className:we,style:pe,disabled:_,vertical:p,ref:t,prefixCls:ie,handleRender:Ee,activeHandleRender:Ce,onChangeComplete:ce}))});var W4={},_le;function Cje(){if(_le)return W4;_le=1,Object.defineProperty(W4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};return W4.default=e,W4}var Sje=Cje();const Eje=_t(Sje);function m7(){return m7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,m7({},e,{ref:t,icon:Eje})),Oje=g.forwardRef(Bje),v7=(e,t,n,r,i,o)=>{const{classNames:a,styles:s}=or(e),[l,c]=vr([a,t],[s,n],{props:o},{popup:{_default:"root"}});return g.useMemo(()=>{var d,A;const u=te(I({},l),{popup:te(I({},l.popup),{root:Ae((d=l.popup)==null?void 0:d.root,r)})}),f=te(I({},c),{popup:te(I({},c.popup),{root:I(I({},(A=c.popup)==null?void 0:A.root),i)})});return[u,f]},[l,c,r,i])},$je=(e,t,n)=>oa(n)?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,_je=(e,t,n)=>oa(n)?n:t==="year"&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,Tje=(e,t)=>{const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=hoe(te(I({},e),{componentName:"DatePicker"}));return[g.useMemo(()=>n===!1?!1:I({clearIcon:r},n===!0?{}:n),[n,r]),i]},[Mje,Ije]=["week","WeekPicker"],[Rje,Nje]=["month","MonthPicker"],[Pje,Lje]=["year","YearPicker"],[Fje,kje]=["quarter","QuarterPicker"],[y7,b7]=["time","TimePicker"],Dje=e=>g.createElement(qn,I({size:"small",type:"primary"},e));function Tle(e){return g.useMemo(()=>I({button:Dje},e),[e])}var G4={},Mle;function Hje(){if(Mle)return G4;Mle=1,Object.defineProperty(G4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};return G4.default=e,G4}var Uje=Hje();const jje=_t(Uje);function x7(){return x7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,x7({},e,{ref:t,icon:jje})),Qje=g.forwardRef(zje);var q4={},Ile;function Vje(){if(Ile)return q4;Ile=1,Object.defineProperty(q4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};return q4.default=e,q4}var Kje=Vje();const Wje=_t(Kje);function w7(){return w7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,w7({},e,{ref:t,icon:Wje})),qje=g.forwardRef(Gje),Rle=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?Be.createElement(Be.Fragment,null,e===y7?Be.createElement(qje,{"aria-hidden":"true"}):Be.createElement(Qje,{"aria-hidden":"true"}),t&&n):r,Yje=e=>g.forwardRef((n,r)=>{var Le,He;const Pe=n,{prefixCls:i,getPopupContainer:o,components:a,className:s,style:l,classNames:c,styles:u,placement:f,size:d,disabled:A,bordered:h=!0,placeholder:p,status:v,variant:y,picker:b,dropdownClassName:x,popupClassName:C,popupStyle:S,rootClassName:B,suffixIcon:E,separator:_,allowClear:M,clearIcon:R}=Pe,T=Ze(Pe,["prefixCls","getPopupContainer","components","className","style","classNames","styles","placement","size","disabled","bordered","placeholder","status","variant","picker","dropdownClassName","popupClassName","popupStyle","rootClassName","suffixIcon","separator","allowClear","clearIcon"]),L=b===y7?"timePicker":"datePicker",{suffixIcon:P,clearIcon:k,allowClear:H}=or(L),[D,U]=v7(L,c,u,C||x,S),j=g.useRef(null),{getPrefixCls:Q,direction:K,getPopupContainer:z,rangePicker:V}=g.useContext(Un),Y=Q("picker",i),{compactSize:Z,compactItemClassnames:W}=hA(Y,K),J=Q(),ee=_!=null?_:V==null?void 0:V.separator,[ne,re]=ep("rangePicker",y,h),ue=So(Y),[de,se]=Sse(Y,ue),ce=Ae(de,se,ue,B),ge=EM({componentName:"RangePicker",allowClear:M,clearIcon:R,contextAllowClear:H,contextClearIcon:k,defaultAllowClear:!0}),ie=Tle(a),le=aa(Ne=>{var at;return(at=d!=null?d:Z)!=null?at:Ne}),ve=g.useContext(qa),we=A!=null?A:ve,me=g.useContext(Ya),{hasFeedback:Ee,status:Ce,feedbackIcon:pe}=me,Oe=Rle({picker:b,hasFeedback:Ee,feedbackIcon:pe,suffixIcon:E===void 0?P:E});g.useImperativeHandle(r,()=>j.current);const[xe]=zs("Calendar",NT),Me=Mg(xe,n.locale||{}),[Se]=jg("DatePicker",(He=(Le=U==null?void 0:U.popup)==null?void 0:Le.root)==null?void 0:He.zIndex);return g.createElement(Zh,{space:!0},g.createElement(hUe,te(I({separator:g.createElement("span",{"aria-label":"to",className:`${Y}-separator`},ee!=null?ee:g.createElement(Oje,null)),disabled:we,ref:j,placement:f,placeholder:_je(Me,b,p),suffixIcon:Oe,prevIcon:g.createElement("span",{className:`${Y}-prev-icon`}),nextIcon:g.createElement("span",{className:`${Y}-next-icon`}),superPrevIcon:g.createElement("span",{className:`${Y}-super-prev-icon`}),superNextIcon:g.createElement("span",{className:`${Y}-super-next-icon`}),transitionName:`${J}-slide-up`,picker:b},T),{locale:Me.lang,getPopupContainer:o||z,generateConfig:e,components:ie,direction:K,prefixCls:Y,rootClassName:ce,className:Ae({[`${Y}-large`]:le==="large",[`${Y}-small`]:le==="small",[`${Y}-${ne}`]:re},Jh(Y,Vg(Ce,v),Ee),W,s,V==null?void 0:V.className),style:I(I({},V==null?void 0:V.style),l),classNames:D,styles:te(I({},U),{popup:te(I({},U.popup),{root:te(I({},U.popup.root),{zIndex:Se})})}),allowClear:ge})))}),Xje=e=>{const t=(l,c="DatePicker")=>{const u=c===b7?"timePicker":"datePicker";return g.forwardRef((d,A)=>{var Ot,sn;const Jt=d,{prefixCls:h,getPopupContainer:p,components:v,style:y,className:b,size:x,bordered:C,placement:S,placeholder:B,disabled:E,status:_,variant:M,onCalendarChange:R,classNames:T,styles:L,dropdownClassName:P,popupClassName:k,popupStyle:H,rootClassName:D,suffixIcon:U,allowClear:j,clearIcon:Q}=Jt,K=Ze(Jt,["prefixCls","getPopupContainer","components","style","className","size","bordered","placement","placeholder","disabled","status","variant","onCalendarChange","classNames","styles","dropdownClassName","popupClassName","popupStyle","rootClassName","suffixIcon","allowClear","clearIcon"]),{suffixIcon:z,clearIcon:V,allowClear:Y}=or(c===b7?"timePicker":"datePicker"),{getPrefixCls:Z,direction:W,getPopupContainer:J,[u]:ee}=g.useContext(Un),ne=Z("picker",h),{compactSize:re,compactItemClassnames:ue}=hA(ne,W),de=aa(Vt=>{var xt;return(xt=x!=null?x:re)!=null?xt:Vt}),se=g.useContext(qa),ce=E!=null?E:se,ge=te(I({},d),{size:de,disabled:ce,status:_,variant:M}),[ie,le]=v7(u,T,L,k||P,H,ge),ve=g.useRef(null),[we,me]=ep("datePicker",M,C),Ee=So(ne),[Ce,pe]=Sse(ne,Ee),Oe=Ae(Ce,pe,Ee,D);g.useImperativeHandle(A,()=>ve.current);const xe={showToday:!0},Me=l||d.picker,Se=Z(),{onSelect:Pe,multiple:Le}=K,He=Pe&&l==="time"&&!Le,Ne=(Vt,xt,qe)=>{R==null||R(Vt,xt,qe),He&&Pe(Vt)},[,at]=Tje(d),Ue=EM({componentName:c,allowClear:j,clearIcon:Q,contextAllowClear:Y,contextClearIcon:V,defaultAllowClear:!0}),et=Tle(v),We=g.useContext(Ya),{hasFeedback:Je,status:dt,feedbackIcon:wt}=We,Bt=Rle({picker:Me,hasFeedback:Je,feedbackIcon:wt,suffixIcon:U===void 0?z:U}),[qt]=zs("DatePicker",NT),jt=Mg(qt,d.locale||{}),[nn]=jg("DatePicker",(sn=(Ot=le==null?void 0:le.popup)==null?void 0:Ot.root)==null?void 0:sn.zIndex);return g.createElement(Zh,{space:!0},g.createElement(yUe,te(I(I({ref:ve,placeholder:$je(jt,Me,B),suffixIcon:Bt,placement:S,prevIcon:g.createElement("span",{className:`${ne}-prev-icon`}),nextIcon:g.createElement("span",{className:`${ne}-next-icon`}),superPrevIcon:g.createElement("span",{className:`${ne}-super-prev-icon`}),superNextIcon:g.createElement("span",{className:`${ne}-super-next-icon`}),transitionName:`${Se}-slide-up`,picker:l,onCalendarChange:Ne},xe),K),{locale:jt.lang,getPopupContainer:p||J,generateConfig:e,components:et,direction:W,disabled:ce,prefixCls:ne,rootClassName:Oe,className:Ae({[`${ne}-large`]:de==="large",[`${ne}-small`]:de==="small",[`${ne}-${we}`]:me},Jh(ne,Vg(dt,_),Je),ue,ee==null?void 0:ee.className,b),style:I(I({},ee==null?void 0:ee.style),y),classNames:ie,styles:te(I({},le),{popup:te(I({},le.popup),{root:te(I({},le.popup.root),{zIndex:nn})})}),allowClear:Ue,removeIcon:at})))})},n=t(),r=t(Mje,Ije),i=t(Rje,Nje),o=t(Pje,Lje),a=t(Fje,kje),s=t(y7,b7);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:s,QuarterPicker:a}},Nle=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:a}=Xje(e),s=Yje(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l},ip=Nle(OHe),Zje=CE(ip,"popupAlign",void 0,"picker");ip._InternalPanelDoNotUseOrYouWillBeFired=Zje;const Jje=CE(ip.RangePicker,"popupAlign",void 0,"picker");ip._InternalRangePanelDoNotUseOrYouWillBeFired=Jje,ip.generatePicker=Nle;const eze={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},C7=Be.createContext(null),tze=e=>pa(e).map(t=>te(I({},t==null?void 0:t.props),{key:t.key}));function nze(e,t,n){const r=g.useMemo(()=>t||tze(n),[t,n]);return g.useMemo(()=>r.map(s=>{var l=s,{span:o}=l,a=Ze(l,["span"]);return o==="filled"?te(I({},a),{filled:!0}):te(I({},a),{span:mo(o)?o:TH(e,o)})}),[r,e])}function rze(e,t){let n=[],r=[],i=!1,o=0;return e.filter(a=>a).forEach(a=>{const u=a,{filled:s}=u,l=Ze(u,["filled"]);if(s){r.push(l),n.push(r),r=[],o=0;return}const c=t-o;o+=a.span||1,o>=t?(o>t?(i=!0,r.push(te(I({},l),{span:c}))):r.push(l),n.push(r),r=[],o=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(a=>{const s=a.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=g.useMemo(()=>rze(t,e),[t,e]);return n},oze=e=>e.children,S7=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:o,labelStyle:a,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:d,styles:A,classNames:h}=e,p=n,{classNames:v,styles:y}=Be.useContext(C7),[b,x]=vr([v,h],[y,A],{props:e}),C=I(I({},a),x.label),S=I(I({},s),x.content);if(l){let B;d==="label"&&(B=C),d==="content"&&(B=S);const E=B?I(I({},o),B):o;return Be.createElement(p,{colSpan:r,style:E,className:Ae(i,{[`${t}-item-${d}`]:d==="label"||d==="content",[b.label]:b.label&&d==="label",[b.content]:b.content&&d==="content"})},qi(c)&&Be.createElement("span",null,c),qi(u)&&Be.createElement("span",null,u))}return Be.createElement(p,{className:Ae(`${t}-item`,i),style:o,colSpan:r},Be.createElement("div",{className:`${t}-item-container`},qi(c)&&Be.createElement("span",{style:C,className:Ae(`${t}-item-label`,b.label,{[`${t}-item-no-colon`]:!f})},c),qi(u)&&Be.createElement("span",{style:S,className:Ae(`${t}-item-content`,b.content)},u)))};function E7(e,{colon:t,prefixCls:n,bordered:r},{component:i,type:o,showLabel:a,showContent:s,labelStyle:l,contentStyle:c,styles:u}){return e.map(({label:f,children:d,prefixCls:A=n,className:h,style:p,labelStyle:v,contentStyle:y,span:b=1,key:x,styles:C,classNames:S},B)=>{if(typeof i=="string")return g.createElement(S7,{key:`${o}-${x||B}`,className:h,style:p,classNames:S,styles:{label:I(I(I(I({},l),u==null?void 0:u.label),v),C==null?void 0:C.label),content:I(I(I(I({},c),u==null?void 0:u.content),y),C==null?void 0:C.content)},span:b,colon:t,component:i,itemPrefixCls:A,bordered:r,label:a?f:null,content:s?d:null,type:o});const E={label:I(I(I(I({},l),u==null?void 0:u.label),v),C==null?void 0:C.label),content:I(I(I(I({},c),u==null?void 0:u.content),y),C==null?void 0:C.content)};return[g.createElement(S7,{key:`label-${x||B}`,className:h,style:p,classNames:S,styles:E,span:1,colon:t,component:i[0],itemPrefixCls:A,bordered:r,label:f,type:"label"}),g.createElement(S7,{key:`content-${x||B}`,className:h,style:p,classNames:S,styles:E,span:b*2-1,component:i[1],itemPrefixCls:A,bordered:r,content:d,type:"content"})]})}const aze=e=>{const t=g.useContext(C7),{prefixCls:n,vertical:r,row:i,index:o,bordered:a}=e;return r?g.createElement(g.Fragment,null,g.createElement("tr",{key:`label-${o}`,className:`${n}-row`},E7(i,e,I({component:"th",type:"label",showLabel:!0},t))),g.createElement("tr",{key:`content-${o}`,className:`${n}-row`},E7(i,e,I({component:"td",type:"content",showContent:!0},t)))):g.createElement("tr",{key:o,className:`${n}-row`},E7(i,e,I({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},sze=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${be(e.padding)} ${be(e.paddingLG)}`,borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-medium`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${be(e.paddingSM)} ${be(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${be(e.paddingXS)} ${be(e.padding)}`}}}}}},lze=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:o,colonMarginLeft:a,titleMarginBottom:s}=e;return{[t]:te(I(I({},zr(e)),sze(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:te(I({},Wa),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:0,minWidth:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${be(a)} ${be(o)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-medium":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},cze=Br("Descriptions",e=>{const t=dr(e,{});return lze(t)},e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText})),Yb=e=>{const Y=e,{prefixCls:t,title:n,extra:r,column:i,colon:o=!0,bordered:a,layout:s,children:l,className:c,rootClassName:u,style:f,size:d,labelStyle:A,contentStyle:h,styles:p,items:v,classNames:y}=Y,b=Ze(Y,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:x,direction:C,className:S,style:B,classNames:E,styles:_}=or("descriptions"),M=x("descriptions",t),R=KM(),T=g.useMemo(()=>{var Z,W;return mo(i)?i:(W=(Z=TH(R,i))!=null?Z:TH(R,eze))!=null?W:3},[R,i]),L=nze(R,v,l),P=aa(d),k=ize(T,L),[H,D]=cze(M),U=te(I({},e),{column:T,items:L,size:P}),j=Ar(B),Q=Ar(f),[K,z]=vr([E,y],[_,j,p,Q],{props:U}),V=g.useMemo(()=>({labelStyle:A,contentStyle:h,styles:{label:z.label,content:z.content},classNames:{label:K.label,content:K.content}}),[A,h,z.label,z.content,K.label,K.content]);return g.createElement(C7.Provider,{value:V},g.createElement("div",I({className:Ae(M,S,K.root,{[`${M}-medium`]:P==="medium"||P==="middle",[`${M}-small`]:P==="small",[`${M}-bordered`]:!!a,[`${M}-rtl`]:C==="rtl"},c,u,H,D),style:z.root},b),(n||r)&&g.createElement("div",{className:Ae(`${M}-header`,K.header),style:z.header},n&&g.createElement("div",{className:Ae(`${M}-title`,K.title),style:z.title},n),r&&g.createElement("div",{className:Ae(`${M}-extra`,K.extra),style:z.extra},r)),g.createElement("div",{className:`${M}-view`},g.createElement("table",null,g.createElement("tbody",null,k.map((Z,W)=>g.createElement(aze,{key:W,index:W,colon:o,prefixCls:M,vertical:s==="vertical",bordered:a,row:Z})))))))};Yb.Item=oze;function Ple(e){return["small","middle","medium","large"].includes(e)}function Lle(e){return e?mo(e):!1}const Fle=Be.createContext({latestIndex:0}),uze=Fle.Provider,fze=e=>{const{className:t,prefix:n,index:r,children:i,separator:o,style:a,classNames:s,styles:l}=e,{latestIndex:c}=g.useContext(Fle);return qi(i)?g.createElement(g.Fragment,null,g.createElement("div",{className:t,style:a},i),r{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Aze=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},hze=Br("Space",e=>{const t=dr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[dze(t),Aze(t)]},()=>({}),{resetStyle:!1}),Yi=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:i,className:o,style:a,classNames:s,styles:l}=or("space"),de=e,{size:c=i!=null?i:"small",align:u,className:f,rootClassName:d,children:A,direction:h,orientation:p,prefixCls:v,split:y,separator:b,style:x,vertical:C,wrap:S=!1,classNames:B,styles:E}=de,_=Ze(de,["size","align","className","rootClassName","children","direction","orientation","prefixCls","split","separator","style","vertical","wrap","classNames","styles"]),[M,R]=Array.isArray(c)?c:[c,c],T=Ple(R),L=Ple(M),P=Lle(R),k=Lle(M),H=pa(A,{keepEmpty:!0}),[D,U]=aE(p,C,h),j=u===void 0&&!U?"center":u,Q=b!=null?b:y,K=n("space",v),[z,V]=hze(K),Y=te(I({},e),{size:c,orientation:D,align:j}),[Z,W]=vr([s,B],[l,E],{props:Y}),J=Ae(K,o,z,`${K}-${D}`,{[`${K}-rtl`]:r==="rtl",[`${K}-align-${j}`]:j,[`${K}-gap-row-${R}`]:T,[`${K}-gap-col-${M}`]:L},f,d,V,Z.root),ee=Ae(`${K}-item`,Z.item),ne=H.map((se,ce)=>{const ge=(se==null?void 0:se.key)||`${ee}-${ce}`;return g.createElement(fze,{prefix:K,classNames:Z,styles:W,className:ee,key:ge,index:ce,separator:Q,style:W.item},se)}),re=g.useMemo(()=>({latestIndex:H.reduce((ce,ge,ie)=>qi(ge)?ie:ce,0)}),[H]);if(H.length===0)return null;const ue={};return S&&(ue.flexWrap="wrap"),!L&&k&&(ue.columnGap=M),!T&&P&&(ue.rowGap=R),g.createElement("div",I({ref:t,className:J,style:I(I(I(I({},ue),W.root),a),x)},_),g.createElement(uze,{value:re},ne))});Yi.Compact=x8,Yi.Addon=ple;const kle=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=g.useContext(Un),ue=e,{prefixCls:i,type:o="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:d,menu:A,arrow:h,autoFocus:p,trigger:v,align:y,open:b,onOpenChange:x,placement:C,getPopupContainer:S,href:B,icon:E=g.createElement(s4,null),title:_,buttonsRender:M=de=>de,mouseEnterDelay:R,mouseLeaveDelay:T,overlayClassName:L,overlayStyle:P,destroyOnHidden:k,destroyPopupOnHide:H,dropdownRender:D,popupRender:U}=ue,j=Ze(ue,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),Q=n("dropdown",i),K=`${Q}-button`,V={menu:A,arrow:h,autoFocus:p,align:y,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:S||t,mouseEnterDelay:R,mouseLeaveDelay:T,classNames:{root:L},styles:{root:P},destroyOnHidden:k,popupRender:U||D},{compactSize:Y,compactItemClassnames:Z}=hA(Q,r),W=Ae(K,Z,d);"destroyPopupOnHide"in e&&(V.destroyPopupOnHide=H),"open"in e&&(V.open=b),"placement"in e?V.placement=C:V.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=g.createElement(qn,{type:o,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:B,title:_},f),ee=g.createElement(qn,{type:o,danger:a,icon:E}),[ne,re]=M([J,ee]);return g.createElement(Yi.Compact,I({className:W,size:Y,block:!0},j),ne,g.createElement(PE,I({},V),re))};kle.__ANT_BUTTON=!0;const Y4=PE;Y4.Button=kle;const pze=(e,t)=>qi(e)?Zn(e)&&!g.isValidElement(e)?I(I({},t),e):te(I({},t),{title:e}):null;function X4(e){const[t,n]=g.useState(e);return g.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const gze=e=>{const{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,o=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(a=>`${a} ${n} ${r}`).join(", ")} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},mze=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${be(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Dle=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},vze=e=>{const{componentCls:t}=e;return{[t]:te(I(I({},zr(e)),mze(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":I({},Dle(e,e.controlHeightSM)),"&-large":I({},Dle(e,e.controlHeightLG))})}},yze=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:o,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e,[d]=go(i,"grid");return{[t]:te(I({},zr(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${i}-row`]:{display:"none"},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[d("display")]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:$8,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},kv=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),bze=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label, - ${t}-col-xl-24${n}-label`]:kv(e)}}},xze=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},wze=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:kv(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Cze=e=>{const{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:"100%"},[`${n}-label, + `]:{cursor:`not-allowed !important`}},[`${t}-handle-disabled::after`]:G({},_),[`&-tooltip ${n}-tooltip-container`]:{minWidth:`unset`}})}},the=(e,t)=>{let{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,c=t?`paddingBlock`:`paddingInline`,l=t?`width`:`height`,u=t?`height`:`width`,d=t?`insetBlockStart`:`insetInlineStart`,f=t?`top`:`insetInlineStart`,p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),h=t?{borderWidth:`${Q(m)} 0`,transform:`translateY(${Q(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Q(m)}`,transform:`translateX(${Q(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[l]:`100%`,[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:G({},h),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:o).equal(),[l]:`100%`},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[l]:`100%`,[u]:r},[`${n}-dot`]:{position:`absolute`,[d]:s(r).sub(a).div(2).equal()}}},nhe=e=>{let{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:G(G({},the(e,!0)),{},{[`&${t}-with-marks`]:{marginBottom:n}})}},rhe=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:G(G({},the(e,!1)),{},{height:`100%`})}},ihe=dd(`Slider`,e=>{let t=bl(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[ehe(t),nhe(t),rhe(t)]},e=>{let t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,o=new Hl(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:o,handleColorDisabled:new Hl(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function oE(){let[e,t]=J.useState(!1),n=J.useRef(null),r=()=>{Fa.cancel(n.current)};return J.useEffect(()=>r,[]),[e,e=>{r(),e?t(e):n.current=Fa(()=>{t(e)})}]}K();var ahe=[`prefixCls`,`range`,`className`,`rootClassName`,`style`,`disabled`,`tooltip`,`onChangeComplete`,`classNames`,`styles`,`vertical`,`orientation`];function ohe(e){return e||e===null?e:e=>sp(e)?e.toString():``}var sE=J.forwardRef((e,t)=>{let{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltip:c={},onChangeComplete:l,classNames:u,styles:d,vertical:f,orientation:p}=e,m=q(e,ahe),[,h]=Hm(p,f),{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:x,getPopupContainer:S}=ko(`slider`),C=J.useContext(gm),w=s==null?C:s,T=G(G({},e),{},{disabled:w,vertical:h}),E=yp(y),D=yp(o),[O,k]=xp([b,u],[x,E,d,D],{props:T}),{handleRender:A,direction:j}=J.useContext(Qme),M=(j||_)===`rtl`,[N,P]=oE(),[F,I]=oE(),L=G({},c),{open:R,placement:z,getPopupContainer:B,prefixCls:V,formatter:H}=L,U=R,ee=(N||F)&&U!==!1,te=ohe(H),[ne,re]=oE(),ie=e=>{l==null||l(e),re(!1)},ae=(e,t)=>e||(t?M?`left`:`right`:`top`),oe=g(`slider`,n),[se,ce]=ihe(oe),le=Z(i,v,O.root,a,{[`${oe}-rtl`]:M,[`${oe}-lock`]:ne},se,ce);M&&!h&&(m.reverse=!m.reverse),J.useEffect(()=>{let e=()=>{Fa(()=>{I(!1)},1)};return document.addEventListener(`mouseup`,e),()=>{document.removeEventListener(`mouseup`,e)}},[]);let ue=r&&!U,de=A||((e,t)=>{let{index:n}=t,r=e.props;function i(e,t,n){var i;if(n){var a;(a=m[e])==null||a.call(m,t)}(i=r[e])==null||i.call(r,t)}let a=G(G({},r),{},{onMouseEnter:e=>{P(!0),i(`onMouseEnter`,e)},onMouseLeave:e=>{P(!1),i(`onMouseLeave`,e)},onMouseDown:e=>{I(!0),re(!0),i(`onMouseDown`,e)},onFocus:e=>{var t;I(!0),(t=m.onFocus)==null||t.call(m,e),i(`onFocus`,e,!0)},onBlur:e=>{var t;I(!1),(t=m.onBlur)==null||t.call(m,e),i(`onBlur`,e,!0)}}),o=J.cloneElement(e,a),s=(!!U||ee)&&te!==null;return ue?o:J.createElement($me,G(G({},L),{},{prefixCls:g(`tooltip`,V),title:te?te(t.value):void 0,value:t.value,open:s,placement:ae(z,h),key:n,classNames:{root:`${oe}-tooltip`},getPopupContainer:B||S}),o)}),fe=ue?(e,t)=>{let n=J.cloneElement(e,{style:G(G({},e.props.style),{},{visibility:`hidden`})});return J.createElement($me,G(G({},L),{},{prefixCls:g(`tooltip`,V),title:te?te(t.value):void 0,open:te!==null&&ee,placement:ae(z,h),key:`tooltip`,classNames:{root:`${oe}-tooltip`},getPopupContainer:B||S,draggingDelete:t.draggingDelete}),n)}:void 0,pe=G({},k.root);return J.createElement(Zme,G(G({},m),{},{classNames:O,styles:k,step:m.step,range:r,className:le,style:pe,disabled:w,vertical:h,ref:t,prefixCls:oe,handleRender:de,activeHandleRender:fe,onChangeComplete:ie}))}),she=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`}}))());function cE(){return cE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,cE({},e,{ref:t,icon:she.default})));K();var lE=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=ko(e),[c,l]=xp([o,t],[s,n],{props:a},{popup:{_default:`root`}});return J.useMemo(()=>{var e,t;return[G(G({},c),{},{popup:G(G({},c.popup),{},{root:Z((e=c.popup)==null?void 0:e.root,r)})}),G(G({},l),{},{popup:G(G({},l.popup),{},{root:G(G({},(t=l.popup)==null?void 0:t.root),i)})})]},[c,l,r,i])};K();var lhe=(e,t,n)=>ap(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,uhe=(e,t,n)=>ap(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,dhe=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Py(G(G({},e),{},{prefixCls:t,componentName:`DatePicker`}));return[J.useMemo(()=>n!==!1&&G({clearIcon:r},n===!0?{}:n),[n,r]),i]},[fhe,phe]=[`week`,`WeekPicker`],[mhe,hhe]=[`month`,`MonthPicker`],[ghe,_he]=[`year`,`YearPicker`],[vhe,yhe]=[`quarter`,`QuarterPicker`],[uE,dE]=[`time`,`TimePicker`];K();var bhe=e=>J.createElement(pg,G({size:`small`,type:`primary`},e));K();function xhe(e){return(0,J.useMemo)(()=>G({button:bhe},e),[e])}var She=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`}}))());function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,fE({},e,{ref:t,icon:She.default}))),whe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z`}}]},name:`clock-circle`,theme:`outlined`}}))());function pE(){return pE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,pE({},e,{ref:t,icon:whe.default}))),Ehe=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?J.createElement(J.Fragment,null,e===uE?J.createElement(The,{"aria-hidden":`true`}):J.createElement(Che,{"aria-hidden":`true`}),t&&n):r;K();var Dhe=[`prefixCls`,`getPopupContainer`,`components`,`className`,`style`,`classNames`,`styles`,`placement`,`size`,`disabled`,`bordered`,`placeholder`,`status`,`variant`,`picker`,`dropdownClassName`,`popupClassName`,`popupStyle`,`rootClassName`,`suffixIcon`,`separator`,`allowClear`,`clearIcon`],Ohe=e=>(0,J.forwardRef)((t,n)=>{var r;let{prefixCls:i,getPopupContainer:a,components:o,className:s,style:c,classNames:l,styles:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:h,status:g,variant:_,picker:v,dropdownClassName:y,popupClassName:b,popupStyle:x,rootClassName:S,suffixIcon:C,separator:w,allowClear:T,clearIcon:E}=t,D=q(t,Dhe),O=v===uE?`timePicker`:`datePicker`,{suffixIcon:k,clearIcon:A,allowClear:j}=ko(O),[M,N]=lE(O,l,u,b||y,x),P=J.useRef(null),{getPrefixCls:F,direction:I,getPopupContainer:L,rangePicker:R}=(0,J.useContext)(Eo),z=F(`picker`,i),{compactSize:B,compactItemClassnames:V}=bh(z,I),H=F(),U=w==null?R==null?void 0:R.separator:w,[ee,te]=Sy(`rangePicker`,_,m),ne=Fp(z),[re,ie]=bw(z,ne),ae=Z(re,ie,ne,S),oe=Lm({componentName:`RangePicker`,allowClear:T,clearIcon:E,contextAllowClear:j,contextClearIcon:A,defaultAllowClear:!0}),se=xhe(o),ce=vh(e=>{var t;return(t=f==null?B:f)==null?e:t}),le=J.useContext(gm),ue=p==null?le:p,{hasFeedback:de,status:fe,feedbackIcon:pe}=(0,J.useContext)(b_),me=Ehe({picker:v,hasFeedback:de,feedbackIcon:pe,suffixIcon:C===void 0?k:C});(0,J.useImperativeHandle)(n,()=>P.current);let[he]=Hp(`Calendar`,Vn),W=Ga(he,t.locale||{}),[ge]=Km(`DatePicker`,N==null||(r=N.popup)==null||(r=r.root)==null?void 0:r.zIndex);return J.createElement(x_,{space:!0},J.createElement(Vue,G(G({separator:J.createElement(`span`,{"aria-label":`to`,className:`${z}-separator`},U==null?J.createElement(che,null):U),disabled:ue,ref:P,placement:d,placeholder:uhe(W,v,h),suffixIcon:me,prevIcon:J.createElement(`span`,{className:`${z}-prev-icon`}),nextIcon:J.createElement(`span`,{className:`${z}-next-icon`}),superPrevIcon:J.createElement(`span`,{className:`${z}-super-prev-icon`}),superNextIcon:J.createElement(`span`,{className:`${z}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:v},D),{},{locale:W.lang,getPopupContainer:a||L,generateConfig:e,components:se,direction:I,prefixCls:z,rootClassName:ae,className:Z({[`${z}-large`]:ce===`large`,[`${z}-small`]:ce===`small`,[`${z}-${ee}`]:te},hy(z,gy(fe,g),de),V,s,R==null?void 0:R.className),style:G(G({},R==null?void 0:R.style),c),classNames:M,styles:G(G({},N),{},{popup:G(G({},N.popup),{},{root:G(G({},N.popup.root),{},{zIndex:ge})})}),allowClear:oe})))});K();var khe=[`prefixCls`,`getPopupContainer`,`components`,`style`,`className`,`size`,`bordered`,`placement`,`placeholder`,`disabled`,`status`,`variant`,`onCalendarChange`,`classNames`,`styles`,`dropdownClassName`,`popupClassName`,`popupStyle`,`rootClassName`,`suffixIcon`,`allowClear`,`clearIcon`],Ahe=e=>{let t=(t,n=`DatePicker`)=>{let r=n===dE?`timePicker`:`datePicker`;return(0,J.forwardRef)((i,a)=>{var o;let{prefixCls:s,getPopupContainer:c,components:l,style:u,className:d,size:f,bordered:p,placement:m,placeholder:h,disabled:g,status:_,variant:v,onCalendarChange:y,classNames:b,styles:x,dropdownClassName:S,popupClassName:C,popupStyle:w,rootClassName:T,suffixIcon:E,allowClear:D,clearIcon:O}=i,k=q(i,khe),{suffixIcon:A,clearIcon:j,allowClear:M}=ko(n===dE?`timePicker`:`datePicker`),{getPrefixCls:N,direction:P,getPopupContainer:F,[r]:I}=(0,J.useContext)(Eo),L=N(`picker`,s),{compactSize:R,compactItemClassnames:z}=bh(L,P),B=vh(e=>{var t;return(t=f==null?R:f)==null?e:t}),V=J.useContext(gm),H=g==null?V:g,U=G(G({},i),{},{size:B,disabled:H,status:_,variant:v}),[ee,te]=lE(r,b,x,C||S,w,U),ne=J.useRef(null),[re,ie]=Sy(`datePicker`,v,p),ae=Fp(L),[oe,se]=bw(L,ae),ce=Z(oe,se,ae,T);(0,J.useImperativeHandle)(a,()=>ne.current);let le={showToday:!0},ue=t||i.picker,de=N(),{onSelect:fe,multiple:pe}=k,me=fe&&t===`time`&&!pe,he=(e,t,n)=>{y==null||y(e,t,n),me&&fe(e)},[,W]=dhe(i,L),ge=Lm({componentName:n,allowClear:D,clearIcon:O,contextAllowClear:M,contextClearIcon:j,defaultAllowClear:!0}),_e=xhe(l),{hasFeedback:K,status:ve,feedbackIcon:ye}=(0,J.useContext)(b_),be=Ehe({picker:ue,hasFeedback:K,feedbackIcon:ye,suffixIcon:E===void 0?A:E}),[xe]=Hp(`DatePicker`,Vn),Se=Ga(xe,i.locale||{}),[Ce]=Km(`DatePicker`,te==null||(o=te.popup)==null||(o=o.root)==null?void 0:o.zIndex);return J.createElement(x_,{space:!0},J.createElement(que,G(G(G({ref:ne,placeholder:lhe(Se,ue,h),suffixIcon:be,placement:m,prevIcon:J.createElement(`span`,{className:`${L}-prev-icon`}),nextIcon:J.createElement(`span`,{className:`${L}-next-icon`}),superPrevIcon:J.createElement(`span`,{className:`${L}-super-prev-icon`}),superNextIcon:J.createElement(`span`,{className:`${L}-super-next-icon`}),transitionName:`${de}-slide-up`,picker:t,onCalendarChange:he},le),k),{},{locale:Se.lang,getPopupContainer:c||F,generateConfig:e,components:_e,direction:P,disabled:H,prefixCls:L,rootClassName:ce,className:Z({[`${L}-large`]:B===`large`,[`${L}-small`]:B===`small`,[`${L}-${re}`]:ie},hy(L,gy(ve,_),K),z,I==null?void 0:I.className,d),style:G(G({},I==null?void 0:I.style),u),classNames:ee,styles:G(G({},te),{},{popup:G(G({},te.popup),{},{root:G(G({},te.popup.root),{},{zIndex:Ce})})}),allowClear:ge,removeIcon:W})))})},n=t(),r=t(fhe,phe),i=t(mhe,hhe),a=t(ghe,_he),o=t(vhe,yhe);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(uE,dE),QuarterPicker:o}},jhe=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=Ahe(e),s=Ohe(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},mE=jhe(Yle);mE._InternalPanelDoNotUseOrYouWillBeFired=Z_(mE,`popupAlign`,void 0,`picker`),mE._InternalRangePanelDoNotUseOrYouWillBeFired=Z_(mE.RangePicker,`popupAlign`,void 0,`picker`),mE.generatePicker=jhe;var Mhe={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},hE=J.createContext(null);K();var Nhe=[`span`],Phe=e=>Ia(e).map(e=>G(G({},e==null?void 0:e.props),{},{key:e.key}));function Fhe(e,t,n){let r=J.useMemo(()=>t||Phe(n),[t,n]);return J.useMemo(()=>r.map(t=>{let{span:n}=t,r=q(t,Nhe);return n===`filled`?G(G({},r),{},{filled:!0}):G(G({},r),{},{span:sp(n)?n:zy(e,n)})}),[r,e])}K();var Ihe=[`filled`];function Lhe(e,t){let n=[],r=[],i=!1,a=0;return e.filter(e=>e).forEach(e=>{let{filled:o}=e,s=q(e,Ihe);if(o){r.push(s),n.push(r),r=[],a=0;return}let c=t-a;a+=e.span||1,a>=t?(a>t?(i=!0,r.push(G(G({},s),{},{span:c}))):r.push(s),n.push(r),r=[],a=0):r.push(s)}),r.length>0&&n.push(r),n=n.map(e=>{let n=e.reduce((e,t)=>e+(t.span||1),0);if(n{let[n,r]=(0,J.useMemo)(()=>Lhe(t,e),[t,e]);return n},zhe=e=>e.children;K();var gE=e=>{let{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:c,label:l,content:u,colon:d,type:f,styles:p,classNames:m}=e,h=n,{classNames:g,styles:_}=J.useContext(hE),[v,y]=xp([g,m],[_,p],{props:e}),b=G(G({},o),y.label),x=G(G({},s),y.content);if(c){let e;f===`label`&&(e=b),f===`content`&&(e=x);let n=e?G(G({},a),e):a;return J.createElement(h,{colSpan:r,style:n,className:Z(i,{[`${t}-item-${f}`]:f===`label`||f===`content`,[v.label]:v.label&&f===`label`,[v.content]:v.content&&f===`content`})},op(l)&&J.createElement(`span`,null,l),op(u)&&J.createElement(`span`,null,u))}return J.createElement(h,{className:Z(`${t}-item`,i),style:a,colSpan:r},J.createElement(`div`,{className:`${t}-item-container`},op(l)&&J.createElement(`span`,{style:b,className:Z(`${t}-item-label`,v.label,{[`${t}-item-no-colon`]:!d})},l),op(u)&&J.createElement(`span`,{style:x,className:Z(`${t}-item-content`,v.content)},u)))};K();function _E(e,{colon:t,prefixCls:n,bordered:r},{component:i,type:a,showLabel:o,showContent:s,labelStyle:c,contentStyle:l,styles:u}){return e.map(({label:e,children:d,prefixCls:f=n,className:p,style:m,labelStyle:h,contentStyle:g,span:_=1,key:v,styles:y,classNames:b},x)=>{if(typeof i==`string`)return J.createElement(gE,{key:`${a}-${v||x}`,className:p,style:m,classNames:b,styles:{label:G(G(G(G({},c),u==null?void 0:u.label),h),y==null?void 0:y.label),content:G(G(G(G({},l),u==null?void 0:u.content),g),y==null?void 0:y.content)},span:_,colon:t,component:i,itemPrefixCls:f,bordered:r,label:o?e:null,content:s?d:null,type:a});let S={label:G(G(G(G({},c),u==null?void 0:u.label),h),y==null?void 0:y.label),content:G(G(G(G({},l),u==null?void 0:u.content),g),y==null?void 0:y.content)};return[J.createElement(gE,{key:`label-${v||x}`,className:p,style:m,classNames:b,styles:S,span:1,colon:t,component:i[0],itemPrefixCls:f,bordered:r,label:e,type:`label`}),J.createElement(gE,{key:`content-${v||x}`,className:p,style:m,classNames:b,styles:S,span:_*2-1,component:i[1],itemPrefixCls:f,bordered:r,content:d,type:`content`})]})}var Bhe=e=>{let t=J.useContext(hE),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?J.createElement(J.Fragment,null,J.createElement(`tr`,{key:`label-${a}`,className:`${n}-row`},_E(i,e,G({component:`th`,type:`label`,showLabel:!0},t))),J.createElement(`tr`,{key:`content-${a}`,className:`${n}-row`},_E(i,e,G({component:`td`,type:`content`,showContent:!0},t)))):J.createElement(`tr`,{key:a,className:`${n}-row`},_E(i,e,G({component:o?[`th`,`td`]:`td`,type:`item`,showLabel:!0,showContent:!0},t)))};K();var Vhe=e=>{let{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:`auto`},[`${t}-row`]:{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:`none`,"> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Q(e.padding)} ${Q(e.paddingLG)}`,borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:`none`}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:`none`}}}},[`&${t}-medium`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Q(e.paddingSM)} ${Q(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Q(e.paddingXS)} ${Q(e.padding)}`}}}}}},Hhe=e=>{let{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:G(G(G({},td(e)),Vhe(e)),{},{"&-rtl":{direction:`rtl`},[`${t}-header`]:{display:`flex`,alignItems:`center`,marginBottom:s},[`${t}-title`]:G(G({},ed),{},{flex:`auto`,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:`auto`,color:n,fontSize:e.fontSize},[`${t}-view`]:{width:`100%`,borderRadius:e.borderRadiusLG,table:{minWidth:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:`none`,"> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`start`,"&::after":{content:`":"`,position:`relative`,top:-.5,marginInline:`${Q(o)} ${Q(a)}`},[`&${t}-item-no-colon::after`]:{content:`""`}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:`""`}},[`${t}-item-content`]:{display:`table-cell`,flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:`break-word`,overflowWrap:`break-word`},[`${t}-item`]:{paddingBottom:0,verticalAlign:`top`,"&-container":{display:`flex`,[`${t}-item-label`]:{display:`inline-flex`,alignItems:`baseline`},[`${t}-item-content`]:{display:`inline-flex`,alignItems:`baseline`,minWidth:`1em`}}},"&-medium":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Uhe=dd(`Descriptions`,e=>Hhe(bl(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}));K();var Whe=[`prefixCls`,`title`,`extra`,`column`,`colon`,`bordered`,`layout`,`children`,`className`,`rootClassName`,`style`,`size`,`labelStyle`,`contentStyle`,`styles`,`items`,`classNames`],vE=e=>{let{prefixCls:t,title:n,extra:r,column:i,colon:a=!0,bordered:o,layout:s,children:c,className:l,rootClassName:u,style:d,size:f,labelStyle:p,contentStyle:m,styles:h,items:g,classNames:_}=e,v=q(e,Whe),{getPrefixCls:y,direction:b,className:x,style:S,classNames:C,styles:w}=ko(`descriptions`),T=y(`descriptions`,t),E=By(),D=J.useMemo(()=>{var e,t;return sp(i)?i:(e=(t=zy(E,i))==null?zy(E,Mhe):t)==null?3:e},[E,i]),O=Fhe(E,g,c),k=vh(f),A=Rhe(D,O),[j,M]=Uhe(T),N=G(G({},e),{},{column:D,items:O,size:k}),P=yp(S),F=yp(d),[I,L]=xp([C,_],[w,P,h,F],{props:N}),R=J.useMemo(()=>({labelStyle:p,contentStyle:m,styles:{label:L.label,content:L.content},classNames:{label:I.label,content:I.content}}),[p,m,L.label,L.content,I.label,I.content]);return J.createElement(hE.Provider,{value:R},J.createElement(`div`,G({className:Z(T,x,I.root,{[`${T}-medium`]:k===`medium`||k===`middle`,[`${T}-small`]:k===`small`,[`${T}-bordered`]:!!o,[`${T}-rtl`]:b===`rtl`},l,u,j,M),style:L.root},v),(n||r)&&J.createElement(`div`,{className:Z(`${T}-header`,I.header),style:L.header},n&&J.createElement(`div`,{className:Z(`${T}-title`,I.title),style:L.title},n),r&&J.createElement(`div`,{className:Z(`${T}-extra`,I.extra),style:L.extra},r)),J.createElement(`div`,{className:`${T}-view`},J.createElement(`table`,null,J.createElement(`tbody`,null,A.map((e,t)=>J.createElement(Bhe,{key:t,index:t,colon:a,prefixCls:T,vertical:s===`vertical`,bordered:o,row:e})))))))};vE.Item=zhe;function Ghe(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function Khe(e){return e?sp(e):!1}var qhe=J.createContext({latestIndex:0}),Jhe=qhe.Provider,Yhe=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=J.useContext(qhe);return op(i)?J.createElement(J.Fragment,null,J.createElement(`div`,{className:t,style:o},i),r{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},Zhe=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Qhe=dd(`Space`,e=>{let t=bl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Xhe(t),Zhe(t)]},()=>({}),{resetStyle:!1});K();var $he=[`size`,`align`,`className`,`rootClassName`,`children`,`direction`,`orientation`,`prefixCls`,`split`,`separator`,`style`,`vertical`,`wrap`,`classNames`,`styles`],yE=J.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=ko(`space`),{size:l=i==null?`small`:i,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:v,style:y,vertical:b,wrap:x=!1,classNames:S,styles:C}=e,w=q(e,$he),[T,E]=Array.isArray(l)?l:[l,l],D=Ghe(E),O=Ghe(T),k=Khe(E),A=Khe(T),j=Ia(p,{keepEmpty:!0}),[M,N]=Hm(h,b,m),P=u===void 0&&!N?`center`:u,F=v==null?_:v,I=n(`space`,g),[L,R]=Qhe(I),z=G(G({},e),{},{size:l,orientation:M,align:P}),[B,V]=xp([s,S],[c,C],{props:z}),H=Z(I,a,L,`${I}-${M}`,{[`${I}-rtl`]:r===`rtl`,[`${I}-align-${P}`]:P,[`${I}-gap-row-${E}`]:D,[`${I}-gap-col-${T}`]:O},d,f,R,B.root),U=Z(`${I}-item`,B.item),ee=j.map((e,t)=>{let n=(e==null?void 0:e.key)||`${U}-${t}`;return J.createElement(Yhe,{prefix:I,classNames:B,styles:V,className:U,key:n,index:t,separator:F,style:V.item},e)}),te=J.useMemo(()=>({latestIndex:j.reduce((e,t,n)=>op(t)?n:e,0)}),[j]);if(j.length===0)return null;let ne={};return x&&(ne.flexWrap=`wrap`),!O&&A&&(ne.columnGap=T),!D&&k&&(ne.rowGap=E),J.createElement(`div`,G({ref:t,className:H,style:G(G(G(G({},ne),V.root),o),y)},w),J.createElement(Jhe,{value:te},ee))});yE.Compact=xh,yE.Addon=tme,K();var ege=`prefixCls.type.danger.disabled.loading.onClick.htmlType.children.className.menu.arrow.autoFocus.trigger.align.open.onOpenChange.placement.getPopupContainer.href.icon.title.buttonsRender.mouseEnterDelay.mouseLeaveDelay.overlayClassName.overlayStyle.destroyOnHidden.destroyPopupOnHide.dropdownRender.popupRender`.split(`.`),tge=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=J.useContext(Eo),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:v,onOpenChange:y,placement:b,getPopupContainer:x,href:S,icon:C=J.createElement(Cx,null),title:w,buttonsRender:T=e=>e,mouseEnterDelay:E,mouseLeaveDelay:D,overlayClassName:O,overlayStyle:k,destroyOnHidden:A,destroyPopupOnHide:j,dropdownRender:M,popupRender:N}=e,P=q(e,ege),F=n(`dropdown`,i),I=`${F}-button`,L={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:y,getPopupContainer:x||t,mouseEnterDelay:E,mouseLeaveDelay:D,classNames:{root:O},styles:{root:k},destroyOnHidden:A,popupRender:N||M},{compactSize:R,compactItemClassnames:z}=bh(F,r),B=Z(I,z,f);`destroyPopupOnHide`in e&&(L.destroyPopupOnHide=j),`open`in e&&(L.open=v),`placement`in e?L.placement=b:L.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[V,H]=T([J.createElement(Ux,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:S,title:w},d),J.createElement(Ux,{type:a,danger:o,icon:C})]);return J.createElement(yE.Compact,G({className:B,size:R,block:!0},P),V,J.createElement(Lx,G({},L),H))};tge.__ANT_BUTTON=!0;var bE=Lx;bE.Button=tge,K();var nge=(e,t)=>op(e)?lp(e)&&!(0,J.isValidElement)(e)?G(G({},t),e):G(G({},t),{},{title:e}):null;function xE(e){let[t,n]=J.useState(e);return J.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var rge=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}};K();var ige=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),age=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},oge=e=>{let{componentCls:t}=e;return{[t]:G(G(G({},td(e)),ige(e)),{},{[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":G({},age(e,e.controlHeightSM)),"&-large":G({},age(e,e.controlHeightLG))})}},sge=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=md(i,`grid`);return{[t]:G(G({},td(e)),{},{marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden, + &-hidden${i}-row`]:{display:`none`},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:Kh,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},SE=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),cge=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label, + ${t}-col-xl-24${n}-label`]:SE(e)}}},lge=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label, + > ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},uge=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:SE(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},dge=e=>{let{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:`100%`},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:kv(e)},[`@media (max-width: ${be(e.screenXSMax)})`]:[wze(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:kv(e)}}}],[`@media (max-width: ${be(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:kv(e)}}},[`@media (max-width: ${be(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:kv(e)}}},[`@media (max-width: ${be(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:kv(e)}}}}},Sze=e=>{var t;return{labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:(t=e.labelHeight)!=null?t:"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}},Hle=(e,t)=>dr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),B7=Br("Form",(e,{rootPrefixCls:t})=>{const n=Hle(e,t);return[vze(n),yze(n),gze(n),bze(n),xze(n),Cze(n),lE(n),$8]},Sze,{order:-1e3}),Ule=[];function O7(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const jle=({help:e,helpStatus:t,errors:n=Ule,warnings:r=Ule,className:i,fieldId:o,onVisibleChanged:a})=>{const{prefixCls:s}=g.useContext(Z8),{classNames:l,styles:c}=g.useContext(pA),u=`${s}-item-explain`,f=So(s),[d,A]=B7(s,f),h=g.useMemo(()=>Bb(s),[s]),p=X4(n),v=X4(r),y=oa(e)&&e!==!1,b=g.useMemo(()=>y?[O7(e,"help",t)]:[].concat(en(p.map((S,B)=>O7(S,"error","error",B))),en(v.map((S,B)=>O7(S,"warning","warning",B)))),[e,t,y,p,v]),x=g.useMemo(()=>{const S={};return b.forEach(({key:B})=>{S[B]=(S[B]||0)+1}),b.map((B,E)=>te(I({},B),{key:S[B.key]>1?`${B.key}-fallback-${E}`:B.key}))},[b]),C={};return o&&(C.id=`${o}_help`),g.createElement(sl,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!x.length,onVisibleChanged:a},S=>{const{className:B,style:E}=S;return g.createElement("div",te(I({},C),{className:Ae(u,B,l==null?void 0:l.help,A,f,i,d),style:I(I({},c==null?void 0:c.help),E)}),g.createElement(YD,te(I({keys:x},Bb(s)),{motionName:`${s}-show-help-item`,component:!1}),_=>{const{key:M,error:R,errorStatus:T,className:L,style:P}=_;return g.createElement("div",{key:M,className:Ae(L,l==null?void 0:l.helpItem,{[`${u}-${T}`]:T}),style:I(I({},c==null?void 0:c.helpItem),P)},R)}))})},Eze=(e,t)=>{const n=g.useContext(qa),{getPrefixCls:r,direction:i,requiredMark:o,colon:a,scrollToFirstError:s,className:l,style:c,styles:u,classNames:f,tooltip:d,labelAlign:A,labelWrap:h}=or("form"),Me=e,{prefixCls:p,className:v,rootClassName:y,size:b,disabled:x=n,form:C,colon:S,labelAlign:B,labelWrap:E,labelCol:_,wrapperCol:M,layout:R="horizontal",scrollToFirstError:T,requiredMark:L,onFinishFailed:P,name:k,style:H,feedbackIcons:D,variant:U,classNames:j,styles:Q,tooltip:K}=Me,z=Ze(Me,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant","classNames","styles","tooltip"]),V=aa(b),Y=g.useContext(vne),Z=g.useMemo(()=>L!==void 0?L:o!==void 0?o:!0,[L,o]),W=S!=null?S:a,J=B!=null?B:A,ee=E!=null?E:h,ne=I(I({},d),K),re=r("form",p),ue=So(re),[de,se]=B7(re,ue),ce=te(I({},e),{size:V,disabled:x,layout:R,colon:W,requiredMark:Z,labelAlign:J,labelWrap:ee}),ge=Ar(c),ie=Ar(H),[le,ve]=vr([f,j],[u,ge,Q,ie],{props:ce}),we=Ae(re,`${re}-${R}`,{[`${re}-hide-required-mark`]:Z===!1,[`${re}-rtl`]:i==="rtl",[`${re}-large`]:V==="large",[`${re}-small`]:V==="small"},se,ue,de,l,v,y,le.root),[me]=ase(C),{__INTERNAL__:Ee}=me;Ee.name=k;const Ce=g.useMemo(()=>({name:k,labelAlign:J,labelCol:_,labelWrap:ee,wrapperCol:M,layout:R,colon:W,requiredMark:Z,itemRef:Ee.itemRef,form:me,feedbackIcons:D,tooltip:ne,classNames:le,styles:ve}),[k,J,ee,_,M,R,W,Z,me,D,le,ve,ne]),pe=g.useRef(null);g.useImperativeHandle(t,()=>{var Se;return te(I({},me),{nativeElement:(Se=pe.current)==null?void 0:Se.nativeElement})});const Oe=(Se,Pe)=>{if(Se){let Le={block:"nearest"};Zn(Se)&&(Le=I(I({},Le),Se)),me.scrollToField(Pe,Le)}},xe=Se=>{if(P==null||P(Se),Se.errorFields.length){const Pe=Se.errorFields[0].name;if(T!==void 0){Oe(T,Pe);return}s!==void 0&&Oe(s,Pe)}};return g.createElement(uie.Provider,{value:U},g.createElement(o8,{disabled:x},g.createElement(vv.Provider,{value:V},g.createElement(lie,{validateMessages:Y},g.createElement(pA.Provider,{value:Ce},g.createElement(cie,{status:!0},g.createElement(Ib,te(I({id:k},z),{name:k,onFinishFailed:xe,form:me,ref:pe,style:ve==null?void 0:ve.root,className:we}))))))))},Bze=g.forwardRef(Eze),Oze=e=>{if(Rn(e))return e;const t=pa(e);return t.length<=1?t[0]:t},zle=()=>{const{status:e,errors:t=[],warnings:n=[]}=g.useContext(Ya);return{status:e,errors:t,warnings:n}};zle.Context=Ya;function $ze(e){const[t,n]=g.useState(e),r=g.useRef(null),i=g.useRef([]),o=g.useRef(!1);g.useEffect(()=>(o.current=!1,()=>{o.current=!0,Kn.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=Kn(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}const _ze=()=>{const{itemRef:e}=g.useContext(pA),t=g.useRef({});return(r,i)=>{const o=i&&Zn(i)&&cA(i),a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=il(e(r),o)),t.current.ref}},Tze=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Mze=kg(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=Hle(e,t);return Tze(n)}),Ize=24,Rze=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:d,onErrorVisibleChanged:A,label:h}=e,p=`${t}-item`,v=g.useContext(pA),{classNames:y,styles:b}=v,x=g.useMemo(()=>{let D=I({},i||v.wrapperCol||{});return h===null&&!r&&!i&&v.labelCol&&[void 0].concat(en(goe)).forEach(j=>{const Q=j?[j]:[],K=ol(v.labelCol,Q),z=Zn(K)?K:{},V=ol(D,Q),Y=Zn(V)?V:{};"span"in z&&!("offset"in Y)&&z.span{const Q=v,{labelCol:D,wrapperCol:U}=Q;return Ze(Q,["labelCol","wrapperCol"])},[v]),B=g.useRef(null),[E,_]=g.useState(0);ar(()=>{c&&B.current?_(B.current.clientHeight):_(0)},[c]);const M=g.createElement("div",{className:`${p}-control-input`},g.createElement("div",{className:Ae(`${p}-control-input-content`,y==null?void 0:y.content),style:b==null?void 0:b.content},o)),R=g.useMemo(()=>({prefixCls:t,status:n}),[t,n]),T=d!==null||a.length||s.length?g.createElement(Z8.Provider,{value:R},g.createElement(jle,{fieldId:f,errors:a,warnings:s,help:u,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:A})):null,L={};f&&(L.id=`${f}_extra`);const P=c?g.createElement("div",te(I({},L),{className:Ae(`${p}-extra`,y==null?void 0:y.extra),style:b==null?void 0:b.extra,ref:B}),c):null,k=T||P?g.createElement("div",{className:`${p}-additional`,style:d?{minHeight:d+E}:{}},T,P):null,H=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:M,errorList:T,extra:P}):g.createElement(g.Fragment,null,M,k);return g.createElement(pA.Provider,{value:S},g.createElement(wr,te(I({},x),{className:C}),H),g.createElement(Mze,{prefixCls:t}))};var Z4={},Qle;function Nze(){if(Qle)return Z4;Qle=1,Object.defineProperty(Z4,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};return Z4.default=e,Z4}var Pze=Nze();const Lze=_t(Pze);function $7(){return $7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,$7({},e,{ref:t,icon:Lze})),kze=g.forwardRef(Fze),Dze=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:o,required:a,requiredMark:s,tooltip:l,vertical:c})=>{var H;const[u]=zs("Form"),{labelAlign:f,labelCol:d,labelWrap:A,colon:h,classNames:p,styles:v,tooltip:y}=g.useContext(pA);if(!t)return null;const b=r||d||{},x=i||f,C=`${e}-item-label`,S=Ae(C,x==="left"&&`${C}-left`,b.className,{[`${C}-wrap`]:!!A});let B=t;const E=o===!0||h!==!1&&o!==!1;E&&!c&&typeof t=="string"&&t.trim()&&(B=t.replace(/[:|:]\s*$/,""));const M=pze(l,y);if(M){const D=g.createElement(No,I({},M),g.createElement("span",{className:`${e}-item-tooltip`,onClick:U=>{U.preventDefault()},tabIndex:-1},M.icon||M.children||g.createElement(kze,null)));B=g.createElement(g.Fragment,null,B,D)}const R=s==="optional",T=Rn(s),L=s===!1;T?B=s(B,{required:!!a}):R&&!a&&(B=g.createElement(g.Fragment,null,B,g.createElement("span",{className:`${e}-item-optional`},(u==null?void 0:u.optional)||((H=Sl.Form)==null?void 0:H.optional))));let P;L?P="hidden":(R||T)&&(P="optional");const k=Ae(p==null?void 0:p.label,{[`${e}-item-required`]:a,[`${e}-item-required-mark-${P}`]:P,[`${e}-item-no-colon`]:!E});return g.createElement(wr,te(I({},b),{className:S}),g.createElement("label",{htmlFor:n,className:k,style:v==null?void 0:v.label,title:typeof t=="string"?t:void 0},B))},Hze={success:eE,warning:Sb,error:hv,validating:qh};function Vle({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:o,meta:a,noStyle:s,name:l}){const c=`${o}-item`,{feedbackIcons:u}=g.useContext(pA),f=ise(t,n,a,null,!!r,i),{isFormItemInput:d,status:A,hasFeedback:h,feedbackIcon:p,name:v}=g.useContext(Ya),y=g.useMemo(()=>{var C;let b;if(r){const S=r!==!0&&r.icons||u,B=f&&((C=S==null?void 0:S({status:f,errors:t,warnings:n}))==null?void 0:C[f]),E=f?Hze[f]:null;b=B!==!1&&E?g.createElement("span",{className:Ae(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},B||g.createElement(E,null)):null}const x={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:b,isFormItemInput:!0,name:l};return s&&(x.status=(f!=null?f:A)||"",x.isFormItemInput=d,x.hasFeedback=!!(r!=null?r:h),x.feedbackIcon=r!==void 0?x.feedbackIcon:p,x.name=l!=null?l:v),x},[f,r,s,d,A]);return g.createElement(Ya.Provider,{value:y},e)}function Uze(e){const z=e,{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:d,fieldId:A,required:h,isRequired:p,onSubItemMetaChange:v,layout:y,name:b}=z,x=Ze(z,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:S,layout:B}=g.useContext(pA),E=y||B,_=E==="vertical",M=g.useRef(null),R=X4(a),T=X4(s),L=oa(o)&&o!==!1,P=!!(L||a.length||s.length),k=!!M.current&&hb(M.current),[H,D]=g.useState(null);ar(()=>{if(P&&M.current){const V=getComputedStyle(M.current);D(Number.parseInt(V.marginBottom,10))}},[P,k]);const U=V=>{V||D(null)},Q=((V=!1)=>{const Y=V?R:c.errors,Z=V?T:c.warnings;return ise(Y,Z,c,"",!!u,l)})(),K=Ae(C,n,r,{[`${C}-with-help`]:L||R.length||T.length,[`${C}-has-feedback`]:Q&&u,[`${C}-has-success`]:Q==="success",[`${C}-has-warning`]:Q==="warning",[`${C}-has-error`]:Q==="error",[`${C}-is-validating`]:Q==="validating",[`${C}-hidden`]:f,[`${C}-${E}`]:E});return g.createElement("div",{className:K,style:i,ref:M},g.createElement($i,I({className:`${C}-row`},ti(x,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),g.createElement(Dze,te(I({htmlFor:A},e),{requiredMark:S,required:h!=null?h:p,prefixCls:t,vertical:_})),g.createElement(Rze,te(I(I({},e),c),{errors:R,warnings:T,prefixCls:t,status:Q,help:o,marginBottom:H,onErrorVisibleChanged:U}),g.createElement(sie.Provider,{value:v},g.createElement(Vle,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:Q,name:b},d)))),!!H&&g.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-H}}))}const jze="__SPLIT__";function zze(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||Rn(o)||Rn(a)})}const Qze=g.memo(e=>e.children,(e,t)=>zze(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Kle(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Vze(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:A,hidden:h,help:p,layout:v}=e,{getPrefixCls:y}=g.useContext(Un),{name:b}=g.useContext(pA),x=Oze(l),C=Rn(x),S=g.useContext(sie),{validateTrigger:B}=g.useContext(bv),E=oa(A)?A:B,_=oa(t),M=y("form",o),R=So(M),[T,L]=B7(M,R);Ig();const P=g.useContext(mE),k=g.useRef(null),[H,D]=$ze({}),[U,j]=w6(()=>Kle()),Q=J=>{const ee=P==null?void 0:P.getKey(J.name);if(j(J.destroy?Kle():J,!0),n&&p!==!1&&S){let ne=J.name;if(J.destroy)ne=k.current||ne;else if(ee!==void 0){const[re,ue]=ee;ne=[re].concat(en(ue)),k.current=ne}S(J,ne)}},K=(J,ee)=>{D(ne=>{const re=I({},ne),de=[].concat(en(J.name.slice(0,-1)),en(ee)).join(jze);return J.destroy?delete re[de]:re[de]=J,re})},[z,V]=g.useMemo(()=>{const J=en(U.errors),ee=en(U.warnings);return Object.values(H).forEach(ne=>{J.push.apply(J,en(ne.errors||[])),ee.push.apply(ee,en(ne.warnings||[]))}),[J,ee]},[H,U.errors,U.warnings]),Y=_ze();function Z(J,ee,ne){return n&&!h?g.createElement(Vle,{prefixCls:M,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:U,errors:z,warnings:V,noStyle:!0,name:t},J):g.createElement(Uze,te(I({key:"row"},e),{className:Ae(r,L,R,T),prefixCls:M,fieldId:ee,isRequired:ne,errors:z,warnings:V,meta:U,onSubItemMetaChange:K,layout:v,name:t}),J)}if(!_&&!C&&!i)return Z(x);let W={};return typeof u=="string"?W.label=u:t&&(W.label=String(t)),f&&(W=I(I({},W),f)),g.createElement(K8,te(I({},e),{messageVariables:W,trigger:d,validateTrigger:E,onMetaChange:Q}),(J,ee,ne)=>{const re=KE(t).length&&ee?ee.name:[],ue=rse(re,b),de=c!==void 0?c:s==null?void 0:s.some(ge=>{if(Zn(ge)&&ge.required&&!ge.warningOnly)return!0;if(Rn(ge)){const ie=ge(ne);return(ie==null?void 0:ie.required)&&!(ie!=null&&ie.warningOnly)}return!1}),se=I({},J);let ce=null;if(Array.isArray(x)&&_)ce=x;else if(!(C&&(!(a||i)||_))){if(!(i&&!C&&!_))if(g.isValidElement(x)){const ge=I(I({},x.props),se);if(ge.id||(ge.id=ue),p||z.length>0||V.length>0||e.extra){const ve=[];(p||z.length>0)&&ve.push(`${ue}_help`),e.extra&&ve.push(`${ue}_extra`),ge["aria-describedby"]=ve.join(" ")}z.length>0&&(ge["aria-invalid"]="true"),de&&(ge["aria-required"]="true"),Vh(x)&&(ge.ref=Y(re,x)),new Set([].concat(en(KE(d)),en(KE(E)))).forEach(ve=>{ge[ve]=(...we)=>{var me,Ee,Ce;(me=se[ve])==null||me.call(se,...we),(Ce=(Ee=x.props)[ve])==null||Ce.call(Ee,...we)}});const le=[ge["aria-required"],ge["aria-invalid"],ge["aria-describedby"]];ce=g.createElement(Qze,{control:se,update:x,childProps:le},Ga(x,ge))}else C&&(a||i)&&!_?ce=x(ne):ce=x}return Z(ce,ue,de)})}const Wle=Vze;Wle.useStatus=zle;const Kze=r=>{var i=r,{prefixCls:e,children:t}=i,n=Ze(i,["prefixCls","children"]);const{getPrefixCls:o}=g.useContext(Un),a=o("form",e),s=g.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return g.createElement(iie,I({},n),(l,c,u)=>g.createElement(Z8.Provider,{value:s},t(l.map(f=>te(I({},f),{fieldKey:f.key})),c,{errors:u.errors,warnings:u.warnings})))};function Wze(){const{form:e}=g.useContext(pA);return e}const Ai=Bze;Ai.Item=Wle,Ai.List=Kze,Ai.ErrorList=jle,Ai.useForm=ase,Ai.useFormInstance=Wze,Ai.useWatch=aie,Ai.Provider=lie;const J4=g.createContext(null);function Gze(e){return new Promise(t=>{if(!e){t(!1);return}const n=document.createElement("img");n.onerror=()=>t(!1),n.onload=()=>t(!0),n.src=e})}function Gle(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}const eI={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function qze(e,t,n,r){const i=g.useRef(null),o=g.useRef([]),[a,s]=g.useState(eI),l=f=>{s(eI),uu(eI,a)||r==null||r({transform:eI,action:f})},c=(f,d)=>{i.current===null&&(o.current=[],i.current=Kn(()=>{s(A=>{let h=A;return o.current.forEach(p=>{h=I(I({},h),p)}),i.current=null,r==null||r({transform:h,action:d}),h})})),o.current.push(I(I({},a),f))};return{transform:a,resetTransform:l,updateTransform:c,dispatchZoomChange:(f,d,A,h,p)=>{const{width:v,height:y,offsetWidth:b,offsetHeight:x,offsetLeft:C,offsetTop:S}=e.current;let B=f,E=a.scale*f;E>n?(E=n,B=n/a.scale):Er){if(t>0)return{[e]:o};if(t<0&&ir)return{[e]:t<0?o:-o};return{}}function Yle(e,t,n,r){const{width:i,height:o}=Gle();let a=null;return e<=i&&t<=o?a={x:0,y:0}:(e>i||t>o)&&(a=I(I({},qle("x",n,e,i)),qle("y",r,t,o))),a}const Xb=1,Yze=1;function Xze(e,t,n,r,i,o,a){const{rotate:s,scale:l,x:c,y:u}=i,[f,d]=g.useState(!1),A=g.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),h=b=>{!t||b.button!==0||(b.preventDefault(),b.stopPropagation(),A.current={diffX:b.pageX-c,diffY:b.pageY-u,transformX:c,transformY:u},d(!0))},p=b=>{n&&f&&o({x:b.pageX-A.current.diffX,y:b.pageY-A.current.diffY},"move")},v=()=>{if(n&&f){d(!1);const{transformX:b,transformY:x}=A.current;if(!(c!==b&&u!==x))return;const S=e.current.offsetWidth*l,B=e.current.offsetHeight*l,{left:E,top:_}=e.current.getBoundingClientRect(),M=s%180!==0,R=Yle(M?B:S,M?S:B,E,_);R&&o(I({},R),"dragRebound")}},y=b=>{if(!n||b.deltaY==0)return;const x=Math.abs(b.deltaY/100),C=Math.min(x,Yze);let S=Xb+C*r;b.deltaY>0&&(S=Xb/S),a(S,"wheel",b.clientX,b.clientY)};return g.useEffect(()=>{if(t){window.addEventListener("mouseup",v,!1),window.addEventListener("mousemove",p,!1);try{window.top!==window.self&&(window.top.addEventListener("mouseup",v,!1),window.top.addEventListener("mousemove",p,!1))}catch(b){}}return()=>{var b,x;window.removeEventListener("mouseup",v),window.removeEventListener("mousemove",p);try{(b=window.top)==null||b.removeEventListener("mouseup",v),(x=window.top)==null||x.removeEventListener("mousemove",p)}catch(C){}}},[n,f,c,u,s,t]),{isMoving:f,onMouseDown:h,onMouseMove:p,onMouseUp:v,onWheel:y}}function Xle({src:e,isCustomPlaceholder:t,fallback:n}){const[r,i]=g.useState(t?"loading":"normal"),o=g.useRef(!1),a=r==="error";g.useEffect(()=>{let u=!0;return Gze(e).then(f=>{!f&&u&&i("error")}),()=>{u=!1}},[e]),g.useEffect(()=>{t&&!o.current?i("loading"):a&&i("normal")},[e]);const s=()=>{i("normal")};return[u=>{o.current=!1,r==="loading"&&(u!=null&&u.complete)&&(u.naturalWidth||u.naturalHeight)&&(o.current=!0,s())},a&&n?{src:n}:{onLoad:s,src:e},r]}function tI(e,t){const n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Zze(e,t,n,r){const i=tI(e,n),o=tI(t,r);if(i===0&&o===0)return[e.x,e.y];const a=i/(i+o),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function Jze(e,t,n,r,i,o,a){const{rotate:s,scale:l,x:c,y:u}=i,[f,d]=g.useState(!1),A=g.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),h=b=>{A.current=I(I({},A.current),b)},p=b=>{if(!t)return;b.stopPropagation(),d(!0);const{touches:x=[]}=b;x.length>1?h({point1:{x:x[0].clientX,y:x[0].clientY},point2:{x:x[1].clientX,y:x[1].clientY},eventType:"touchZoom"}):h({point1:{x:x[0].clientX-c,y:x[0].clientY-u},eventType:"move"})},v=b=>{const{touches:x=[]}=b,{point1:C,point2:S,eventType:B}=A.current;if(x.length>1&&B==="touchZoom"){const E={x:x[0].clientX,y:x[0].clientY},_={x:x[1].clientX,y:x[1].clientY},[M,R]=Zze(C,S,E,_),T=tI(E,_)/tI(C,S);a(T,"touchZoom",M,R,!0),h({point1:E,point2:_,eventType:"touchZoom"})}else B==="move"&&(o({x:x[0].clientX-C.x,y:x[0].clientY-C.y},"move"),h({eventType:"move"}))},y=()=>{if(!n)return;if(f&&d(!1),h({eventType:"none"}),r>l)return o({x:0,y:0,scale:r},"touchZoom");const b=e.current.offsetWidth*l,x=e.current.offsetHeight*l,{left:C,top:S}=e.current.getBoundingClientRect(),B=s%180!==0,E=Yle(B?x:b,B?b:x,C,S);E&&o(I({},E),"dragRebound")};return g.useEffect(()=>{const b=x=>{x.preventDefault()};return n&&t&&window.addEventListener("touchmove",b,{passive:!1}),()=>{window.removeEventListener("touchmove",b)}},[n,t]),{isTouching:f,onTouchStart:p,onTouchMove:v,onTouchEnd:y}}function eQe(e){const{prefixCls:t,icon:n,onClick:r,className:i,style:o}=e;return g.createElement("button",{className:Ae(`${t}-close`,i),style:o,onClick:r},n)}function tQe(e){const{prefixCls:t,showProgress:n,current:r,count:i,showSwitch:o,classNames:a,styles:s,icons:l,image:c,transform:u,countRender:f,actionsRender:d,scale:A,minScale:h,maxScale:p,onActive:v,onFlipY:y,onFlipX:b,onRotateLeft:x,onRotateRight:C,onZoomOut:S,onZoomIn:B,onClose:E,onReset:_}=e,{left:M,right:R,prev:T,next:L,flipY:P,flipX:k,rotateLeft:H,rotateRight:D,zoomOut:U,zoomIn:j}=l,Q=n&&g.createElement("div",{className:`${t}-progress`},f?f(r+1,i):g.createElement("bdi",null,`${r+1} / ${i}`)),K=`${t}-actions-action`,z=({type:de,disabled:se,onClick:ce,icon:ge})=>g.createElement("button",{type:"button",key:de,className:Ae(K,`${K}-${de}`,{[`${K}-disabled`]:!!se}),onClick:ce,disabled:!!se,"aria-label":de},ge),V=o?z({icon:T!=null?T:M,onClick:()=>v(-1),type:"prev",disabled:r===0}):void 0,Y=o?z({icon:L!=null?L:R,onClick:()=>v(1),type:"next",disabled:r===i-1}):void 0,Z=z({icon:P,onClick:y,type:"flipY"}),W=z({icon:k,onClick:b,type:"flipX"}),J=z({icon:H,onClick:x,type:"rotateLeft"}),ee=z({icon:D,onClick:C,type:"rotateRight"}),ne=z({icon:U,onClick:S,type:"zoomOut",disabled:A<=h}),re=z({icon:j,onClick:B,type:"zoomIn",disabled:A===p}),ue=g.createElement("div",{className:Ae(`${t}-actions`,a.actions),style:s.actions},Z,W,J,ee,ne,re);return g.createElement("div",{className:Ae(`${t}-footer`,a.footer),style:s.footer},Q,d?d(ue,{icons:{prevIcon:V,nextIcon:Y,flipYIcon:Z,flipXIcon:W,rotateLeftIcon:J,rotateRightIcon:ee,zoomOutIcon:ne,zoomInIcon:re},actions:{onActive:v,onFlipY:y,onFlipX:b,onRotateLeft:x,onRotateRight:C,onZoomOut:S,onZoomIn:B,onReset:_,onClose:E},transform:u,current:r,total:i,image:c}):ue)}function nQe(e){const{prefixCls:t,onActive:n,current:r,count:i,icons:{left:o,right:a,prev:s,next:l}}=e,c=`${t}-switch`,u=r===0,f=r===i-1;return g.createElement(g.Fragment,null,g.createElement("button",{className:Ae(c,`${c}-prev`,{[`${c}-disabled`]:u}),onClick:()=>n(-1),disabled:u},s!=null?s:o),g.createElement("button",{type:"button",className:Ae(c,`${c}-next`,{[`${c}-disabled`]:f}),onClick:()=>n(1),disabled:f},l!=null?l:a))}function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var o=i,{fallback:e,src:t,imgRef:n}=o,r=Ze(o,["fallback","src","imgRef"]);const[a,s]=Xle({src:t,fallback:e});return Be.createElement("img",nI({ref:l=>{n.current=l,a(l)}},r,s))},Zle=e=>{const{prefixCls:t,rootClassName:n,src:r,alt:i,imageInfo:o,fallback:a,movable:s=!0,onClose:l,open:c,afterOpenChange:u,maskClosable:f=!0,icons:d={},closeIcon:A,getContainer:h,current:p=0,count:v=1,countRender:y,scaleStep:b=.5,minScale:x=1,maxScale:C=50,motionName:S="fade",imageRender:B,imgCommonProps:E,actionsRender:_,onTransform:M,onChange:R,classNames:T={},styles:L={},mousePosition:P,zIndex:k,focusTrap:H=!0}=e,D=g.useRef(),U=g.useRef(null),j=g.useRef(null),Q=g.useContext(J4),K=Q&&v>1,z=Q&&v>=1,[V,Y]=g.useState(!0),{transform:Z,resetTransform:W,updateTransform:J,dispatchZoomChange:ee}=qze(D,x,C,M),{isMoving:ne,onMouseDown:re,onWheel:ue}=Xze(D,s,c,b,Z,J,ee),{isTouching:de,onTouchStart:se,onTouchMove:ce,onTouchEnd:ge}=Jze(D,s,c,x,Z,J,ee),{rotate:ie,scale:le}=Z;g.useEffect(()=>{V||Y(!0)},[V]),g.useEffect(()=>{c||W("close")},[c]);const ve=dt=>{c&&(le!==1?J({x:0,y:0,scale:1},"doubleClick"):ee(Xb+b,"doubleClick",dt.clientX,dt.clientY))},we=Be.createElement(rQe,nI({},E,{width:e.width,height:e.height,imgRef:D,className:`${t}-img`,alt:i,style:{transform:`translate3d(${Z.x}px, ${Z.y}px, 0) scale3d(${Z.flipX?"-":""}${le}, ${Z.flipY?"-":""}${le}, 1) rotate(${ie}deg)`,transitionDuration:(!V||de)&&"0s"},fallback:a,src:r,onWheel:ue,onMouseDown:re,onDoubleClick:ve,onTouchStart:se,onTouchMove:ce,onTouchEnd:ge,onTouchCancel:ge})),me=I({url:r,alt:i},o),Ee=()=>{ee(Xb+b,"zoomIn")},Ce=()=>{ee(Xb/(Xb+b),"zoomOut")},pe=()=>{J({rotate:ie+90},"rotateRight")},Oe=()=>{J({rotate:ie-90},"rotateLeft")},xe=()=>{J({flipX:!Z.flipX},"flipX")},Me=()=>{J({flipY:!Z.flipY},"flipY")},Se=()=>{W("reset")},Pe=dt=>{const wt=p+dt;wt>=0&&wt<=v-1&&(Y(!1),W(dt<0?"prev":"next"),R==null||R(wt,p))},Le=yn(dt=>{if(c){const{keyCode:wt}=dt;K&&(wt===dn.LEFT?Pe(-1):wt===dn.RIGHT&&Pe(1))}});g.useEffect(()=>{if(c)return window.addEventListener("keydown",Le),()=>{window.removeEventListener("keydown",Le)}},[c]);const[He,Ne]=g.useState(!1);Be.useEffect(()=>{c&&Ne(!0)},[c]);const at=dt=>{var wt,Bt;dt||(Ne(!1),(Bt=(wt=j.current)==null?void 0:wt.focus)==null||Bt.call(wt),j.current=null),u==null||u(dt)},[Ue,et]=g.useState(!1);ar(()=>{c&&et(!0)},[c]);const We=({top:dt})=>{dt&&(l==null||l())};ar(()=>{c&&(j.current=document.activeElement)},[c]),xee(H&&c&&Ue,()=>U.current);const Je=I({},L.body);return P&&(Je.transformOrigin=`${P.x}px ${P.y}px`),Be.createElement(tE,{open:Ue&&c,autoDestroy:!1,getContainer:h,autoLock:He,onEsc:We},Be.createElement(sl,{motionName:S,visible:Ue&&c,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:at},({className:dt,style:wt})=>{const Bt=I(I({},L.root),wt);return k&&(Bt.zIndex=k),Be.createElement("div",{ref:U,className:Ae(t,n,T.root,dt,{[`${t}-movable`]:s,[`${t}-moving`]:ne}),style:Bt,role:"dialog","aria-modal":"true","aria-label":i,tabIndex:-1},Be.createElement("div",{className:Ae(`${t}-mask`,T.mask),style:L.mask,onClick:f?l:void 0}),Be.createElement("div",{className:Ae(`${t}-body`,T.body),style:Je},B?B(we,I({transform:Z,image:me},Q?{current:p}:{})):we),A!==!1&&A!==null&&Be.createElement(eQe,{prefixCls:t,icon:A===!0?d.close:A||d.close,onClick:l,className:T.close,style:L.close}),K&&Be.createElement(nQe,{prefixCls:t,current:p,count:v,icons:d,onActive:Pe}),Be.createElement(tQe,{prefixCls:t,showProgress:z,current:p,count:v,showSwitch:K,classNames:T,styles:L,image:me,transform:Z,icons:d,countRender:y,actionsRender:_,scale:le,minScale:x,maxScale:C,onActive:Pe,onFlipY:Me,onFlipX:xe,onRotateLeft:Oe,onRotateRight:pe,onZoomOut:Ce,onZoomIn:Ee,onClose:l,onReset:Se}))}))},_7=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt","fetchPriority"];function iQe(e){const[t,n]=g.useState({}),r=g.useCallback((o,a)=>(n(s=>te(I({},s),{[o]:a})),()=>{n(s=>{const l=I({},s);return delete l[o],l})}),[]);return[g.useMemo(()=>e?e.map(o=>{if(typeof o=="string")return{data:{src:o}};const a={};return Object.keys(o).forEach(s=>{["src",..._7].includes(s)&&(a[s]=o[s])}),{data:a}}):Object.keys(t).reduce((o,a)=>{const{canPreview:s,data:l}=t[a];return s&&o.push({data:l,id:a}),o},[]),[e,t]),r,!!e]}function T7(){return T7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var D;const H=a&&typeof a=="object"?a:{},{open:l,onOpenChange:c,current:u,onChange:f}=H,d=Ze(H,["open","onOpenChange","current","onChange"]),[A,h,p]=iQe(o),[v,y]=Fr(0,u),[b,x]=g.useState(!1),U=((D=A[v])==null?void 0:D.data)||{},{src:C}=U,S=Ze(U,["src"]),[B,E]=Fr(!!l,l),_=yn(j=>{E(j),j!==B&&(c==null||c(j,{current:v}))}),[M,R]=g.useState(null),T=g.useCallback((j,Q,K,z)=>{const V=p?A.findIndex(Y=>Y.data.src===Q):A.findIndex(Y=>Y.id===j);y(V<0?0:V),_(!0),R({x:K,y:z}),x(!0)},[A,p]);g.useEffect(()=>{B?b||y(0):x(!1)},[B]);const L=(j,Q)=>{y(j),f==null||f(j,Q)},P=()=>{_(!1),R(null)},k=g.useMemo(()=>({register:h,onPreview:T}),[h,T]);return g.createElement(J4.Provider,{value:k},r,g.createElement(Zle,T7({"aria-hidden":!B,open:B,prefixCls:e,onClose:P,mousePosition:M,imgCommonProps:S,src:C,fallback:s,icons:i,current:v,count:A.length,onChange:L},d,{classNames:t==null?void 0:t.popup,styles:n==null?void 0:n.popup})))};let Jle=0;function aQe(e,t){const[n]=g.useState(()=>(Jle+=1,String(Jle))),r=g.useContext(J4),i={data:t,canPreview:e};return g.useEffect(()=>{if(r)return r.register(n,i)},[]),g.useEffect(()=>{r&&r.register(n,i)},[e,t]),n}function e2(){return e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var de;const re=e,{prefixCls:t="rc-image",previewPrefixCls:n=`${t}-preview`,rootClassName:r,className:i,style:o,classNames:a={},styles:s={},width:l,height:c,src:u,alt:f,placeholder:d,fallback:A,preview:h=!0,onClick:p,onError:v,onKeyDown:y}=re,b=Ze(re,["prefixCls","previewPrefixCls","rootClassName","className","style","classNames","styles","width","height","src","alt","placeholder","fallback","preview","onClick","onError","onKeyDown"]),x=g.useContext(J4),C=!!h,ue=h&&typeof h=="object"?h:{},{src:S,open:B,onOpenChange:E,cover:_,rootClassName:M}=ue,R=Ze(ue,["src","open","onOpenChange","cover","rootClassName"]),T=typeof _=="object"&&_.placement&&_.placement||"center",L=typeof _=="object"&&_.coverNode?_.coverNode:_,[P,k]=Fr(!!B,B),[H,D]=g.useState(null),U=se=>{k(se),E==null||E(se)},j=()=>{U(!1)},Q=d&&d!==!0,K=S!=null?S:u,[z,V,Y]=Xle({src:u,isCustomPlaceholder:Q,fallback:A}),Z=g.useMemo(()=>{const se={};return _7.forEach(ce=>{e[ce]!==void 0&&(se[ce]=e[ce])}),se},_7.map(se=>e[se])),W=g.useMemo(()=>te(I({},Z),{src:K}),[K,Z]),J=aQe(C,W),ee=se=>{const ce=se.target.getBoundingClientRect(),ge=ce.x+ce.width/2,ie=ce.y+ce.height/2;x?x.onPreview(J,K,ge,ie):(D({x:ge,y:ie}),U(!0)),p==null||p(se)},ne=se=>{if(y==null||y(se),!!C&&(se.key==="Enter"||se.key===" ")){se.preventDefault();const ce=se.target.getBoundingClientRect(),ge=ce.x+ce.width/2,ie=ce.y+ce.height/2;x?x.onPreview(J,K,ge,ie):(D({x:ge,y:ie}),U(!0))}};return g.createElement(g.Fragment,null,g.createElement("div",e2({},b,{className:Ae(t,r,a.root,{[`${t}-error`]:Y==="error"}),onClick:C?ee:p,role:C?"button":b.role,tabIndex:C&&b.tabIndex==null?0:b.tabIndex,"aria-label":C?(de=b["aria-label"])!=null?de:f:b["aria-label"],onKeyDown:ne,style:I({width:l,height:c},s.root)}),g.createElement("img",e2({},Z,{className:Ae(`${t}-img`,{[`${t}-img-placeholder`]:d===!0},a.image,i),style:I(I({height:c},s.image),o),ref:z},V,{width:l,height:c,onError:v})),Y==="loading"&&g.createElement("div",{"aria-hidden":"true",className:`${t}-placeholder`},d),_!==!1&&C&&g.createElement("div",{className:Ae(`${t}-cover`,a.cover,`${t}-cover-${T}`),style:I({display:(o==null?void 0:o.display)==="none"?"none":void 0},s.cover)},L)),!x&&C&&g.createElement(Zle,e2({"aria-hidden":!P,open:P,prefixCls:n,onClose:j,mousePosition:H,src:K,alt:f,imageInfo:{width:l,height:c},fallback:A,imgCommonProps:Z},R,{classNames:a==null?void 0:a.popup,styles:s==null?void 0:s.popup,rootClassName:Ae(M,r)})))};M7.PreviewGroup=oQe;const ece=(e,t,n,r,i,o,a)=>{const[s]=jg("ImagePreview",e==null?void 0:e.zIndex),[l,c,u]=ore(e==null?void 0:e.mask,t==null?void 0:t.mask,`${n}-preview`);return Be.useMemo(()=>{if(!e)return e;const{cover:f,getContainer:d,closeIcon:A,rootClassName:h}=e,{closeIcon:p}=t!=null?t:{};return te(I(I({motionName:Yh(`${n}-preview`,"fade")},e),a?{cover:f!=null?f:a}:{}),{icons:o,getContainer:d!=null?d:i,zIndex:s,closeIcon:A!=null?A:p,rootClassName:Ae(r,h),mask:l,maskClosable:u,blurClassName:c.mask})},[e,t,n,r,i,a,o,s,l,u,c])};function tce(e){return Zn(e)&&!g.isValidElement(e)}function sQe(e){return g.useMemo(()=>!e||!tce(e)?{}:typeof e.progress=="boolean"?{progressConfig:e.progress?{}:void 0}:{progressConfig:e.progress},[e])}function lQe(e){return g.isValidElement(e)?[e,void 0]:typeof e=="boolean"||Zn(e)?[void 0,e]:[void 0,void 0]}function rI(e){const t=g.useMemo(()=>typeof e=="boolean"?e?{}:null:Zn(e)?e:{},[e]);return g.useMemo(()=>{if(!t)return[t,"",""];const x=t,{open:r,onOpenChange:i,cover:o,actionsRender:a,visible:s,onVisibleChange:l,rootClassName:c,maskClassName:u,mask:f,forceRender:d,destroyOnClose:A,toolbarRender:h}=x,p=Ze(x,["open","onOpenChange","cover","actionsRender","visible","onVisibleChange","rootClassName","maskClassName","mask","forceRender","destroyOnClose","toolbarRender"]);let v;i?v=i:l&&(v=(C,S)=>{const{current:B}=S||{};B!==void 0?l(C,!C,B):l(C,!C)});const[y,b]=lQe(f);return[te(I({},p),{open:r!=null?r:s,onOpenChange:v,cover:o!=null?o:y,mask:b,actionsRender:a!=null?a:h}),c,u]},[t])}var iI={},nce;function cQe(){if(nce)return iI;nce=1,Object.defineProperty(iI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};return iI.default=e,iI}var uQe=cQe();const fQe=_t(uQe);function I7(){return I7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,I7({},e,{ref:t,icon:fQe})),AQe=g.forwardRef(dQe);var oI={},rce;function hQe(){if(rce)return oI;rce=1,Object.defineProperty(oI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};return oI.default=e,oI}var pQe=hQe();const gQe=_t(pQe);function R7(){return R7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,R7({},e,{ref:t,icon:gQe})),vQe=g.forwardRef(mQe);var aI={},ice;function yQe(){if(ice)return aI;ice=1,Object.defineProperty(aI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};return aI.default=e,aI}var bQe=yQe();const xQe=_t(bQe);function N7(){return N7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,N7({},e,{ref:t,icon:xQe})),P7=g.forwardRef(wQe);var sI={},oce;function CQe(){if(oce)return sI;oce=1,Object.defineProperty(sI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};return sI.default=e,sI}var SQe=CQe();const EQe=_t(SQe);function L7(){return L7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,L7({},e,{ref:t,icon:EQe})),OQe=g.forwardRef(BQe);var lI={},ace;function $Qe(){if(ace)return lI;ace=1,Object.defineProperty(lI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};return lI.default=e,lI}var _Qe=$Qe();const TQe=_t(_Qe);function F7(){return F7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,F7({},e,{ref:t,icon:TQe})),IQe=g.forwardRef(MQe),RQe=new Xr("antImageProgressActive",{"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}}),k7=(e,t,n,r="translate(0%, 0%)",i=.8)=>new Xr(e,{"0%":{transform:r,opacity:i},"50%":{transform:t,opacity:n},"100%":{transform:r,opacity:i}}),sce=k7("antImageInkFlow1","translate(15%, -20%) scale(1.25)",.5),NQe=k7("antImageInkFlow2","translate(-18%, 15%) scale(0.85)",.9,"translate(0%, 0%) scale(1.1)",.7),lce=k7("antImageInkFlow3","translate(8%, 10%) scale(1.15)",.8,"translate(0%, 0%) scale(0.85)",.65),cce=e=>({position:e||"absolute",inset:0}),PQe=e=>{const{componentCls:t,motionDurationSlow:n,colorTextLightSolid:r}=e;return{[t]:{[`${t}-cover`]:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:r,background:new Rr("#000").setA(.3).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`},"&:hover, &:focus-visible":{[`${t}-cover`]:{opacity:1}},[`${t}-cover-top`]:{inset:"0 0 auto 0",justifyContent:"center"},[`${t}-cover-bottom`]:{inset:"auto 0 0 0",justifyContent:"center"}}}},LQe=e=>{const{componentCls:t,motionDurationMid:n,motionEaseInOut:r,progressAnimationDuration:i}=e,o={position:"absolute",width:"150%",height:"150%",left:"-25%",top:"-25%",animationTimingFunction:r,animationIterationCount:"infinite",pointerEvents:"none",willChange:"transform, opacity"};return{[`${t}-progress-wrapper`]:{position:"relative",display:"inline-block",overflow:"hidden",borderRadius:"inherit",backgroundColor:e.colorBgBase,backdropFilter:"blur(8px)",[`${t}-progress-ink-1`]:te(I({},o),{background:"radial-gradient(ellipse 65% 55% at 25% 30%, rgba(100, 180, 255, 0.98) 0%, transparent 55%)",animationName:sce,animationDuration:i,filter:"blur(40px)","&::before":te(I({content:'""'},o),{background:"radial-gradient(ellipse 60% 65% at 75% 45%, rgba(180, 140, 255, 0.95) 0%, transparent 50%)",animationName:NQe,animationDuration:`calc(${i} + 2s)`,animationDelay:"-1s",filter:"blur(45px)"}),"&::after":te(I({content:'""'},o),{background:"radial-gradient(ellipse 55% 50% at 50% 70%, rgba(100, 220, 220, 0.9) 0%, transparent 45%)",animationName:lce,animationDuration:`calc(${i} + 0.5s)`,animationDelay:"-2s",filter:"blur(38px)"})}),[`${t}-progress-ink-2`]:te(I({},o),{background:"radial-gradient(ellipse 45% 40% at 60% 20%, rgba(255, 150, 200, 0.88) 0%, transparent 45%)",animationName:lce,animationDuration:`calc(${i} + 1.5s)`,animationDelay:"-3s",filter:"blur(42px)","&::before":te(I({content:'""'},o),{background:"radial-gradient(ellipse 50% 55% at 20% 75%, rgba(160, 190, 255, 0.88) 0%, transparent 50%)",animationName:sce,animationDuration:`calc(${i} + 2.5s)`,animationDelay:"-2.5s",filter:"blur(35px)"})}),[`${t}-progress-content`]:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"center",width:"100%",paddingInline:e.paddingLG,textAlign:"center",fontSize:e.fontSize,color:e.colorTextSecondary,zIndex:1},[`${t}-progress-rail`]:{width:"100%",height:6,marginTop:e.marginSM,backgroundColor:"rgba(255, 255, 255, 0.5)",borderRadius:e.borderRadiusXS,overflow:"hidden",backdropFilter:"blur(4px)","&::before":{content:'""',display:"block",height:"100%",width:"var(--progress-percent, 0%)",background:"linear-gradient(90deg, rgba(120, 170, 255, 0.85) 0%, rgba(160, 150, 245, 0.85) 40%, rgba(130, 200, 220, 0.85) 60%, rgba(120, 170, 255, 0.85) 100%)",backgroundSize:"200% 100%",borderRadius:e.borderRadiusXS/2,transition:`width ${n} ease`,animationName:RQe,animationDuration:i,animationTimingFunction:"linear",animationIterationCount:"infinite"}},[`${t}-progress-indicator`]:{marginTop:e.marginXS}}}},FQe=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i,colorBgMask:o,marginXL:a,marginSM:s,margin:l,colorTextLightSolid:c,paddingSM:u,paddingLG:f,previewOperationHoverColor:d,previewOperationColorDisabled:A,previewOperationSize:h,zIndexPopup:p}=e,v=new Rr(o).setA(.1),y=v.clone().setA(.2),b={position:"absolute",color:c,backgroundColor:v.toRgbString(),borderRadius:"50%",padding:u,outline:0,border:0,cursor:"pointer",transition:`all ${r}`,display:"flex",fontSize:h,"&:hover":{backgroundColor:y.toRgbString()},"&:active":{backgroundColor:v.toRgbString()},"&:focus-visible":sc(e)};return{[`${i}-preview`]:{textAlign:"center",inset:0,position:"fixed",userSelect:"none",zIndex:p,[`${n}-mask`]:{inset:0,position:"absolute",background:o,backdropFilter:"blur(0px)",transition:`backdrop-filter ${r}`,[`&${i}-preview-mask-blur`]:{backdropFilter:"blur(4px)"},[`&${i}-preview-mask-hidden`]:{display:"none"}},[`${n}-body`]:te(I({},cce()),{"pointer-events":"none",display:"flex",alignItems:"center",justifyContent:"center","> *":{pointerEvents:"auto"}}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",transition:`transform ${r} ${t} 0s`},[`&-movable ${n}-img`]:{cursor:"grab"},[`&-moving ${n}-img`]:{cursor:"grabbing"},[`${n}-close`]:te(I({},b),{top:s,insetInlineEnd:s}),[`${n}-switch`]:te(I({},b),{top:"50%",transform:"translateY(-50%)","&-disabled":{"&, &:hover, &:active":{color:A,background:"transparent",cursor:"not-allowed"}},"&-prev":{insetInlineStart:s},"&-next":{insetInlineEnd:s}}),[`${n}-footer`]:{position:"absolute",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)",gap:l},[`${n}-actions`]:{display:"flex",gap:u,padding:`0 ${be(f)}`,backgroundColor:v.toRgbString(),borderRadius:100,fontSize:h,"&-action":{color:"inherit",background:"transparent",border:0,font:"inherit",padding:u,cursor:"pointer",transition:`all ${r}`,display:"flex",[`&:not(${n}-actions-action-disabled):hover`]:{color:d},"&:focus-visible":sc(e),"&-disabled":{color:A,cursor:"not-allowed"}}}}}},kQe=e=>{const{componentCls:t}=e;return{[t]:te(I({position:"relative",display:"inline-block"},lc(e)),{[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-placeholder`]:I({},cce())})}},DQe=e=>{const{previewCls:t,motionDurationSlow:n}=e;return{[t]:{"&-fade":{transition:`opacity ${n}`,"&-enter, &-appear":{opacity:0,[`${t}-body`]:{transform:"scale(0)"},"&-active":{opacity:1,[`${t}-body`]:{transform:"scale(1)",transition:`transform ${n}`}}},"&-leave":{opacity:1,"&-active":{opacity:0,[`${t}-body`]:{transform:"scale(0)",transition:`transform ${n}`}}}}}}},uce=Br("Image",e=>{const t=`${e.componentCls}-preview`,n=dr(e,{previewCls:t,imagePreviewSwitchSize:e.controlHeightLG});return[kQe(n),PQe(n),LQe(n),FQe(n),DQe(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Rr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Rr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Rr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5,progressAnimationDuration:"3s"})),D7={rotateLeft:g.createElement(AQe,null),rotateRight:g.createElement(vQe,null),zoomIn:g.createElement(OQe,null),zoomOut:g.createElement(IQe,null),close:g.createElement(Dg,null),left:g.createElement(mA,null),right:g.createElement(od,null),flipX:g.createElement(P7,null),flipY:g.createElement(P7,{rotate:90})},HQe=o=>{var a=o,{previewPrefixCls:e,preview:t,classNames:n,styles:r}=a,i=Ze(a,["previewPrefixCls","preview","classNames","styles"]);const{getPrefixCls:s,getPopupContainer:l,direction:c,preview:u,classNames:f,styles:d}=or("image"),A=s("image",e),h=`${A}-preview`,p=So(A),[v,y]=uce(A,p),b=Ae(v,y,p),[x,C,S]=rI(t),[B,E,_]=rI(u),M=g.useMemo(()=>te(I({},D7),{left:c==="rtl"?g.createElement(od,null):g.createElement(mA,null),right:c==="rtl"?g.createElement(mA,null):g.createElement(od,null)}),[c]),R=ece(x,B,A,b,l,D7),{mask:T,blurClassName:L}=R!=null?R:{},P=te(I({},i),{classNames:n,styles:r}),[k,H]=vr([f,n,{cover:Ae(_,S),popup:{root:Ae(E,C),mask:Ae({[`${A}-preview-mask-hidden`]:!T},L)}}],[d,r],{props:P},{popup:{_default:"root"}});return g.createElement(M7.PreviewGroup,te(I({preview:R,previewPrefixCls:h,icons:M},i),{classNames:k,styles:H}))},UQe={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},jQe=e=>{const{prefixCls:t,percent:n,render:r,classNames:i,styles:o,rootClassName:a,rootStyle:s,width:l,height:c}=e,u=mo(n)&&Number.isFinite(n),f=u?Math.max(0,Math.min(100,Math.round(n))):0,d=u?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f,"aria-label":`${f}%`}:{"aria-busy":!0},A=u?g.createElement("div",{className:Ae(`${t}-progress-rail`,i==null?void 0:i.rail),style:te(I({},o==null?void 0:o.rail),{"--progress-percent":`${f}%`})}):null,h=r?r(A,f):g.createElement(g.Fragment,null,A,u&&g.createElement("div",{className:Ae(`${t}-progress-indicator`,i==null?void 0:i.indicator),style:o==null?void 0:o.indicator},`${f}%`));return g.createElement("div",I({className:Ae(t,`${t}-progress-wrapper`,i==null?void 0:i.root,a),style:I(I({width:l,height:c},s),o==null?void 0:o.root)},d),!u&&g.createElement("span",{role:"status","aria-live":"polite",style:UQe},"Loading"),g.createElement("div",{className:`${t}-progress-ink-1`}),g.createElement("div",{className:`${t}-progress-ink-2`}),g.createElement("div",{className:Ae(`${t}-progress-content`,i==null?void 0:i.content),style:o==null?void 0:o.content},h))},cI=e=>{var Ce,pe;const Ee=e,{prefixCls:t,preview:n,className:r,rootClassName:i,style:o,styles:a,classNames:s,wrapperStyle:l,fallback:c,placeholder:u}=Ee,f=Ze(Ee,["prefixCls","preview","className","rootClassName","style","styles","classNames","wrapperStyle","fallback","placeholder"]),{getPrefixCls:d,getPopupContainer:A,className:h,style:p,preview:v,styles:y,classNames:b,fallback:x}=or("image"),C=d("image",t),S=So(C),[B,E]=uce(C,S),_=Ae(i,B,E,S),M=Ae(r,B,h),[R,T,L]=rI(n),[P,k,H]=rI(v),D=ece(R,P,C,_,A,D7,!0),U=te(I({},e),{preview:D}),j=g.useMemo(()=>({cover:Ae(H,L),popup:{root:Ae(k,T)}}),[T,L,k,H]),{mask:Q,blurClassName:K}=D!=null?D:{},z=g.useMemo(()=>({mask:Ae({[`${C}-preview-mask-hidden`]:!Q},K)}),[Q,C,K]),V=g.useMemo(()=>[b,s,j,{popup:z}],[b,s,j,z]),[Y,Z]=vr(V,[y,{root:l},a],{props:U},{popup:{_default:"root"},placeholder:{}}),W=I(I({},p),o),J=c!=null?c:x,{progressConfig:ee}=sQe(u),ne=ee!==void 0,{percent:re,render:ue}=ee||{},de=(Ce=Y==null?void 0:Y.placeholder)==null?void 0:Ce.progress,se=(pe=Z==null?void 0:Z.placeholder)==null?void 0:pe.progress,Oe=f,{width:ce,height:ge,src:ie}=Oe,le=Ze(Oe,["width","height","src"]),ve=tce(u)?void 0:u,we=ve&&!ie,me=we?xe=>ve:ue;return ne||we?g.createElement(jQe,{prefixCls:C,percent:re,render:me,classNames:de,styles:se,rootClassName:Ae(_,M),rootStyle:I(I({},W),Z==null?void 0:Z.root),width:ce,height:ge}):g.createElement(M7,te(I({prefixCls:C,preview:D||!1,rootClassName:_,className:M,style:W,fallback:J,placeholder:ve,width:ce,height:ge,src:ie},le),{classNames:Y,styles:Z}))};cI.PreviewGroup=HQe;const zQe=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Un),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[s,l]=Cse(a),c=Ae(o,l,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},s,i),u=g.useContext(Ya),f=g.useMemo(()=>te(I({},u),{isFormItemInput:!1}),[u]);return g.createElement(Ya.Provider,{value:f},g.createElement(Yi.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},QQe=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},VQe=Br(["Input","OTP"],e=>{const t=dr(e,Yg(e));return QQe(t)},Xg),KQe=g.forwardRef((e,t)=>{const b=e,{className:n,value:r,onChange:i,onActiveChange:o,index:a,mask:s,onFocus:l}=b,c=Ze(b,["className","value","onChange","onActiveChange","index","mask","onFocus"]),{getPrefixCls:u}=g.useContext(Un),f=u("otp"),d=typeof s=="string"?s:r,A=g.useRef(null);g.useImperativeHandle(t,()=>A.current);const h=x=>{i(a,x.target.value)},p=()=>{Kn(()=>{var C;const x=(C=A.current)==null?void 0:C.input;document.activeElement===x&&x&&x.select()})},v=x=>{l==null||l(x),p()},y=x=>{const{key:C,ctrlKey:S,metaKey:B}=x;C==="ArrowLeft"?o(a-1):C==="ArrowRight"?o(a+1):C==="z"&&(S||B)?x.preventDefault():C==="Backspace"&&!r&&o(a-1),p()};return g.createElement("span",{className:`${f}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&g.createElement("span",{className:`${f}-mask-icon`,"aria-hidden":"true"},d),g.createElement(Gb,te(I({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},c),{ref:A,value:r,onInput:h,onFocus:v,onKeyDown:y,onMouseDown:p,onMouseUp:p,className:Ae(n,{[`${f}-mask-input`]:s})})))});function uI(e){return(e||"").split("")}const WQe=e=>{const{index:t,prefixCls:n,separator:r,className:i,style:o}=e,a=Rn(r)?r(t):r;return a?g.createElement("span",{className:Ae(`${n}-separator`,i),style:o},a):null},GQe=g.forwardRef((e,t)=>{const me=e,{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:d,autoFocus:A,mask:h,type:p,autoComplete:v,onInput:y,onFocus:b,inputMode:x,classNames:C,styles:S,className:B,style:E}=me,_=Ze(me,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","autoComplete","onInput","onFocus","inputMode","classNames","styles","className","style"]),{classNames:M,styles:R,getPrefixCls:T,direction:L,style:P,className:k}=or("otp"),H=T("otp",n),D=te(I({},e),{length:r}),U=Ar(P),j=Ar(E),[Q,K]=vr([M,C],[R,U,S,j],{props:D}),z=Co(_,{aria:!0,data:!0,attr:!0}),[V,Y]=VQe(H),Z=aa(Ee=>i!=null?i:Ee),W=g.useContext(Ya),J=Vg(W.status,d),ee=g.useMemo(()=>te(I({},W),{status:J,hasFeedback:!1,feedbackIcon:null}),[W,J]),ne=g.useRef(null),re=g.useRef({});g.useImperativeHandle(t,()=>({focus:()=>{var Ee;(Ee=re.current[0])==null||Ee.focus()},blur:()=>{var Ee;for(let Ce=0;Cel?l(Ee):Ee,[de,se]=g.useState(()=>uI(ue(o||"")));g.useEffect(()=>{a!==void 0&&se(uI(a))},[a]);const ce=yn(Ee=>{se(Ee),y&&y(Ee),s&&Ee.length===r&&Ee.every(Ce=>Ce)&&Ee.some((Ce,pe)=>de[pe]!==Ce)&&s(Ee.join(""))}),ge=yn((Ee,Ce)=>{let pe=en(de);for(let xe=0;xe=0&&!pe[xe];xe-=1)pe.pop();const Oe=ue(pe.map(xe=>xe||" ").join(""));return pe=uI(Oe).map((xe,Me)=>xe===" "&&!pe[Me]?pe[Me]:xe),pe}),ie=(Ee,Ce)=>{var xe;const pe=ge(Ee,Ce),Oe=Math.min(Ee+Ce.length,r-1);Oe!==Ee&&pe[Ee]!==void 0&&((xe=re.current[Oe])==null||xe.focus()),ce(pe)},le=Ee=>{var Ce;(Ce=re.current[Ee])==null||Ce.focus()},ve=(Ee,Ce)=>{var pe,Oe,xe;for(let Me=0;Me{const pe=`otp-${Ce}`,Oe=de[Ce]||"";return g.createElement(g.Fragment,{key:pe},g.createElement(KQe,I({ref:xe=>{re.current[Ce]=xe},index:Ce,size:Z,htmlSize:1,className:Ae(Q.input,`${H}-input`),style:K.input,onChange:ie,value:Oe,onActiveChange:le,autoFocus:Ce===0&&A,onFocus:xe=>ve(xe,Ce)},we)),Ceg.createElement(Wn,H7({},e,{ref:t,icon:XQe})),JQe=g.forwardRef(ZQe);var dI={},dce;function eVe(){if(dce)return dI;dce=1,Object.defineProperty(dI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};return dI.default=e,dI}var tVe=eVe();const nVe=_t(tVe);function U7(){return U7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,U7({},e,{ref:t,icon:nVe})),Ace=g.forwardRef(rVe),iVe=e=>e?g.createElement(Ace,null):g.createElement(JQe,null),oVe={click:"onClick",hover:"onMouseOver"},aVe=g.forwardRef((e,t)=>{const V=e,{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o,prefixCls:a,inputPrefixCls:s,suffix:l,className:c,style:u,classNames:f,styles:d}=V,A=Ze(V,["disabled","action","visibilityToggle","iconRender","prefixCls","inputPrefixCls","suffix","className","style","classNames","styles"]),{getPrefixCls:h,className:p,style:v,classNames:y,styles:b,iconRender:x}=or("inputPassword"),[C]=zs("global"),S=g.useContext(qa),B=n!=null?n:S,E=te(I({},e),{disabled:B}),[_,M]=vr([y,f],[b,d],{props:E}),R=Zn(i)&&i.visible!==void 0,[T,L]=g.useState(()=>R?i.visible:!1),P=g.useRef(null);g.useEffect(()=>{R&&L(i.visible)},[R,i]);const k=Cle(P),H=()=>{var Z;if(B)return;T&&k();const Y=!T;L(Y),Zn(i)&&((Z=i.onVisibleChange)==null||Z.call(i,Y))},D=Y=>{const Z=oVe[r]||"",J=(o||x||iVe)(T),ee=Zn(i)?i.tabIndex:void 0;return g.createElement("span",{key:"passwordIcon",role:"button",tabIndex:B?-1:ee!=null?ee:0,className:`${Y}-icon`,"aria-disabled":B,"aria-pressed":T,"aria-label":T?C.hide:C.show,onMouseDown:ne=>{ne.preventDefault()},onMouseUp:ne=>{ne.preventDefault()},onKeyDown:ne=>{(ne.key==="Enter"||ne.key===" ")&&(ne.preventDefault(),H())},[Z]:H},J)},U=h("input",s),j=h("input-password",a),Q=i&&D(j),K=Ae(j,p,c,{[`${j}-${e.size}`]:!!e.size}),z=te(I({},A),{type:T?"text":"password",prefixCls:U,suffix:g.createElement(g.Fragment,null,Q,l),disabled:B,className:K,style:I(I({},v),u),classNames:_,styles:M});return g.createElement(Gb,I({ref:il(t,P)},z))}),sVe=e=>{var u;const{componentCls:t,antCls:n,calc:r,max:i}=e,o=`${t}-btn`,[a,s]=go(n,"input-search"),l=(u=e.inputFontSizeSM)!=null?u:e.fontSize,c=i(e.controlHeightSM,r(l).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[a("btn-height")]:be(e.controlHeight),width:"100%",[o]:{height:s("btn-height"),[`&${n}-btn-icon-only`]:{width:s("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[a("btn-height")]:be(e.controlHeightLG)},[`&${t}-small`]:{[a("btn-height")]:be(e.controlHeightSM)},[`&${t}-small ${o}`]:{minHeight:c,[`&${e.antCls}-btn-icon-only`]:{minWidth:c}}}}},lVe=Br(["Input","Search"],e=>{const t=dr(e,Yg(e));return sVe(t)},Xg),cVe=g.forwardRef((e,t)=>{const me=e,{prefixCls:n,inputPrefixCls:r,className:i,size:o,style:a,enterButton:s=!1,searchIcon:l,addonAfter:c,loading:u,disabled:f,onSearch:d,onChange:A,onCompositionStart:h,onCompositionEnd:p,variant:v,onPressEnter:y,classNames:b,styles:x,hidden:C}=me,S=Ze(me,["prefixCls","inputPrefixCls","className","size","style","enterButton","searchIcon","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter","classNames","styles","hidden"]),{direction:B,getPrefixCls:E,className:_,style:M,classNames:R,styles:T,searchIcon:L}=or("inputSearch"),P=te(I({},e),{enterButton:s}),[k,H]=vr([R,b],[T,x],{props:P},{button:{_default:"root"}}),D=g.useRef(!1),U=E("input-search",n),j=E("input",r),[Q,K]=lVe(U),{compactSize:z}=hA(U,B),V=aa(Ee=>{var Ce;return(Ce=o!=null?o:z)!=null?Ce:Ee}),Y=g.useRef(null),Z=Ee=>{Ee!=null&&Ee.target&&Ee.type==="click"&&d&&d(Ee.target.value,Ee,{source:"clear"}),A==null||A(Ee)},W=Ee=>{var Ce;document.activeElement===((Ce=Y.current)==null?void 0:Ce.input)&&Ee.preventDefault()},J=Ee=>{var Ce,pe;d&&d((pe=(Ce=Y.current)==null?void 0:Ce.input)==null?void 0:pe.value,Ee,{source:"input"})},ee=Ee=>{D.current||u||(y==null||y(Ee),J(Ee))},ne=typeof s=="boolean"?du(l,L,g.createElement(Kg,null)):null,re=`${U}-btn`,ue=Ae(re,{[`${re}-${v}`]:v});let de;const se=s||{},ce=se.type&&se.type.__ANT_BUTTON===!0;if(ce||se.type==="button"){const Ee=se.props;de=Ga(se,I({onMouseDown:W,onClick:Ce=>{var pe,Oe;(Oe=(pe=se==null?void 0:se.props)==null?void 0:pe.onClick)==null||Oe.call(pe,Ce),J(Ce)},key:"enterButton"},ce?{className:Ae(ue,Ee.className),size:V}:{}))}else de=g.createElement(qn,{classNames:k.button,styles:H.button,className:ue,color:s?"primary":"default",size:V,disabled:f,key:"enterButton",onMouseDown:W,onClick:J,loading:u,icon:ne,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s);c&&(de=[de,Ga(c,{key:"addonAfter"})]);const ge=Ae(U,K,{[`${U}-rtl`]:B==="rtl",[`${U}-${V}`]:!!V,[`${U}-with-button`]:!!s},i,_,Q,k.root),ie=Ee=>{D.current=!0,h==null||h(Ee)},le=Ee=>{D.current=!1,p==null||p(Ee)},ve=Co(S,{data:!0}),we=ti(te(I({},S),{classNames:ti(k,["button","root"]),styles:ti(H,["button","root"]),prefixCls:j,type:"search",size:V,variant:v,onPressEnter:ee,onCompositionStart:ie,onCompositionEnd:le,onChange:Z,disabled:f}),Object.keys(ve));return g.createElement(x8,te(I({className:ge,style:I(I(I({},H.root),M),a)},ve),{hidden:C}),g.createElement(Gb,I({ref:il(Y,t)},we)),de)}),uVe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + ${r}-col-xl-24${n}-label`]:SE(e)},[`@media (max-width: ${Q(e.screenXSMax)})`]:[uge(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:SE(e)}}}],[`@media (max-width: ${Q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:SE(e)}}},[`@media (max-width: ${Q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:SE(e)}}},[`@media (max-width: ${Q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:SE(e)}}}}},fge=e=>{var t;return{labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:(t=e.labelHeight)==null?`auto`:t,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}},pge=(e,t)=>bl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),CE=dd(`Form`,(e,{rootPrefixCls:t})=>{let n=pge(e,t);return[oge(n),sge(n),rge(n),cge(n),lge(n),dge(n),jh(n),Kh]},fge,{order:-1e3});K();var mge=[];function wE(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var hge=({help:e,helpStatus:t,errors:n=mge,warnings:r=mge,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=J.useContext(y_),{classNames:c,styles:l}=J.useContext(v_),u=`${s}-item-explain`,d=Fp(s),[f,p]=CE(s,d),m=J.useMemo(()=>dh(s),[s]),h=xE(n),g=xE(r),_=ap(e),v=J.useMemo(()=>_?[wE(e,`help`,t)]:[].concat(Co(h.map((e,t)=>wE(e,`error`,`error`,t))),Co(g.map((e,t)=>wE(e,`warning`,`warning`,t)))),[e,t,_,h,g]),y=J.useMemo(()=>{let e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>G(G({},t),{},{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),b={};return a&&(b.id=`${a}_help`),J.createElement(ip,{motionDeadline:m.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return J.createElement(`div`,G(G({},b),{},{className:Z(u,t,c==null?void 0:c.help,p,d,i,f),style:G(G({},l==null?void 0:l.help),n)}),J.createElement(rp,G(G({keys:y},dh(s)),{},{motionName:`${s}-show-help-item`,component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return J.createElement(`div`,{key:t,className:Z(i,c==null?void 0:c.helpItem,{[`${u}-${r}`]:r}),style:G(G({},l==null?void 0:l.helpItem),a)},n)}))})};K();var gge=[`prefixCls`,`className`,`rootClassName`,`size`,`disabled`,`form`,`colon`,`labelAlign`,`labelWrap`,`labelCol`,`wrapperCol`,`layout`,`scrollToFirstError`,`requiredMark`,`onFinishFailed`,`name`,`style`,`feedbackIcons`,`variant`,`classNames`,`styles`,`tooltip`],_ge=J.forwardRef((e,t)=>{let n=J.useContext(gm),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:m}=ko(`form`),{prefixCls:h,className:g,rootClassName:_,size:v,disabled:y=n,form:b,colon:x,labelAlign:S,labelWrap:C,labelCol:w,wrapperCol:T,layout:E=`horizontal`,scrollToFirstError:D,requiredMark:O,onFinishFailed:k,name:A,style:j,feedbackIcons:M,variant:N,classNames:P,styles:F,tooltip:I}=e,L=q(e,gge),R=vh(v),z=J.useContext(Ip),B=J.useMemo(()=>O===void 0?a===void 0||a:O,[O,a]),V=x==null?o:x,H=S==null?p:S,U=C==null?m:C,ee=G(G({},f),I),te=r(`form`,h),ne=Fp(te),[re,ie]=CE(te,ne),ae=G(G({},e),{},{size:R,disabled:y,layout:E,colon:V,requiredMark:B,labelAlign:H,labelWrap:U}),oe=yp(l),se=yp(j),[ce,le]=xp([d,P],[u,oe,F,se],{props:ae}),ue=Z(te,`${te}-${E}`,{[`${te}-hide-required-mark`]:B===!1,[`${te}-rtl`]:i===`rtl`,[`${te}-large`]:R===`large`,[`${te}-small`]:R===`small`},ie,ne,re,c,g,_,ce.root),[de]=zC(b),{__INTERNAL__:fe}=de;fe.name=A;let pe=J.useMemo(()=>({name:A,labelAlign:H,labelCol:w,labelWrap:U,wrapperCol:T,layout:E,colon:V,requiredMark:B,itemRef:fe.itemRef,form:de,feedbackIcons:M,tooltip:ee,classNames:ce,styles:le}),[A,H,U,w,T,E,V,B,de,M,ce,le,ee]),me=J.useRef(null);J.useImperativeHandle(t,()=>{var e;return G(G({},de),{},{nativeElement:(e=me.current)==null?void 0:e.nativeElement})});let he=(e,t)=>{if(e){let n={block:`nearest`};lp(e)&&(n=G(G({},n),e)),de.scrollToField(t,n)}};return J.createElement(Uie.Provider,{value:N},J.createElement(_m,{disabled:y},J.createElement(vm.Provider,{value:R},J.createElement(Vie,{validateMessages:z},J.createElement(v_.Provider,{value:pe},J.createElement(Hie,{status:!0},J.createElement(__,G(G({id:A},L),{},{name:A,onFinishFailed:e=>{if(k==null||k(e),e.errorFields.length){let t=e.errorFields[0].name;if(D!==void 0){he(D,t);return}s!==void 0&&he(s,t)}},form:de,ref:me,style:le==null?void 0:le.root,className:ue}))))))))}),vge=e=>{if(up(e))return e;let t=Ia(e);return t.length<=1?t[0]:t},yge=()=>{let{status:e,errors:t=[],warnings:n=[]}=J.useContext(b_);return{status:e,errors:t,warnings:n}};yge.Context=b_;function bge(e){let[t,n]=J.useState(e),r=J.useRef(null),i=J.useRef([]),a=J.useRef(!1);J.useEffect(()=>(a.current=!1,()=>{a.current=!0,Fa.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=Fa(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var xge=()=>{let{itemRef:e}=J.useContext(v_),t=J.useRef({});return(n,r)=>{let i=r&&lp(r)&&bi(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=hi(e(n),i)),t.current.ref}},Sge=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},Cge=pd([`Form`,`item-item`],(e,{rootPrefixCls:t})=>Sge(pge(e,t)));K();var wge=[`labelCol`,`wrapperCol`],Tge=24,Ege=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,h=`${t}-item`,g=J.useContext(v_),{classNames:_,styles:v}=g,y=J.useMemo(()=>{let e=G({},i||g.wrapperCol||{});return m===null&&!r&&!i&&g.labelCol&&[void 0].concat(Co(Ry)).forEach(t=>{let n=t?[t]:[],r=Ra(g.labelCol,n),i=lp(r)?r:{},a=Ra(e,n),o=lp(a)?a:{};`span`in i&&!(`offset`in o)&&i.span{let{labelCol:e,wrapperCol:t}=g;return q(g,wge)},[g]),S=J.useRef(null),[C,w]=J.useState(0);Xr(()=>{l&&S.current?w(S.current.clientHeight):w(0)},[l]);let T=J.createElement(`div`,{className:`${h}-control-input`},J.createElement(`div`,{className:Z(`${h}-control-input-content`,_==null?void 0:_.content),style:v==null?void 0:v.content},a)),E=J.useMemo(()=>({prefixCls:t,status:n}),[t,n]),D=f!==null||o.length||s.length?J.createElement(y_.Provider,{value:E},J.createElement(hge,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,O={};d&&(O.id=`${d}_extra`);let k=l?J.createElement(`div`,G(G({},O),{},{className:Z(`${h}-extra`,_==null?void 0:_.extra),style:v==null?void 0:v.extra,ref:S}),l):null,A=D||k?J.createElement(`div`,{className:`${h}-additional`,style:f?{minHeight:f+C}:{}},D,k):null,j=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:T,errorList:D,extra:k}):J.createElement(J.Fragment,null,T,A);return J.createElement(v_.Provider,{value:x},J.createElement(DT,G(G({},y),{},{className:b}),j),J.createElement(Cge,{prefixCls:t}))},Dge=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`}}))());function TE(){return TE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,TE({},e,{ref:t,icon:Dge.default})));K();var kge=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=Hp(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:m,classNames:h,styles:g,tooltip:_}=J.useContext(v_);if(!t)return null;let v=r||f||{},y=i||d,b=`${e}-item-label`,x=Z(b,y===`left`&&`${b}-left`,v.className,{[`${b}-wrap`]:!!p}),S=t,C=a===!0||m!==!1&&a!==!1;C&&!l&&typeof t==`string`&&t.trim()&&(S=t.replace(/[:|:]\s*$/,``));let w=nge(c,_);if(w){let t=J.createElement(ab,G({},w),J.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},w.icon||w.children||J.createElement(Oge,null)));S=J.createElement(J.Fragment,null,S,t)}let T=s===`optional`,E=up(s),D=s===!1;if(E)S=s(S,{required:!!o});else if(T&&!o){var O;S=J.createElement(J.Fragment,null,S,J.createElement(`span`,{className:`${e}-item-optional`},(u==null?void 0:u.optional)||((O=Wn.Form)==null?void 0:O.optional)))}let k;D?k=`hidden`:(T||E)&&(k=`optional`);let A=Z(h==null?void 0:h.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!C});return J.createElement(DT,G(G({},v),{},{className:x}),J.createElement(`label`,{htmlFor:n,className:A,style:g==null?void 0:g.label,title:typeof t==`string`?t:void 0},S))},Age={success:Zd,warning:sf,error:ef,validating:Fm};function jge({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=J.useContext(v_),d=IC(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h,name:g}=J.useContext(b_),_=J.useMemo(()=>{let e;if(r){var i;let a=r!==!0&&r.icons||u,o=d&&(a==null||(i=a({status:d,errors:t,warnings:n}))==null?void 0:i[d]),s=d?Age[d]:null;e=o!==!1&&s?J.createElement(`span`,{className:Z(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},o||J.createElement(s,null)):null}let a={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(a.status=(d==null?p:d)||``,a.isFormItemInput=f,a.hasFeedback=!!(r==null?m:r),a.feedbackIcon=r===void 0?h:a.feedbackIcon,a.name=c==null?g:c),a},[d,r,s,f,p,l,m]);return J.createElement(b_.Provider,{value:_},e)}K();var Mge=[`prefixCls`,`className`,`rootClassName`,`style`,`help`,`errors`,`warnings`,`validateStatus`,`meta`,`hasFeedback`,`hidden`,`children`,`fieldId`,`required`,`isRequired`,`onSubItemMetaChange`,`layout`,`name`];function Nge(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:h,onSubItemMetaChange:g,layout:_,name:v}=e,y=q(e,Mge),b=`${t}-item`,{requiredMark:x,layout:S}=J.useContext(v_),C=_||S,w=C===`vertical`,T=J.useRef(null),E=xE(o),D=xE(s),O=ap(a),k=!!(O||o.length||s.length),A=!!T.current&&Li(T.current),[j,M]=J.useState(null);Xr(()=>{if(k&&T.current){let e=getComputedStyle(T.current);M(Number.parseInt(e.marginBottom,10))}},[k,A]);let N=e=>{e||M(null)},P=((e=!1)=>IC(e?E:l.errors,e?D:l.warnings,l,``,!!u,c))(),F=Z(b,n,r,{[`${b}-with-help`]:O||E.length||D.length,[`${b}-has-feedback`]:P&&u,[`${b}-has-success`]:P===`success`,[`${b}-has-warning`]:P===`warning`,[`${b}-has-error`]:P===`error`,[`${b}-is-validating`]:P===`validating`,[`${b}-hidden`]:d,[`${b}-${C}`]:C});return J.createElement(`div`,{className:F,style:i,ref:T},J.createElement(Tpe,G({className:`${b}-row`},Ca(y,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))),J.createElement(kge,G(G({htmlFor:p},e),{},{requiredMark:x,required:m==null?h:m,prefixCls:t,vertical:w})),J.createElement(Ege,G(G(G({},e),l),{},{errors:E,warnings:D,prefixCls:t,status:P,help:a,marginBottom:j,onErrorVisibleChanged:N}),J.createElement(Bie.Provider,{value:g},J.createElement(jge,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:P,name:v},f)))),!!j&&J.createElement(`div`,{className:`${b}-margin-offset`,style:{marginBottom:-j}}))}K();var Pge=`__SPLIT__`;function Fge(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||up(r)||up(i)})}var Ige=J.memo(e=>e.children,(e,t)=>Fge(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function Lge(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Rge(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:m,help:h,layout:g}=e,{getPrefixCls:_}=J.useContext(Eo),{name:v}=J.useContext(v_),y=vge(c),b=up(y),x=J.useContext(Bie),{validateTrigger:S}=J.useContext(Ag),C=ap(p)?p:S,w=ap(t),T=_(`form`,a),E=Fp(T),[D,O]=CE(T,E);eo(`Form.Item`);let k=J.useContext(jg),A=J.useRef(null),[j,M]=bge({}),[N,P]=Qr(()=>Lge()),F=e=>{let t=k==null?void 0:k.getKey(e.name);if(P(e.destroy?Lge():e,!0),n&&h!==!1&&x){let n=e.name;if(e.destroy)n=A.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(Co(r)),A.current=n}x(e,n)}},I=(e,t)=>{M(n=>{let r=G({},n),i=[].concat(Co(e.name.slice(0,-1)),Co(t)).join(Pge);return e.destroy?delete r[i]:r[i]=e,r})},[L,R]=J.useMemo(()=>{let e=Co(N.errors),t=Co(N.warnings);return Object.values(j).forEach(n=>{e.push.apply(e,Co(n.errors||[])),t.push.apply(t,Co(n.warnings||[]))}),[e,t]},[j,N.errors,N.warnings]),z=xge();function B(i,a,o){return n&&!m?J.createElement(jge,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:L,warnings:R,noStyle:!0,name:t},i):J.createElement(Nge,G(G({key:`row`},e),{},{className:Z(r,O,E,D),prefixCls:T,fieldId:a,isRequired:o,errors:L,warnings:R,meta:N,onSubItemMetaChange:I,layout:g,name:t}),i)}if(!w&&!b&&!i)return B(y);let V={};return typeof u==`string`?V.label=u:t&&(V.label=String(t)),d&&(V=G(G({},V),d)),J.createElement(l_,G(G({},e),{},{messageVariables:V,trigger:f,validateTrigger:C,onMetaChange:F}),(n,r,a)=>{let c=PC(t).length&&r?r.name:[],u=FC(c,v),d=l===void 0?s==null?void 0:s.some(e=>{if(lp(e)&&e.required&&!e.warningOnly)return!0;if(up(e)){let t=e(a);return(t==null?void 0:t.required)&&!(t!=null&&t.warningOnly)}return!1}):l,p=G({},n),m=null;if(Array.isArray(y)&&w)m=y;else if(!(b&&(!(o||i)||w))&&!(i&&!b&&!w))if(J.isValidElement(y)){let t=G(G({},y.props),p);if(t.id||(t.id=u),h||L.length>0||R.length>0||e.extra){let n=[];(h||L.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}L.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),_i(y)&&(t.ref=z(c,y)),new Set([].concat(Co(PC(f)),Co(PC(C)))).forEach(e=>{t[e]=(...t)=>{var n,r,i;(n=p[e])==null||n.call(p,...t),(r=(i=y.props)[e])==null||r.call(i,...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=J.createElement(Ige,{control:p,update:y,childProps:n},pm(y,t))}else m=b&&(o||i)&&!w?y(a):y;return B(m,u,d)})}var zge=Rge;zge.useStatus=yge,K();var Bge=[`prefixCls`,`children`],Vge=e=>{let{prefixCls:t,children:n}=e,r=q(e,Bge),{getPrefixCls:i}=J.useContext(Eo),a=i(`form`,t),o=J.useMemo(()=>({prefixCls:a,status:`error`}),[a]);return J.createElement(Mie,G({},r),(e,t,r)=>J.createElement(y_.Provider,{value:o},n(e.map(e=>G(G({},e),{},{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))};function Hge(){let{form:e}=J.useContext(v_);return e}var EE=_ge;EE.Item=zge,EE.List=Vge,EE.ErrorList=hge,EE.useForm=zC,EE.useFormInstance=Hge,EE.useWatch=zie,EE.Provider=Vie;var DE=J.createContext(null);function Uge(e){return new Promise(t=>{if(!e){t(!1);return}let n=document.createElement(`img`);n.onerror=()=>t(!1),n.onload=()=>t(!0),n.src=e})}function Wge(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}K();var OE={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Gge(e,t,n,r){let i=(0,J.useRef)(null),a=(0,J.useRef)([]),[o,s]=(0,J.useState)(OE),c=e=>{s(OE),ya(OE,o)||r==null||r({transform:OE,action:e})},l=(e,t)=>{i.current===null&&(a.current=[],i.current=Fa(()=>{s(e=>{let n=e;return a.current.forEach(e=>{n=G(G({},n),e)}),i.current=null,r==null||r({transform:n,action:t}),n})})),a.current.push(G(G({},o),e))};return{transform:o,resetTransform:c,updateTransform:l,dispatchZoomChange:(r,i,a,s,c)=>{let{width:u,height:d,offsetWidth:f,offsetHeight:p,offsetLeft:m,offsetTop:h}=e.current,g=r,_=o.scale*r;_>n?(_=n,g=n/o.scale):_r){if(t>0)return{[e]:a};if(t<0&&ir)return{[e]:t<0?a:-a};return{}}function qge(e,t,n,r){let{width:i,height:a}=Wge(),o=null;return e<=i&&t<=a?o={x:0,y:0}:(e>i||t>a)&&(o=G(G({},Kge(`x`,n,e,i)),Kge(`y`,r,t,a))),o}K();function Jge(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,J.useState)(!1),p=(0,J.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),m=e=>{!t||e.button!==0||(e.preventDefault(),e.stopPropagation(),p.current={diffX:e.pageX-l,diffY:e.pageY-u,transformX:l,transformY:u},f(!0))},h=e=>{n&&d&&a({x:e.pageX-p.current.diffX,y:e.pageY-p.current.diffY},`move`)},g=()=>{if(n&&d){f(!1);let{transformX:t,transformY:n}=p.current;if(!(l!==t&&u!==n))return;let r=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:d}=e.current.getBoundingClientRect(),m=s%180!=0,h=qge(m?i:r,m?r:i,o,d);h&&a(G({},h),`dragRebound`)}};return(0,J.useEffect)(()=>{if(t){window.addEventListener(`mouseup`,g,!1),window.addEventListener(`mousemove`,h,!1);try{window.top!==window.self&&(window.top.addEventListener(`mouseup`,g,!1),window.top.addEventListener(`mousemove`,h,!1))}catch(e){`${e}`}}return()=>{window.removeEventListener(`mouseup`,g),window.removeEventListener(`mousemove`,h);try{var e,t;(e=window.top)==null||e.removeEventListener(`mouseup`,g),(t=window.top)==null||t.removeEventListener(`mousemove`,h)}catch(e){}}},[n,d,l,u,s,t]),{isMoving:d,onMouseDown:m,onMouseMove:h,onMouseUp:g,onWheel:e=>{if(!n||e.deltaY==0)return;let t=Math.abs(e.deltaY/100),i=1+Math.min(t,1)*r;e.deltaY>0&&(i=1/i),o(i,`wheel`,e.clientX,e.clientY)}}}function Yge({src:e,isCustomPlaceholder:t,fallback:n}){let[r,i]=(0,J.useState)(t?`loading`:`normal`),a=(0,J.useRef)(!1),o=r===`error`;(0,J.useEffect)(()=>{let t=!0;return Uge(e).then(e=>{!e&&t&&i(`error`)}),()=>{t=!1}},[e]),(0,J.useEffect)(()=>{t&&!a.current?i(`loading`):o&&i(`normal`)},[e]);let s=()=>{i(`normal`)};return[e=>{a.current=!1,r===`loading`&&e!=null&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(a.current=!0,s())},o&&n?{src:n}:{onLoad:s,src:e},r]}K();function kE(e,t){let n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Xge(e,t,n,r){let i=kE(e,n),a=kE(t,r);if(i===0&&a===0)return[e.x,e.y];let o=i/(i+a);return[e.x+o*(t.x-e.x),e.y+o*(t.y-e.y)]}function Zge(e,t,n,r,i,a,o){let{rotate:s,scale:c,x:l,y:u}=i,[d,f]=(0,J.useState)(!1),p=(0,J.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:`none`}),m=e=>{p.current=G(G({},p.current),e)};return(0,J.useEffect)(()=>{let e=e=>{e.preventDefault()};return n&&t&&window.addEventListener(`touchmove`,e,{passive:!1}),()=>{window.removeEventListener(`touchmove`,e)}},[n,t]),{isTouching:d,onTouchStart:e=>{if(!t)return;e.stopPropagation(),f(!0);let{touches:n=[]}=e;n.length>1?m({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:`touchZoom`}):m({point1:{x:n[0].clientX-l,y:n[0].clientY-u},eventType:`move`})},onTouchMove:e=>{let{touches:t=[]}=e,{point1:n,point2:r,eventType:i}=p.current;if(t.length>1&&i===`touchZoom`){let e={x:t[0].clientX,y:t[0].clientY},i={x:t[1].clientX,y:t[1].clientY},[a,s]=Xge(n,r,e,i);o(kE(e,i)/kE(n,r),`touchZoom`,a,s,!0),m({point1:e,point2:i,eventType:`touchZoom`})}else i===`move`&&(a({x:t[0].clientX-n.x,y:t[0].clientY-n.y},`move`),m({eventType:`move`}))},onTouchEnd:()=>{if(!n)return;if(d&&f(!1),m({eventType:`none`}),r>c)return a({x:0,y:0,scale:r},`touchZoom`);let t=e.current.offsetWidth*c,i=e.current.offsetHeight*c,{left:o,top:l}=e.current.getBoundingClientRect(),u=s%180!=0,p=qge(u?i:t,u?t:i,o,l);p&&a(G({},p),`dragRebound`)}}}function Qge(e){let{prefixCls:t,icon:n,onClick:r,className:i,style:a}=e;return J.createElement(`button`,{className:Z(`${t}-close`,i),style:a,onClick:r},n)}function $ge(e){let{prefixCls:t,showProgress:n,current:r,count:i,showSwitch:a,classNames:o,styles:s,icons:c,image:l,transform:u,countRender:d,actionsRender:f,scale:p,minScale:m,maxScale:h,onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:x,onZoomIn:S,onClose:C,onReset:w}=e,{left:T,right:E,prev:D,next:O,flipY:k,flipX:A,rotateLeft:j,rotateRight:M,zoomOut:N,zoomIn:P}=c,F=n&&J.createElement(`div`,{className:`${t}-progress`},d?d(r+1,i):J.createElement(`bdi`,null,`${r+1} / ${i}`)),I=`${t}-actions-action`,L=({type:e,disabled:t,onClick:n,icon:r})=>J.createElement(`button`,{type:`button`,key:e,className:Z(I,`${I}-${e}`,{[`${I}-disabled`]:!!t}),onClick:n,disabled:!!t,"aria-label":e},r),R=a?L({icon:D==null?T:D,onClick:()=>g(-1),type:`prev`,disabled:r===0}):void 0,z=a?L({icon:O==null?E:O,onClick:()=>g(1),type:`next`,disabled:r===i-1}):void 0,B=L({icon:k,onClick:_,type:`flipY`}),V=L({icon:A,onClick:v,type:`flipX`}),H=L({icon:j,onClick:y,type:`rotateLeft`}),U=L({icon:M,onClick:b,type:`rotateRight`}),ee=L({icon:N,onClick:x,type:`zoomOut`,disabled:p<=m}),te=L({icon:P,onClick:S,type:`zoomIn`,disabled:p===h}),ne=J.createElement(`div`,{className:Z(`${t}-actions`,o.actions),style:s.actions},B,V,H,U,ee,te);return J.createElement(`div`,{className:Z(`${t}-footer`,o.footer),style:s.footer},F,f?f(ne,{icons:{prevIcon:R,nextIcon:z,flipYIcon:B,flipXIcon:V,rotateLeftIcon:H,rotateRightIcon:U,zoomOutIcon:ee,zoomInIcon:te},actions:{onActive:g,onFlipY:_,onFlipX:v,onRotateLeft:y,onRotateRight:b,onZoomOut:x,onZoomIn:S,onReset:w,onClose:C},transform:u,current:r,total:i,image:l}):ne)}function e_e(e){let{prefixCls:t,onActive:n,current:r,count:i,icons:{left:a,right:o,prev:s,next:c}}=e,l=`${t}-switch`,u=r===0,d=r===i-1;return J.createElement(J.Fragment,null,J.createElement(`button`,{className:Z(l,`${l}-prev`,{[`${l}-disabled`]:u}),onClick:()=>n(-1),disabled:u},s==null?a:s),J.createElement(`button`,{type:`button`,className:Z(l,`${l}-next`,{[`${l}-disabled`]:d}),onClick:()=>n(1),disabled:d},c==null?o:c))}K();var t_e=[`fallback`,`src`,`imgRef`];function AE(){return AE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{fallback:t,src:n,imgRef:r}=e,i=q(e,t_e),[a,o]=Yge({src:n,fallback:t});return J.createElement(`img`,AE({ref:e=>{r.current=e,a(e)}},i,o))},r_e=e=>{let{prefixCls:t,rootClassName:n,src:r,alt:i,imageInfo:a,fallback:o,movable:s=!0,onClose:c,open:l,afterOpenChange:u,maskClosable:d=!0,icons:f={},closeIcon:p,getContainer:m,current:h=0,count:g=1,countRender:_,scaleStep:v=.5,minScale:y=1,maxScale:b=50,motionName:x=`fade`,imageRender:S,imgCommonProps:C,actionsRender:w,onTransform:T,onChange:E,classNames:D={},styles:O={},mousePosition:k,zIndex:A,focusTrap:j=!0}=e,M=(0,J.useRef)(),N=(0,J.useRef)(null),P=(0,J.useRef)(null),F=(0,J.useContext)(DE),I=F&&g>1,L=F&&g>=1,[R,z]=(0,J.useState)(!0),{transform:B,resetTransform:V,updateTransform:H,dispatchZoomChange:U}=Gge(M,y,b,T),{isMoving:ee,onMouseDown:te,onWheel:ne}=Jge(M,s,l,v,B,H,U),{isTouching:re,onTouchStart:ie,onTouchMove:ae,onTouchEnd:oe}=Zge(M,s,l,y,B,H,U),{rotate:se,scale:ce}=B;(0,J.useEffect)(()=>{R||z(!0)},[R]),(0,J.useEffect)(()=>{l||V(`close`)},[l]);let le=J.createElement(n_e,AE({},C,{width:e.width,height:e.height,imgRef:M,className:`${t}-img`,alt:i,style:{transform:`translate3d(${B.x}px, ${B.y}px, 0) scale3d(${B.flipX?`-`:``}${ce}, ${B.flipY?`-`:``}${ce}, 1) rotate(${se}deg)`,transitionDuration:(!R||re)&&`0s`},fallback:o,src:r,onWheel:ne,onMouseDown:te,onDoubleClick:e=>{l&&(ce===1?U(1+v,`doubleClick`,e.clientX,e.clientY):H({x:0,y:0,scale:1},`doubleClick`))},onTouchStart:ie,onTouchMove:ae,onTouchEnd:oe,onTouchCancel:oe})),ue=G({url:r,alt:i},a),de=()=>{U(1+v,`zoomIn`)},fe=()=>{U(1/(1+v),`zoomOut`)},pe=()=>{H({rotate:se+90},`rotateRight`)},me=()=>{H({rotate:se-90},`rotateLeft`)},he=()=>{H({flipX:!B.flipX},`flipX`)},W=()=>{H({flipY:!B.flipY},`flipY`)},ge=()=>{V(`reset`)},_e=e=>{let t=h+e;t>=0&&t<=g-1&&(z(!1),V(e<0?`prev`:`next`),E==null||E(t,h))},K=qr(e=>{if(l){let{keyCode:t}=e;I&&(t===aa.LEFT?_e(-1):t===aa.RIGHT&&_e(1))}});(0,J.useEffect)(()=>{if(l)return window.addEventListener(`keydown`,K),()=>{window.removeEventListener(`keydown`,K)}},[l]);let[ve,q]=(0,J.useState)(!1);J.useEffect(()=>{l&&q(!0)},[l]);let ye=e=>{if(!e){var t,n;q(!1),(t=P.current)==null||(n=t.focus)==null||n.call(t),P.current=null}u==null||u(e)},[be,xe]=(0,J.useState)(!1);Xr(()=>{l&&xe(!0)},[l]);let Se=({top:e})=>{e&&(c==null||c())};Xr(()=>{l&&(P.current=document.activeElement)},[l]),Qi(j&&l&&be,()=>N.current);let Ce=G({},O.body);return k&&(Ce.transformOrigin=`${k.x}px ${k.y}px`),J.createElement(Zp,{open:be&&l,autoDestroy:!1,getContainer:m,autoLock:ve,onEsc:Se},J.createElement(ip,{motionName:x,visible:be&&l,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:ye},({className:e,style:r})=>{let a=G(G({},O.root),r);return A&&(a.zIndex=A),J.createElement(`div`,{ref:N,className:Z(t,n,D.root,e,{[`${t}-movable`]:s,[`${t}-moving`]:ee}),style:a,role:`dialog`,"aria-modal":`true`,"aria-label":i,tabIndex:-1},J.createElement(`div`,{className:Z(`${t}-mask`,D.mask),style:O.mask,onClick:d?c:void 0}),J.createElement(`div`,{className:Z(`${t}-body`,D.body),style:Ce},S?S(le,G({transform:B,image:ue},F?{current:h}:{})):le),p!==!1&&p!==null&&J.createElement(Qge,{prefixCls:t,icon:p===!0?f.close:p||f.close,onClick:c,className:D.close,style:O.close}),I&&J.createElement(e_e,{prefixCls:t,current:h,count:g,icons:f,onActive:_e}),J.createElement($ge,{prefixCls:t,showProgress:L,current:h,count:g,showSwitch:I,classNames:D,styles:O,image:ue,transform:B,icons:f,countRender:_,actionsRender:w,scale:ce,minScale:y,maxScale:b,onActive:_e,onFlipY:W,onFlipX:he,onRotateLeft:me,onRotateRight:pe,onZoomOut:fe,onZoomIn:de,onClose:c,onReset:ge}))}))},jE=[`crossOrigin`,`decoding`,`draggable`,`loading`,`referrerPolicy`,`sizes`,`srcSet`,`useMap`,`alt`,`fetchPriority`];K();function i_e(e){let[t,n]=J.useState({}),r=J.useCallback((e,t)=>(n(n=>G(G({},n),{},{[e]:t})),()=>{n(t=>{let n=G({},t);return delete n[e],n})}),[]);return[J.useMemo(()=>e?e.map(e=>{if(typeof e==`string`)return{data:{src:e}};let t={};return Object.keys(e).forEach(n=>{[`src`,...jE].includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(t).reduce((e,n)=>{let{canPreview:r,data:i}=t[n];return r&&e.push({data:i,id:n}),e},[]),[e,t]),r,!!e]}var a_e=[`open`,`onOpenChange`,`current`,`onChange`],o_e=[`src`];function ME(){return ME=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var c;let l=o&&typeof o==`object`?o:{},{open:u,onOpenChange:d,current:f,onChange:p}=l,m=q(l,a_e),[h,g,_]=i_e(a),[v,y]=$r(0,f),[b,x]=(0,J.useState)(!1),S=((c=h[v])==null?void 0:c.data)||{},{src:C}=S,w=q(S,o_e),[T,E]=$r(!!u,u),D=qr(e=>{E(e),e!==T&&(d==null||d(e,{current:v}))}),[O,k]=(0,J.useState)(null),A=J.useCallback((e,t,n,r)=>{let i=_?h.findIndex(e=>e.data.src===t):h.findIndex(t=>t.id===e);y(i<0?0:i),D(!0),k({x:n,y:r}),x(!0)},[h,_]);J.useEffect(()=>{T?b||y(0):x(!1)},[T]);let j=(e,t)=>{y(e),p==null||p(e,t)},M=()=>{D(!1),k(null)},N=J.useMemo(()=>({register:g,onPreview:A}),[g,A]);return J.createElement(DE.Provider,{value:N},r,J.createElement(r_e,ME({"aria-hidden":!T,open:T,prefixCls:e,onClose:M,mousePosition:O,imgCommonProps:w,src:C,fallback:s,icons:i,current:v,count:h.length,onChange:j},m,{classNames:t==null?void 0:t.popup,styles:n==null?void 0:n.popup})))},c_e=0;function l_e(e,t){let[n]=J.useState(()=>(c_e+=1,String(c_e))),r=J.useContext(DE),i={data:t,canPreview:e};return J.useEffect(()=>{if(r)return r.register(n,i)},[]),J.useEffect(()=>{r&&r.register(n,i)},[e,t]),n}K();var u_e=[`prefixCls`,`previewPrefixCls`,`rootClassName`,`className`,`style`,`classNames`,`styles`,`width`,`height`,`src`,`alt`,`placeholder`,`fallback`,`preview`,`onClick`,`onError`,`onKeyDown`],d_e=[`src`,`open`,`onOpenChange`,`cover`,`rootClassName`];function NE(){return NE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t;let{prefixCls:n=`rc-image`,previewPrefixCls:r=`${n}-preview`,rootClassName:i,className:a,style:o,classNames:s={},styles:c={},width:l,height:u,src:d,alt:f,placeholder:p,fallback:m,preview:h=!0,onClick:g,onError:_,onKeyDown:v}=e,y=q(e,u_e),b=(0,J.useContext)(DE),x=!!h,S=h&&typeof h==`object`?h:{},{src:C,open:w,onOpenChange:T,cover:E,rootClassName:D}=S,O=q(S,d_e),k=typeof E==`object`&&E.placement&&E.placement||`center`,A=typeof E==`object`&&E.coverNode?E.coverNode:E,[j,M]=$r(!!w,w),[N,P]=(0,J.useState)(null),F=e=>{M(e),T==null||T(e)},I=()=>{F(!1)},L=p&&p!==!0,R=C==null?d:C,[z,B,V]=Yge({src:d,isCustomPlaceholder:L,fallback:m}),H=(0,J.useMemo)(()=>{let t={};return jE.forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t},jE.map(t=>e[t])),U=l_e(x,(0,J.useMemo)(()=>G(G({},H),{},{src:R}),[R,H])),ee=e=>{let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;b?b.onPreview(U,R,n,r):(P({x:n,y:r}),F(!0)),g==null||g(e)},te=e=>{if(v==null||v(e),x&&(e.key===`Enter`||e.key===` `)){e.preventDefault();let t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;b?b.onPreview(U,R,n,r):(P({x:n,y:r}),F(!0))}};return J.createElement(J.Fragment,null,J.createElement(`div`,NE({},y,{className:Z(n,i,s.root,{[`${n}-error`]:V===`error`}),onClick:x?ee:g,role:x?`button`:y.role,tabIndex:x&&y.tabIndex==null?0:y.tabIndex,"aria-label":x?(t=y[`aria-label`])==null?f:t:y[`aria-label`],onKeyDown:te,style:G({width:l,height:u},c.root)}),J.createElement(`img`,NE({},H,{className:Z(`${n}-img`,{[`${n}-img-placeholder`]:p===!0},s.image,a),style:G(G({height:u},c.image),o),ref:z},B,{width:l,height:u,onError:_})),V===`loading`&&J.createElement(`div`,{"aria-hidden":`true`,className:`${n}-placeholder`},p),E!==!1&&x&&J.createElement(`div`,{className:Z(`${n}-cover`,s.cover,`${n}-cover-${k}`),style:G({display:(o==null?void 0:o.display)===`none`?`none`:void 0},c.cover)},A)),!b&&x&&J.createElement(r_e,NE({"aria-hidden":!j,open:j,prefixCls:r,onClose:I,mousePosition:N,src:R,alt:f,imageInfo:{width:l,height:u},fallback:m,imgCommonProps:H},O,{classNames:s==null?void 0:s.popup,styles:c==null?void 0:c.popup,rootClassName:Z(D,i)})))};f_e.PreviewGroup=s_e;var p_e=f_e;K();var m_e=(e,t,n,r,i,a,o)=>{let[s]=Km(`ImagePreview`,e==null?void 0:e.zIndex),[c,l,u]=yte(e==null?void 0:e.mask,t==null?void 0:t.mask,`${n}-preview`);return J.useMemo(()=>{if(!e)return e;let{cover:d,getContainer:f,closeIcon:p,rootClassName:m}=e,{closeIcon:h}=t==null?{}:t;return G(G(G({motionName:fh(`${n}-preview`,`fade`)},e),o?{cover:d==null?o:d}:{}),{},{icons:a,getContainer:f==null?i:f,zIndex:s,closeIcon:p==null?h:p,rootClassName:Z(r,m),mask:c,maskClosable:u,blurClassName:l.mask})},[e,t,n,r,i,o,a,s,c,u,l])};function h_e(e){return lp(e)&&!(0,J.isValidElement)(e)}function g_e(e){return(0,J.useMemo)(()=>!e||!h_e(e)?{}:typeof e.progress==`boolean`?{progressConfig:e.progress?{}:void 0}:{progressConfig:e.progress},[e])}K();var __e=[`open`,`onOpenChange`,`cover`,`actionsRender`,`visible`,`onVisibleChange`,`rootClassName`,`maskClassName`,`mask`,`forceRender`,`destroyOnClose`,`toolbarRender`];function v_e(e){return(0,J.isValidElement)(e)?[e,void 0]:typeof e==`boolean`||lp(e)?[void 0,e]:[void 0,void 0]}function PE(e){let t=(0,J.useMemo)(()=>typeof e==`boolean`?e?{}:null:lp(e)?e:{},[e]);return(0,J.useMemo)(()=>{if(!t)return[t,``,``];let{open:e,onOpenChange:n,cover:r,actionsRender:i,visible:a,onVisibleChange:o,rootClassName:s,maskClassName:c,mask:l,forceRender:u,destroyOnClose:d,toolbarRender:f}=t,p=q(t,__e),m;n?m=n:o&&(m=(e,t)=>{let{current:n}=t||{};n===void 0?o(e,!e):o(e,!e,n)});let[h,g]=v_e(l);return[G(G({},p),{},{open:e==null?a:e,onOpenChange:m,cover:r==null?h:r,mask:g,actionsRender:i==null?f:i}),s,c]},[t])}var y_e=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z`}},{tag:`path`,attrs:{d:`M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z`}}]},name:`rotate-left`,theme:`outlined`}}))());function FE(){return FE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,FE({},e,{ref:t,icon:y_e.default}))),x_e=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z`}},{tag:`path`,attrs:{d:`M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z`}}]},name:`rotate-right`,theme:`outlined`}}))());function IE(){return IE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,IE({},e,{ref:t,icon:x_e.default}))),C_e=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`swap`,theme:`outlined`}}))());function LE(){return LE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,LE({},e,{ref:t,icon:C_e.default}))),w_e=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z`}}]},name:`zoom-in`,theme:`outlined`}}))());function zE(){return zE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,zE({},e,{ref:t,icon:w_e.default}))),E_e=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z`}}]},name:`zoom-out`,theme:`outlined`}}))());function BE(){return BE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,BE({},e,{ref:t,icon:E_e.default}))),O_e=new Vc(`antImageProgressActive`,{"0%":{backgroundPosition:`200% 0`},"100%":{backgroundPosition:`-200% 0`}}),VE=(e,t,n,r=`translate(0%, 0%)`,i=.8)=>new Vc(e,{"0%":{transform:r,opacity:i},"50%":{transform:t,opacity:n},"100%":{transform:r,opacity:i}}),k_e=VE(`antImageInkFlow1`,`translate(15%, -20%) scale(1.25)`,.5),A_e=VE(`antImageInkFlow2`,`translate(-18%, 15%) scale(0.85)`,.9,`translate(0%, 0%) scale(1.1)`,.7),j_e=VE(`antImageInkFlow3`,`translate(8%, 10%) scale(1.15)`,.8,`translate(0%, 0%) scale(0.85)`,.65);K();var M_e=e=>({position:e||`absolute`,inset:0}),N_e=e=>{let{componentCls:t,motionDurationSlow:n,colorTextLightSolid:r}=e;return{[t]:{[`${t}-cover`]:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:r,background:new Hl(`#000`).setA(.3).toRgbString(),cursor:`pointer`,opacity:0,transition:`opacity ${n}`},"&:hover, &:focus-visible":{[`${t}-cover`]:{opacity:1}},[`${t}-cover-top`]:{inset:`0 0 auto 0`,justifyContent:`center`},[`${t}-cover-bottom`]:{inset:`auto 0 0 0`,justifyContent:`center`}}}},P_e=e=>{let{componentCls:t,motionDurationMid:n,motionEaseInOut:r,progressAnimationDuration:i}=e,a={position:`absolute`,width:`150%`,height:`150%`,left:`-25%`,top:`-25%`,animationTimingFunction:r,animationIterationCount:`infinite`,pointerEvents:`none`,willChange:`transform, opacity`};return{[`${t}-progress-wrapper`]:{position:`relative`,display:`inline-block`,overflow:`hidden`,borderRadius:`inherit`,backgroundColor:e.colorBgBase,backdropFilter:`blur(8px)`,[`${t}-progress-ink-1`]:G(G({},a),{},{background:`radial-gradient(ellipse 65% 55% at 25% 30%, rgba(100, 180, 255, 0.98) 0%, transparent 55%)`,animationName:k_e,animationDuration:i,filter:`blur(40px)`,"&::before":G(G({content:`""`},a),{},{background:`radial-gradient(ellipse 60% 65% at 75% 45%, rgba(180, 140, 255, 0.95) 0%, transparent 50%)`,animationName:A_e,animationDuration:`calc(${i} + 2s)`,animationDelay:`-1s`,filter:`blur(45px)`}),"&::after":G(G({content:`""`},a),{},{background:`radial-gradient(ellipse 55% 50% at 50% 70%, rgba(100, 220, 220, 0.9) 0%, transparent 45%)`,animationName:j_e,animationDuration:`calc(${i} + 0.5s)`,animationDelay:`-2s`,filter:`blur(38px)`})}),[`${t}-progress-ink-2`]:G(G({},a),{},{background:`radial-gradient(ellipse 45% 40% at 60% 20%, rgba(255, 150, 200, 0.88) 0%, transparent 45%)`,animationName:j_e,animationDuration:`calc(${i} + 1.5s)`,animationDelay:`-3s`,filter:`blur(42px)`,"&::before":G(G({content:`""`},a),{},{background:`radial-gradient(ellipse 50% 55% at 20% 75%, rgba(160, 190, 255, 0.88) 0%, transparent 50%)`,animationName:k_e,animationDuration:`calc(${i} + 2.5s)`,animationDelay:`-2.5s`,filter:`blur(35px)`})}),[`${t}-progress-content`]:{position:`absolute`,top:`50%`,left:0,transform:`translateY(-50%)`,display:`flex`,flexDirection:`column`,alignItems:`center`,width:`100%`,paddingInline:e.paddingLG,textAlign:`center`,fontSize:e.fontSize,color:e.colorTextSecondary,zIndex:1},[`${t}-progress-rail`]:{width:`100%`,height:6,marginTop:e.marginSM,backgroundColor:`rgba(255, 255, 255, 0.5)`,borderRadius:e.borderRadiusXS,overflow:`hidden`,backdropFilter:`blur(4px)`,"&::before":{content:`""`,display:`block`,height:`100%`,width:`var(--progress-percent, 0%)`,background:`linear-gradient(90deg, rgba(120, 170, 255, 0.85) 0%, rgba(160, 150, 245, 0.85) 40%, rgba(130, 200, 220, 0.85) 60%, rgba(120, 170, 255, 0.85) 100%)`,backgroundSize:`200% 100%`,borderRadius:e.borderRadiusXS/2,transition:`width ${n} ease`,animationName:O_e,animationDuration:i,animationTimingFunction:`linear`,animationIterationCount:`infinite`}},[`${t}-progress-indicator`]:{marginTop:e.marginXS}}}},F_e=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i,colorBgMask:a,marginXL:o,marginSM:s,margin:c,colorTextLightSolid:l,paddingSM:u,paddingLG:d,previewOperationHoverColor:f,previewOperationColorDisabled:p,previewOperationSize:m,zIndexPopup:h}=e,g=new Hl(a).setA(.1),_=g.clone().setA(.2),v={position:`absolute`,color:l,backgroundColor:g.toRgbString(),borderRadius:`50%`,padding:u,outline:0,border:0,cursor:`pointer`,transition:`all ${r}`,display:`flex`,fontSize:m,"&:hover":{backgroundColor:_.toRgbString()},"&:active":{backgroundColor:g.toRgbString()},"&:focus-visible":ad(e)};return{[`${i}-preview`]:{textAlign:`center`,inset:0,position:`fixed`,userSelect:`none`,zIndex:h,[`${n}-mask`]:{inset:0,position:`absolute`,background:a,backdropFilter:`blur(0px)`,transition:`backdrop-filter ${r}`,[`&${i}-preview-mask-blur`]:{backdropFilter:`blur(4px)`},[`&${i}-preview-mask-hidden`]:{display:`none`}},[`${n}-body`]:G(G({},M_e()),{},{"pointer-events":`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,"> *":{pointerEvents:`auto`}}),[`${n}-img`]:{maxWidth:`100%`,maxHeight:`70%`,verticalAlign:`middle`,transform:`scale3d(1, 1, 1)`,transition:`transform ${r} ${t} 0s`},[`&-movable ${n}-img`]:{cursor:`grab`},[`&-moving ${n}-img`]:{cursor:`grabbing`},[`${n}-close`]:G(G({},v),{},{top:s,insetInlineEnd:s}),[`${n}-switch`]:G(G({},v),{},{top:`50%`,transform:`translateY(-50%)`,"&-disabled":{"&, &:hover, &:active":{color:p,background:`transparent`,cursor:`not-allowed`}},"&-prev":{insetInlineStart:s},"&-next":{insetInlineEnd:s}}),[`${n}-footer`]:{position:`absolute`,bottom:o,left:{_skip_check_:!0,value:`50%`},display:`flex`,flexDirection:`column`,alignItems:`center`,color:e.previewOperationColor,transform:`translateX(-50%)`,gap:c},[`${n}-actions`]:{display:`flex`,gap:u,padding:`0 ${Q(d)}`,backgroundColor:g.toRgbString(),borderRadius:100,fontSize:m,"&-action":{color:`inherit`,background:`transparent`,border:0,font:`inherit`,padding:u,cursor:`pointer`,transition:`all ${r}`,display:`flex`,[`&:not(${n}-actions-action-disabled):hover`]:{color:f},"&:focus-visible":ad(e),"&-disabled":{color:p,cursor:`not-allowed`}}}}}},I_e=e=>{let{componentCls:t}=e;return{[t]:G(G({position:`relative`,display:`inline-block`},od(e)),{},{[`${t}-img`]:{width:`100%`,height:`auto`,verticalAlign:`middle`},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:`url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')`,backgroundRepeat:`no-repeat`,backgroundPosition:`center center`,backgroundSize:`30%`},[`${t}-placeholder`]:G({},M_e())})}},L_e=e=>{let{previewCls:t,motionDurationSlow:n}=e;return{[t]:{"&-fade":{transition:`opacity ${n}`,"&-enter, &-appear":{opacity:0,[`${t}-body`]:{transform:`scale(0)`},"&-active":{opacity:1,[`${t}-body`]:{transform:`scale(1)`,transition:`transform ${n}`}}},"&-leave":{opacity:1,"&-active":{opacity:0,[`${t}-body`]:{transform:`scale(0)`,transition:`transform ${n}`}}}}}}},R_e=dd(`Image`,e=>{let t=bl(e,{previewCls:`${e.componentCls}-preview`,imagePreviewSwitchSize:e.controlHeightLG});return[I_e(t),N_e(t),P_e(t),F_e(t),L_e(t)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Hl(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Hl(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Hl(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5,progressAnimationDuration:`3s`}));K();var z_e=[`previewPrefixCls`,`preview`,`classNames`,`styles`],HE={rotateLeft:J.createElement(b_e,null),rotateRight:J.createElement(S_e,null),zoomIn:J.createElement(T_e,null),zoomOut:J.createElement(D_e,null),close:J.createElement(rf,null),left:J.createElement(pb,null),right:J.createElement(tg,null),flipX:J.createElement(RE,null),flipY:J.createElement(RE,{rotate:90})},B_e=e=>{let{previewPrefixCls:t,preview:n,classNames:r,styles:i}=e,a=q(e,z_e),{getPrefixCls:o,getPopupContainer:s,direction:c,preview:l,classNames:u,styles:d}=ko(`image`),f=o(`image`,t),p=`${f}-preview`,m=Fp(f),[h,g]=R_e(f,m),_=Z(h,g,m),[v,y,b]=PE(n),[x,S,C]=PE(l),w=J.useMemo(()=>G(G({},HE),{},{left:c===`rtl`?J.createElement(tg,null):J.createElement(pb,null),right:c===`rtl`?J.createElement(pb,null):J.createElement(tg,null)}),[c]),T=m_e(v,x,f,_,s,HE),{mask:E,blurClassName:D}=T==null?{}:T,O=G(G({},a),{},{classNames:r,styles:i}),[k,A]=xp([u,r,{cover:Z(C,b),popup:{root:Z(S,y),mask:Z({[`${f}-preview-mask-hidden`]:!E},D)}}],[d,i],{props:O},{popup:{_default:`root`}});return J.createElement(p_e.PreviewGroup,G(G({preview:T,previewPrefixCls:p,icons:w},a),{},{classNames:k,styles:A}))};K();var V_e={position:`absolute`,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,border:0},H_e=e=>{let{prefixCls:t,percent:n,render:r,classNames:i,styles:a,rootClassName:o,rootStyle:s,width:c,height:l}=e,u=sp(n)&&Number.isFinite(n),d=u?Math.max(0,Math.min(100,Math.round(n))):0,f=u?{role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":`${d}%`}:{"aria-busy":!0},p=u?J.createElement(`div`,{className:Z(`${t}-progress-rail`,i==null?void 0:i.rail),style:G(G({},a==null?void 0:a.rail),{},{"--progress-percent":`${d}%`})}):null,m=r?r(p,d):J.createElement(J.Fragment,null,p,u&&J.createElement(`div`,{className:Z(`${t}-progress-indicator`,i==null?void 0:i.indicator),style:a==null?void 0:a.indicator},`${d}%`));return J.createElement(`div`,G({className:Z(t,`${t}-progress-wrapper`,i==null?void 0:i.root,o),style:G(G({width:c,height:l},s),a==null?void 0:a.root)},f),!u&&J.createElement(`span`,{role:`status`,"aria-live":`polite`,style:V_e},`Loading`),J.createElement(`div`,{className:`${t}-progress-ink-1`}),J.createElement(`div`,{className:`${t}-progress-ink-2`}),J.createElement(`div`,{className:Z(`${t}-progress-content`,i==null?void 0:i.content),style:a==null?void 0:a.content},m))};K();var U_e=[`prefixCls`,`preview`,`className`,`rootClassName`,`style`,`styles`,`classNames`,`wrapperStyle`,`fallback`,`placeholder`],W_e=[`width`,`height`,`src`],UE=e=>{var t,n;let{prefixCls:r,preview:i,className:a,rootClassName:o,style:s,styles:c,classNames:l,wrapperStyle:u,fallback:d,placeholder:f}=e,p=q(e,U_e),{getPrefixCls:m,getPopupContainer:h,className:g,style:_,preview:v,styles:y,classNames:b,fallback:x}=ko(`image`),S=m(`image`,r),C=Fp(S),[w,T]=R_e(S,C),E=Z(o,w,T,C),D=Z(a,w,g),[O,k,A]=PE(i),[j,M,N]=PE(v),P=m_e(O,j,S,E,h,HE,!0),F=G(G({},e),{},{preview:P}),I=J.useMemo(()=>({cover:Z(N,A),popup:{root:Z(M,k)}}),[k,A,M,N]),{mask:L,blurClassName:R}=P==null?{}:P,z=J.useMemo(()=>({mask:Z({[`${S}-preview-mask-hidden`]:!L},R)}),[L,S,R]),[B,V]=xp(J.useMemo(()=>[b,l,I,{popup:z}],[b,l,I,z]),[y,{root:u},c],{props:F},{popup:{_default:`root`},placeholder:{}}),H=G(G({},_),s),U=d==null?x:d,{progressConfig:ee}=g_e(f),te=ee!==void 0,{percent:ne,render:re}=ee||{},ie=B==null||(t=B.placeholder)==null?void 0:t.progress,ae=V==null||(n=V.placeholder)==null?void 0:n.progress,{width:oe,height:se,src:ce}=p,le=q(p,W_e),ue=h_e(f)?void 0:f,de=ue&&!ce,fe=de?e=>ue:re;return te||de?J.createElement(H_e,{prefixCls:S,percent:ne,render:fe,classNames:ie,styles:ae,rootClassName:Z(E,D),rootStyle:G(G({},H),V==null?void 0:V.root),width:oe,height:se}):J.createElement(p_e,G(G({prefixCls:S,preview:P||!1,rootClassName:E,className:D,style:H,fallback:U,placeholder:ue,width:oe,height:se,src:ce},le),{},{classNames:B,styles:V}))};UE.PreviewGroup=B_e,K();var G_e=e=>{let{getPrefixCls:t,direction:n}=(0,J.useContext)(Eo),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=_w(t(`input`)),c=Z(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,J.useContext)(b_),u=(0,J.useMemo)(()=>G(G({},l),{},{isFormItemInput:!1}),[l]);return J.createElement(b_.Provider,{value:u},J.createElement(yE.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},K_e=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},q_e=dd([`Input`,`OTP`],e=>K_e(bl(e,JC(e))),YC);K();var J_e=[`className`,`value`,`onChange`,`onActiveChange`,`index`,`mask`,`onFocus`],Y_e=J.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c}=e,l=q(e,J_e),{getPrefixCls:u}=J.useContext(Eo),d=u(`otp`),f=typeof s==`string`?s:r,p=J.useRef(null);J.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Fa(()=>{var e;let t=(e=p.current)==null?void 0:e.input;document.activeElement===t&&t&&t.select()})};return J.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&J.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),J.createElement(QT,G(G({"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`},l),{},{ref:p,value:r,onInput:m,onFocus:e=>{c==null||c(e),h()},onKeyDown:e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()},onMouseDown:h,onMouseUp:h,className:Z(n,{[`${d}-mask-input`]:s})})))});K();var X_e=[`prefixCls`,`length`,`size`,`defaultValue`,`value`,`onChange`,`formatter`,`separator`,`variant`,`disabled`,`status`,`autoFocus`,`mask`,`type`,`autoComplete`,`onInput`,`onFocus`,`inputMode`,`classNames`,`styles`,`className`,`style`];function WE(e){return(e||``).split(``)}var Z_e=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=up(r)?r(t):r;return o?J.createElement(`span`,{className:Z(`${n}-separator`,i),style:a},o):null},Q_e=J.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:v,inputMode:y,classNames:b,styles:x,className:S,style:C}=e,w=q(e,X_e),{classNames:T,styles:E,getPrefixCls:D,direction:O,style:k,className:A}=ko(`otp`),j=D(`otp`,n),M=G(G({},e),{},{length:r}),N=yp(k),P=yp(C),[F,I]=xp([T,b],[E,N,x,P],{props:M}),L=Oa(w,{aria:!0,data:!0,attr:!0}),[R,z]=q_e(j),B=vh(e=>i==null?e:i),V=J.useContext(b_),H=gy(V.status,f),U=J.useMemo(()=>G(G({},V),{},{status:H,hasFeedback:!1,feedbackIcon:null}),[V,H]),ee=J.useRef(null),te=J.useRef({});J.useImperativeHandle(t,()=>({focus:()=>{var e;(e=te.current[0])==null||e.focus()},blur:()=>{for(let t=0;tc?c(e):e,[re,ie]=J.useState(()=>WE(ne(a||``)));J.useEffect(()=>{o!==void 0&&ie(WE(o))},[o]);let ae=qr(e=>{ie(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>re[t]!==e)&&s(e.join(``))}),oe=qr((e,t)=>{let n=Co(re);for(let t=0;t=0&&!n[e];--e)n.pop();return n=WE(ne(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),se=(e,t)=>{let n=oe(e,t),i=Math.min(e+t.length,r-1);if(i!==e&&n[e]!==void 0){var a;(a=te.current[i])==null||a.focus()}ae(n)},ce=e=>{var t;(t=te.current[e])==null||t.focus()},le=(e,t)=>{for(let e=0;e{let n=`otp-${t}`,i=re[t]||``;return J.createElement(J.Fragment,{key:n},J.createElement(Y_e,G({ref:e=>{te.current[t]=e},index:t,size:B,htmlSize:1,className:Z(F.input,`${j}-input`),style:I.input,onChange:se,value:i,onActiveChange:ce,autoFocus:t===0&&p,onFocus:e=>le(e,t)},ue)),t{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z`}},{tag:`path`,attrs:{d:`M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z`}}]},name:`eye-invisible`,theme:`outlined`}}))());function GE(){return GE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,GE({},e,{ref:t,icon:$_e.default}))),tve=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`}}))());function KE(){return KE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,KE({},e,{ref:t,icon:tve.default})));K();var rve=[`disabled`,`action`,`visibilityToggle`,`iconRender`,`prefixCls`,`inputPrefixCls`,`suffix`,`className`,`style`,`classNames`,`styles`],ive=e=>e?J.createElement(nve,null):J.createElement(eve,null),ave={click:`onClick`,hover:`onMouseOver`},ove=J.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a,prefixCls:o,inputPrefixCls:s,suffix:c,className:l,style:u,classNames:d,styles:f}=e,p=q(e,rve),{getPrefixCls:m,className:h,style:g,classNames:_,styles:v,iconRender:y}=ko(`inputPassword`),[b]=Hp(`global`),x=J.useContext(gm),S=n==null?x:n,C=G(G({},e),{},{disabled:S}),[w,T]=xp([_,d],[v,f],{props:C}),E=lp(i)&&i.visible!==void 0,[D,O]=(0,J.useState)(()=>E?i.visible:!1),k=(0,J.useRef)(null);J.useEffect(()=>{E&&O(i.visible)},[E,i]);let A=Ame(k),j=()=>{if(S)return;D&&A();let e=!D;if(O(e),lp(i)){var t;(t=i.onVisibleChange)==null||t.call(i,e)}},M=e=>{let t=ave[r]||``,n=(a||y||ive)(D),o=lp(i)?i.tabIndex:void 0;return J.createElement(`span`,{key:`passwordIcon`,role:`button`,tabIndex:S?-1:o==null?0:o,className:`${e}-icon`,"aria-disabled":S,"aria-pressed":D,"aria-label":D?b.hide:b.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),j())},[t]:j},n)},N=m(`input`,s),P=m(`input-password`,o),F=i&&M(P),I=Z(P,h,l,{[`${P}-${e.size}`]:!!e.size}),L=G(G({},p),{},{type:D?`text`:`password`,prefixCls:N,suffix:J.createElement(J.Fragment,null,F,c),disabled:S,className:I,style:G(G({},g),u),classNames:w,styles:T});return J.createElement(QT,G({ref:hi(t,k)},L))}),sve=e=>{var t;let{componentCls:n,antCls:r,calc:i,max:a}=e,o=`${n}-btn`,[s,c]=md(r,`input-search`),l=(t=e.inputFontSizeSM)==null?e.fontSize:t,u=a(e.controlHeightSM,i(l).mul(e.lineHeight).add(i(e.paddingBlockSM).mul(2)).add(i(e.lineWidth).mul(2)).equal());return{[n]:{[s(`btn-height`)]:Q(e.controlHeight),width:`100%`,[o]:{height:c(`btn-height`),"&:focus-visible":{zIndex:5},[`&${r}-btn-icon-only`]:{width:c(`btn-height`)},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${n}-large`]:{[s(`btn-height`)]:Q(e.controlHeightLG)},[`&${n}-small`]:{[s(`btn-height`)]:Q(e.controlHeightSM)},[`&${n}-small ${o}`]:{minHeight:u,[`&${e.antCls}-btn-icon-only`]:{minWidth:u}}}}},cve=dd([`Input`,`Search`],e=>sve(bl(e,JC(e))),YC);K();var lve=[`prefixCls`,`inputPrefixCls`,`className`,`size`,`style`,`enterButton`,`searchIcon`,`addonAfter`,`loading`,`disabled`,`onSearch`,`onChange`,`onCompositionStart`,`onCompositionEnd`,`variant`,`onPressEnter`,`classNames`,`styles`,`hidden`],uve=J.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,searchIcon:c,addonAfter:l,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:h,variant:g,onPressEnter:_,classNames:v,styles:y,hidden:b}=e,x=q(e,lve),{direction:S,getPrefixCls:C,className:w,style:T,classNames:E,styles:D,searchIcon:O}=ko(`inputSearch`),k=G(G({},e),{},{enterButton:s}),[A,j]=xp([E,v],[D,y],{props:k},{button:{_default:`root`}}),M=J.useRef(!1),N=C(`input-search`,n),P=C(`input`,r),[F,I]=cve(N),{compactSize:L}=bh(N,S),R=vh(e=>{var t;return(t=a==null?L:a)==null?e:t}),z=J.useRef(null),B=e=>{e!=null&&e.target&&e.type===`click`&&f&&f(e.target.value,e,{source:`clear`}),p==null||p(e)},V=e=>{var t;document.activeElement===((t=z.current)==null?void 0:t.input)&&e.preventDefault()},H=e=>{if(f){var t;f((t=z.current)==null||(t=t.input)==null?void 0:t.value,e,{source:`input`})}},U=e=>{M.current||u||(_==null||_(e),H(e))},ee=typeof s==`boolean`?Im(c,O,J.createElement(Ny,null)):null,te=`${N}-btn`,ne=Z(te,{[`${te}-${g}`]:g}),re,ie=s||{},ae=ie.type&&ie.type.__ANT_BUTTON===!0;if(ae||ie.type===`button`){let e=ie.props;re=pm(ie,G({onMouseDown:V,onClick:e=>{var t,n;ie==null||(t=ie.props)==null||(n=t.onClick)==null||n.call(t,e),H(e)},key:`enterButton`},ae?{className:Z(ne,e.className),size:R}:{}))}else re=J.createElement(pg,{classNames:A.button,styles:j.button,className:ne,color:s?`primary`:`default`,size:R,disabled:d,key:`enterButton`,onMouseDown:V,onClick:H,loading:u,icon:ee,variant:g===`borderless`||g===`filled`||g===`underlined`?`text`:s?`solid`:void 0},s);l&&(re=[re,pm(l,{key:`addonAfter`})]);let oe=Z(N,I,{[`${N}-rtl`]:S===`rtl`,[`${N}-${R}`]:!!R,[`${N}-with-button`]:!!s},i,w,F,A.root),se=e=>{M.current=!0,m==null||m(e)},ce=e=>{M.current=!1,h==null||h(e)},le=Oa(x,{data:!0}),ue=Ca(G(G({},x),{},{classNames:Ca(A,[`button`,`root`]),styles:Ca(j,[`button`,`root`]),prefixCls:P,type:`search`,size:R,variant:g,onPressEnter:U,onCompositionStart:se,onCompositionEnd:ce,onChange:B,disabled:d}),Object.keys(le));return J.createElement(xh,G(G({className:oe,style:G(G(G({},j.root),T),o)},le),{},{hidden:b}),J.createElement(QT,G({ref:hi(z,t)},ue)),re)}),dve=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},fVe=Br(["Input","TextArea"],e=>{const t=dr(e,Yg(e));return uVe(t)},Xg,{resetFont:!1}),hce=g.forwardRef((e,t)=>{var we;const ve=e,{prefixCls:n,bordered:r=!0,size:i,disabled:o,status:a,allowClear:s,classNames:l,rootClassName:c,className:u,style:f,styles:d,variant:A,showCount:h,onMouseDown:p,onResize:v}=ve,y=Ze(ve,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:b,direction:x,allowClear:C,autoComplete:S,className:B,style:E,classNames:_,styles:M}=or("textArea"),R=g.useContext(qa),T=o!=null?o:R,{status:L,hasFeedback:P,feedbackIcon:k}=g.useContext(Ya),H=Vg(L,a),D=Ar(E),U=Ar(f),[j,Q]=vr([_,l],[M,D,d,U],{props:e}),K=g.useRef(null);g.useImperativeHandle(t,()=>{var me,Ee;return{resizableTextArea:(me=K.current)==null?void 0:me.resizableTextArea,focus:Ce=>{var pe,Oe;M6((Oe=(pe=K.current)==null?void 0:pe.resizableTextArea)==null?void 0:Oe.textArea,Ce)},blur:()=>{var Ce;return(Ce=K.current)==null?void 0:Ce.blur()},nativeElement:((Ee=K.current)==null?void 0:Ee.nativeElement)||null}});const z=b("input",n),V=So(z),[Y,Z]=wse(z,c);fVe(z,V);const{compactSize:W,compactItemClassnames:J}=hA(z,x),ee=aa(me=>{var Ee;return(Ee=i!=null?i:W)!=null?Ee:me}),[ne,re]=ep("textArea",A,r),ue=EM({allowClear:s,contextAllowClear:C,componentName:"TextArea"}),[de,se]=g.useState(!1),[ce,ge]=g.useState(!1),ie=me=>{se(!0),p==null||p(me);const Ee=()=>{se(!1),document.removeEventListener("mouseup",Ee)};document.addEventListener("mouseup",Ee)},le=me=>{var Ee,Ce;if(v==null||v(me),de&&Rn(getComputedStyle)){const pe=(Ce=(Ee=K.current)==null?void 0:Ee.nativeElement)==null?void 0:Ce.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&ge(!0)}};return g.createElement(tje,te(I({autoComplete:S},y),{style:Q.root,styles:Q,disabled:T,allowClear:ue,className:Ae(Z,V,u,c,J,B,j.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:ce}),classNames:te(I({},j),{textarea:Ae({[`${z}-sm`]:ee==="small",[`${z}-lg`]:ee==="large"},Y,j.textarea,de&&`${z}-mouse-active`),variant:Ae({[`${z}-${ne}`]:re},Jh(z,H)),affixWrapper:Ae(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x==="rtl",[`${z}-affix-wrapper-sm`]:ee==="small",[`${z}-affix-wrapper-lg`]:ee==="large",[`${z}-textarea-show-count`]:h||((we=e.count)==null?void 0:we.show)},Y)}),prefixCls:z,suffix:P&&g.createElement("span",{className:`${z}-textarea-suffix`},k),showCount:h,ref:K,onResize:le,onMouseDown:ie}))}),Ri=Gb;Ri.Group=zQe,Ri.Search=cVe,Ri.TextArea=hce,Ri.Password=aVe,Ri.OTP=GQe;function dVe(e,t,n){return typeof n=="boolean"?n:e.length?!0:pa(t).some(i=>i.type===eae)}const AI=({suffixCls:e,tagName:t,displayName:n})=>r=>g.forwardRef((o,a)=>g.createElement(r,I({ref:a,suffixCls:e,tagName:t},o))),j7=g.forwardRef((e,t)=>{const d=e,{prefixCls:n,suffixCls:r,className:i,tagName:o}=d,a=Ze(d,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=g.useContext(Un),l=s("layout",n),[c,u]=Zoe(l),f=r?`${l}-${r}`:l;return g.createElement(o,I({className:Ae(n||f,i,c,u),ref:t},a))}),AVe=g.forwardRef((e,t)=>{const{direction:n}=g.useContext(Un),[r,i]=g.useState([]),E=e,{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=E,d=Ze(E,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),A=ti(d,["suffixCls"]),{getPrefixCls:h,className:p,style:v}=or("layout"),y=h("layout",o),b=dVe(r,l,c),[x,C]=Zoe(y),S=Ae(y,{[`${y}-has-sider`]:b,[`${y}-rtl`]:n==="rtl"},p,a,s,x,C),B=g.useMemo(()=>({siderHook:{addSider:_=>{i(M=>[].concat(en(M),[_]))},removeSider:_=>{i(M=>M.filter(R=>R!==_))}}}),[]);return g.createElement(qoe.Provider,{value:B},g.createElement(u,I({ref:t,className:S,style:I(I({},v),f)},A),l))}),hVe=AI({tagName:"div",displayName:"Layout"})(AVe),pVe=AI({suffixCls:"header",tagName:"header",displayName:"Header"})(j7),gVe=AI({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(j7),mVe=AI({suffixCls:"content",tagName:"main",displayName:"Content"})(j7),op=hVe;op.Header=pVe,op.Footer=gVe,op.Content=mVe,op.Sider=eae,op._InternalSiderContext=o4;var hI={},pce;function vVe(){if(pce)return hI;pce=1,Object.defineProperty(hI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};return hI.default=e,hI}var yVe=vVe();const bVe=_t(yVe);function z7(){return z7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,z7({},e,{ref:t,icon:bVe})),gce=g.forwardRef(xVe);var pI={},mce;function wVe(){if(mce)return pI;mce=1,Object.defineProperty(pI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};return pI.default=e,pI}var CVe=wVe();const SVe=_t(CVe);function Q7(){return Q7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,Q7({},e,{ref:t,icon:SVe})),vce=g.forwardRef(EVe),BVe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},OVe=[10,20,50,100],$Ve=e=>{const{pageSizeOptions:t=OVe,locale:n,changeSize:r,pageSize:i,goButton:o,quickGo:a,rootPrefixCls:s,disabled:l,buildOptionText:c,showSizeChanger:u,sizeChangerRender:f}=e,[d,A]=Be.useState(""),h=Be.useMemo(()=>!d||Number.isNaN(d)?void 0:Number(d),[d]),p=typeof c=="function"?c:_=>`${_} ${n.items_per_page}`,v=_=>{const M=_.target.value;/^\d*$/.test(M)&&A(M)},y=_=>{o||d===""||(A(""),!(_.relatedTarget&&(_.relatedTarget.className.includes(`${s}-item-link`)||_.relatedTarget.className.includes(`${s}-item`)))&&(a==null||a(h)))},b=_=>{d!==""&&(_.keyCode===dn.ENTER||_.type==="click")&&(A(""),a==null||a(h))},x=()=>t.some(_=>_.toString()===i.toString())?t:t.concat([i]).sort((_,M)=>{const R=Number.isNaN(Number(_))?0:Number(_),T=Number.isNaN(Number(M))?0:Number(M);return R-T}),C=`${s}-options`;if(!u&&!a)return null;let S=null,B=null,E=null;return u&&f&&(S=f({disabled:l,size:i,onSizeChange:_=>{r==null||r(Number(_))},"aria-label":n.page_size,className:`${C}-size-changer`,options:x().map(_=>({label:p(_),value:_}))})),a&&(o&&(E=typeof o=="boolean"?Be.createElement("button",{type:"button",onClick:b,onKeyUp:b,disabled:l,className:`${C}-quick-jumper-button`},n.jump_to_confirm):Be.createElement("span",{onClick:b,onKeyUp:b},o)),B=Be.createElement("div",{className:`${C}-quick-jumper`},n.jump_to,Be.createElement("input",{disabled:l,type:"text",value:d,onChange:v,onKeyUp:b,onBlur:y,"aria-label":n.page}),n.page,E)),Be.createElement("li",{className:C},S,B)},t2=e=>{const{rootPrefixCls:t,page:n,active:r,className:i,style:o,showTitle:a,onClick:s,onKeyPress:l,itemRender:c}=e,u=`${t}-item`,f=Ae(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),d=()=>{s(n)},A=p=>{l(p,s,n)},h=c(n,"page",Be.createElement("a",{rel:"nofollow"},n));return h?Be.createElement("li",{title:a?String(n):null,className:f,style:o,onClick:d,onKeyDown:A,tabIndex:0},h):null};function Zg(){return Zg=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function yce(){}function bce(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Dv(e,t,n){const r=typeof e=="undefined"?t:e;return Math.floor((n-1)/r)+1}const TVe=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:i,styles:o,current:a,defaultCurrent:s=1,total:l=0,pageSize:c,defaultPageSize:u=10,onChange:f=yce,hideOnSinglePage:d,align:A,showPrevNextJumpers:h=!0,showQuickJumper:p,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=yce,locale:x=BVe,style:C,totalBoundaryShowSizeChanger:S=50,disabled:B,simple:E,showTotal:_,showSizeChanger:M=l>S,sizeChangerRender:R,pageSizeOptions:T,itemRender:L=_Ve,jumpPrevIcon:P,jumpNextIcon:k,prevIcon:H,nextIcon:D}=e,U=Be.useRef(null),[j,Q]=Fr(u,c),[K,z]=Fr(s,a),V=Math.max(1,Math.min(K,Dv(void 0,j,l))),[Y,Z]=Be.useState(V);g.useEffect(()=>{Z(V)},[V]);const W=Math.max(1,V-(v?3:5)),J=Math.min(Dv(void 0,j,l),V+(v?3:5));function ee(qe,it){let Pt=qe||Be.createElement("button",{type:"button","aria-label":it,className:`${t}-item-link`});return typeof qe=="function"&&(Pt=Be.createElement(qe,e)),Pt}function ne(qe){const it=qe.target.value,Pt=Dv(void 0,j,l);let De;return it===""?De=it:Number.isNaN(Number(it))?De=Y:it>=Pt?De=Pt:De=Number(it),De}function re(qe){return bce(qe)&&qe!==V&&bce(l)&&l>0}const ue=l>j?p:!1;function de(qe){(qe.keyCode===dn.UP||qe.keyCode===dn.DOWN)&&qe.preventDefault()}function se(qe){const it=ne(qe);switch(it!==Y&&Z(it),qe.keyCode){case dn.ENTER:ie(it);break;case dn.UP:ie(it-1);break;case dn.DOWN:ie(it+1);break}}function ce(qe){ie(ne(qe))}function ge(qe){const it=Dv(qe,j,l),Pt=V>it&&it!==0?it:V;Q(qe),Z(Pt),b==null||b(V,qe),z(Pt),f==null||f(Pt,qe)}function ie(qe){if(re(qe)&&!B){const it=Dv(void 0,j,l);let Pt=qe;return qe>it?Pt=it:qe<1&&(Pt=1),Pt!==Y&&Z(Pt),z(Pt),f==null||f(Pt,j),Pt}return V}const le=V>1,ve=Vl?l:V*j]));let et=null;const We=Dv(void 0,j,l);if(d&&l<=j)return null;const Je=[],dt={rootPrefixCls:t,onClick:ie,onKeyPress:pe,showTitle:y,itemRender:L,page:-1,className:i==null?void 0:i.item,style:o==null?void 0:o.item},wt=V-1>0?V-1:0,Bt=V+1=Ot*2&&V!==3,At=!!et&&We-V>=Ot*2&&V!==We-2;!v&<&&bt!==We&&(ze+=1),!v&&At&&ze!==1&&(bt-=1);for(let ut=ze;ut<=bt;ut+=1)Je.push(Be.createElement(t2,Zg({},dt,{key:ut,page:ut,active:V===ut})));if(lt&&(Je[0]=Be.cloneElement(Je[0],{className:Ae(`${t}-item-after-jump-prev`,Je[0].props.className)}),Je.unshift(Ne)),At){const ut=Je[Je.length-1];Je[Je.length-1]=Be.cloneElement(ut,{className:Ae(`${t}-item-before-jump-next`,ut.props.className)}),Je.push(et)}ze!==1&&Je.unshift(Be.createElement(t2,Zg({},dt,{key:1,page:1}))),bt!==We&&Je.push(Be.createElement(t2,Zg({},dt,{key:We,page:We})))}let sn=Pe(wt);if(sn){const qe=!le||!We;sn=Be.createElement("li",{title:y?x.prev_page:null,onClick:we,tabIndex:qe?null:0,onKeyDown:Oe,className:Ae(`${t}-prev`,i==null?void 0:i.item,{[`${t}-disabled`]:qe}),style:o==null?void 0:o.item,"aria-disabled":qe},sn)}let Vt=Le(Bt);if(Vt){let qe,it;E?(qe=!ve,it=le?0:null):(qe=!ve||!We,it=qe?null:0),Vt=Be.createElement("li",{title:y?x.next_page:null,onClick:me,tabIndex:it,onKeyDown:xe,className:Ae(`${t}-next`,i==null?void 0:i.item,{[`${t}-disabled`]:qe}),style:o==null?void 0:o.item,"aria-disabled":qe},Vt)}const xt=Ae(t,r,{[`${t}-start`]:A==="start",[`${t}-center`]:A==="center",[`${t}-end`]:A==="end",[`${t}-simple`]:E,[`${t}-disabled`]:B});return Be.createElement("ul",Zg({className:xt,style:C,ref:U},at),Ue,sn,E?Jt:Je,Vt,Be.createElement($Ve,{locale:x,rootPrefixCls:t,disabled:B,selectPrefixCls:n,changeSize:ge,pageSize:j,pageSizeOptions:T,quickGo:ue?ie:null,goButton:nn,showSizeChanger:M,sizeChangerRender:R}))},MVe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},IVe=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:te(I({},FU(e)),{width:e.paginationMiniQuickJumperInputWidth})}}}},RVe=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:I({},LU(e))}}}},NVe=e=>{const{componentCls:t,antCls:n}=e,[,r]=go(n,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${be(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${be(e.inputOutlineOffset)} 0 ${be(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},PVe=e=>{const{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:"transparent","&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":I({},WE(e))}},[`&${t}-borderless`]:{[n]:{background:"transparent",border:"none","&:focus":{outline:"none",boxShadow:"none"},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${be(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"}}}}},LVe=e=>{const{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,o]=go(i,"pagination");return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",inset:0,display:"inline-flex",justifyContent:"center",alignItems:"center",margin:"auto",color:e.colorTextDisabled,textAlign:"center",opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},fve=dd([`Input`,`TextArea`],e=>dve(bl(e,JC(e))),YC,{resetFont:!1});K();var pve=[`prefixCls`,`bordered`,`size`,`disabled`,`status`,`allowClear`,`classNames`,`rootClassName`,`className`,`style`,`styles`,`variant`,`showCount`,`onMouseDown`,`onResize`],mve=(0,J.forwardRef)((e,t)=>{var n;let{prefixCls:r,bordered:i=!0,size:a,disabled:o,status:s,allowClear:c,classNames:l,rootClassName:u,className:d,style:f,styles:p,variant:m,showCount:h,onMouseDown:g,onResize:_}=e,v=q(e,pve),{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=ko(`textArea`),D=J.useContext(gm),O=o==null?D:o,{status:k,hasFeedback:A,feedbackIcon:j}=J.useContext(b_),M=gy(k,s),N=yp(w),P=yp(f),[F,I]=xp([T,l],[E,N,p,P],{props:e}),L=J.useRef(null);J.useImperativeHandle(t,()=>{var e,t;return{resizableTextArea:(e=L.current)==null?void 0:e.resizableTextArea,focus:e=>{var t;Bi((t=L.current)==null||(t=t.resizableTextArea)==null?void 0:t.textArea,e)},blur:()=>{var e;return(e=L.current)==null?void 0:e.blur()},nativeElement:((t=L.current)==null?void 0:t.nativeElement)||null}});let R=y(`input`,r),z=Fp(R),[B,V]=gw(R,u);fve(R,z);let{compactSize:H,compactItemClassnames:U}=bh(R,b),ee=vh(e=>{var t;return(t=a==null?H:a)==null?e:t}),[te,ne]=Sy(`textArea`,m,i),re=Lm({allowClear:c,contextAllowClear:x,componentName:`TextArea`}),[ie,ae]=J.useState(!1),[oe,se]=J.useState(!1),ce=e=>{ae(!0),g==null||g(e);let t=()=>{ae(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},le=e=>{if(_==null||_(e),ie&&up(getComputedStyle)){var t;let e=(t=L.current)==null||(t=t.nativeElement)==null?void 0:t.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&se(!0)}};return J.createElement(Ome,G(G({autoComplete:S},v),{},{style:I.root,styles:I,disabled:O,allowClear:re,className:Z(V,z,d,u,U,C,F.root,{[`${R}-textarea-affix-wrapper-resize-dirty`]:oe}),classNames:G(G({},F),{},{textarea:Z({[`${R}-sm`]:ee===`small`,[`${R}-lg`]:ee===`large`},B,F.textarea,ie&&`${R}-mouse-active`),variant:Z({[`${R}-${te}`]:ne},hy(R,M)),affixWrapper:Z(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:b===`rtl`,[`${R}-affix-wrapper-sm`]:ee===`small`,[`${R}-affix-wrapper-lg`]:ee===`large`,[`${R}-textarea-show-count`]:h||((n=e.count)==null?void 0:n.show)},B)}),prefixCls:R,suffix:A&&J.createElement(`span`,{className:`${R}-textarea-suffix`},j),showCount:h,ref:L,onResize:le,onMouseDown:ce}))}),qE=QT;qE.Group=G_e,qE.Search=uve,qE.TextArea=mve,qE.Password=ove,qE.OTP=Q_e;function hve(e,t,n){return typeof n==`boolean`?n:e.length?!0:Ia(t).some(e=>e.type===xx)}K();var gve=[`prefixCls`,`suffixCls`,`className`,`tagName`],_ve=[`prefixCls`,`className`,`rootClassName`,`children`,`hasSider`,`tagName`,`style`],JE=({suffixCls:e,tagName:t,displayName:n})=>n=>J.forwardRef((r,i)=>J.createElement(n,G({ref:i,suffixCls:e,tagName:t},r))),YE=J.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=q(e,gve),{getPrefixCls:s}=J.useContext(Eo),c=s(`layout`,n),[l,u]=vx(c),d=r?`${c}-${r}`:c;return J.createElement(a,G({className:Z(n||d,i,l,u),ref:t},o))}),vve=J.forwardRef((e,t)=>{let{direction:n}=J.useContext(Eo),[r,i]=J.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d}=e,f=Ca(q(e,_ve),[`suffixCls`]),{getPrefixCls:p,className:m,style:h}=ko(`layout`),g=p(`layout`,a),_=hve(r,c,l),[v,y]=vx(g),b=Z(g,{[`${g}-has-sider`]:_,[`${g}-rtl`]:n===`rtl`},m,o,s,v,y),x=J.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Co(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return J.createElement(hx.Provider,{value:x},J.createElement(u,G({ref:t,className:b,style:G(G({},h),d)},f),c))}),yve=JE({tagName:`div`,displayName:`Layout`})(vve),bve=JE({suffixCls:`header`,tagName:`header`,displayName:`Header`})(YE),xve=JE({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(YE),Sve=JE({suffixCls:`content`,tagName:`main`,displayName:`Content`})(YE),XE=yve;XE.Header=bve,XE.Footer=xve,XE.Content=Sve,XE.Sider=xx,XE._InternalSiderContext=bx;var Cve=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`}}))());function ZE(){return ZE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,ZE({},e,{ref:t,icon:Cve.default}))),Tve=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`}}))());function QE(){return QE=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,QE({},e,{ref:t,icon:Tve.default}))),Dve={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},Ove=[10,20,50,100],kve=e=>{let{pageSizeOptions:t=Ove,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=J.useState(``),m=J.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&(o==null||o(m)))},v=e=>{f!==``&&(e.keyCode===aa.ENTER||e.type===`click`)&&(p(``),o==null||o(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let x=null,S=null,C=null;return u&&d&&(x=d({disabled:c,size:i,onSizeChange:e=>{r==null||r(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(C=typeof a==`boolean`?J.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):J.createElement(`span`,{onClick:v,onKeyUp:v},a)),S=J.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,J.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:v,onBlur:_,"aria-label":n.page}),n.page,C)),J.createElement(`li`,{className:b},x,S)},$E=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=Z(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,J.createElement(`a`,{rel:`nofollow`},n));return m?J.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function eD(){return eD=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function jve(){}function Mve(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function tD(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var Nve=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=jve,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:v=jve,locale:y=Dve,style:b,totalBoundaryShowSizeChanger:x=50,disabled:S,simple:C,showTotal:w,showSizeChanger:T=c>x,sizeChangerRender:E,pageSizeOptions:D,itemRender:O=Ave,jumpPrevIcon:k,jumpNextIcon:A,prevIcon:j,nextIcon:M}=e,N=J.useRef(null),[P,F]=$r(u,l),[I,L]=$r(s,o),R=Math.max(1,Math.min(I,tD(void 0,P,c))),[z,B]=J.useState(R);(0,J.useEffect)(()=>{B(R)},[R]),`current`in e;let V=Math.max(1,R-(g?3:5)),H=Math.min(tD(void 0,P,c),R+(g?3:5));function U(n,r){let i=n||J.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=J.createElement(n,e)),i}function ee(e){let t=e.target.value,n=tD(void 0,P,c),r;return r=t===``?t:Number.isNaN(Number(t))?z:t>=n?n:Number(t),r}function te(e){return Mve(e)&&e!==R&&Mve(c)&&c>0}let ne=c>P&&h;function re(e){(e.keyCode===aa.UP||e.keyCode===aa.DOWN)&&e.preventDefault()}function ie(e){let t=ee(e);switch(t!==z&&B(t),e.keyCode){case aa.ENTER:se(t);break;case aa.UP:se(t-1);break;case aa.DOWN:se(t+1);break;default:break}}function ae(e){se(ee(e))}function oe(e){let t=tD(e,P,c),n=R>t&&t!==0?t:R;F(e),B(n),v==null||v(R,e),L(n),d==null||d(n,e)}function se(e){if(te(e)&&!S){let t=tD(void 0,P,c),n=e;return e>t?n=t:e<1&&(n=1),n!==z&&B(n),L(n),d==null||d(n,P),n}return R}let ce=R>1,le=Rc?c:R*P])),xe=null,Se=tD(void 0,P,c);if(f&&c<=P)return null;let Ce=[],we={rootPrefixCls:t,onClick:se,onKeyPress:me,showTitle:_,itemRender:O,page:-1,className:i==null?void 0:i.item,style:a==null?void 0:a.item},Te=R-1>0?R-1:0,Ee=R+1=je*2&&R!==3,c=!!xe&&Se-R>=je*2&&R!==Se-2;!g&&s&&o!==Se&&(a+=1),!g&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)Ce.push(J.createElement($E,eD({},we,{key:e,page:e,active:R===e})));if(s&&(Ce[0]=J.cloneElement(Ce[0],{className:Z(`${t}-item-after-jump-prev`,Ce[0].props.className)}),Ce.unshift(q)),c){let e=Ce[Ce.length-1];Ce[Ce.length-1]=J.cloneElement(e,{className:Z(`${t}-item-before-jump-next`,e.props.className)}),Ce.push(xe)}a!==1&&Ce.unshift(J.createElement($E,eD({},we,{key:1,page:1}))),o!==Se&&Ce.push(J.createElement($E,eD({},we,{key:Se,page:Se})))}let Me=G(Te);if(Me){let e=!ce||!Se;Me=J.createElement(`li`,{title:_?y.prev_page:null,onClick:ue,tabIndex:e?null:0,onKeyDown:he,className:Z(`${t}-prev`,i==null?void 0:i.item,{[`${t}-disabled`]:e}),style:a==null?void 0:a.item,"aria-disabled":e},Me)}let Ne=K(Ee);if(Ne){let e,n;C?(e=!le,n=ce?0:null):(e=!le||!Se,n=e?null:0),Ne=J.createElement(`li`,{title:_?y.next_page:null,onClick:de,tabIndex:n,onKeyDown:W,className:Z(`${t}-next`,i==null?void 0:i.item,{[`${t}-disabled`]:e}),style:a==null?void 0:a.item,"aria-disabled":e},Ne)}let Pe=Z(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:C,[`${t}-disabled`]:S});return J.createElement(`ul`,eD({className:Pe,style:b,ref:N},ye),be,Me,C?Ae:Ce,Ne,J.createElement(kve,{locale:y,rootPrefixCls:t,disabled:S,selectPrefixCls:n,changeSize:oe,pageSize:P,pageSizeOptions:D,quickGo:ne?se:null,goButton:ke,showSizeChanger:T,sizeChangerRender:E}))};K();var Pve=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Fve=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:G(G({},mw(e)),{},{width:e.paginationMiniQuickJumperInputWidth})}}}},Ive=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:G({},pw(e))}}}},Lve=e=>{let{componentCls:t,antCls:n}=e,[,r]=md(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Q(e.inputOutlineOffset)} 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Rve=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":G({},XC(e))}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},zve=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=md(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next - `]:{marginInlineEnd:o("item-spacing-actual")},[` + `]:{marginInlineEnd:a(`item-spacing-actual`)},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:o("item-size-actual"),height:o("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:o("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${be(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:o("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:o("item-size-actual"),verticalAlign:"baseline",input:te(I(I({},I4(e)),TU(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":I({},WE(e)),width:e.quickJumperInputWidth,height:o("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:o("item-spacing-actual"),marginInlineEnd:o("item-spacing-actual")})}}}},FVe=e=>{const{componentCls:t,antCls:n}=e,[,r]=go(n,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:be(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${be(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${be(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},kVe=e=>{const{componentCls:t,antCls:n}=e,[r,i]=go(n,"pagination");return{[t]:te(I(I(I(I(I(I(I(te(I({[r("item-size-actual")]:be(e.itemSize),[r("item-spacing-actual")]:be(e.marginXS),"&-small":{[r("item-size-actual")]:be(e.itemSizeSM),[r("item-spacing-actual")]:be(e.marginXXS)},"&-large":{[r("item-size-actual")]:be(e.itemSizeLG),[r("item-spacing-actual")]:be(e.marginSM)}},zr(e)),{display:"flex",alignItems:"center","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:i("item-size-actual"),marginInlineEnd:i("item-spacing-actual"),lineHeight:be(e.calc(i("item-size-actual")).sub(2).equal()),verticalAlign:"middle"}}),FVe(e)),LVe(e)),NVe(e)),PVe(e)),IVe(e)),RVe(e)),MVe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},DVe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:I({},lc(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":I({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},sc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:sc(e)}}}},xce=e=>I({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Xg(e)),wce=e=>dr(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Yg(e)),HVe=Br("Pagination",e=>{const t=wce(e);return[kVe(t),DVe(t)]},xce),UVe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},jVe=kg(["Pagination","bordered"],e=>{const t=wce(e);return UVe(t)},xce);function Cce(e){return g.useMemo(()=>typeof e=="boolean"?[e,{}]:Zn(e)?[!0,e]:[void 0,void 0],[e])}const V7=e=>{var we;const ve=e,{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:a,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:d,styles:A,classNames:h}=ve,p=Ze(ve,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions","styles","classNames"]),{xs:v}=KM(c),[,y]=al(),{getPrefixCls:b,direction:x,showSizeChanger:C,className:S,style:B,classNames:E,styles:_,totalBoundaryShowSizeChanger:M}=or("pagination"),R=b("pagination",n),[T,L]=HVe(R),P=aa(s),k=P==="small"||!!(v&&!P&&c),[H,D]=ep("input"),U=te(I({},e),{size:P}),j=Ar(B),Q=Ar(a),[K,z]=vr([E,h],[_,j,A,Q],{props:U}),[V]=zs("Pagination",RJ),Y=I(I({},V),l),[Z,W]=Cce(u),[J,ee]=Cce(C),ne=Z!=null?Z:J,re=W!=null?W:ee,ue=f||ll,de=g.useMemo(()=>d?d.map(Number):void 0,[d]),se=me=>{var He;const{disabled:Ee,size:Ce,onSizeChange:pe,"aria-label":Oe,className:xe,options:Me}=me,{className:Se,onChange:Pe}=re||{},Le=(He=Me.find(Ne=>String(Ne.value)===String(Ce)))==null?void 0:He.value;return g.createElement(ue,te(I({disabled:Ee,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Ne=>Ne.parentNode,"aria-label":Oe,options:Me},re),{value:Le,onChange:(Ne,at)=>{pe==null||pe(Ne),Pe==null||Pe(Ne,at)},size:P,className:Ae(xe,Se)}))},ce=g.useMemo(()=>{const me=g.createElement("span",{className:`${R}-item-ellipsis`},g.createElement(s4,null)),Ee=g.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},x==="rtl"?g.createElement(od,null):g.createElement(mA,null)),Ce=g.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},x==="rtl"?g.createElement(mA,null):g.createElement(od,null)),pe=g.createElement("a",{className:`${R}-item-link`},g.createElement("div",{className:`${R}-item-container`},x==="rtl"?g.createElement(vce,{className:`${R}-item-link-icon`}):g.createElement(gce,{className:`${R}-item-link-icon`}),me)),Oe=g.createElement("a",{className:`${R}-item-link`},g.createElement("div",{className:`${R}-item-container`},x==="rtl"?g.createElement(gce,{className:`${R}-item-link-icon`}):g.createElement(vce,{className:`${R}-item-link-icon`}),me));return{prevIcon:Ee,nextIcon:Ce,jumpPrevIcon:pe,jumpNextIcon:Oe}},[x,R]),ge=b("select",r),ie=Ae({[`${R}-${t}`]:!!t,[`${R}-${P}`]:P,[`${R}-${H}`]:D&&H!=="outlined",[`${R}-mini`]:k,[`${R}-rtl`]:x==="rtl",[`${R}-bordered`]:y.wireframe},S,i,o,K.root,T,L),le=I({},z.root);return g.createElement(g.Fragment,null,y.wireframe&&g.createElement(jVe,{prefixCls:R}),g.createElement(TVe,te(I(I({},ce),p),{styles:z,classNames:K,style:le,prefixCls:R,selectPrefixCls:ge,className:ie,locale:Y,pageSizeOptions:de,showSizeChanger:ne,totalBoundaryShowSizeChanger:(we=p.totalBoundaryShowSizeChanger)!=null?we:M,sizeChangerRender:se})))},gI=100,Sce=gI/5,Ece=gI/2-Sce/2,K7=Ece*2*Math.PI,Bce=50,Oce=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return g.createElement("circle",{className:Ae(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Ece,cx:Bce,cy:Bce,strokeWidth:Sce,style:n})},zVe=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[o,a]=g.useState(!1);ar(()=>{e!==0&&a(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!o)return null;const l={strokeDashoffset:`${K7/4}`,strokeDasharray:`${K7*s/100} ${K7*(100-s)/100}`};return g.createElement("span",{className:Ae(r,`${n}-progress`,{[i]:s<=0})},g.createElement("svg",{viewBox:`0 0 ${gI} ${gI}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},g.createElement(Oce,{dotClassName:n,hasCircleCls:!0}),g.createElement(Oce,{dotClassName:n,style:l})))};function QVe(e){const{prefixCls:t,percent:n=0,className:r,style:i}=e,o=`${t}-dot`,a=`${o}-holder`,s=`${a}-hidden`;return g.createElement(g.Fragment,null,g.createElement("span",{className:Ae(a,r,n>0&&s),style:i},g.createElement("span",{className:Ae(o,`${t}-dot-spin`)},[1,2,3,4].map(l=>g.createElement("i",{className:`${t}-dot-item`,key:l})))),g.createElement(zVe,{prefixCls:t,percent:n}))}function VVe(e){const{prefixCls:t,indicator:n,percent:r,className:i,style:o}=e,a=`${t}-dot`;return n&&g.isValidElement(n)?Ga(n,s=>({className:Ae(s.className,a,i),style:I(I({},s.style),o),percent:r})):g.createElement(QVe,{prefixCls:t,percent:r,className:i,style:o})}const KVe=new Xr("antSpinMove",{to:{opacity:1}}),WVe=new Xr("antRotate",{to:{transform:"rotate(405deg)"}}),GVe=e=>{const{componentCls:t}=e,n=`${t}-section`;return{[t]:te(I({},zr(e)),{position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}})}},qVe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,o]=go(n,"spin");return{[t]:{[i("dot-holder-size")]:e.dotSize,[i("dot-item-size")]:`calc((${o("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:o("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(a=>`${a} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:o("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:WVe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:o("dot-item-size"),height:o("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:KVe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(a=>`${a} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},YVe=e=>{const{componentCls:t}=e,[n]=go(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},XVe=Br("Spin",e=>{const t=dr(e,{spinDotDefault:e.colorTextDescription});return[GVe(t),qVe(t),YVe(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),ZVe=200,$ce=[[30,.05],[70,.03],[96,.01]];function JVe(e,t){const[n,r]=g.useState(0),i=g.useRef(null),o=t==="auto";return g.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<$ce.length;l+=1){const[c,u]=$ce[l];if(a<=c)return a+s*u}return a})},ZVe)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[o,e]),o?n:t}let _ce;function eKe(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const mI=e=>{var W;const Z=e,{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:o,size:a,tip:s,description:l,wrapperClassName:c,style:u,children:f,fullscreen:d=!1,indicator:A,percent:h,classNames:p,styles:v}=Z,y=Ze(Z,["prefixCls","spinning","delay","className","rootClassName","size","tip","description","wrapperClassName","style","children","fullscreen","indicator","percent","classNames","styles"]),{getPrefixCls:b,direction:x,indicator:C,className:S,style:B,classNames:E,styles:_}=or("spin"),M=b("spin",t),[R,T]=XVe(M),[L,P]=g.useState(()=>n&&!eKe(n,r)),k=JVe(L,h);g.useEffect(()=>{if(n){const J=W7e(r,()=>{P(!0)});return J(),()=>{var ee;(ee=J==null?void 0:J.cancel)==null||ee.call(J)}}P(!1)},[r,n]);const H=aa(J=>a!=null?a:J),D=l!=null?l:s,U=te(I({},e),{size:H,spinning:L,tip:D,description:D,fullscreen:d,children:f,percent:k}),[j,Q]=vr([E,p],[_,v],{props:U}),K=(W=A!=null?A:C)!=null?W:_ce,z=typeof f!="undefined",V=z||d,Y=g.createElement(g.Fragment,null,g.createElement(VVe,{className:Ae(j.indicator),style:Q.indicator,prefixCls:M,indicator:K,percent:k}),D&&g.createElement("div",{className:Ae(`${M}-description`,j.tip,j.description),style:I(I({},Q.tip),Q.description)},D));return g.createElement("div",I({className:Ae(M,{[`${M}-sm`]:H==="small",[`${M}-lg`]:H==="large",[`${M}-spinning`]:L,[`${M}-rtl`]:x==="rtl",[`${M}-fullscreen`]:d},o,j.root,d&&j.mask,V?c:[`${M}-section`,j.section],S,i,R,T),style:I(I(I(I(I({},Q.root),V?{}:Q.section),d?Q.mask:{}),B),u),"aria-live":"polite","aria-busy":L},y),L&&(V?g.createElement("div",{className:Ae(`${M}-section`,j.section),style:Q.section},Y):Y),z&&g.createElement("div",{className:Ae(`${M}-container`,j.container),style:Q.container},f))};mI.setDefaultIndicator=e=>{_ce=e};const Tce=(e,t={})=>!oa(e)&&(t!=null&&t.skipEmpty)?[]:Array.isArray(e)?e:[e],tKe=e=>{const{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=or("message"),o=i("message"),a=So(o),[s,l]=p8(o,a),c=`${o}-notice`,u=t.map(f=>{const{content:d,duration:A,key:h,type:p}=f,v=p?`${c}-icon-${p}`:void 0;return{key:h,duration:A,icon:g8(p),title:d,className:`${c}-${p}`,classNames:{wrapper:`${o}-${p}`,icon:v}}});return g.createElement(Jne,{prefixCls:o,placement:"top",configList:u,className:Ae(s,l,a),classNames:te(I({},n),{wrapper:n==null?void 0:n.wrapper,title:n==null?void 0:n.title}),style:r,stack:!1})};let pu=null,Hv=e=>e(),n2=[],r2={};function Mce(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:o}=r2,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i,stack:o}}const nKe=Be.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=g.useContext(Un),o=r2.prefixCls||i("message"),a=g.useContext(Yke),[s,l]=mre(I(te(I({},n),{prefixCls:o}),a.message));return Be.useImperativeHandle(t,()=>{const c=I({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(r(),s[u].apply(s,f))}),{instance:c,sync:r}}),l}),rKe=Be.forwardRef((e,t)=>{const[n,r]=Be.useState(Mce),i=()=>{r(Mce)};Be.useEffect(i,[]);const o=Wne(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=Be.createElement(nKe,{ref:t,sync:i,messageConfig:n});return Be.createElement(kc,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)}),vI=()=>{if(!pu){const e=document.createDocumentFragment(),t={fragment:e};pu=t,Hv(()=>{j6(Be.createElement(rKe,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,vI())})}}),e)});return}pu.instance&&(n2.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Hv(()=>{const r=pu.instance.open(I(I({},r2),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Hv(()=>{pu==null||pu.instance.destroy(e.key)});break;default:Hv(()=>{var r;const i=(r=pu.instance)[t].apply(r,en(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),n2=[])};function iKe(e){r2=I(I({},r2),e),Hv(()=>{var t;(t=pu==null?void 0:pu.sync)==null||t.call(pu)})}function oKe(e){const t=m8(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return n2.push(i),()=>{r?Hv(()=>{r()}):i.skipped=!0}});return vI(),t}function aKe(e,t){const n=m8(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return n2.push(o),()=>{i?Hv(()=>{i()}):o.skipped=!0}});return vI(),n}const sKe=e=>{n2.push({type:"destroy",key:e}),vI()},lKe=["success","info","warning","error","loading"],Wo={open:oKe,destroy:sKe,config:iKe,useMessage:GLe,_InternalPanelDoNotUseOrYouWillBeFired:HLe,_InternalListDoNotUseOrYouWillBeFired:tKe};lKe.forEach(e=>{Wo[e]=(...t)=>aKe(e,t)});const cKe=Nie(e=>{const R=e,{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:s,footer:l,classNames:c,styles:u}=R,f=Ze(R,["prefixCls","className","closeIcon","closable","type","title","children","footer","classNames","styles"]),{getPrefixCls:d}=g.useContext(Un),{className:A,style:h,classNames:p,styles:v}=or("modal"),y=d(),b=t||d("modal"),x=So(y),[C,S]=wie(b,x),[B,E]=vr([p,c],[v,u],{props:e}),_=`${b}-confirm`;let M={};return o?M={closable:i!=null?i:!1,title:"",footer:"",children:g.createElement(Sie,te(I({},e),{prefixCls:b,confirmPrefixCls:_,rootPrefixCls:y,content:s}))}:M={closable:i!=null?i:!0,title:a,footer:l!==null&&g.createElement(mie,I({},e)),children:s},g.createElement(Kre,I(te(I({prefixCls:b,className:Ae(C,`${b}-pure-panel`,o&&_,o&&`${_}-${o}`,n,A,S,x,B.root),style:I(I({},h),E.root)},f),{closeIcon:gie(b,r),closable:i,classNames:B,styles:E}),M))});function Ice(e){return wE($ie(e))}const Xa=Cie;Xa.useModal=qke,Xa.info=function(t){return wE(_ie(t))},Xa.success=function(t){return wE(Tie(t))},Xa.error=function(t){return wE(Mie(t))},Xa.warning=Ice,Xa.warn=Ice,Xa.confirm=function(t){return wE(Iie(t))},Xa.destroyAll=function(){for(;wv.length;){const t=wv.pop();t&&t()}},Xa.config=Kke,Xa._InternalPanelDoNotUseOrYouWillBeFired=cKe;const Rce=Br("Popconfirm",e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:o,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon`]:{color:a},[`> ${t}-message-icon ${n}`]:{fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),Nce=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:o,cancelText:a,okText:s,okType:l="primary",icon:c=g.createElement(Sb,null),showCancel:u=!0,close:f,onConfirm:d,onCancel:A,onPopupClick:h,classNames:p,styles:v}=e,{getPrefixCls:y}=g.useContext(Un),[b]=zs("Popconfirm",Sl.Popconfirm),x=Pb(i),C=Pb(o);return g.createElement("div",{className:`${t}-inner-content`,onClick:h},g.createElement("div",{className:`${t}-message`},c&&g.createElement("span",{className:Ae(`${t}-message-icon`,p==null?void 0:p.icon),style:v==null?void 0:v.icon},c),g.createElement("div",{className:`${t}-message-text`},qi(x)&&g.createElement("div",{className:Ae(`${t}-title`,p==null?void 0:p.title),style:v==null?void 0:v.title},x),qi(C)&&g.createElement("div",{className:Ae(`${t}-description`,p==null?void 0:p.content),style:v==null?void 0:v.content},C))),g.createElement("div",{className:`${t}-buttons`},u&&g.createElement(qn,I({onClick:A,size:"small"},r),a||(b==null?void 0:b.cancelText)),g.createElement(R8,{buttonProps:I(I({size:"small"},C8(l)),n),actionFn:d,close:f,prefixCls:y("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(b==null?void 0:b.okText))))},uKe=e=>{const l=e,{prefixCls:t,placement:n,className:r,style:i}=l,o=Ze(l,["prefixCls","placement","className","style"]),{getPrefixCls:a}=g.useContext(Un),s=a("popconfirm",t);return Rce(s),g.createElement($oe,{placement:n,className:Ae(s,r),style:i,content:g.createElement(Nce,I({prefixCls:s},o))})},W7=g.forwardRef((e,t)=>{var z;const K=e,{prefixCls:n,placement:r="top",trigger:i,okType:o="primary",icon:a=g.createElement(Sb,null),children:s,overlayClassName:l,onOpenChange:c,overlayStyle:u,styles:f,arrow:d,classNames:A}=K,h=Ze(K,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","overlayStyle","styles","arrow","classNames"]),{getPrefixCls:p,className:v,style:y,classNames:b,styles:x,arrow:C,trigger:S}=or("popconfirm"),[B,E]=Fr((z=e.defaultOpen)!=null?z:!1,e.open),_=PH(d,C),M=i||S||"click",R=V=>{E(V),c==null||c(V)},T=()=>{R(!1)},L=V=>{var Y;return(Y=e.onConfirm)==null?void 0:Y.call(void 0,V)},P=V=>{var Y;R(!1),(Y=e.onCancel)==null||Y.call(void 0,V)},k=V=>{const{disabled:Y=!1}=e;Y||R(V)},H=p("popconfirm",n),D=te(I({},e),{placement:r,trigger:M,okType:o,overlayStyle:u,styles:f,classNames:A}),[U,j]=vr([b,A],[x,f],{props:D}),Q=Ae(H,v,l,U.root);return Rce(H),g.createElement(qM,te(I({arrow:_},ti(h,["title"])),{trigger:M,placement:r,onOpenChange:k,open:B,ref:t,classNames:{root:Q,container:U.container,arrow:U.arrow},styles:{root:I(I(I({},y),j.root),u),container:j.container,arrow:j.arrow},content:g.createElement(Nce,te(I({okType:o,icon:a},e),{prefixCls:H,close:T,onConfirm:L,onCancel:P,classNames:U,styles:j})),"data-popover-inject":!0}),s)});W7._InternalPanelDoNotUseOrYouWillBeFired=uKe;const fKe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},dKe=()=>{const e=g.useRef([]),t=g.useRef(null);return g.useEffect(()=>{const n=Date.now();let r=!1;e.current.forEach(i=>{if(!i)return;r=!0;const o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},Pce=({bg:e,children:t})=>g.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function Lce(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),i=`${Math.floor(r*t)}%`;return`${e[n]} ${i}`})}const AKe=g.forwardRef((e,t)=>{const{prefixCls:n,color:r,gradientId:i,radius:o,className:a,style:s,ptg:l,strokeLinecap:c,strokeWidth:u,size:f,gapDegree:d}=e,A=r&&typeof r=="object",h=A?"#FFF":void 0,p=f/2,v=g.createElement("circle",{className:Ae(`${n}-circle-path`,a),r:o,cx:p,cy:p,stroke:h,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:s,ref:t});if(!A)return v;const y=`${i}-conic`,b=d?`${180+d/2}deg`:"0deg",x=Lce(r,(360-d)/360),C=Lce(r,1),S=`conic-gradient(from ${b}, ${x.join(", ")})`,B=`linear-gradient(to ${d?"bottom":"top"}, ${C.join(", ")})`;return g.createElement(g.Fragment,null,g.createElement("mask",{id:y},v),g.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:`url(#${y})`},g.createElement(Pce,{bg:B},g.createElement(Pce,{bg:S}))))}),i2=100,G7=(e,t,n,r,i,o,a,s,l,c,u=0)=>{const f=n/100*360*((360-o)/360),d=o===0?0:{bottom:0,top:180,left:90,right:-90}[a];let A=(100-r)/100*t;l==="round"&&r!==100&&(A+=c/2,A>=t&&(A=t-.01));const h=i2/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:A+u,transform:`rotate(${i+f+d}deg)`,transformOrigin:`${h}px ${h}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},hKe=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:Be.createElement("style",null,`@keyframes ${n} { + `]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:G(G(G({},hw(e)),ZC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{},{"&[disabled]":G({},XC(e)),width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)})}}}},Bve=e=>{let{componentCls:t,antCls:n}=e,[,r]=md(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:Q(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Q(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Vve=e=>{let{componentCls:t,antCls:n}=e,[r,i]=md(n,`pagination`);return{[t]:G(G(G(G(G(G(G(G(G({[r(`item-size-actual`)]:Q(e.itemSize),[r(`item-spacing-actual`)]:Q(e.marginXS),"&-small":{[r(`item-size-actual`)]:Q(e.itemSizeSM),[r(`item-spacing-actual`)]:Q(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Q(e.itemSizeLG),[r(`item-spacing-actual`)]:Q(e.marginSM)}},td(e)),{},{display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:Q(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`}},Bve(e)),zve(e)),Lve(e)),Rve(e)),Fve(e)),Ive(e)),Pve(e)),{},{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}}),[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},Hve=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:G({},od(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":G({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ad(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ad(e)}}}},Uve=e=>G({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},YC(e)),Wve=e=>bl(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},JC(e)),Gve=dd(`Pagination`,e=>{let t=Wve(e);return[Vve(t),Hve(t)]},Uve),Kve=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},qve=pd([`Pagination`,`bordered`],e=>Kve(Wve(e)),Uve);function Jve(e){return(0,J.useMemo)(()=>typeof e==`boolean`?[e,{}]:lp(e)?[!0,e]:[void 0,void 0],[e])}K();var Yve=[`align`,`prefixCls`,`selectPrefixCls`,`className`,`rootClassName`,`style`,`size`,`locale`,`responsive`,`showSizeChanger`,`selectComponentClass`,`pageSizeOptions`,`styles`,`classNames`],nD=e=>{var t;let{align:n,prefixCls:r,selectPrefixCls:i,className:a,rootClassName:o,style:s,size:c,locale:l,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:p,styles:m,classNames:h}=e,g=q(e,Yve),{xs:_}=By(u),[,v]=$u(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=ko(`pagination`),D=y(`pagination`,r),[O,k]=Gve(D),A=vh(c),j=A===`small`||!!(_&&!A&&u),[M,N]=Sy(`input`),P=G(G({},e),{},{size:A}),F=yp(C),I=yp(s),[L,R]=xp([w,h],[T,F,m,I],{props:P}),[z]=Hp(`Pagination`,Ln),B=G(G({},z),l),[V,H]=Jve(d),[U,ee]=Jve(x),te=V==null?U:V,ne=H==null?ee:H,re=f||Iy,ie=J.useMemo(()=>p?p.map(Number):void 0,[p]),ae=e=>{var t;let{disabled:n,size:r,onSizeChange:i,"aria-label":a,className:o,options:s}=e,{className:c,onChange:l}=ne||{},u=(t=s.find(e=>String(e.value)===String(r)))==null?void 0:t.value;return J.createElement(re,G(G({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:s},ne),{},{value:u,onChange:(e,t)=>{i==null||i(e),l==null||l(e,t)},size:A,className:Z(`${D}-options-size-changer-select`,o,c)}))},oe=J.useMemo(()=>{let e=J.createElement(`span`,{className:`${D}-item-ellipsis`},J.createElement(Cx,null));return{prevIcon:J.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?J.createElement(tg,null):J.createElement(pb,null)),nextIcon:J.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?J.createElement(pb,null):J.createElement(tg,null)),jumpPrevIcon:J.createElement(`a`,{className:`${D}-item-link`},J.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?J.createElement(Eve,{className:`${D}-item-link-icon`}):J.createElement(wve,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:J.createElement(`a`,{className:`${D}-item-link`},J.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?J.createElement(wve,{className:`${D}-item-link-icon`}):J.createElement(Eve,{className:`${D}-item-link-icon`}),e))}},[b,D]),se=y(`select`,i),ce=Z({[`${D}-${n}`]:!!n,[`${D}-${A}`]:A,[`${D}-${M}`]:N&&M!==`outlined`,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:v.wireframe},S,a,o,L.root,O,k),le=G({},R.root);return J.createElement(J.Fragment,null,v.wireframe&&J.createElement(qve,{prefixCls:D}),J.createElement(Nve,G(G(G({},oe),g),{},{styles:R,classNames:L,style:le,prefixCls:D,selectPrefixCls:se,className:ce,locale:B,pageSizeOptions:ie,showSizeChanger:te,totalBoundaryShowSizeChanger:(t=g.totalBoundaryShowSizeChanger)==null?E:t,sizeChangerRender:ae})))},rD=100,Xve=rD/5,Zve=rD/2-Xve/2,iD=Zve*2*Math.PI,Qve=50,$ve=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return J.createElement(`circle`,{className:Z(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Zve,cx:Qve,cy:Qve,strokeWidth:Xve,style:n})},eye=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=J.useState(!1);Xr(()=>{e!==0&&o(!0)},[e]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${iD/4}`,strokeDasharray:`${iD*s/100} ${iD*(100-s)/100}`};return J.createElement(`span`,{className:Z(r,`${n}-progress`,{[i]:s<=0})},J.createElement(`svg`,{viewBox:`0 0 ${rD} ${rD}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},J.createElement($ve,{dotClassName:n,hasCircleCls:!0}),J.createElement($ve,{dotClassName:n,style:c})))};function tye(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return J.createElement(J.Fragment,null,J.createElement(`span`,{className:Z(o,r,n>0&&s),style:i},J.createElement(`span`,{className:Z(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>J.createElement(`i`,{className:`${t}-dot-item`,key:e})))),J.createElement(eye,{prefixCls:t,percent:n}))}K();function nye(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&J.isValidElement(n)?pm(n,e=>({className:Z(e.className,o,i),style:G(G({},e.style),a),percent:r})):J.createElement(tye,{prefixCls:t,percent:r,className:i,style:a})}K();var rye=new Vc(`antSpinMove`,{to:{opacity:1}}),iye=new Vc(`antRotate`,{to:{transform:`rotate(405deg)`}}),aye=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:G(G({},td(e)),{},{position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}})}},oye=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=md(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:iye,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:rye,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},sye=e=>{let{componentCls:t}=e,[n]=md(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},cye=dd(`Spin`,e=>{let t=bl(e,{spinDotDefault:e.colorTextDescription});return[aye(t),oye(t),sye(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),lye=200,uye=[[30,.05],[70,.03],[96,.01]];function dye(e,t){let[n,r]=J.useState(0),i=J.useRef(null),a=t===`auto`;return J.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n{i.current&&(clearInterval(i.current),i.current=null)}),[a,e]),a?n:t}K();var fye=[`prefixCls`,`spinning`,`delay`,`className`,`rootClassName`,`size`,`tip`,`description`,`wrapperClassName`,`style`,`children`,`fullscreen`,`indicator`,`percent`,`classNames`,`styles`],pye;function mye(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var aD=e=>{var t;let{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s,tip:c,description:l,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:m,percent:h,classNames:g,styles:_}=e,v=q(e,fye),{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=ko(`spin`),E=y(`spin`,n),[D,O]=cye(E),[k,A]=J.useState(()=>r&&!mye(r,i)),j=dye(k,h);J.useEffect(()=>{if(r){let e=Ife(i,()=>{A(!0)});return e(),()=>{var t;e==null||(t=e.cancel)==null||t.call(e)}}A(!1)},[i,r]);let M=vh(e=>s==null?e:s),N=l==null?c:l,P=G(G({},e),{},{size:M,spinning:k,tip:N,description:N,fullscreen:p,children:f,percent:j}),[F,I]=xp([w,g],[T,_],{props:P}),L=(t=m==null?x:m)==null?pye:t,R=f!==void 0,z=R||p,B=J.createElement(J.Fragment,null,J.createElement(nye,{className:Z(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&J.createElement(`div`,{className:Z(`${E}-description`,F.tip,F.description),style:G(G({},I.tip),I.description)},N));return J.createElement(`div`,G({className:Z(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:p},o,F.root,p&&F.mask,z?u:[`${E}-section`,F.section],S,a,D,O),style:G(G(G(G(G({},I.root),z?{}:I.section),p?I.mask:{}),C),d),"aria-live":`polite`,"aria-busy":k},v),k&&(z?J.createElement(`div`,{className:Z(`${E}-section`,F.section),style:I.section},B):B),R&&J.createElement(`div`,{className:Z(`${E}-container`,F.container),style:I.container},f))};aD.setDefaultIndicator=e=>{pye=e};var hye=(e,t={})=>!ap(e)&&t!=null&&t.skipEmpty?[]:Array.isArray(e)?e:[e];K();var gye=e=>{let{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=ko(`message`),a=i(`message`),o=Fp(a),[s,c]=rh(a,o),l=`${a}-notice`,u=t.map(e=>{let{content:t,duration:n,key:r,type:i}=e,o=i?`${l}-icon-${i}`:void 0;return{key:r,duration:n,icon:ih(i),title:t,className:`${l}-${i}`,classNames:{wrapper:`${a}-${i}`,icon:o}}});return J.createElement(rte,{prefixCls:a,placement:`top`,configList:u,className:Z(s,c,o),classNames:G(G({},n),{},{wrapper:n==null?void 0:n.wrapper,title:n==null?void 0:n.title}),style:r,stack:!1})};K();var oD=null,sD=e=>e(),cD=[],lD={};function _ye(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:a}=lD,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i,stack:a}}var vye=J.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,J.useContext)(Eo),a=lD.prefixCls||i(`message`),o=(0,J.useContext)(Jae),[s,c]=sh(G(G({},n),{},{prefixCls:a},o.message));return J.useImperativeHandle(t,()=>{let e=G({},s);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),yye=J.forwardRef((e,t)=>{let[n,r]=J.useState(_ye),i=()=>{r(_ye)};J.useEffect(i,[]);let a=Tm(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=J.createElement(vye,{ref:t,sync:i,messageConfig:n});return J.createElement(Em,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),uD=()=>{if(!oD){let e=document.createDocumentFragment(),t={fragment:e};oD=t,sD(()=>{qa(J.createElement(yye,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,uD())})}}),e)});return}oD.instance&&(cD.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:sD(()=>{let t=oD.instance.open(G(G({},lD),e.config));t==null||t.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:sD(()=>{oD==null||oD.instance.destroy(e.key)});break;default:sD(()=>{var n;let r=(n=oD.instance)[t].apply(n,Co(e.args));r==null||r.then(e.resolve),e.setCloseFn(r)})}}),cD=[])};function bye(e){lD=G(G({},lD),e),sD(()=>{var e;oD==null||(e=oD.sync)==null||e.call(oD)})}function xye(e){let t=ah(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return cD.push(r),()=>{n?sD(()=>{n()}):r.skipped=!0}});return uD(),t}function Sye(e,t){let n=ah(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return cD.push(i),()=>{r?sD(()=>{r()}):i.skipped=!0}});return uD(),n}var Cye=e=>{cD.push({type:`destroy`,key:e}),uD()},wye=[`success`,`info`,`warning`,`error`,`loading`],dD={open:xye,destroy:Cye,config:bye,useMessage:lne,_InternalPanelDoNotUseOrYouWillBeFired:ene,_InternalListDoNotUseOrYouWillBeFired:gye};wye.forEach(e=>{dD[e]=(...t)=>Sye(e,t)}),K();var Tye=[`prefixCls`,`className`,`closeIcon`,`closable`,`type`,`title`,`children`,`footer`,`classNames`,`styles`],Eye=X_(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u}=e,d=q(e,Tye),{getPrefixCls:f}=J.useContext(Eo),{className:p,style:m,classNames:h,styles:g}=ko(`modal`),_=f(),v=t||f(`modal`),y=Fp(_),[b,x]=F_(v,y),[S,C]=xp([h,l],[g,u],{props:e}),w=`${v}-confirm`,T={};return T=a?{closable:i!=null&&i,title:``,footer:``,children:J.createElement(R_,G(G({},e),{},{prefixCls:v,confirmPrefixCls:w,rootPrefixCls:_,content:s}))}:{closable:i==null||i,title:o,footer:c!==null&&J.createElement(xae,G({},e)),children:s},J.createElement(Cg,G(G({prefixCls:v,className:Z(b,`${v}-pure-panel`,a&&w,a&&`${w}-${a}`,n,p,x,y,S.root),style:G(G({},m),C.root)},d),{},{closeIcon:bae(v,r),closable:i,classNames:S,styles:C},T))});function Dye(e){return U_(W_(e))}var fD=L_;fD.useModal=qae,fD.info=function(e){return U_(G_(e))},fD.success=function(e){return U_(K_(e))},fD.error=function(e){return U_(q_(e))},fD.warning=Dye,fD.warn=Dye,fD.confirm=function(e){return U_(J_(e))},fD.destroyAll=function(){for(;B_.length;){let e=B_.pop();e&&e()}},fD.config=Uae,fD._InternalPanelDoNotUseOrYouWillBeFired=Eye;var Oye=dd(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon`]:{color:o},[`> ${t}-message-icon ${n}`]:{fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});K();var kye=[`prefixCls`,`placement`,`className`,`style`],Aye=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=J.createElement(sf,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=J.useContext(Eo),[v]=Hp(`Popconfirm`,Wn.Popconfirm),y=Vy(i),b=Vy(a);return J.createElement(`div`,{className:`${t}-inner-content`,onClick:m},J.createElement(`div`,{className:`${t}-message`},l&&J.createElement(`span`,{className:Z(`${t}-message-icon`,h==null?void 0:h.icon),style:g==null?void 0:g.icon},l),J.createElement(`div`,{className:`${t}-message-text`},op(y)&&J.createElement(`div`,{className:Z(`${t}-title`,h==null?void 0:h.title),style:g==null?void 0:g.title},y),op(b)&&J.createElement(`div`,{className:Z(`${t}-description`,h==null?void 0:h.content),style:g==null?void 0:g.content},b))),J.createElement(`div`,{className:`${t}-buttons`},u&&J.createElement(pg,G({onClick:p,size:`small`},r),o||(v==null?void 0:v.cancelText)),J.createElement(mg,{buttonProps:G(G({size:`small`},Th(c)),n),actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},jye=e=>{let{prefixCls:t,placement:n,className:r,style:i}=e,a=q(e,kye),{getPrefixCls:o}=J.useContext(Eo),s=o(`popconfirm`,t);return Oye(s),J.createElement(lb,{placement:n,className:Z(s,r),style:i,content:J.createElement(Aye,G({prefixCls:s},a))})};K();var Mye=[`prefixCls`,`placement`,`trigger`,`okType`,`icon`,`children`,`overlayClassName`,`onOpenChange`,`overlayStyle`,`styles`,`arrow`,`classNames`],pD=J.forwardRef((e,t)=>{var n;let{prefixCls:r,placement:i=`top`,trigger:a,okType:o=`primary`,icon:s=J.createElement(sf,null),children:c,overlayClassName:l,onOpenChange:u,overlayStyle:d,styles:f,arrow:p,classNames:m}=e,h=q(e,Mye),{getPrefixCls:g,className:_,style:v,classNames:y,styles:b,arrow:x,trigger:S}=ko(`popconfirm`),[C,w]=$r((n=e.defaultOpen)!=null&&n,e.open),T=eb(p,x),E=a||S||`click`,D=e=>{w(e),u==null||u(e)},O=()=>{D(!1)},k=t=>{var n;return(n=e.onConfirm)==null?void 0:n.call(void 0,t)},A=t=>{var n;D(!1),(n=e.onCancel)==null||n.call(void 0,t)},j=t=>{let{disabled:n=!1}=e;n||D(t)},M=g(`popconfirm`,r),N=G(G({},e),{},{placement:i,trigger:E,okType:o,overlayStyle:d,styles:f,classNames:m}),[P,F]=xp([y,m],[b,f],{props:N}),I=Z(M,_,l,P.root);return Oye(M),J.createElement(ub,G(G({arrow:T},Ca(h,[`title`])),{},{trigger:E,placement:i,onOpenChange:j,open:C,ref:t,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:G(G(G({},v),F.root),d),container:F.container,arrow:F.arrow},content:J.createElement(Aye,G(G({okType:o,icon:s},e),{},{prefixCls:M,close:O,onConfirm:k,onCancel:A,classNames:P,styles:F})),"data-popover-inject":!0}),c)});pD._InternalPanelDoNotUseOrYouWillBeFired=jye;var Nye={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},Pye=()=>{let e=(0,J.useRef)([]),t=(0,J.useRef)(null);return(0,J.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},Fye=({bg:e,children:t})=>J.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function Iye(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Lye=J.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,m=p?`#FFF`:void 0,h=d/2,g=J.createElement(`circle`,{className:Z(`${n}-circle-path`,o),r:a,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return g;let _=`${i}-conic`,v=f?`${180+f/2}deg`:`0deg`,y=Iye(r,(360-f)/360),b=Iye(r,1),x=`conic-gradient(from ${v}, ${y.join(`, `)})`,S=`linear-gradient(to ${f?`bottom`:`top`}, ${b.join(`, `)})`;return J.createElement(J.Fragment,null,J.createElement(`mask`,{id:_},g),J.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${_})`},J.createElement(Fye,{bg:S},J.createElement(Fye,{bg:x}))))}),mD=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},Rye=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:J.createElement(`style`,null,`@keyframes ${n} { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } - }`)}});function q7(){return q7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const V=I(I({},fKe),e),{id:t,prefixCls:n,classNames:r={},styles:i={},steps:o,strokeWidth:a,railWidth:s,gapDegree:l=0,gapPosition:c,railColor:u,strokeLinecap:f,style:d,className:A,strokeColor:h,percent:p,loading:v}=V,y=Ze(V,["id","prefixCls","classNames","styles","steps","strokeWidth","railWidth","gapDegree","gapPosition","railColor","strokeLinecap","style","className","strokeColor","percent","loading"]),b=i2/2,x=lA(t),C=`${x}-gradient`,S=b-a/2,B=Math.PI*2*S,E=l>0?90+l/2:-90,_=B*((360-l)/360),{count:M,gap:R}=typeof o=="object"?o:{count:o,gap:2},T=Fce(p),L=Fce(h),P=L.find(Y=>Y&&typeof Y=="object"),H=P&&typeof P=="object"?"butt":f,{indeterminateStyleProps:D,indeterminateStyleAnimation:U}=hKe({id:x,loading:v}),j=G7(B,_,0,100,E,l,c,u,H,a),Q=dKe(),K=()=>{let Y=0;return T.map((Z,W)=>{const J=L[W]||L[L.length-1],ee=G7(B,_,Y,Z,E,l,c,J,H,a);return Y+=Z,g.createElement(AKe,{key:W,color:J,ptg:Z,radius:S,prefixCls:n,gradientId:C,className:r.track,style:I(I(I({},ee),D),i.track),strokeLinecap:H,strokeWidth:a,gapDegree:l,ref:ne=>{Q[W]=ne},size:i2})}).reverse()},z=()=>{const Y=Math.round(M*(T[0]/100)),Z=100/M;let W=0;return new Array(M).fill(null).map((J,ee)=>{const ne=ee<=Y-1?L[0]:u,re=ne&&typeof ne=="object"?`url(#${C})`:void 0,ue=G7(B,_,W,Z,E,l,c,ne,"butt",a,R);return W+=(_-ue.strokeDashoffset+R)*100/_,g.createElement("circle",{key:ee,className:Ae(`${n}-circle-path`,r.track),r:S,cx:b,cy:b,stroke:re,strokeWidth:a,opacity:1,style:I(I({},ue),i.track),ref:de=>{Q[ee]=de}})})};return g.createElement("svg",q7({className:Ae(`${n}-circle`,r.root,A),viewBox:`0 0 ${i2} ${i2}`,style:I(I({},i.root),d),id:t,role:"presentation"},y),!M&&g.createElement("circle",{className:Ae(`${n}-circle-rail`,r.rail),r:S,cx:b,cy:b,stroke:u,strokeLinecap:H,strokeWidth:s||a,style:I(I({},j),i.rail)}),M?z():K(),U)};function Uv(e){return!e||e<0?0:e>100?100:e}function yI({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const gKe=({percent:e,success:t})=>{const n=Uv(yI({success:t}));return[n,Uv(Uv(e)-n)]},mKe=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||wb.green,t||null]},bI=(e,t,n)=>{var o,a,s,l;let r=-1,i=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e=="undefined"?(r=e==="small"?2:14,i=u!=null?u:8):mo(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e=="undefined"?i=c||(e==="small"?6:8):mo(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[r,i]=e==="small"?[60,60]:[120,120]:mo(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=(a=(o=e[0])!=null?o:e[1])!=null?a:120,i=(l=(s=e[0])!=null?s:e[1])!=null?l:120));return[r,i]},vKe=3,yKe=e=>vKe/e*100,kce=["root","body","indicator"],bKe=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:o,strokeLinecap:a="round",gapPosition:s,gapPlacement:l,gapDegree:c,width:u=120,type:f,children:d,success:A,size:h=u,steps:p}=e,{direction:v}=or("progress"),y=i!=null?i:o,[b,x]=bI(h,"circle");let{strokeWidth:C}=e;C===void 0&&(C=Math.max(yKe(b),6));const S={width:b,height:x,fontSize:b*.15+6},B=g.useMemo(()=>{if(c||c===0)return c;if(f==="dashboard")return 75},[c,f]),E=gKe(e),_=g.useMemo(()=>{const H=(l!=null?l:s)||f==="dashboard"&&"bottom"||void 0,D=v==="rtl";switch(H){case"start":return D?"right":"left";case"end":return D?"left":"right";default:return H}},[v,l,s,f]),M=Zn(e.strokeColor),R=mKe({success:A,strokeColor:e.strokeColor}),T=Ae(`${t}-body`,{[`${t}-circle-gradient`]:M},n.body),L=g.createElement(pKe,{steps:p,percent:p?E[1]:E,strokeWidth:C,railWidth:C,strokeColor:p?R[1]:R,strokeLinecap:a,railColor:y,prefixCls:t,gapDegree:B,gapPosition:_,classNames:ti(n,kce),styles:ti(r,kce)}),P=b<=20,k=g.createElement("div",{className:T,style:I(I({},S),r.body)},L,!P&&d);return P?g.createElement(No,{title:d},k):k},Y7="--progress-line-stroke-color",xKe=e=>{const t="-100%";return new Xr("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},wKe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:te(I({},zr(e)),{display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}})}},CKe=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:xKe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},SKe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},EKe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},BKe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},OKe=Br("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=dr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[wKe(n),CKe(n),SKe(n),EKe(n),BKe(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),$Ke=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},_Ke=(e,t)=>{const s=e,{from:n=wb.blue,to:r=wb.blue,direction:i=t==="rtl"?"to left":"to right"}=s,o=Ze(s,["from","to","direction"]);if(Object.keys(o).length!==0){const l=$Ke(o),c=`linear-gradient(${i}, ${l})`;return{background:c,[Y7]:c}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[Y7]:a}},TKe=e=>{const{prefixCls:t,classNames:n,styles:r,direction:i,percent:o,size:a,strokeWidth:s,strokeColor:l,strokeLinecap:c="round",children:u,railColor:f,trailColor:d,percentPosition:A,success:h}=e,{align:p,type:v}=A,y=f!=null?f:d,b=c==="square"||c==="butt"?0:void 0,x=a!=null?a:[-1,s||(a==="small"?6:8)],[C,S]=bI(x,"line",{strokeWidth:s}),B={backgroundColor:y||void 0,borderRadius:b,height:S},E=`${t}-track`,_=l&&typeof l!="string"?_Ke(l,i):{[Y7]:l,background:l},M=I({width:`${Uv(o)}%`,height:S,borderRadius:b},_),R=yI(e),T={width:`${Uv(R)}%`,height:S,borderRadius:b,backgroundColor:h==null?void 0:h.strokeColor};return g.createElement("div",{className:Ae(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:p==="center"&&v==="outer"}),style:I({width:C>0?C:"100%"},r.body)},g.createElement("div",{className:Ae(`${t}-rail`,n.rail),style:I(I({},B),r.rail)},g.createElement("div",{className:Ae(E,n.track),style:I(I({},M),r.track)},v==="inner"&&u),R!==void 0&&g.createElement("div",{className:Ae(E,`${E}-success`,n.track),style:I(I({},T),r.track)})),v==="outer"&&u)},MKe=e=>{const{classNames:t,styles:n,size:r,steps:i,rounding:o=Math.round,percent:a=0,strokeWidth:s=8,strokeColor:l,railColor:c,trailColor:u,prefixCls:f,children:d}=e,A=o(i*(a/100)),h=r==="small"?2:14,p=r!=null?r:[h,s],[v,y]=bI(p,"step",{steps:i,strokeWidth:s}),b=v/i,x=Array.from({length:i}),C=c!=null?c:u;for(let S=0;S{const re=e,{prefixCls:n,className:r,rootClassName:i,classNames:o,styles:a,steps:s,strokeColor:l,percent:c=0,size:u="medium",showInfo:f=!0,type:d="line",status:A,format:h,style:p,percentPosition:v={}}=re,y=Ze(re,["prefixCls","className","rootClassName","classNames","styles","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:x="outer"}=v,C=Array.isArray(l)?l[0]:l,S=typeof l=="string"||Array.isArray(l)?l:void 0,B=g.useMemo(()=>{if(C){const ue=typeof C=="string"?C:Object.values(C)[0];return new Rr(ue).isLight()}return!1},[l]),E=g.useMemo(()=>{var de,se;const ue=yI(e);return Number.parseInt(ue!==void 0?(de=ue!=null?ue:0)==null?void 0:de.toString():(se=c!=null?c:0)==null?void 0:se.toString(),10)},[c,e.success]),_=g.useMemo(()=>!IKe.includes(A)&&E>=100?"success":A||"normal",[A,E]),{getPrefixCls:M,direction:R,className:T,style:L,classNames:P,styles:k}=or("progress"),H=M("progress",n),[D,U]=OKe(H),j=te(I({},e),{percent:c,type:d,size:u,showInfo:f,percentPosition:v}),Q=Ar(L),K=Ar(p),[z,V]=vr([P,o],[k,Q,a,K],{props:j}),Y=d==="line",Z=Y&&!s,W=g.useMemo(()=>{if(!f)return null;const ue=yI(e);let de;const se=h||(ge=>`${ge}%`),ce=Y&&B&&x==="inner";return x==="inner"||h||_!=="exception"&&_!=="success"?de=se(Uv(c),Uv(ue)):_==="exception"?de=Y?g.createElement(hv,null):g.createElement(Dg,null):_==="success"&&(de=Y?g.createElement(eE,null):g.createElement(OH,null)),g.createElement("span",{className:Ae(`${H}-indicator`,{[`${H}-indicator-bright`]:ce,[`${H}-indicator-${b}`]:Z,[`${H}-indicator-${x}`]:Z},z.indicator),style:V.indicator,title:typeof de=="string"?de:void 0},de)},[f,c,E,_,d,H,h,Y,B,x,b,Z,z.indicator,V.indicator]),J=te(I({},e),{classNames:z,styles:V});let ee;d==="line"?ee=s?g.createElement(MKe,te(I({},J),{strokeColor:S,prefixCls:H,steps:Zn(s)?s.count:s}),W):g.createElement(TKe,te(I({},J),{strokeColor:C,prefixCls:H,direction:R,percentPosition:{align:b,type:x}}),W):(d==="circle"||d==="dashboard")&&(ee=g.createElement(bKe,te(I({},J),{strokeColor:C,prefixCls:H,progressStatus:_}),W));const ne=Ae(H,`${H}-status-${_}`,{[`${H}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${H}-inline-circle`]:d==="circle"&&bI(u,"circle")[0]<=20,[`${H}-line`]:Z,[`${H}-line-align-${b}`]:Z,[`${H}-line-position-${x}`]:Z,[`${H}-steps`]:s,[`${H}-show-info`]:f,[`${H}-small`]:u==="small",[`${H}-rtl`]:R==="rtl"},T,r,i,z.root,D,U);return g.createElement("div",I({ref:t,style:V.root,className:ne,role:"progressbar","aria-valuenow":E,"aria-valuemin":0,"aria-valuemax":100},ti(y,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])),ee)});var xI={},Dce;function NKe(){if(Dce)return xI;Dce=1,Object.defineProperty(xI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};return xI.default=e,xI}var PKe=NKe();const LKe=_t(PKe);function X7(){return X7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,X7({},e,{ref:t,icon:LKe})),Hce=g.forwardRef(FKe);var wI={},Uce;function kKe(){if(Uce)return wI;Uce=1,Object.defineProperty(wI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};return wI.default=e,wI}var DKe=kKe();const HKe=_t(DKe);function Z7(){return Z7=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,Z7({},e,{ref:t,icon:HKe})),jKe=g.forwardRef(UKe),zKe=()=>g.createElement("svg",{width:"252",height:"294"},g.createElement("title",null,"No Found"),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),g.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),g.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),g.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),g.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),g.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),g.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),g.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),g.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),g.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),g.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),g.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),g.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),g.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),g.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),g.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),g.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),g.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),g.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),g.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),g.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),g.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),g.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),g.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),g.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),g.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),g.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),g.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),g.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),g.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),g.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),g.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),g.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),g.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),g.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),g.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),g.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),g.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),g.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),g.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),QKe=()=>g.createElement("svg",{width:"254",height:"294"},g.createElement("title",null,"Server Error"),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),g.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),g.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),g.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),g.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),g.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),g.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),g.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),g.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),g.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),g.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),g.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),g.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),g.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),g.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),g.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),g.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),g.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),g.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),g.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),g.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),g.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),g.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),g.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),g.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),g.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),g.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),g.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),g.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),g.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),g.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),g.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),g.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),g.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),g.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),g.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),g.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),g.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),g.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),g.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),g.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),g.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),g.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),g.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),g.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),g.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),VKe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${be(e.calc(s).mul(2).equal())} ${be(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-body`]:{marginTop:s,padding:`${be(s)} ${be(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},KKe=e=>{const{componentCls:t}=e;return{[`${t}-success ${t}-icon`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon`]:{color:e.resultWarningIconColor}}},WKe=e=>[VKe(e),KKe(e)],GKe=Br("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=dr(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return WKe(o)},e=>{const{fontSizeHeading3:t,fontSize:n,paddingLG:r}=e;return{titleFontSize:t,subtitleFontSize:n,iconFontSize:mo(t)?t*3:`calc(${t} * 3)`,extraMargin:`${r}px 0 0 0`}}),qKe=()=>g.createElement("svg",{width:"251",height:"294"},g.createElement("title",null,"Unauthorized"),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),g.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),g.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),g.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),g.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),g.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),g.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),g.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),g.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),g.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),g.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),g.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),g.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),g.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),g.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),g.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),g.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),g.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),g.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),g.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),g.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),g.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),g.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),g.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),g.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),g.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),g.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),g.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),g.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),g.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),g.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),g.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),g.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),g.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),g.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),g.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),g.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),g.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),g.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),g.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),g.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),g.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),g.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),YKe={success:eE,error:hv,info:Sb,warning:jKe},o2={404:zKe,500:QKe,403:qKe},jce=Object.keys(o2),XKe=({icon:e,status:t,className:n,style:r})=>{if(jce.includes(`${t}`)){const o=o2[t];return g.createElement("div",{className:n,style:r},g.createElement(o,null))}const i=g.createElement(YKe[t]);return e===null||e===!1?null:g.createElement("div",{className:n,style:r},e||i)},ZKe=({className:e,extra:t,style:n})=>qi(t)?g.createElement("div",{className:e,style:n},t):null,CI=e=>{const K=e,{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:o,style:a,children:s,status:l="info",icon:c,extra:u,styles:f,classNames:d}=K,A=Ze(K,["prefixCls","className","rootClassName","subTitle","title","style","children","status","icon","extra","styles","classNames"]),{getPrefixCls:h,direction:p,className:v,style:y,classNames:b,styles:x}=or("result"),C=te(I({},e),{status:l}),S=Ar(y),B=Ar(a),[E,_]=vr([b,d],[x,S,f,B],{props:C}),M=h("result",t),[R,T]=GKe(M),L=Ae(M,`${M}-${l}`,n,v,r,{[`${M}-rtl`]:p==="rtl"},R,T,E.root),P=Ae(`${M}-title`,E.title),k=Ae(`${M}-subtitle`,E.subTitle),H=Ae(`${M}-extra`,E.extra),D=Ae(`${M}-body`,E.body),U=Ae(`${M}-icon`,{[`${M}-image`]:jce.includes(`${l}`)},E.icon),j=I({},_.root),Q=Co(A,{aria:!0,data:!0});return g.createElement("div",te(I({},Q),{className:L,style:j}),g.createElement(XKe,{className:U,style:_.icon,status:l,icon:c}),qi(o)&&g.createElement("div",{className:P,style:_.title},o),qi(i)&&g.createElement("div",{className:k,style:_.subTitle},i),g.createElement(ZKe,{className:H,extra:u,style:_.extra}),qi(s)&&g.createElement("div",{className:D,style:_.body},s))};CI.PRESENTED_IMAGE_403=o2[403],CI.PRESENTED_IMAGE_404=o2[404],CI.PRESENTED_IMAGE_500=o2[500];function J7(){return J7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var v=p,{prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:o,checkedChildren:a,unCheckedChildren:s,onClick:l,onChange:c,onKeyDown:u,styles:f,classNames:d}=v,A=Ze(v,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown","styles","classNames"]);const[y,b]=Fr(r!=null?r:!1,n);function x(E,_){let M=y;return i||(M=E,b(M),c==null||c(M,_)),M}function C(E){E.which===dn.LEFT?x(!1,E):E.which===dn.RIGHT&&x(!0,E),u==null||u(E)}function S(E){const _=x(!y,E);l==null||l(_,E)}const B=Ae(e,t,{[`${e}-checked`]:y,[`${e}-disabled`]:i});return g.createElement("button",J7({},A,{type:"button",role:"switch","aria-checked":y,disabled:i,className:B,ref:h,onKeyDown:C,onClick:S}),o,g.createElement("span",{className:`${e}-inner`},g.createElement("span",{className:Ae(`${e}-inner-checked`,d==null?void 0:d.content),style:f==null?void 0:f.content},a),g.createElement("span",{className:Ae(`${e}-inner-unchecked`,d==null?void 0:d.content),style:f==null?void 0:f.content},s)))});zce.displayName="Switch";const JKe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=be(l(s).add(l(r).mul(2)).equal()),f=be(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:be(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${be(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},eWe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},tWe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:te(I({position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`},Xh()),{"&::before":I({position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'},Xh())}),[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${be(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},nWe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,switchDuration:s,calc:l}=e,c=`${t}-inner`,u=be(l(a).add(l(r).mul(2)).equal()),f=be(l(o).mul(2).equal());return{[t]:{[c]:te(I({display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:["padding-inline-start","padding-inline-end"].map(d=>`${d} ${s} ease-in-out`).join(", ")},Xh()),{[`${c}-checked, ${c}-unchecked`]:I({display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(d=>`${d} ${s} ease-in-out`).join(", ")},Xh()),[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}}),[`&${t}-checked ${c}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},rWe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:te(I(te(I(te(I({},zr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:be(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none"}),Xh()),{[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),lc(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},iWe=Br("Switch",e=>{const t=dr(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[rWe(t),nWe(t),tWe(t),eWe(t),JKe(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,s=2,l=o-s*2,c=a-s*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Rr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}}),Qce=g.forwardRef((e,t)=>{var Z;const Y=e,{prefixCls:n,size:r,disabled:i,loading:o,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:d,onChange:A,styles:h,classNames:p}=Y,v=Ze(Y,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange","styles","classNames"]),[y,b]=Fr((Z=f!=null?f:d)!=null?Z:!1,c!=null?c:u),{getPrefixCls:x,direction:C,className:S,style:B,classNames:E,styles:_}=or("switch"),M=g.useContext(qa),R=(i!=null?i:M)||o,T=x("switch",n),[L,P]=iWe(T),k=aa(r),H=te(I({},e),{size:k,disabled:R}),D=Ar(B),U=Ar(l),[j,Q]=vr([E,p],[_,D,h,U],{props:H}),K=g.createElement("div",{className:Ae(`${T}-handle`,j.indicator),style:Q.indicator},o&&g.createElement(qh,{className:`${T}-loading-icon`})),z=Ae(S,{[`${T}-small`]:k==="small",[`${T}-loading`]:o,[`${T}-rtl`]:C==="rtl"},a,s,j.root,L,P),V=(...W)=>{b(W[0]),A==null||A(...W)};return g.createElement(sE,{component:"Switch",disabled:R},g.createElement(zce,te(I({},v),{classNames:j,styles:Q,checked:y,onChange:V,prefixCls:T,className:z,style:Q.root,disabled:R,ref:t,loadingIcon:K})))});Qce.__ANT_SWITCH=!0;const ap={},a2="rc-table-internal-hook";function e9(e){const t=g.createContext(void 0);return{Context:t,Provider:({value:r,children:i})=>{const o=g.useRef(r);o.current=r;const[a]=g.useState(()=>({getValue:()=>o.current,listeners:new Set}));return ar(()=>{fu.unstable_batchedUpdates(()=>{a.listeners.forEach(s=>{s(r)})})},[r]),g.createElement(t.Provider,{value:a},i)},defaultValue:e}}function Ts(e,t){const n=yn(typeof t=="function"?t:l=>{if(t===void 0)return l;if(!Array.isArray(t))return l[t];const c={};return t.forEach(u=>{c[u]=l[u]}),c}),r=g.useContext(e==null?void 0:e.Context),{listeners:i,getValue:o}=r||{},a=g.useRef();a.current=n(r?o():e==null?void 0:e.defaultValue);const[,s]=g.useState({});return ar(()=>{if(!r)return;function l(c){const u=n(c);uu(a.current,u,!0)||s({})}return i.add(l),()=>{i.delete(l)}},[r]),a.current}function s2(){return s2=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const u=a?{ref:c}:{},f=g.useRef(0),d=g.useRef(l);return t()!==null?g.createElement(i,s2({},l,u)):((!o||o(d.current,l))&&(f.current+=1),d.current=l,g.createElement(e.Provider,{value:f.current},g.createElement(i,s2({},l,u))))};return a?g.forwardRef(s):s}function r(i,o){const a=Vh(i),s=(l,c)=>{const u=a?{ref:c}:{};return t(),g.createElement(i,s2({},l,u))};return g.memo(a?g.forwardRef(s):s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}const{makeImmutable:Vce,responseImmutable:Zb,useImmutableMark:aWe}=oWe(),cl=e9(),Kce=g.createContext({renderWithProps:!1}),sWe="RC_TABLE_KEY";function lWe(e){return e==null?[]:Array.isArray(e)?e:[e]}function SI(e){const t=[],n={};return e.forEach(r=>{const{key:i,dataIndex:o}=r||{};let a=i||lWe(o).join("-")||sWe;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function t9(e){return e!=null}function cWe(e){return typeof e=="number"&&!Number.isNaN(e)}function uWe(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!g.isValidElement(e)}function fWe(e,t,n,r,i,o){const a=g.useContext(Kce),s=aWe();return cv(()=>{if(t9(r))return[r];const c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=ol(e,c);let f=u,d;if(i){const A=i(u,e,n);uWe(A)?(f=A.children,d=A.props,a.renderWithProps=!0):f=A}return[f,d]},[s,e,r,t,i,n],(c,u)=>{if(o){const[,f]=c,[,d]=u;return o(d,f)}return a.renderWithProps?!0:!uu(c,u,!0)})}function dWe(e,t,n,r){const i=e+t-1;return e<=r&&i>=n}function AWe(e,t){return Ts(cl,n=>[dWe(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function n9(){return n9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var o,a;let r;const i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t==="header")&&(typeof n=="string"||typeof n=="number"?r=n.toString():g.isValidElement(n)&&typeof((o=n.props)==null?void 0:o.children)=="string"&&(r=(a=n.props)==null?void 0:a.children)),r},pWe=e=>{var ge,ie,le,ve,we,me,Ee;const{component:t,children:n,ellipsis:r,scope:i,prefixCls:o,className:a,style:s,align:l,record:c,render:u,dataIndex:f,renderIndex:d,shouldCellUpdate:A,index:h,rowType:p,colSpan:v,rowSpan:y,fixStart:b,fixEnd:x,fixedStartShadow:C,fixedEndShadow:S,offsetFixedStartShadow:B,offsetFixedEndShadow:E,zIndex:_,zIndexReverse:M,appendNode:R,additionalProps:T={},isSticky:L}=e,P=`${o}-cell`,{allColumnsFixedLeft:k,rowHoverable:H}=Ts(cl,["allColumnsFixedLeft","rowHoverable"]),[D,U]=fWe(c,f,d,n,u,A),j={},Q=typeof b=="number"&&!k,K=typeof x=="number"&&!k,[z,V]=Ts(cl,({scrollInfo:Ce})=>{if(!Q&&!K)return[!1,!1];const[pe,Oe]=Ce,xe=(Q&&C&&pe)-B>=1,Me=(K&&S&&Oe-pe)-E>1;return[xe,Me]});Q&&(j.insetInlineStart=b,j["--z-offset"]=_,j["--z-offset-reverse"]=M),K&&(j.insetInlineEnd=x,j["--z-offset"]=_,j["--z-offset-reverse"]=M);const Y=(le=(ie=(ge=U==null?void 0:U.colSpan)!=null?ge:T.colSpan)!=null?ie:v)!=null?le:1,Z=(me=(we=(ve=U==null?void 0:U.rowSpan)!=null?ve:T.rowSpan)!=null?we:y)!=null?me:1,[W,J]=AWe(h,Z),ee=yn(Ce=>{var pe;c&&J(h,h+Z-1),(pe=T==null?void 0:T.onMouseEnter)==null||pe.call(T,Ce)}),ne=yn(Ce=>{var pe;c&&J(-1,-1),(pe=T==null?void 0:T.onMouseLeave)==null||pe.call(T,Ce)});if(Y===0||Z===0)return null;const re=(Ee=T.title)!=null?Ee:hWe({rowType:p,ellipsis:r,children:D}),ue=Ae(P,a,{[`${P}-fix`]:Q||K,[`${P}-fix-start`]:Q,[`${P}-fix-end`]:K,[`${P}-fix-start-shadow`]:C,[`${P}-fix-start-shadow-show`]:C&&z,[`${P}-fix-end-shadow`]:S,[`${P}-fix-end-shadow-show`]:S&&V,[`${P}-ellipsis`]:r,[`${P}-with-append`]:R,[`${P}-fix-sticky`]:(Q||K)&&L,[`${P}-row-hover`]:!U&&W},T.className,U==null?void 0:U.className),de={};l&&(de.textAlign=l);const se=I(I(I(I(I({},U==null?void 0:U.style),j),de),T.style),s);let ce=D;return typeof ce=="object"&&!Array.isArray(ce)&&!g.isValidElement(ce)&&(ce=null),r&&(C||S)&&(ce=g.createElement("span",{className:`${P}-content`},ce)),g.createElement(t,n9({},U,T,{className:ue,style:se,title:re,scope:i,onMouseEnter:H?ee:void 0,onMouseLeave:H?ne:void 0,colSpan:Y!==1?Y:null,rowSpan:Z!==1?Z:null}),R,ce)},Jb=g.memo(pWe);function EI(e){return e.fixed==="start"}function BI(e){return e.fixed==="end"}function r9(e,t,n,r){const i=n[e]||{},o=n[t]||{};let a=null,s=null;EI(i)&&EI(o)?a=r.start[e]:BI(o)&&BI(i)&&(s=r.end[t]);let l=!1,c=!1,u=0,f=0;a!==null&&(l=!n[t+1]||!EI(n[t+1]),u=n.length*2-e,f=n.length+e),s!==null&&(c=!n[e-1]||!BI(n[e-1]),u=t,f=n.length-t);let d=0,A=0;if(l)for(let h=0;ht;h-=1)BI(n[h])||(A+=r.widths[h]||0);return{fixStart:a,fixEnd:s,fixedStartShadow:l,fixedEndShadow:c,offsetFixedStartShadow:d,offsetFixedEndShadow:A,isSticky:r.isSticky,zIndex:u,zIndexReverse:f}}const Wce=g.createContext({});function i9(){return i9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:t,index:n,children:r,colSpan:i=1,rowSpan:o,align:a}=e,{prefixCls:s}=Ts(cl,["prefixCls"]),{scrollColumnIndex:l,stickyOffsets:c,flattenColumns:u}=g.useContext(Wce),d=n+i-1+1===l?i+1:i,A=g.useMemo(()=>r9(n,n+d-1,u,c),[n,d,u,c]);return g.createElement(Jb,i9({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:a,colSpan:d,rowSpan:o,render:()=>r},A))},mWe=e=>{const r=e,{children:t}=r,n=Ze(r,["children"]);return g.createElement("tr",n,t)},OI=e=>{const{children:t}=e;return t};OI.Row=mWe,OI.Cell=gWe;const $I=Zb(e=>{const{children:t,stickyOffsets:n,flattenColumns:r}=e,i=Ts(cl,"prefixCls"),o=r.length-1,a=r[o],s=g.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?o:null}),[a,r,o,n]);return g.createElement(Wce.Provider,{value:s},g.createElement("tfoot",{className:`${i}-summary`},t))}),Gce=OI;function vWe(e){return null}function yWe(e){return null}function qce(e,t,n,r,i,o,a){const s=o(t,a);e.push({record:t,indent:n,index:a,rowKey:s});const l=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&l)for(let c=0;c{if(n!=null&&n.size){const o=[];for(let a=0;a<(e==null?void 0:e.length);a+=1){const s=e[a];qce(o,s,0,t,n,r,a)}return o}return e==null?void 0:e.map((o,a)=>({record:o,indent:0,index:a,rowKey:r(o,a)}))},[e,t,n,r])}function Xce(e,t,n,r){const i=Ts(cl,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:o,expandableType:a,expandedKeys:s,childrenColumnName:l,onTriggerExpand:c,rowExpandable:u,onRow:f,expandRowByClick:d,rowClassName:A}=i,h=a==="nest",p=a==="row"&&(!u||u(e)),v=p||h,y=s&&s.has(t),b=l&&e&&e[l],x=yn(c),C=f==null?void 0:f(e,n),S=C==null?void 0:C.onClick,B=(M,...R)=>{d&&v&&c(e,M),S==null||S(M,...R)};let E;typeof A=="string"?E=A:typeof A=="function"&&(E=A(e,n,r));const _=SI(o);return te(I({},i),{columnsKey:_,nestExpandable:h,expanded:y,hasNestChildren:b,record:e,onTriggerExpand:x,rowSupportExpand:p,expandable:v,rowProps:te(I({},C),{className:Ae(E,C==null?void 0:C.className),onClick:B})})}const Zce=e=>{const{prefixCls:t,children:n,component:r,cellComponent:i,className:o,expanded:a,colSpan:s,isEmpty:l,stickyOffset:c=0}=e,{scrollbarSize:u,fixHeader:f,fixColumn:d,componentWidth:A,horizonScroll:h}=Ts(cl,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let p=n;return(l?h&&A:d)&&(p=g.createElement("div",{style:{width:A-c-(f&&!l?u:0),position:"sticky",left:c,overflow:"hidden"},className:`${t}-expanded-row-fixed`},p)),g.createElement(r,{className:o,style:{display:a?null:"none"}},g.createElement(Jb,{component:i,prefixCls:t,colSpan:s},p))};function bWe({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){const o=`${e}-row-expand-icon`;if(!i)return g.createElement("span",{className:Ae(o,`${e}-row-spaced`)});const a=s=>{n(t,s),s.stopPropagation()};return g.createElement("span",{className:Ae(o,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:a})}function xWe(e,t,n){const r=[];function i(o){(o||[]).forEach((a,s)=>{r.push(t(a,s)),i(a[n])})}return i(e),r}function Jce(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function _I(){return _I=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:t,style:n,classNames:r,styles:i,record:o,index:a,renderIndex:s,rowKey:l,rowKeys:c,indent:u=0,rowComponent:f,cellComponent:d,scopeCellComponent:A,expandedRowInfo:h}=e,p=Xce(o,l,a,u),{prefixCls:v,flattenColumns:y,expandedRowClassName:b,expandedRowRender:x,rowProps:C,expanded:S,rowSupportExpand:B}=p,E=g.useRef(!1);E.current||(E.current=S);const _=Jce(b,o,a,u),M=g.createElement(f,_I({},C,{"data-row-key":l,className:Ae(t,`${v}-row`,`${v}-row-level-${u}`,C==null?void 0:C.className,r.row,{[_]:u>=1}),style:I(I(I({},n),C==null?void 0:C.style),i.row)}),y.map((T,L)=>{const{render:P,dataIndex:k,className:H}=T,{key:D,fixedInfo:U,appendCellNode:j,additionalCellProps:Q}=eue(p,T,L,u,a,c,h==null?void 0:h.offset);return g.createElement(Jb,_I({className:Ae(H,r.cell),style:i.cell,ellipsis:T.ellipsis,align:T.align,scope:T.rowScope,component:T.rowScope?A:d,prefixCls:v,key:D,record:o,index:a,renderIndex:s,dataIndex:k,render:P,shouldCellUpdate:T.shouldCellUpdate},U,{appendNode:j,additionalProps:Q}))}));let R;if(B&&(E.current||S)){const T=x(o,a,u+1,S);R=g.createElement(Zce,{expanded:S,className:Ae(`${v}-expanded-row`,`${v}-expanded-row-level-${u+1}`,_),prefixCls:v,component:f,cellComponent:d,colSpan:h?h.colSpan:y.length,isEmpty:!1,stickyOffset:h==null?void 0:h.sticky},T)}return g.createElement(g.Fragment,null,M,R)}),CWe=e=>{const{columnKey:t,onColumnResize:n,title:r}=e,i=g.useRef(null);return ar(()=>{i.current&&n(t,i.current.offsetWidth)},[]),g.createElement(Bl,{data:t},g.createElement("td",{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},g.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},r||" ")))},SWe=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{const i=g.useRef(null),{measureRowRender:o}=Ts(cl,["measureRowRender"]),a=g.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:i},g.createElement(Bl.Collection,{onBatchResize:s=>{hb(i.current)&&s.forEach(({data:l,size:c})=>{n(l,c.offsetWidth)})}},t.map(s=>{const l=r.find(f=>f.key===s),c=l==null?void 0:l.title,u=g.isValidElement(c)?g.cloneElement(c,{ref:null}):c;return g.createElement(CWe,{key:s,columnKey:s,onColumnResize:n,title:u})})));return typeof o=="function"?o(a):a},EWe=Zb(e=>{const{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:o,flattenColumns:a,getRowKey:s,expandedKeys:l,childrenColumnName:c,emptyNode:u,classNames:f,styles:d,expandedRowOffset:A=0,colWidths:h}=Ts(cl,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:p={}}=f||{},{body:v={}}=d||{},y=Yce(t,c,l,s),b=g.useMemo(()=>y.map(T=>T.rowKey),[y]),x=g.useRef({renderWithProps:!1}),C=g.useMemo(()=>{const T=a.length-A;let L=0;for(let P=0;P{const{record:P,indent:k,index:H,rowKey:D}=T;return g.createElement(wWe,{classNames:p,styles:v,key:D,rowKey:D,rowKeys:b,record:P,index:L,renderIndex:H,rowComponent:B,cellComponent:E,scopeCellComponent:_,indent:k,expandedRowInfo:C})}):M=g.createElement(Zce,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:B,cellComponent:E,colSpan:a.length,isEmpty:!0},u);const R=SI(a);return g.createElement(Kce.Provider,{value:x.current},g.createElement(S,{style:v.wrapper,className:Ae(`${r}-tbody`,p.wrapper)},n&&g.createElement(SWe,{prefixCls:r,columnsKey:R,onColumnResize:o,columns:a}),M))}),l2="RC_TABLE_INTERNAL_COL_DEFINE";function BWe(e){const i=e,{expandable:t}=i,n=Ze(i,["expandable"]);let r;return"expandable"in e?r=I(I({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function o9(){return o9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=Ts(cl,["tableLayout"]),o=[],a=r||n.length;let s=!1;for(let c=a-1;c>=0;c-=1){const u=t[c],f=n&&n[c];let d,A;if(f&&(d=f[l2],i==="auto"&&(A=f.minWidth)),u||A||d||s){const l=d||{},{columnType:h}=l,p=Ze(l,["columnType"]);o.unshift(g.createElement("col",o9({key:c,style:{width:u,minWidth:A}},p))),s=!0}}return o.length>0?g.createElement("colgroup",null,o):null};function OWe(e,t){return g.useMemo(()=>{const n=[];for(let r=0;r{const z=e,{className:n,style:r,noData:i,columns:o,flattenColumns:a,colWidths:s,colGroup:l,columCount:c,stickyOffsets:u,direction:f,fixHeader:d,stickyTopOffset:A,stickyBottomOffset:h,stickyClassName:p,scrollX:v,tableLayout:y="fixed",onScroll:b,maxContentScroll:x,children:C}=z,S=Ze(z,["className","style","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","maxContentScroll","children"]),{prefixCls:B,scrollbarSize:E,isSticky:_,getComponent:M}=Ts(cl,["prefixCls","scrollbarSize","isSticky","getComponent"]),R=M(["header","table"],"table"),T=_&&!d?0:E,L=g.useRef(null),P=g.useCallback(V=>{E6(t,V),E6(L,V)},[]);g.useEffect(()=>{function V(Z){const{currentTarget:W,deltaX:J}=Z;if(J){const{scrollLeft:ee,scrollWidth:ne,clientWidth:re}=W,ue=ne-re;let de=ee+J;f==="rtl"?(de=Math.max(-ue,de),de=Math.min(0,de)):(de=Math.min(ue,de),de=Math.max(0,de)),b({currentTarget:W,scrollLeft:de}),Z.preventDefault()}}const Y=L.current;return Y==null||Y.addEventListener("wheel",V,{passive:!1}),()=>{Y==null||Y.removeEventListener("wheel",V)}},[]);const k=a[a.length-1],H={fixed:k?k.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${B}-cell-scrollbar`})},D=g.useMemo(()=>T?[...o,H]:o,[T,o]),U=g.useMemo(()=>T?[...a,H]:a,[T,a]),j=g.useMemo(()=>{const{start:V,end:Y}=u;return te(I({},u),{start:V,end:[...Y.map(Z=>Z+T),0],isSticky:_})},[T,u,_]),Q=OWe(s,c),K=g.useMemo(()=>{const V=!Q||!Q.length||Q.every(Y=>!Y);return i||V},[i,Q]);return g.createElement("div",{style:I(I({overflow:"hidden"},_?{top:A,bottom:h}:{}),r),ref:P,className:Ae(n,{[p]:!!p})},g.createElement(R,{style:{tableLayout:y,minWidth:"100%",width:v}},K?l:g.createElement(tue,{colWidths:[...Q,T],columCount:c+1,columns:U}),C(te(I({},S),{stickyOffsets:j,columns:D,flattenColumns:U}))))}),nue=g.memo($We);function TI(){return TI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:o,onHeaderRow:a,index:s,classNames:l,styles:c}=e,{prefixCls:u}=Ts(cl,["prefixCls"]);let f;a&&(f=a(t.map(A=>A.column),s));const d=SI(t.map(A=>A.column));return g.createElement(i,TI({},f,{className:l.row,style:c.row}),t.map((A,h)=>{var S;const{column:p,colStart:v,colEnd:y,colSpan:b}=A,x=r9(v,y,r,n),C=((S=p==null?void 0:p.onHeaderCell)==null?void 0:S.call(p,p))||{};return g.createElement(Jb,TI({},A,{scope:p.title?b>1?"colgroup":"col":null,ellipsis:p.ellipsis,align:p.align,component:o,prefixCls:u,key:d[h]},x,{additionalProps:C,rowType:"header"}))}))};function TWe(e,t,n){const r=[];function i(a,s,l=0){r[l]=r[l]||[];let c=s;return a.filter(Boolean).map(f=>{const d={key:f.key,className:Ae(f.className,t.cell)||"",style:n.cell,children:f.title,column:f,colStart:c};let A=1;const h=f.children;return h&&h.length>0&&(A=i(h,c,l+1).reduce((p,v)=>p+v,0),d.hasSubColumns=!0),"colSpan"in f&&({colSpan:A}=f),"rowSpan"in f&&(d.rowSpan=f.rowSpan),d.colSpan=A,d.colEnd=d.colStart+A-1,r[l].push(d),c+=A,A})}i(e,0);const o=r.length;for(let a=0;a{!("rowSpan"in s)&&!s.hasSubColumns&&(s.rowSpan=o-a)});return r}const rue=Zb(e=>{const{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:o,getComponent:a,classNames:s,styles:l}=Ts(cl,["prefixCls","getComponent","classNames","styles"]),{header:c={}}=s||{},{header:u={}}=l||{},f=g.useMemo(()=>TWe(n,c,u),[n,c,u]),d=a(["header","wrapper"],"thead"),A=a(["header","row"],"tr"),h=a(["header","cell"],"th");return g.createElement(d,{className:Ae(`${o}-thead`,c.wrapper),style:u.wrapper},f.map((p,v)=>g.createElement(_We,{classNames:c,styles:u,key:v,flattenColumns:r,cells:p,stickyOffsets:t,rowComponent:A,cellComponent:h,onHeaderRow:i,index:v})))});function iue(e,t=""){return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function MWe(e,t,n){return g.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(f=>{const d=iue(t,f.width);d?r+=d:i+=1});const o=Math.max(t,n);let a=Math.max(o-r,i),s=i;const l=a/i;let c=0;const u=e.map(f=>{const d=I({},f),A=iue(t,d.width);if(A)d.width=A;else{const h=Math.floor(l);d.width=s===1?a:h,a-=h,s-=1}return c+=d.width,d});if(c{const h=Math.floor(d.width*f);d.width=A===u.length-1?a:h,a-=h})}return[u,Math.max(c,o)]}return[e,t]},[e,t,n])}function a9(e){return pa(e).filter(t=>g.isValidElement(t)).map(t=>{const{key:n,props:r}=t,s=r,{children:i}=s,o=Ze(s,["children"]),a=I({key:n},o);return i&&(a.children=a9(i)),a})}function oue(e){return e.filter(t=>t&&typeof t=="object"&&!t.hidden).map(t=>{const n=t.children;return n&&n.length>0?te(I({},t),{children:oue(n)}):t})}function aue(e,t="key"){return e.filter(n=>n&&typeof n=="object").reduce((n,r,i)=>{const{fixed:o}=r,a=o===!0||o==="left"?"start":o==="right"?"end":o,s=`${t}-${i}`,l=r.children;return l&&l.length>0?[...n,...aue(l,s).map(c=>{var u;return te(I({},c),{fixed:(u=c.fixed)!=null?u:a})})]:[...n,te(I({key:s},r),{fixed:a})]},[])}function IWe({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:o,getRowKey:a,onTriggerExpand:s,expandIcon:l,rowExpandable:c,expandIconColumnIndex:u,expandedRowOffset:f=0,direction:d,expandRowByClick:A,columnWidth:h,fixed:p,scrollWidth:v,clientWidth:y},b){const x=g.useMemo(()=>{const M=t||a9(n)||[];return oue(M.slice())},[t,n]),C=g.useMemo(()=>{if(r){let M=x.slice();if(!M.includes(ap)){const k=u||0,H=k===0&&(p==="right"||p==="end")?x.length:k;H>=0&&M.splice(H,0,ap)}const R=M.indexOf(ap);M=M.filter((k,H)=>k!==ap||H===R);const T=x[R];let L;p?L=p:L=T?T.fixed:null;const P={[l2]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:o,fixed:L,className:`${e}-row-expand-icon-cell`,width:h,render:(k,H,D)=>{const U=a(H,D),j=i.has(U),Q=c?c(H):!0,K=l({prefixCls:e,expanded:j,expandable:Q,record:H,onExpand:s});return A?g.createElement("span",{onClick:z=>z.stopPropagation()},K):K}};return M.map((k,H)=>{const D=k===ap?P:k;return HM!==ap)},[r,x,a,i,l,d,f]),S=g.useMemo(()=>{let M=C;return b&&(M=b(M)),M.length||(M=[{render:()=>null}]),M},[b,C,d]),B=g.useMemo(()=>aue(S),[S,d,v]),[E,_]=MWe(B,v,y);return[S,E,_]}function RWe(e,t,n){const r=BWe(e),{expandIcon:i,expandedRowKeys:o,defaultExpandedRowKeys:a,defaultExpandAllRows:s,expandedRowRender:l,onExpand:c,onExpandedRowsChange:u,childrenColumnName:f}=r,d=i||bWe,A=f||"children",h=g.useMemo(()=>l?"row":e.expandable&&e.internalHooks===a2&&e.expandable.__PARENT_RENDER_ICON__||t.some(x=>x&&typeof x=="object"&&x[A])?"nest":!1,[!!l,t]),[p,v]=g.useState(()=>a||(s?xWe(t,n,A):[])),y=g.useMemo(()=>new Set(o||p||[]),[o,p]),b=g.useCallback(x=>{const C=n(x,t.indexOf(x));let S;const B=y.has(C);B?(y.delete(C),S=[...y]):S=[...y,C],v(S),c&&c(!B,x),u&&u(S)},[n,y,t,c,u]);return[r,h,y,d,A,b]}function NWe(e,t){const n=g.useMemo(()=>e.map((r,i)=>r9(i,i,e,t)),[e,t]);return cv(()=>n,[n],(r,i)=>!uu(r,i))}function PWe(e){const t=g.useRef(e),[,n]=g.useState({}),r=g.useRef(null),i=g.useRef([]);function o(a){i.current.push(a);const s=Promise.resolve();r.current=s,s.then(()=>{if(r.current===s){const l=i.current,c=t.current;i.current=[],l.forEach(u=>{t.current=u(t.current)}),r.current=null,c!==t.current&&n({})}})}return g.useEffect(()=>()=>{r.current=null},[]),[t.current,o]}function LWe(e){const t=g.useRef(null),n=g.useRef(null);function r(){clearTimeout(n.current)}function i(a){t.current=a,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function o(){return t.current}return g.useEffect(()=>r,[]),[i,o]}function FWe(){const[e,t]=g.useState(-1),[n,r]=g.useState(-1),i=g.useCallback((o,a)=>{t(o),r(a)},[]);return[e,n,i]}const sue=ac()?window:null;function kWe(e,t){const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:o=()=>sue}=typeof e=="object"?e:{},a=o()||sue,s=!!e;return g.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:i,container:a}),[s,i,n,r,t,a])}function DWe(e,t){return g.useMemo(()=>{const r=t.length,i=(s,l,c)=>{const u=[];let f=0;for(let d=s;d!==l;d+=c)u.push(f),t[d].fixed&&(f+=e[d]||0);return u},o=i(0,r,1),a=i(r-1,-1,-1).reverse();return{start:o,end:a,widths:e}},[e,t])}const lue=e=>{const{children:t,className:n,style:r}=e;return g.createElement("div",{className:n,style:r},t)};function cue(e){const n=td(e).getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}const uue="mouseup",fue="mousemove",ex="scroll",due="resize",HWe=(e,t)=>{var E,_;const{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:o,direction:a}=e,s=Ts(cl,"prefixCls"),l=((E=n.current)==null?void 0:E.scrollWidth)||0,c=((_=n.current)==null?void 0:_.clientWidth)||0,u=l&&c*(c/l),f=g.useRef(null),[d,A]=PWe({scrollLeft:0,isHiddenScrollBar:!0}),h=g.useRef({delta:0,x:0}),[p,v]=g.useState(!1),y=g.useRef(null);g.useEffect(()=>()=>{Kn.cancel(y.current)},[]);const b=()=>{v(!1)},x=M=>{M.persist(),h.current.delta=M.pageX-d.scrollLeft,h.current.x=0,v(!0),M.preventDefault()},C=M=>{const{buttons:R}=M||(window==null?void 0:window.event);if(!p||R===0){p&&v(!1);return}let T=h.current.x+M.pageX-h.current.x-h.current.delta;const L=a==="rtl";T=Math.max(L?u-c:0,Math.min(L?0:c-u,T)),(!L||Math.abs(T)+Math.abs(u){Kn.cancel(y.current),y.current=Kn(()=>{if(!n.current)return;const M=cue(n.current).top,R=M+n.current.offsetHeight,T=o===window?document.documentElement.scrollTop+window.innerHeight:cue(o).top+o.clientHeight;R-Eee()<=T||M>=T-i?A(L=>te(I({},L),{isHiddenScrollBar:!0})):A(L=>te(I({},L),{isHiddenScrollBar:!1}))})},B=M=>{A(R=>te(I({},R),{scrollLeft:M/l*c||0}))};return g.useImperativeHandle(t,()=>({setScrollLeft:B,checkScrollBarVisible:S})),g.useEffect(()=>(document.body.addEventListener(uue,b,!1),document.body.addEventListener(fue,C,!1),S(),()=>{document.body.removeEventListener(uue,b),document.body.removeEventListener(fue,C)}),[u,p]),g.useEffect(()=>{if(n.current){const M=[];let R=td(n.current);for(;R;)M.push(R),R=R.parentElement;return M.forEach(T=>{T.addEventListener(ex,S,!1)}),window.addEventListener(due,S,!1),window.addEventListener(ex,S,!1),o.addEventListener(ex,S,!1),()=>{M.forEach(T=>{T.removeEventListener(ex,S)}),window.removeEventListener(due,S),window.removeEventListener(ex,S),o.removeEventListener(ex,S)}}},[o]),g.useEffect(()=>{d.isHiddenScrollBar||A(M=>{const R=n.current;return R?te(I({},M),{scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}):M})},[d.isHiddenScrollBar]),l<=c||!u||d.isHiddenScrollBar?null:g.createElement("div",{style:{height:Eee(),width:c,bottom:i},className:`${s}-sticky-scroll`},g.createElement("div",{onMouseDown:x,ref:f,className:Ae(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:p}),style:{width:`${u}px`,transform:`translate3d(${d.scrollLeft}px, 0, 0)`}}))},UWe=g.forwardRef(HWe);function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var _n,Wt;const n=I({rowKey:"key",prefixCls:Aue,emptyText:QWe},e),{prefixCls:r,className:i,rowClassName:o,style:a,classNames:s,styles:l,data:c,rowKey:u,scroll:f,tableLayout:d,direction:A,title:h,footer:p,summary:v,caption:y,id:b,showHeader:x,components:C,emptyText:S,onRow:B,onHeaderRow:E,measureRowRender:_,onScroll:M,internalHooks:R,transformColumns:T,internalRefs:L,tailor:P,getContainerWidth:k,sticky:H,rowHoverable:D=!0}=n,U=c||jWe,j=!!U.length,Q=R===a2,K=g.useCallback((Mt,vn)=>ol(C,Mt)||vn,[C]),z=g.useMemo(()=>typeof u=="function"?u:Mt=>Mt&&Mt[u],[u]),V=K(["body"]),[Y,Z,W]=FWe(),[J,ee,ne,re,ue,de]=RWe(n,U,z),se=f==null?void 0:f.x,[ce,ge]=g.useState(0),[ie,le,ve]=IWe(te(I(I({},n),J),{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:ne,getRowKey:z,onTriggerExpand:de,expandIcon:re,expandIconColumnIndex:J.expandIconColumnIndex,direction:A,scrollWidth:Q&&P&&typeof se=="number"?se:null,clientWidth:ce}),Q?T:null),we=ve!=null?ve:se,me=g.useMemo(()=>({columns:ie,flattenColumns:le}),[ie,le]),Ee=g.useRef(null),Ce=g.useRef(null),pe=g.useRef(null),Oe=g.useRef(null);g.useImperativeHandle(t,()=>({nativeElement:Ee.current,scrollTo:Mt=>{var vn,In;if(pe.current instanceof HTMLElement){const{index:Dt,top:xn,key:on,offset:Nn,align:Wr="nearest"}=Mt;if(cWe(xn))(vn=pe.current)==null||vn.scrollTo({top:xn});else{const ir=on!=null?on:z(U[Dt]),hr=pe.current.querySelector(`[data-row-key="${ir}"]`);if(hr&&(hr.scrollIntoView({block:Wr}),Nn)){const an=pe.current;an.scrollTo({top:an.scrollTop+Nn})}}}else(In=pe.current)!=null&&In.scrollTo&&pe.current.scrollTo(Mt)}}));const xe=g.useRef(null),[Me,Se]=g.useState(!1),[Pe,Le]=g.useState(!1),[He,Ne]=g.useState(new Map),Ue=SI(le).map(Mt=>He.get(Mt)),et=g.useMemo(()=>Ue,[Ue.join("_")]),We=DWe(et,le),Je=f&&t9(f.y),dt=f&&t9(we)||!!J.fixed,wt=dt&&le.some(({fixed:Mt})=>Mt),Bt=g.useRef(null),{isSticky:qt,offsetHeader:jt,offsetSummary:nn,offsetScroll:Jt,stickyClassName:Ot,container:sn}=kWe(H,r),Vt=g.useMemo(()=>v==null?void 0:v(U),[v,U]),xt=(Je||qt)&&g.isValidElement(Vt)&&Vt.type===OI&&Vt.props.fixed;let qe,it,Pt;Je&&(it={overflowY:j?"scroll":"auto",maxHeight:f.y}),dt&&(qe={overflowX:"auto"},Je||(it={overflowY:"hidden"}),Pt={width:we===!0?"auto":we,minWidth:"100%"});const De=g.useCallback((Mt,vn)=>{Ne(In=>{if(In.get(Mt)!==vn){const Dt=new Map(In);return Dt.set(Mt,vn),Dt}return In})},[]),[ze,bt]=LWe();function lt(Mt,vn){vn&&(typeof vn=="function"?vn(Mt):vn.scrollLeft!==Mt&&(vn.scrollLeft=Mt,vn.scrollLeft!==Mt&&setTimeout(()=>{vn.scrollLeft=Mt},0)))}const[At,ut]=g.useState([0,0]),ft=yn(({currentTarget:Mt,scrollLeft:vn})=>{var on;const In=typeof vn=="number"?vn:Mt.scrollLeft,Dt=Mt||zWe;(!bt()||bt()===Dt)&&(ze(Dt),lt(In,Ce.current),lt(In,pe.current),lt(In,xe.current),lt(In,(on=Bt.current)==null?void 0:on.setScrollLeft));const xn=Mt||Ce.current;if(xn){const Nn=Q&&P&&typeof we=="number"?we:xn.scrollWidth,Wr=xn.clientWidth,ir=Math.abs(In);if(ut(hr=>{const an=[ir,Nn-Wr];return uu(hr,an)?hr:an}),Nn===Wr){Se(!1),Le(!1);return}Se(ir>0),Le(ir{ft(Mt),M==null||M(Mt)}),An=()=>{var Mt;dt&&pe.current?ft({currentTarget:td(pe.current),scrollLeft:(Mt=pe.current)==null?void 0:Mt.scrollLeft}):(Se(!1),Le(!1))},pn=Mt=>{var In,Dt,xn;(In=Bt.current)==null||In.checkScrollBarVisible();let vn=(xn=Mt!=null?Mt:(Dt=Ee.current)==null?void 0:Dt.offsetWidth)!=null?xn:0;Q&&k&&Ee.current&&(vn=k(Ee.current,vn)||vn),vn!==ce&&(An(),ge(vn))};ar(()=>{dt&&pn()},[dt]);const bn=g.useRef(!1);g.useEffect(()=>{bn.current&&An()},[dt,c,ie.length]),g.useEffect(()=>{bn.current=!0},[]);const[Sn,Tn]=g.useState(0);ar(()=>{(!P||!Q)&&(pe.current instanceof Element?Tn(k6(pe.current).width):Tn(k6(Oe.current).width))},[]),g.useEffect(()=>{Q&&L&&(L.body.current=pe.current)});const lr=g.useCallback(Mt=>g.createElement(g.Fragment,null,g.createElement(rue,Mt),xt==="top"&&g.createElement($I,Mt,Vt)),[xt,Vt]),$n=g.useCallback(Mt=>g.createElement($I,Mt,Vt),[Vt]),Fn=K(["table"],"table"),$t=g.useMemo(()=>d||(wt?we==="max-content"?"auto":"fixed":Je||qt||le.some(({ellipsis:Mt})=>Mt)?"fixed":"auto"),[Je,wt,le,d,qt]);let Ie;const Ke={colWidths:et,columCount:le.length,stickyOffsets:We,onHeaderRow:E,fixHeader:Je,scroll:f},nt=g.useMemo(()=>j?null:typeof S=="function"?S():S,[j,S]),ht=g.createElement(EWe,{data:U,measureColumnWidth:Je||dt||qt}),Xt=g.createElement(tue,{colWidths:le.map(({width:Mt})=>Mt),columns:le}),kt=y!=null?g.createElement("caption",{className:`${r}-caption`},y):void 0,mn=Co(n,{data:!0}),Rt=Co(n,{aria:!0});if(Je||qt){let Mt;typeof V=="function"?(Mt=V(U,{scrollbarSize:Sn,ref:pe,onScroll:ft}),Ke.colWidths=le.map(({width:In},Dt)=>{const xn=Dt===le.length-1?In-Sn:In;return typeof xn=="number"&&!Number.isNaN(xn)?xn:0})):Mt=g.createElement("div",{style:I(I({},qe),it),onScroll:Kt,ref:pe,className:`${r}-body`},g.createElement(Fn,Jg({style:te(I({},Pt),{tableLayout:$t})},Rt),kt,Xt,ht,!xt&&Vt&&g.createElement($I,{stickyOffsets:We,flattenColumns:le},Vt)));const vn=te(I(I({noData:!U.length,maxContentScroll:dt&&we==="max-content"},Ke),me),{direction:A,stickyClassName:Ot,scrollX:we,tableLayout:$t,onScroll:ft});Ie=g.createElement(g.Fragment,null,x!==!1&&g.createElement(nue,Jg({},vn,{stickyTopOffset:jt,className:`${r}-header`,ref:Ce,colGroup:Xt}),lr),Mt,xt&&xt!=="top"&&g.createElement(nue,Jg({},vn,{stickyBottomOffset:nn,className:`${r}-summary`,ref:xe,colGroup:Xt}),$n),qt&&pe.current&&pe.current instanceof Element&&g.createElement(UWe,{ref:Bt,offsetScroll:Jt,scrollBodyRef:pe,onScroll:ft,container:sn,direction:A}))}else Ie=g.createElement("div",{style:I(I(I({},qe),it),l==null?void 0:l.content),className:Ae(`${r}-content`,s==null?void 0:s.content),onScroll:ft,ref:pe},g.createElement(Fn,Jg({style:te(I({},Pt),{tableLayout:$t})},Rt),kt,Xt,x!==!1&&g.createElement(rue,Jg({},Ke,me)),ht,Vt&&g.createElement($I,{stickyOffsets:We,flattenColumns:le},Vt)));const tn=I({},a);qt&&(tn["--columns-count"]=le.length);let cn=g.createElement("div",Jg({className:Ae(r,i,{[`${r}-rtl`]:A==="rtl",[`${r}-fix-start-shadow`]:dt,[`${r}-fix-end-shadow`]:dt,[`${r}-fix-start-shadow-show`]:dt&&Me,[`${r}-fix-end-shadow-show`]:dt&&Pe,[`${r}-layout-fixed`]:d==="fixed",[`${r}-fixed-header`]:Je,[`${r}-fixed-column`]:wt,[`${r}-scroll-horizontal`]:dt,[`${r}-has-fix-start`]:(_n=le[0])==null?void 0:_n.fixed,[`${r}-has-fix-end`]:((Wt=le[le.length-1])==null?void 0:Wt.fixed)==="end"}),style:tn,id:b,ref:Ee},mn),h&&g.createElement(lue,{className:Ae(`${r}-title`,s==null?void 0:s.title),style:l==null?void 0:l.title},h(U)),g.createElement("div",{ref:Oe,className:Ae(`${r}-container`,s==null?void 0:s.section),style:l==null?void 0:l.section},Ie),p&&g.createElement(lue,{className:Ae(`${r}-footer`,s==null?void 0:s.footer),style:l==null?void 0:l.footer},p(U)));dt&&(cn=g.createElement(Bl,{onResize:({offsetWidth:Mt})=>pn(Mt)},cn));const gn=NWe(le,We),Zt=g.useMemo(()=>({scrollX:we,scrollInfo:At,classNames:s,styles:l,prefixCls:r,getComponent:K,scrollbarSize:Sn,direction:A,fixedInfoList:gn,isSticky:qt,componentWidth:ce,fixHeader:Je,fixColumn:wt,horizonScroll:dt,tableLayout:$t,rowClassName:o,expandedRowClassName:J.expandedRowClassName,expandIcon:re,expandableType:ee,expandRowByClick:J.expandRowByClick,expandedRowRender:J.expandedRowRender,expandedRowOffset:J.expandedRowOffset,onTriggerExpand:de,expandIconColumnIndex:J.expandIconColumnIndex,indentSize:J.indentSize,allColumnsFixedLeft:le.every(Mt=>Mt.fixed==="start"),emptyNode:nt,columns:ie,flattenColumns:le,onColumnResize:De,colWidths:et,hoverStartRow:Y,hoverEndRow:Z,onHover:W,rowExpandable:J.rowExpandable,onRow:B,getRowKey:z,expandedKeys:ne,childrenColumnName:ue,rowHoverable:D,measureRowRender:_}),[we,At,s,l,r,K,Sn,A,gn,qt,ce,Je,wt,dt,$t,o,J.expandedRowClassName,re,ee,J.expandRowByClick,J.expandedRowRender,J.expandedRowOffset,de,J.expandIconColumnIndex,J.indentSize,nt,ie,le,De,et,Y,Z,W,J.rowExpandable,B,z,ne,ue,D,_]);return g.createElement(cl.Provider,{value:Zt},cn)},KWe=g.forwardRef(VWe),hue=e=>Vce(KWe,e),tx=hue();tx.EXPAND_COLUMN=ap,tx.INTERNAL_HOOKS=a2,tx.Column=vWe,tx.ColumnGroup=yWe,tx.Summary=Gce;const s9=e9(null),pue=e9(null);function l9(){return l9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{rowInfo:t,column:n,colIndex:r,indent:i,index:o,component:a,renderIndex:s,record:l,style:c,className:u,inverse:f,getHeight:d}=e,{render:A,dataIndex:h,className:p,width:v}=n,{columnsOffset:y}=Ts(pue,["columnsOffset"]),{key:b,fixedInfo:x,appendCellNode:C,additionalCellProps:S}=eue(t,n,r,i,o),{style:B,colSpan:E=1,rowSpan:_=1}=S,M=r-1,R=WWe(M,E,y),T=E>1?v-R:0,L=te(I(I({},B),c),{flex:`0 0 ${R}px`,width:`${R}px`,marginRight:T,pointerEvents:"auto"}),P=g.useMemo(()=>f?_<=1:E===0||_===0||_>1,[_,E,f]);P?L.visibility="hidden":f&&(L.height=d==null?void 0:d(_));const k=P?()=>null:A,H={};return(_===0||E===0)&&(H.rowSpan=1,H.colSpan=1),g.createElement(Jb,l9({className:Ae(p,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:b,record:l,index:o,renderIndex:s,dataIndex:h,render:k,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:C,additionalProps:I(te(I({},S),{style:L}),H)}))};function c9(){return c9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var j,Q;const U=e,{data:n,index:r,className:i,rowKey:o,style:a,extra:s,getHeight:l}=U,c=Ze(U,["data","index","className","rowKey","style","extra","getHeight"]),{record:u,indent:f,index:d}=n,{scrollX:A,flattenColumns:h,prefixCls:p,fixColumn:v,componentWidth:y,classNames:b,styles:x}=Ts(cl,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX","classNames","styles"]),{getComponent:C}=Ts(s9,["getComponent"]),S=Xce(u,o,r,f),B=C(["body","row"],"div"),E=C(["body","cell"],"div"),{rowSupportExpand:_,expanded:M,rowProps:R,expandedRowRender:T,expandedRowClassName:L}=S,P=Jce(L,u,r,f);let k;if(_&&M){const K=T(u,r,f+1,M);let z={};v&&(z={style:{"--virtual-width":`${y}px`}});const V=`${p}-expanded-row-cell`;k=g.createElement(B,{className:Ae(`${p}-expanded-row`,`${p}-expanded-row-level-${f+1}`,P)},g.createElement(Jb,{component:E,prefixCls:p,className:Ae(V,{[`${V}-fixed`]:v}),additionalProps:z},K))}const H=te(I({},a),{width:A});s&&(H.position="absolute",H.pointerEvents="none");const D=g.createElement(B,c9({},R,c,{"data-row-key":o,ref:_?null:t,className:Ae(i,`${p}-row`,R==null?void 0:R.className,(j=b==null?void 0:b.body)==null?void 0:j.row,{[P]:f>=1,[`${p}-row-extra`]:s}),style:I(I(I({},H),R==null?void 0:R.style),(Q=x==null?void 0:x.body)==null?void 0:Q.row)}),h.map((K,z)=>{var V,Y;return g.createElement(GWe,{key:z,className:(V=b==null?void 0:b.body)==null?void 0:V.cell,style:(Y=x==null?void 0:x.body)==null?void 0:Y.cell,component:E,rowInfo:S,column:K,colIndex:z,indent:f,index:r,renderIndex:d,record:u,inverse:s,getHeight:l})}));return _?g.createElement("div",{ref:t},D,k):D})),qWe={start:"top",end:"bottom",nearest:"auto"},YWe=Zb(g.forwardRef((e,t)=>{const{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:o,getRowKey:a,expandedKeys:s,prefixCls:l,childrenColumnName:c,scrollX:u,direction:f}=Ts(cl,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:d,scrollY:A,listItemHeight:h,getComponent:p,onScroll:v}=Ts(s9),y=g.useRef(null),b=Yce(n,c,s,a),x=g.useMemo(()=>{let T=0;return i.map(({width:L,minWidth:P,key:k})=>{const H=Math.max(L||0,P||0);return T+=H,[k,H,T]})},[i]),C=g.useMemo(()=>x.map(T=>T[2]),[x]);g.useEffect(()=>{x.forEach(([T,L])=>{o(T,L)})},[x]),g.useImperativeHandle(t,()=>{var L;const T={scrollTo:P=>{var Q,K;const j=P,{align:k,offset:H}=j,D=Ze(j,["align","offset"]),U=(Q=qWe[k])!=null?Q:H?"top":"auto";(K=y.current)==null||K.scrollTo(te(I({},D),{offset:H,align:U}))},nativeElement:(L=y.current)==null?void 0:L.nativeElement};return Object.defineProperty(T,"scrollLeft",{get:()=>{var P;return((P=y.current)==null?void 0:P.getScrollInfo().x)||0},set:P=>{var k;(k=y.current)==null||k.scrollTo({left:P})}}),Object.defineProperty(T,"scrollTop",{get:()=>{var P;return((P=y.current)==null?void 0:P.getScrollInfo().y)||0},set:P=>{var k;(k=y.current)==null||k.scrollTo({top:P})}}),T});const S=(T,L)=>{var H,D;const P=(H=b[L])==null?void 0:H.record,{onCell:k}=T;if(k){const U=k(P,L);return(D=U==null?void 0:U.rowSpan)!=null?D:1}return 1},B=T=>{const{start:L,end:P,getSize:k,offsetY:H}=T;if(P<0)return null;let D=i.filter(V=>S(V,L)===0),U=L;for(let V=L;V>=0;V-=1)if(D=D.filter(Y=>S(Y,V)===0),!D.length){U=V;break}let j=i.filter(V=>S(V,P)!==1),Q=P;for(let V=P;VS(Y,V)!==1),!j.length){Q=Math.max(V-1,P);break}const K=[];for(let V=U;V<=Q;V+=1)b[V]&&i.some(Z=>S(Z,V)>1)&&K.push(V);return K.map(V=>{const Y=b[V],Z=a(Y.record,V),W=ee=>{const ne=V+ee-1,re=b[ne];if(!re||!re.record){const se=Math.min(ne,b.length-1),ce=b[se],ge=a(ce.record,se),ie=k(Z,ge);return ie.bottom-ie.top}const ue=a(re.record,ne),de=k(Z,ue);return de.bottom-de.top},J=k(Z);return g.createElement(gue,{key:V,data:Y,rowKey:Z,index:V,style:{top:-H+J.top},extra:!0,getHeight:W})})},E=g.useMemo(()=>({columnsOffset:C}),[C]),_=`${l}-tbody`,M=p(["body","wrapper"]),R={};return d&&(R.position="sticky",R.bottom=0,typeof d=="object"&&d.offsetScroll&&(R.bottom=d.offsetScroll)),g.createElement(pue.Provider,{value:E},g.createElement(UM,{fullHeight:!1,ref:y,prefixCls:`${_}-virtual`,styles:{horizontalScrollBar:R},className:_,height:A,itemHeight:h||24,data:b,itemKey:T=>a(T.record),component:M,scrollWidth:u,direction:f,onVirtualScroll:({x:T})=>{var L;r({currentTarget:(L=y.current)==null?void 0:L.nativeElement,scrollLeft:T})},onScroll:v,extraRender:B},(T,L,P)=>{const k=a(T.record,L);return g.createElement(gue,{data:T,rowKey:k,index:L,style:P.style})}))}));function u9(){return u9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{ref:n,onScroll:r}=t;return g.createElement(YWe,{ref:n,data:e,onScroll:r})},ZWe=(e,t)=>{const{data:n,columns:r,scroll:i,sticky:o,prefixCls:a=Aue,className:s,listItemHeight:l,components:c,onScroll:u}=e;let{x:f,y:d}=i||{};typeof f!="number"&&(f=1),typeof d!="number"&&(d=500);const A=yn((v,y)=>ol(c,v)||y),h=yn(u),p=g.useMemo(()=>({sticky:o,scrollY:d,listItemHeight:l,getComponent:A,onScroll:h}),[o,d,l,A,h]);return g.createElement(s9.Provider,{value:p},g.createElement(tx,u9({},e,{className:Ae(s,`${a}-virtual`),scroll:te(I({},i),{x:f}),components:te(I({},c),{body:n!=null&&n.length?XWe:void 0}),columns:r,internalHooks:a2,tailor:!0,ref:t})))},JWe=g.forwardRef(ZWe),mue=e=>Vce(JWe,e);mue();const eGe=e=>null,tGe=e=>null,sp={},f9="SELECT_ALL",d9="SELECT_INVERT",A9="SELECT_NONE",h9=[],vue=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),Zn(r)&&e in r&&vue(e,r[e],n)}),n),nGe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:o,getTitleCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:f,onSelectMultiple:d,columnWidth:A,type:h,selections:p,fixed:v,renderCell:y,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:C,data:S,pageData:B,getRecordByKey:E,getRowKey:_,expandType:M,childrenColumnName:R,locale:T,getPopupContainer:L}=e,P=Ig(),[k,H]=f8(ce=>ce),[D,U]=Fr(i||h9,r),j=D!=null?D:h9,Q=g.useRef(new Map),K=g.useCallback(ce=>{if(n){const ge=new Map;ce.forEach(ie=>{let le=E(ie);!le&&Q.current.has(ie)&&(le=Q.current.get(ie)),ge.set(ie,le)}),Q.current=ge}},[E,n]);g.useEffect(()=>{K(j)},[j,K]);const z=g.useMemo(()=>vue(R,B),[R,B]),{keyEntities:V}=g.useMemo(()=>{if(x)return{keyEntities:null};let ce=S;if(n){const ge=new Set(z.map(_)),ie=Array.from(Q.current).reduce((le,[ve,we])=>ge.has(ve)?le:le.concat(we),[]);ce=[].concat(en(ce),en(ie))}return WU(ce,{externalGetKey:_,childrenPropName:R})},[S,_,x,R,n,z]),Y=g.useMemo(()=>{const ce=new Map;return z.forEach((ge,ie)=>{const le=_(ge,ie),ve=(o?o(ge):null)||{};ce.set(le,ve)}),ce},[z,_,o]),Z=g.useCallback(ce=>{const ge=_(ce);let ie;return Y.has(ge)?ie=Y.get(_(ce)):ie=o?o(ce):void 0,!!(ie!=null&&ie.disabled)},[Y,_]),[W,J]=g.useMemo(()=>{if(x)return[j,[]];const{checkedKeys:ce,halfCheckedKeys:ge}=Wb(j,!0,V,Z);return[ce||[],ge]},[j,x,V,Z]),ee=g.useMemo(()=>{const ce=h==="radio"?W.slice(0,1):W;return new Set(ce)},[W,h]),ne=g.useMemo(()=>h==="radio"?new Set:new Set(J),[J,h]);g.useEffect(()=>{t||U(h9)},[!!t]);const re=g.useCallback((ce,ge)=>{let ie,le;K(ce),n?(ie=ce,le=ce.map(ve=>Q.current.get(ve))):(ie=[],le=[],ce.forEach(ve=>{const we=E(ve);we!==void 0&&(ie.push(ve),le.push(we))})),U(ie),s==null||s(ie,le,{type:ge})},[U,E,s,n]),ue=g.useCallback((ce,ge,ie,le)=>{if(l){const ve=ie.map(E);l(E(ce),ge,ve,le)}re(ie,"single")},[l,E,re]),de=g.useMemo(()=>!p||b?null:(p===!0?[f9,d9,A9]:p).map(ge=>{let ie;return ge===f9?ie={key:"all",text:T.selectionAll,onSelect(){re(S.reduce((le,ve,we)=>{const me=_(ve,we),Ee=Y.get(me);return(!(Ee!=null&&Ee.disabled)||ee.has(me))&&le.push(me),le},[]),"all")}}:ge===d9?ie={key:"invert",text:T.selectInvert,onSelect(){const le=new Set(ee);B.forEach((we,me)=>{const Ee=_(we,me),Ce=Y.get(Ee);Ce!=null&&Ce.disabled||(le.has(Ee)?le.delete(Ee):le.add(Ee))});const ve=Array.from(le);u&&(P.deprecated(!1,"onSelectInvert","onChange"),u(ve)),re(ve,"invert")}}:ge===A9?ie={key:"none",text:T.selectNone,onSelect(){f==null||f(),re(Array.from(ee).filter(le=>{const ve=Y.get(le);return ve==null?void 0:ve.disabled}),"none")}}:ie=ge,te(I({},ie),{onSelect:le=>{var ve;(ve=ie.onSelect)==null||ve.call(ie,le),H(null)}})}),[p,b,T.selectionAll,T.selectInvert,T.selectNone,Y,ee,S,B,_,u,re]);return[g.useCallback(ce=>{var at;if(!t)return ce.filter(Ue=>Ue!==sp);let ge=en(ce);const ie=new Set(ee),le=z.reduce((Ue,et,We)=>{const Je=_(et,We);return Y.get(Je).disabled||Ue.push(Je),Ue},[]),ve=le.every(Ue=>ie.has(Ue)),we=le.some(Ue=>ie.has(Ue)),me=()=>{const Ue=[];ve?le.forEach(We=>{ie.delete(We),Ue.push(We)}):le.forEach(We=>{ie.has(We)||(ie.add(We),Ue.push(We))});const et=Array.from(ie);c==null||c(!ve,et.map(E),Ue.map(E)),re(et,"all"),H(null)};let Ee,Ce;if(h!=="radio"){let Ue;if(de){const jt={getPopupContainer:L,items:de.map((nn,Jt)=>{const{key:Ot,text:sn,onSelect:Vt}=nn;return{key:Ot!=null?Ot:Jt,onClick:()=>{Vt==null||Vt(le)},label:sn}})};Ue=g.createElement("div",{className:`${C}-selection-extra`},g.createElement(Y4,{menu:jt,getPopupContainer:L},g.createElement("span",null,g.createElement(OE,null))))}const et=z.reduce((jt,nn,Jt)=>{const Ot=_(nn,Jt),sn=Y.get(Ot)||{},Vt=I({checked:ie.has(Ot)},sn);return Vt.disabled&&jt.push(Vt),jt},[]),We=!!et.length&&et.length===z.length,Je=We&&et.every(({checked:jt})=>jt),dt=We&&et.some(({checked:jt})=>jt),wt=(a==null?void 0:a())||{},{onChange:Bt,disabled:qt}=wt;Ce=g.createElement(Zu,te(I({"aria-label":Ue?"Custom selection":"Select all"},wt),{checked:We?Je:!!z.length&&ve,indeterminate:We?!Je&&dt:!ve&&we,onChange:jt=>{me(),Bt==null||Bt(jt)},disabled:qt!=null?qt:z.length===0||We,skipGroup:!0})),Ee=!b&&g.createElement("div",{className:`${C}-selection`},Ce,Ue)}let pe;h==="radio"?pe=(Ue,et,We)=>{const Je=_(et,We),dt=ie.has(Je),wt=Y.get(Je),Bt=`Select row ${We+1}`;return{node:g.createElement(np,te(I({"aria-label":Bt},wt),{checked:dt,onClick:qt=>{var jt;qt.stopPropagation(),(jt=wt==null?void 0:wt.onClick)==null||jt.call(wt,qt)},onChange:qt=>{var jt;ie.has(Je)||ue(Je,!0,[Je],qt.nativeEvent),(jt=wt==null?void 0:wt.onChange)==null||jt.call(wt,qt)}})),checked:dt}}:pe=(Ue,et,We)=>{var nn;const Je=_(et,We),dt=ie.has(Je),wt=ne.has(Je),Bt=Y.get(Je);let qt;M==="nest"?qt=wt:qt=(nn=Bt==null?void 0:Bt.indeterminate)!=null?nn:wt;const jt=dt?`Row ${We+1} selected`:`Select row ${We+1}`;return{node:g.createElement(Zu,te(I({"aria-label":jt},Bt),{indeterminate:qt,checked:dt,skipGroup:!0,onClick:Jt=>{var Ot;Jt.stopPropagation(),(Ot=Bt==null?void 0:Bt.onClick)==null||Ot.call(Bt,Jt)},onChange:Jt=>{var qe;const{nativeEvent:Ot}=Jt,{shiftKey:sn}=Ot,Vt=le.indexOf(Je),xt=ee.size>0&&le.some(it=>ee.has(it));if(sn&&x&&xt){const it=k(Vt,le,ie),Pt=Array.from(ie);d==null||d(!dt,Pt.map(E),it.map(E)),re(Pt,"multiple")}else{const it=W;if(x){const Pt=dt?yA(it,Je):rp(it,Je);ue(Je,!dt,Pt,Ot)}else{const Pt=Wb([].concat(en(it),[Je]),!0,V,Z),{checkedKeys:De,halfCheckedKeys:ze}=Pt;let bt=De;if(dt){const lt=new Set(De);lt.delete(Je),bt=Wb(Array.from(lt),{halfCheckedKeys:ze},V,Z).checkedKeys}ue(Je,!dt,bt,Ot)}}H(dt?null:Vt),(qe=Bt==null?void 0:Bt.onChange)==null||qe.call(Bt,Jt)}})),checked:dt}};const Oe=(Ue,et,We)=>{const{node:Je,checked:dt}=pe(Ue,et,We);return y?y(dt,et,We,Je):Je};if(!ge.includes(sp))if(ge.findIndex(Ue=>{var et;return((et=Ue[l2])==null?void 0:et.columnType)==="EXPAND_COLUMN"})===0){const[Ue,...et]=ge;ge=[Ue,sp].concat(en(et))}else ge=[sp].concat(en(ge));const xe=ge.indexOf(sp);ge=ge.filter((Ue,et)=>Ue!==sp||et===xe);const Me=ge[xe-1],Se=ge[xe+1];let Pe=v;Pe===void 0&&((Se==null?void 0:Se.fixed)!==void 0?Pe=Se.fixed:(Me==null?void 0:Me.fixed)!==void 0&&(Pe=Me.fixed)),Pe&&Me&&((at=Me[l2])==null?void 0:at.columnType)==="EXPAND_COLUMN"&&Me.fixed===void 0&&(Me.fixed=Pe);const Le=Ae(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:p&&h==="checkbox"}),He=()=>t!=null&&t.columnTitle?Rn(t.columnTitle)?t.columnTitle(Ce):t.columnTitle:Ee,Ne={fixed:Pe,width:A,className:`${C}-selection-column`,title:He(),render:Oe,onCell:t.onCell,align:t.align,[l2]:{className:Le}};return ge.map(Ue=>Ue===sp?Ne:Ue)},[_,z,t,W,ee,ne,A,de,M,Y,d,ue,Z]),ee]};function rGe(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:a}=t,s=`${n}-row-expand-icon`;return g.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:Ae(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&o,[`${s}-collapsed`]:a&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function iGe(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let o=r;if(i){const a=getComputedStyle(i),s=Number.parseInt(a.borderLeftWidth,10),l=Number.parseInt(a.borderRightWidth,10);o=r-s-l}return o}}const oGe=(e,t)=>g.useMemo(()=>{if(!t)return e;const n=r=>r.map(i=>{if(i===sp||i===ap)return i;if("children"in i&&Array.isArray(i.children)){const a=gb(t,i);return te(I({},a),{children:n(i.children)})}const o=ti(t,["children"]);return gb(o,i)});return n(e)},[e,t]),em=(e,t)=>"key"in e&&oa(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function nx(e,t){return t?`${t}-${e}`:`${e}`}const MI=(e,t)=>Rn(e)?e(t):e,aGe=(e,t)=>{const n=MI(e,t);return Zn(n)||Array.isArray(n)?"":n};var II={},yue;function sGe(){if(yue)return II;yue=1,Object.defineProperty(II,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};return II.default=e,II}var lGe=sGe();const cGe=_t(lGe);function p9(){return p9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,p9({},e,{ref:t,icon:cGe})),bue=g.forwardRef(uGe);var RI={},xue;function fGe(){if(xue)return RI;xue=1,Object.defineProperty(RI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};return RI.default=e,RI}var dGe=fGe();const AGe=_t(dGe);function g9(){return g9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,g9({},e,{ref:t,icon:AGe})),m9=g.forwardRef(hGe);var NI={},wue;function pGe(){if(wue)return NI;wue=1,Object.defineProperty(NI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};return NI.default=e,NI}var gGe=pGe();const mGe=_t(gGe);function v9(){return v9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,v9({},e,{ref:t,icon:mGe})),yGe=g.forwardRef(vGe);var PI={},Cue;function bGe(){if(Cue)return PI;Cue=1,Object.defineProperty(PI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};return PI.default=e,PI}var xGe=bGe();const wGe=_t(xGe);function y9(){return y9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,y9({},e,{ref:t,icon:wGe})),SGe=g.forwardRef(CGe);var LI={},Sue;function EGe(){if(Sue)return LI;Sue=1,Object.defineProperty(LI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};return LI.default=e,LI}var BGe=EGe();const OGe=_t(BGe);function b9(){return b9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,b9({},e,{ref:t,icon:OGe})),_Ge=g.forwardRef($Ge),TGe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:o,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:o},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:o,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),MGe=new Xr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),IGe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),RGe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${be(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),NGe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:a,switcherSize:s,motionDurationMid:l,nodeSelectedBg:c,nodeHoverBg:u,colorTextQuaternary:f,controlItemBgActiveDisabled:d}=t;return{[n]:te(I({},zr(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`${n}-list`]:{"&:focus-visible":{outline:"none",[`${r}-active ${n}-node-content-wrapper`]:I({},sc(t))}},[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:MGe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:be(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:"center",visibility:"visible",color:f},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:te(I({},IGe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:s,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:s,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:te(I({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:[`all ${l}`,"border 0s","line-height 0s","box-shadow 0s"].join(", ")},RGe(e,t)),{"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[`${n}-iconEle`]:{display:"inline-block",width:s,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${be(t.calc(o).div(2).equal())} !important`}})}},PGe=(e,t,n=!0)=>{const r=`.${e}`,i=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=dr(t,{treeCls:r,treeNodeCls:i,treeNodePadding:o});return[NGe(e,a),n&&TGe(a)].filter(Boolean)},LGe=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},FGe=Br("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Jse(`${t}-checkbox`,e)},PGe(t,e),lE(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return te(I({},LGe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),Eue=4,kGe=e=>{const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:o="ltr"}=e,a=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",l={[a]:-n*i+Eue,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=i+Eue;break}return Be.createElement("div",{style:l,className:`${r}-drop-indicator`})};var FI={},Bue;function DGe(){if(Bue)return FI;Bue=1,Object.defineProperty(FI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};return FI.default=e,FI}var HGe=DGe();const UGe=_t(HGe);function x9(){return x9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,x9({},e,{ref:t,icon:UGe})),zGe=g.forwardRef(jGe);var kI={},Oue;function QGe(){if(Oue)return kI;Oue=1,Object.defineProperty(kI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};return kI.default=e,kI}var VGe=QGe();const KGe=_t(VGe);function w9(){return w9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,w9({},e,{ref:t,icon:KGe})),GGe=g.forwardRef(WGe);var DI={},$ue;function qGe(){if($ue)return DI;$ue=1,Object.defineProperty(DI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};return DI.default=e,DI}var YGe=qGe();const XGe=_t(YGe);function C9(){return C9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,C9({},e,{ref:t,icon:XGe})),JGe=g.forwardRef(ZGe),eqe=e=>{var d,A;const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return g.isValidElement(o)?o:g.createElement(qh,{className:`${t}-switcher-loading-icon`});let c;if(Zn(i)&&(c=i.showLeafIcon),a){if(!i)return null;if(typeof c!="boolean"&&c){const h=Rn(c)?c(r):c,p=`${t}-switcher-line-custom-icon`;return g.isValidElement(h)?Ga(h,{className:Ae((d=h.props)==null?void 0:d.className,p)}):h}return c?g.createElement(m9,{className:`${t}-switcher-line-icon`}):g.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=Rn(n)?n(r):n;return g.isValidElement(f)?Ga(f,{className:Ae((A=f.props)==null?void 0:A.className,i?`${t}-switcher-line-icon`:u)}):f!==void 0?f:i?s?g.createElement(GGe,{className:`${t}-switcher-line-icon`}):g.createElement(JGe,{className:`${t}-switcher-line-icon`}):g.createElement(zGe,{className:u})},_ue=Be.forwardRef((e,t)=>{var J;const{getPrefixCls:n,direction:r,className:i,style:o,classNames:a,styles:s}=or("tree"),{virtual:l}=Be.useContext(Un),{prefixCls:c,className:u,showIcon:f=!1,showLine:d,switcherIcon:A,switcherLoadingIcon:h,blockNode:p=!1,children:v,checkable:y=!1,selectable:b=!0,draggable:x,disabled:C,motion:S,style:B,rootClassName:E,classNames:_,styles:M,icon:R}=e,T=Be.useContext(qa),L=C!=null?C:T,P=n("tree",c),k=n(),H=S!=null?S:te(I({},Bb(k)),{motionAppear:!1}),D=te(I({},e),{showIcon:f,blockNode:p,checkable:y,selectable:b,disabled:L,motion:H}),[U,j]=vr([a,_],[s,M],{props:D}),Q=te(I({},D),{showLine:!!d,icon:R,dropIndicatorRender:kGe}),[K,z]=FGe(P),[,V]=al(),Y=V.paddingXS/2+(((J=V.Tree)==null?void 0:J.titleHeight)||V.controlHeightSM),Z=Be.useMemo(()=>{if(!x)return!1;let ee={};switch(typeof x){case"function":ee.nodeDraggable=x;break;case"object":ee=I({},x);break}return ee.icon!==!1&&(ee.icon=ee.icon||Be.createElement(_Ge,null)),ee},[x]),W=ee=>Be.createElement(eqe,{prefixCls:P,switcherIcon:A,switcherLoadingIcon:h,treeNodeProps:ee,showLine:d});return Be.createElement(d9e,te(I({itemHeight:Y,ref:t,virtual:l},Q),{prefixCls:P,className:Ae({[`${P}-icon-hide`]:!f,[`${P}-block-node`]:p,[`${P}-unselectable`]:!b,[`${P}-rtl`]:r==="rtl",[`${P}-disabled`]:L},i,u,K,z),style:I(I({},o),B),rootClassName:Ae(U.root,E),rootStyle:j.root,classNames:U,styles:j,direction:r,checkable:y&&Be.createElement("span",{className:`${P}-checkbox-inner`}),selectable:b,switcherIcon:W,draggable:Z}),v)}),Tue=0,S9=1,Mue=2;function E9(e,t,n){const{key:r,children:i}=n;function o(a){const s=a[r],l=a[i];t(s,a)!==!1&&E9(l||[],t,n)}e.forEach(o)}function tqe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){const o=[];let a=Tue;if(n&&n===r)return[n];if(!n||!r)return[];function s(l){return l===n||l===r}return E9(e,l=>{if(a===Mue)return!1;if(s(l)){if(o.push(l),a===Tue)a=S9;else if(a===S9)return a=Mue,!1}else a===S9&&o.push(l);return t.includes(l)},Kb(i)),o}function B9(e,t,n){const r=en(t),i=[];return E9(e,(o,a)=>{const s=r.indexOf(o);return s!==-1&&(i.push(a),r.splice(s,1)),!!r.length},Kb(n)),i}function nqe(e){const{isLeaf:t,expanded:n}=e;return t?g.createElement(m9,null):n?g.createElement(yGe,null):g.createElement(SGe,null)}function Iue({treeData:e,children:t}){return e||Use(t)}const rqe=g.forwardRef((e,t)=>{const _=e,{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:i}=_,o=Ze(_,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),a=g.useRef(null),s=g.useRef(null),l=()=>{const{keyEntities:R}=WU(Iue(o),{fieldNames:o.fieldNames});let T;const L=o.expandedKeys||i||[];return n?T=Object.keys(R):r?T=ZU(L,R):T=L,T},[c,u]=g.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,d]=g.useState(()=>l());g.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),g.useEffect(()=>{"expandedKeys"in o&&d(o.expandedKeys)},[o.expandedKeys]);const A=(R,T)=>{var L;return"expandedKeys"in o||d(R),(L=o.onExpand)==null?void 0:L.call(o,R,T)},h=(R,T)=>{var V;const{multiple:L,fieldNames:P}=o,{node:k,nativeEvent:H}=T,{key:D=""}=k,U=Iue(o),j=te(I({},T),{selected:!0}),Q=(H==null?void 0:H.ctrlKey)||(H==null?void 0:H.metaKey),K=H==null?void 0:H.shiftKey;let z;L&&Q?(z=R,a.current=D,s.current=z,j.selectedNodes=B9(U,z,P)):L&&K?(z=Array.from(new Set([].concat(en(s.current||[]),en(tqe({treeData:U,expandedKeys:f,startKey:D,endKey:a.current,fieldNames:P}))))),j.selectedNodes=B9(U,z,P)):(z=[D],a.current=D,s.current=z,j.selectedNodes=B9(U,z,P)),(V=o.onSelect)==null||V.call(o,z,j),"selectedKeys"in o||u(z)},{getPrefixCls:p,direction:v}=g.useContext(Un),M=o,{prefixCls:y,className:b,showIcon:x=!0,expandAction:C="click"}=M,S=Ze(M,["prefixCls","className","showIcon","expandAction"]),B=p("tree",y),E=Ae(`${B}-directory`,{[`${B}-directory-rtl`]:v==="rtl"},b);return g.createElement(_ue,te(I({icon:nqe,ref:t,blockNode:!0},S),{showIcon:x,expandAction:C,prefixCls:B,className:E,defaultExpandParent:r,expandedKeys:f,selectedKeys:c,onSelect:h,onExpand:A}))}),O9=_ue;O9.DirectoryTree=rqe,O9.TreeNode=XE;const Rue=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?g.createElement("div",{className:`${r}-filter-dropdown-search`},g.createElement(Gb,{prefix:g.createElement(Kg,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},iqe=e=>{const{keyCode:t}=e;t===dn.ENTER&&e.stopPropagation()},oqe=g.forwardRef((e,t)=>g.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:iqe,ref:t,role:"presentation"},e.children));function rx(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(en(t),en(rx(r))))}),t}function aqe(e){return e.some(({children:t})=>t)}const Nue=(e,t)=>typeof t=="string"||mo(t)?t.toString().toLowerCase().includes(e):!1,Pue=e=>{const{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,normalizedSearchValue:a,filterSearch:s}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:Pue({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,normalizedSearchValue:a,filterSearch:s})};const f=i?Zu:np,d={key:l.value!==void 0?u:c,label:g.createElement(g.Fragment,null,g.createElement(f,{checked:r.includes(u)}),g.createElement("span",null,l.text))};return a?Rn(s)?s(a,l)?d:null:Nue(a,l.text)?d:null:d})};function $9(e){return e||[]}const sqe=e=>{var we,me,Ee;const{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:o,filterOnClose:a,filterMultiple:s,filterMode:l="menu",filterSearch:c=!1,filterState:u,triggerFilter:f,locale:d,children:A,getPopupContainer:h,rootClassName:p}=e,{filterResetToDefaultFilteredValue:v,defaultFilteredValue:y,filterDropdownProps:b={},filterDropdownOpen:x,onFilterDropdownOpenChange:C}=r,[S,B]=g.useState(!1),E=g.useContext(NH),_=!!(u&&((we=u.filteredKeys)!=null&&we.length||u.forceFiltered)),M=Ce=>{var pe;B(Ce),(pe=b.onOpenChange)==null||pe.call(b,Ce),C==null||C(Ce)},R=(Ee=(me=b.open)!=null?me:x)!=null?Ee:S,T=u==null?void 0:u.filteredKeys,[L,P]=ALe($9(T)),k=({selectedKeys:Ce})=>{P(Ce)},H=(Ce,{node:pe,checked:Oe})=>{k(s?{selectedKeys:Ce}:{selectedKeys:Oe&&pe.key?[pe.key]:[]})};g.useEffect(()=>{S&&k({selectedKeys:$9(T)})},[T]);const[D,U]=g.useState([]),j=Ce=>{U(Ce)},[Q,K]=g.useState(""),z=g.useMemo(()=>Q.trim().toLowerCase(),[Q]),V=Ce=>{const{value:pe}=Ce.target;K(pe)};g.useEffect(()=>{S||K("")},[S]);const Y=Ce=>{const pe=Ce!=null&&Ce.length?Ce:null;if(pe===null&&(!u||!u.filteredKeys)||uu(pe,u==null?void 0:u.filteredKeys,!0))return null;f({column:r,key:o,filteredKeys:pe})},Z=()=>{M(!1),Y(L())},W=({confirm:Ce,closeDropdown:pe}={confirm:!1,closeDropdown:!1})=>{Ce&&Y([]),pe&&M(!1),K(""),P(v?(y||[]).map(String):[])},J=({closeDropdown:Ce}={closeDropdown:!0})=>{Ce&&M(!1),Y(L())},ee=(Ce,pe)=>{pe.source==="trigger"&&(Ce&&T!==void 0&&P($9(T)),M(Ce),!Ce&&!r.filterDropdown&&a&&Z())},ne=Ae({[`${i}-menu-without-submenu`]:!aqe(r.filters||[])}),re=Ce=>{if(Ce.target.checked){const pe=rx(r==null?void 0:r.filters).map(String);P(pe)}else P([])},ue=({filters:Ce})=>(Ce||[]).map((pe,Oe)=>{const xe=String(pe.value),Me={title:pe.text,key:pe.value!==void 0?xe:String(Oe)};return pe.children&&(Me.children=ue({filters:pe.children})),Me}),de=Ce=>{var pe;return te(I({},Ce),{text:Ce.title,value:Ce.key,children:((pe=Ce.children)==null?void 0:pe.map(de))||[]})};let se;const{direction:ce,renderEmpty:ge}=g.useContext(Un);if(Rn(r.filterDropdown))se=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:Ce=>k({selectedKeys:Ce}),selectedKeys:L(),confirm:J,clearFilters:W,filters:r.filters,visible:R,close:()=>{M(!1)}});else if(r.filterDropdown)se=r.filterDropdown;else{const Ce=L()||[],pe=()=>{var Pe,Le;const xe=(Pe=ge==null?void 0:ge("Table.filter"))!=null?Pe:g.createElement($s,{image:$s.PRESENTED_IMAGE_SIMPLE,description:d.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return xe;if(l==="tree")return g.createElement(g.Fragment,null,g.createElement(Rue,{filterSearch:c,value:Q,onChange:V,tablePrefixCls:t,locale:d}),g.createElement("div",{className:`${t}-filter-dropdown-tree`},s?g.createElement(Zu,{checked:Ce.length===rx(r.filters).length,indeterminate:Ce.length>0&&Ce.lengthRn(c)?c(Q,de(He)):Nue(z,He.title):void 0})));const Me=Pue({filters:r.filters||[],filterSearch:c,prefixCls:n,filteredKeys:L(),filterMultiple:s,searchValue:Q,normalizedSearchValue:z}),Se=Me.every(He=>He===null);return g.createElement(g.Fragment,null,g.createElement(Rue,{filterSearch:c,value:Q,onChange:V,tablePrefixCls:t,locale:d}),Se?xe:g.createElement(tp,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:ne,onSelect:k,onDeselect:k,selectedKeys:Ce,getPopupContainer:h,openKeys:D,onOpenChange:j,items:Me}))},Oe=()=>v?uu((y||[]).map(String),Ce,!0):Ce.length===0;se=g.createElement(g.Fragment,null,pe(),g.createElement("div",{className:`${n}-dropdown-btns`},g.createElement(qn,{type:"link",size:"small",disabled:Oe(),onClick:()=>W()},d.filterReset),g.createElement(qn,{type:"primary",size:"small",onClick:Z},d.filterConfirm)))}r.filterDropdown&&(se=g.createElement(iae,{selectable:void 0},se)),se=g.createElement(oqe,{className:`${n}-dropdown`},se);const le=(()=>{let Ce;return Rn(r.filterIcon)?Ce=r.filterIcon(_):r.filterIcon?Ce=r.filterIcon:Ce=g.createElement(bue,null),g.createElement("span",{role:"button",tabIndex:-1,className:Ae(`${n}-trigger`,{active:_}),onClick:pe=>{pe.stopPropagation()}},Ce)})();if(E)return g.createElement("div",{className:`${n}-column`},g.createElement("span",{className:`${t}-column-title`},A),le);const ve=gb({trigger:["click"],placement:ce==="rtl"?"bottomLeft":"bottomRight",children:le,getPopupContainer:h},te(I({},b),{rootClassName:Ae(p,b.rootClassName),open:R,onOpenChange:ee,popupRender:()=>Rn(b==null?void 0:b.dropdownRender)?b.dropdownRender(se):se}));return g.createElement("div",{className:`${n}-column`},g.createElement("span",{className:`${t}-column-title`},A),g.createElement(Y4,I({},ve)))},_9=(e,t,n)=>{let r=[];return(e||[]).forEach((i,o)=>{var l;const a=nx(o,n),s=i.filterDropdown!==void 0;if(i.filters||s||"onFilter"in i)if("filteredValue"in i){let c=i.filteredValue;s||(c=(l=c==null?void 0:c.map(String))!=null?l:c),r.push({column:i,key:em(i,a),filteredKeys:c,forceFiltered:i.filtered})}else r.push({column:i,key:em(i,a),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(en(r),en(_9(i.children,t,a))))}),r};function Lue(e,t,n,r,i,o,a,s,l){return n.map((c,u)=>{const f=nx(u,s),{filterOnClose:d=!0,filterMultiple:A=!0,filterMode:h,filterSearch:p}=c;let v=c;if(v.filters||v.filterDropdown){const y=em(v,f),b=r.find(({key:x})=>y===x);v=te(I({},v),{title:x=>g.createElement(sqe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:b,filterOnClose:d,filterMultiple:A,filterMode:h,filterSearch:p,triggerFilter:o,locale:i,getPopupContainer:a,rootClassName:l},MI(c.title,x))})}return"children"in v&&(v=te(I({},v),{children:Lue(e,t,v.children,r,i,o,a,f,l)})),v})}const Fue=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:i})=>{const o=n,{filters:a,filterDropdown:s}=i;if(s)t[o]=r||null;else if(Array.isArray(r)){const l=rx(a);t[o]=l.filter(c=>r.includes(String(c)))}else t[o]=null}),t},T9=(e,t,n)=>t.reduce((i,o)=>{const{column:{onFilter:a,filters:s},filteredKeys:l}=o;if(a&&l&&l.length){const c=rx(s),u=new Map;c.forEach(A=>{const h=String(A);u.has(h)||u.set(h,A)});const f=l.map(A=>{var p;const h=String(A);return(p=u.get(h))!=null?p:A});return(A=>A.reduce((h,p)=>{const v=I({},p);return v[n]&&(v[n]=T9(v[n],t,n)),f.some(y=>a(y,v))&&h.push(v),h},[]))(i)}return i},e),kue=e=>e.flatMap(t=>"children"in t?[t].concat(en(kue(t.children||[]))):[t]),lqe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:o,locale:a,rootClassName:s}=e;Ig();const l=g.useMemo(()=>kue(r||[]),[r]),[c,u]=g.useState(()=>_9(l,!0)),f=g.useMemo(()=>{const p=_9(l,!1);if(p.length===0)return p;let v=!0;if(p.forEach(({filteredKeys:y})=>{y!==void 0&&(v=!1)}),v){const y=(l||[]).map((b,x)=>em(b,nx(x)));return c.reduce((b,x)=>{const C=y.indexOf(x.key);if(C!==-1){const S=l[C];b.push(te(I({},x),{column:I(I({},x.column),S),forceFiltered:S.filtered}))}return b},[])}return p},[l,c]),d=g.useMemo(()=>Fue(f),[f]),A=p=>{const v=f.filter(({key:y})=>y!==p.key);v.push(p),u(v),i(Fue(v),v)};return[p=>Lue(t,n,p,f,a,A,o,void 0,s),f,d]},cqe=(e,t,n)=>{const r=g.useRef({});function i(o){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,f)=>{const d=n(u,f);s.set(d,u),Zn(u)&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(a=r.current.kvMap)==null?void 0:a.get(o)}return[i]},Due=10;function uqe(e,t){const n={current:e.current,pageSize:e.pageSize},r=Zn(t)?t:{};return Object.keys(r).forEach(i=>{const o=e[i];Rn(o)||(n[i]=o)}),n}function fqe(e,t,n){const f=Zn(n)?n:{},{total:r=0}=f,i=Ze(f,["total"]),[o,a]=g.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Due})),s=gb(o,i,{total:r>0?r:e}),l=Math.ceil((r||e)/s.pageSize);s.current>l&&(s.current=l||1);const c=(d,A)=>{a({current:d!=null?d:1,pageSize:A||s.pageSize})},u=(d,A)=>{var h;n&&((h=n.onChange)==null||h.call(n,d,A)),c(d,A),t(d,A||(s==null?void 0:s.pageSize))};return n===!1?[{},()=>{}]:[te(I({},s),{onChange:u}),c]}var HI={},Hue;function dqe(){if(Hue)return HI;Hue=1,Object.defineProperty(HI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};return HI.default=e,HI}var Aqe=dqe();const hqe=_t(Aqe);function M9(){return M9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,M9({},e,{ref:t,icon:hqe})),gqe=g.forwardRef(pqe);var UI={},Uue;function mqe(){if(Uue)return UI;Uue=1,Object.defineProperty(UI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};return UI.default=e,UI}var vqe=mqe();const yqe=_t(vqe);function I9(){return I9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,I9({},e,{ref:t,icon:yqe})),xqe=g.forwardRef(bqe),jI="ascend",R9="descend",zI=e=>Zn(e.sorter)&&mo(e.sorter.multiple)?e.sorter.multiple:!1,jue=e=>Rn(e)?e:Zn(e)&&e.compare?e.compare:!1,wqe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],N9=(e,t,n)=>{let r=[];const i=(o,a)=>{r.push({column:o,key:em(o,a),multiplePriority:zI(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,a)=>{const s=nx(a,n);o.children?("sortOrder"in o&&i(o,s),r=[].concat(en(r),en(N9(o.children,t,s)))):o.sorter&&("sortOrder"in o?i(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:em(o,s),multiplePriority:zI(o),sortOrder:o.defaultSortOrder}))}),r},zue=(e,t,n,r,i,o,a,s,l)=>(t||[]).map((u,f)=>{const d=nx(f,s);let A=u;if(A.sorter){const h=A.sortDirections||i,p=A.showSorterTooltip===void 0?a:A.showSorterTooltip,v=em(A,d),y=n.find(({key:R})=>R===v),b=y?y.sortOrder:null,x=wqe(h,b);let C;if(u.sortIcon)C=u.sortIcon({sortOrder:b});else{const R=h.includes(jI)&&g.createElement(xqe,{className:Ae(`${e}-column-sorter-up`,{active:b===jI})}),T=h.includes(R9)&&g.createElement(gqe,{className:Ae(`${e}-column-sorter-down`,{active:b===R9})});C=g.createElement("span",{className:Ae(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&T)})},g.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,T))}const{cancelSort:S,triggerAsc:B,triggerDesc:E}=o||{};let _=S;x===R9?_=E:x===jI&&(_=B);const M=Zn(p)?I({title:_},p):{title:_};A=te(I({},A),{className:Ae(A.className,{[`${e}-column-sort`]:b}),title:R=>{const T=`${e}-column-sorters`,L=g.createElement("span",{className:`${e}-column-title`},MI(u.title,R)),P=g.createElement("div",{className:T},L,C);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?g.createElement("div",{className:Ae(T,`${T}-tooltip-target-sorter`)},L,g.createElement(No,I({},M),C)):g.createElement(No,I({},M),P):P},onHeaderCell:R=>{var D;const T=((D=u.onHeaderCell)==null?void 0:D.call(u,R))||{},L=T.onClick,P=T.onKeyDown;T.onClick=U=>{r({column:u,key:v,sortOrder:x,multiplePriority:zI(u)}),L==null||L(U)},T.onKeyDown=U=>{U.keyCode===dn.ENTER&&(r({column:u,key:v,sortOrder:x,multiplePriority:zI(u)}),P==null||P(U))};const k=aGe(u.title,{}),H=k==null?void 0:k.toString();return b&&(T["aria-sort"]=b==="ascend"?"ascending":"descending"),T["aria-description"]=l==null?void 0:l.sortable,T["aria-label"]=H||"",T.className=Ae(T.className,`${e}-column-has-sorters`),T.tabIndex=0,u.ellipsis&&(T.title=(k!=null?k:"").toString()),T}})}return"children"in A&&(A=te(I({},A),{children:zue(e,A.children,n,r,i,o,a,d,l)})),A}),Que=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Vue=e=>{const t=e.reduce((n,r)=>(r.sortOrder&&n.push(Que(r)),n),[]);if(t.length===0&&e.length){const n=e.length-1;return te(I({},Que(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},P9=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),i=e.slice(),o=r.filter(({column:{sorter:a},sortOrder:s})=>jue(a)&&s);return o.length?i.sort((a,s)=>{for(let l=0;l{const s=a[n];return s?te(I({},a),{[n]:P9(s,t,n)}):a}):i},Cqe=e=>{const{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:i,tableLocale:o,showSorterTooltip:a,onSorterChange:s,globalLocale:l}=e,c=r!=null?r:n,[u,f]=g.useState(()=>N9(c,!0)),d=(b,x)=>{const C=[];return b.forEach((S,B)=>{const E=nx(B,x);if(C.push(em(S,E)),Array.isArray(S.children)){const _=d(S.children,E);C.push.apply(C,en(_))}}),C},A=g.useMemo(()=>{let b=!0;const x=N9(c,!1);if(!x.length){const E=d(c);return u.filter(({key:_})=>E.includes(_))}const C=[];function S(E){b?C.push(E):C.push(te(I({},E),{sortOrder:null}))}let B=null;return x.forEach(E=>{B===null?(S(E),E.sortOrder&&(E.multiplePriority===!1?b=!1:B=!0)):(B&&E.multiplePriority!==!1||(b=!1),S(E))}),C},[c,u]),h=g.useMemo(()=>{var x,C;const b=A.map(({column:S,sortOrder:B})=>({column:S,order:B}));return{sortColumns:b,sortColumn:(x=b[0])==null?void 0:x.column,sortOrder:(C=b[0])==null?void 0:C.order}},[A]),p=b=>{let x;b.multiplePriority===!1||!A.length||A[0].multiplePriority===!1?x=[b]:x=[].concat(en(A.filter(({key:C})=>C!==b.key)),[b]),f(x),s(Vue(x),x)};return[b=>zue(t,b,A,p,i,o,a,void 0,l),A,h,()=>Vue(A)]},Kue=(e,t)=>e.map(r=>{const i=I({},r);return i.title=MI(r.title,t),"children"in i&&(i.children=Kue(i.children,t)),i}),Sqe=e=>[g.useCallback(n=>Kue(n,e),[e])],Eqe=hue((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Bqe=mue((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Oqe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${be(n)} ${r} ${i}`,u=(f,d,A)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${be(l(d).mul(-1).equal())} - ${be(l(l(A).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:te(I(I({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`> ${t}-header${t}-sticky-holder`]:{marginTop:l(n).mul(-1).equal(),borderTop:c},[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first:not(${t}-cell-fix-right-last)::after`]:{borderInlineEnd:c}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${be(l(a).mul(-1).equal())} ${be(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + }`)}});K();var zye=[`id`,`prefixCls`,`classNames`,`styles`,`steps`,`strokeWidth`,`railWidth`,`gapDegree`,`gapPosition`,`railColor`,`strokeLinecap`,`style`,`className`,`strokeColor`,`percent`,`loading`];function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=G(G({},Nye),e),{id:n,prefixCls:r,classNames:i={},styles:a={},steps:o,strokeWidth:s,railWidth:c,gapDegree:l=0,gapPosition:u,railColor:d,strokeLinecap:f,style:p,className:m,strokeColor:h,percent:g,loading:_}=t,v=q(t,zye),y=ii(n),b=`${y}-gradient`,x=50-s/2,S=Math.PI*2*x,C=l>0?90+l/2:-90,w=S*((360-l)/360),{count:T,gap:E}=typeof o==`object`?o:{count:o,gap:2},D=Bye(g),O=Bye(h),k=O.find(e=>e&&typeof e==`object`),A=k&&typeof k==`object`?`butt`:f,{indeterminateStyleProps:j,indeterminateStyleAnimation:M}=Rye({id:y,loading:_}),N=mD(S,w,0,100,C,l,u,d,A,s),P=Pye();return J.createElement(`svg`,hD({className:Z(`${r}-circle`,i.root,m),viewBox:`0 0 100 100`,style:G(G({},a.root),p),id:n,role:`presentation`},v),!T&&J.createElement(`circle`,{className:Z(`${r}-circle-rail`,i.rail),r:x,cx:50,cy:50,stroke:d,strokeLinecap:A,strokeWidth:c||s,style:G(G({},N),a.rail)}),T?(()=>{let e=Math.round(T*(D[0]/100)),t=100/T,n=0;return Array(T).fill(null).map((o,c)=>{let f=c<=e-1?O[0]:d,p=f&&typeof f==`object`?`url(#${b})`:void 0,m=mD(S,w,n,t,C,l,u,f,`butt`,s,E);return n+=(w-m.strokeDashoffset+E)*100/w,J.createElement(`circle`,{key:c,className:Z(`${r}-circle-path`,i.track),r:x,cx:50,cy:50,stroke:p,strokeWidth:s,opacity:1,style:G(G({},m),a.track),ref:e=>{P[c]=e}})})})():(()=>{let e=0;return D.map((t,n)=>{let o=O[n]||O[O.length-1],c=mD(S,w,e,t,C,l,u,o,A,s);return e+=t,J.createElement(Lye,{key:n,color:o,ptg:t,radius:x,prefixCls:r,gradientId:b,className:i.track,style:G(G(G({},c),j),a.track),strokeLinecap:A,strokeWidth:s,gapDegree:l,ref:e=>{P[n]=e},size:100})}).reverse()})(),M)};function gD(e){return!e||e<0?0:e>100?100:e}function _D({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Hye=({percent:e,success:t})=>{let n=gD(_D({success:t}));return[n,gD(gD(e)-n)]},Uye=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||tu.green,t||null]},vD=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a==null?8:a):sp(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n==null?void 0:n.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):sp(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else if(t===`circle`||t===`dashboard`){if(typeof e==`string`||e===void 0)[r,i]=e===`small`?[60,60]:[120,120];else if(sp(e))[r,i]=[e,e];else if(Array.isArray(e)){var a,o,s,c;r=(a=(o=e[0])==null?e[1]:o)==null?120:a,i=(s=(c=e[0])==null?e[1]:c)==null?120:s}}return[r,i]};K();var Wye=3,Gye=e=>Wye/e*100,Kye=[`root`,`body`,`indicator`],qye=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:m=u,steps:h}=e,{direction:g}=ko(`progress`),_=i==null?a:i,[v,y]=vD(m,`circle`),{strokeWidth:b}=e;b===void 0&&(b=Math.max(Gye(v),6));let x={width:v,height:y,fontSize:v*.15+6},S=J.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),C=Hye(e),w=J.useMemo(()=>{let e=(c==null?s:c)||d===`dashboard`&&`bottom`||void 0,t=g===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[g,c,s,d]),T=lp(e.strokeColor),E=Uye({success:p,strokeColor:e.strokeColor}),D=Z(`${t}-body`,{[`${t}-circle-gradient`]:T},n.body),O=J.createElement(Vye,{steps:h,percent:h?C[1]:C,strokeWidth:b,railWidth:b,strokeColor:h?E[1]:E,strokeLinecap:o,railColor:_,prefixCls:t,gapDegree:S,gapPosition:w,classNames:Ca(n,Kye),styles:Ca(r,Kye)}),k=v<=20,A=J.createElement(`div`,{className:D,style:G(G({},x),r.body)},O,!k&&f);return k?J.createElement(ab,{title:f},A):A};K();var yD=`--progress-line-stroke-color`,Jye=e=>{let t=e?`100%`:`-100%`;return new Vc(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},Yye=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:G(G({},td(e)),{},{display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}})}},Xye=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:Jye(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},Zye=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},Qye=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},$ye=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},ebe=dd(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=bl(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[Yye(n),Xye(n),Zye(n),Qye(n),$ye(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));K();var tbe=[`from`,`to`,`direction`],nbe=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},rbe=(e,t)=>{let{from:n=tu.blue,to:r=tu.blue,direction:i=t===`rtl`?`to left`:`to right`}=e,a=q(e,tbe);if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${nbe(a)})`;return{background:e,[yD]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[yD]:o}},ibe=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:m}=e,{align:h,type:g}=p,_=d==null?f:d,v=l===`square`||l===`butt`?0:void 0,[y,b]=vD(o==null?[-1,s||(o===`small`?6:8)]:o,`line`,{strokeWidth:s}),x={backgroundColor:_||void 0,borderRadius:v,height:b},S=`${t}-track`,C=c&&typeof c!=`string`?rbe(c,i):{[yD]:c,background:c},w=G({width:`${gD(a)}%`,height:b,borderRadius:v},C),T=_D(e),E={width:`${gD(T)}%`,height:b,borderRadius:v,backgroundColor:m==null?void 0:m.strokeColor};return J.createElement(`div`,{className:Z(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:h===`center`&&g===`outer`}),style:G({width:y>0?y:`100%`},r.body)},J.createElement(`div`,{className:Z(`${t}-rail`,n.rail),style:G(G({},x),r.rail)},J.createElement(`div`,{className:Z(S,n.track),style:G(G({},w),r.track)},g===`inner`&&u),T!==void 0&&J.createElement(`div`,{className:Z(S,`${S}-success`,n.track),style:G(G({},E),r.track)})),g===`outer`&&u)};K();var abe=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[m,h]=vD(r==null?[r===`small`?2:14,s]:r,`step`,{steps:i,strokeWidth:s}),g=m/i,_=Array.from({length:i}),v=l==null?u:l;for(let e=0;e{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:m,style:h,percentPosition:g={}}=e,_=q(e,obe),{align:v=`end`,type:y=`outer`}=g,b=Array.isArray(c)?c[0]:c,x=typeof c==`string`||Array.isArray(c)?c:void 0,S=J.useMemo(()=>b?new Hl(typeof b==`string`?b:Object.values(b)[0]).isLight():!1,[c]),C=J.useMemo(()=>{var t,n;let r=_D(e);return Number.parseInt(r===void 0?(n=l==null?0:l)==null?void 0:n.toString():(t=r==null?0:r)==null?void 0:t.toString(),10)},[l,e.success]),w=J.useMemo(()=>!sbe.includes(p)&&C>=100?`success`:p||`normal`,[p,C]),{getPrefixCls:T,direction:E,className:D,style:O,classNames:k,styles:A}=ko(`progress`),j=T(`progress`,n),[M,N]=ebe(j),P=G(G({},e),{},{percent:l,type:f,size:u,showInfo:d,percentPosition:g}),F=yp(O),I=yp(h),[L,R]=xp([k,a],[A,F,o,I],{props:P}),z=f===`line`,B=z&&!s,V=J.useMemo(()=>{if(!d)return null;let t=_D(e),n,r=m||(e=>`${e}%`),i=z&&S&&y===`inner`;return y===`inner`||m||w!==`exception`&&w!==`success`?n=r(gD(l),gD(t)):w===`exception`?n=z?J.createElement(ef,null):J.createElement(rf,null):w===`success`&&(n=z?J.createElement(Zd,null):J.createElement(ky,null)),J.createElement(`span`,{className:Z(`${j}-indicator`,{[`${j}-indicator-bright`]:i,[`${j}-indicator-${v}`]:B,[`${j}-indicator-${y}`]:B},L.indicator),style:R.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,C,w,f,j,m,z,S,y,v,B,L.indicator,R.indicator]),H=G(G({},e),{},{classNames:L,styles:R}),U;f===`line`?U=s?J.createElement(abe,G(G({},H),{},{strokeColor:x,prefixCls:j,steps:lp(s)?s.count:s}),V):J.createElement(ibe,G(G({},H),{},{strokeColor:b,prefixCls:j,direction:E,percentPosition:{align:v,type:y}}),V):(f===`circle`||f===`dashboard`)&&(U=J.createElement(qye,G(G({},H),{},{strokeColor:b,prefixCls:j,progressStatus:w}),V));let ee=Z(j,`${j}-status-${w}`,{[`${j}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${j}-inline-circle`]:f===`circle`&&vD(u,`circle`)[0]<=20,[`${j}-line`]:B,[`${j}-line-align-${v}`]:B,[`${j}-line-position-${y}`]:B,[`${j}-steps`]:s,[`${j}-show-info`]:d,[`${j}-small`]:u===`small`,[`${j}-rtl`]:E===`rtl`},D,r,i,L.root,M,N);return J.createElement(`div`,G({ref:t,style:R.root,className:ee,role:`progressbar`,"aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},Ca(_,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])),U)}),lbe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`}}))());function bD(){return bD=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,bD({},e,{ref:t,icon:lbe.default}))),dbe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`}}))());function xD(){return xD=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,xD({},e,{ref:t,icon:dbe.default}))),pbe=()=>J.createElement(`svg`,{width:`252`,height:`294`},J.createElement(`title`,null,`No Found`),J.createElement(`g`,{fill:`none`,fillRule:`evenodd`},J.createElement(`circle`,{cx:`126.75`,cy:`128.1`,r:`126`,fill:`#E4EBF7`}),J.createElement(`circle`,{cx:`31.55`,cy:`130.8`,r:`8.3`,fill:`#FFF`}),J.createElement(`path`,{stroke:`#FFF`,d:`m37 134.3 10.5 6m.9 6.2-12.7 10.8`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#FFF`,d:`M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2`}),J.createElement(`path`,{fill:`#FFF`,d:`M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),J.createElement(`path`,{stroke:`#FFF`,d:`m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#FFF`,d:`M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4`}),J.createElement(`path`,{stroke:`#FFF`,d:`M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z`,strokeWidth:`2`}),J.createElement(`path`,{stroke:`#FFF`,d:`m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#FFF`,d:`M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7`}),J.createElement(`circle`,{cx:`204.3`,cy:`30`,r:`29.5`,fill:`#1677ff`}),J.createElement(`path`,{fill:`#FFF`,d:`M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2`}),J.createElement(`path`,{fill:`#FFB594`,d:`M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6`}),J.createElement(`path`,{fill:`#FFF`,d:`M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6`}),J.createElement(`path`,{fill:`#CBD1D1`,d:`M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6`}),J.createElement(`path`,{fill:`#2B0849`,d:`M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z`}),J.createElement(`path`,{fill:`#A4AABA`,d:`M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),J.createElement(`path`,{fill:`#CBD1D1`,d:`M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z`}),J.createElement(`path`,{fill:`#2B0849`,d:`M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1`}),J.createElement(`path`,{fill:`#A4AABA`,d:`M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1`}),J.createElement(`path`,{fill:`#7BB2F9`,d:`m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M107.3 222.1s2.7-1.1 6-3.9`,strokeLinecap:`round`,strokeLinejoin:`round`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#192064`,d:`M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4`}),J.createElement(`path`,{fill:`#FFF`,d:`M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8`}),J.createElement(`path`,{fill:`#192064`,d:`M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5`}),J.createElement(`path`,{fill:`#520038`,d:`M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z`}),J.createElement(`path`,{fill:`#552950`,d:`M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3`}),J.createElement(`path`,{stroke:`#DB836E`,d:`m110.1 74.8-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#5C2552`,d:`M110.8 74.5s1.8-.7 2.6.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#5C2552`,d:`M103.3 73s1.8 1 4.1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#F2D7AD`,d:`M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1`}),J.createElement(`path`,{fill:`#F4D19D`,d:`M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1`}),J.createElement(`path`,{fill:`#F2D7AD`,d:`M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z`}),J.createElement(`path`,{fill:`#CC9B6E`,d:`M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z`}),J.createElement(`path`,{fill:`#F4D19D`,d:`M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8`}),J.createElement(`path`,{fill:`#CC9B6E`,d:`M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#5BA02E`,d:`M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6`}),J.createElement(`path`,{fill:`#92C110`,d:`M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7`}),J.createElement(`path`,{fill:`#F2D7AD`,d:`M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M89 89.5s7.8 5.4 16.6 2.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}))),mbe=()=>J.createElement(`svg`,{width:`254`,height:`294`},J.createElement(`title`,null,`Server Error`),J.createElement(`g`,{fill:`none`,fillRule:`evenodd`},J.createElement(`path`,{fill:`#E4EBF7`,d:`M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1`}),J.createElement(`path`,{fill:`#FFF`,d:`M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7`}),J.createElement(`path`,{stroke:`#FFF`,d:`m37.2 135.6 10.5 6m1 6.3-12.8 10.8`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#FFF`,d:`M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8`}),J.createElement(`circle`,{cx:`201.35`,cy:`30.2`,r:`29.7`,fill:`#FF603B`}),J.createElement(`path`,{fill:`#FFF`,d:`m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7`}),J.createElement(`path`,{fill:`#FFB594`,d:`M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5`}),J.createElement(`path`,{fill:`#FFF`,d:`M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2`}),J.createElement(`path`,{fill:`#FFB594`,d:`m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6`}),J.createElement(`path`,{fill:`#520038`,d:`M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z`}),J.createElement(`path`,{fill:`#552950`,d:`M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3`}),J.createElement(`path`,{stroke:`#DB836E`,d:`m99.2 73.6-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#5C2552`,d:`M100 73.3s1.7-.7 2.4.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#5C2552`,d:`M92.3 71.7s1.9 1.1 4.2 1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#FFF`,d:`M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1`}),J.createElement(`path`,{fill:`#FFF`,d:`M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5`}),J.createElement(`path`,{fill:`#CBD1D1`,d:`M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5`}),J.createElement(`path`,{fill:`#2B0849`,d:`M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z`}),J.createElement(`path`,{fill:`#A4AABA`,d:`M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6`}),J.createElement(`path`,{fill:`#CBD1D1`,d:`M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z`}),J.createElement(`path`,{fill:`#2B0849`,d:`M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1`}),J.createElement(`path`,{fill:`#A4AABA`,d:`M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1`}),J.createElement(`path`,{fill:`#7BB2F9`,d:`M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M97 219.4s2.9-1.2 6.3-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#192064`,d:`M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7`}),J.createElement(`path`,{fill:`#FFF`,d:`M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8`}),J.createElement(`path`,{fill:`#192064`,d:`M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),J.createElement(`path`,{stroke:`#E59788`,d:`M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6`}),J.createElement(`path`,{stroke:`#E59788`,d:`M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M109.3 112.5s3.4-3.6 7.6-4.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#E59788`,d:`M107.4 123s9.7-2.7 11.4-.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),J.createElement(`path`,{stroke:`#BFCDDD`,d:`m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#A3B4C6`,d:`M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4`}),J.createElement(`path`,{fill:`#A3B4C6`,d:`M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8`}),J.createElement(`path`,{fill:`#A3B4C6`,d:`M154.1 190.1h70.5v-84.6h-70.5z`}),J.createElement(`path`,{fill:`#BFCDDD`,d:`M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1`}),J.createElement(`path`,{fill:`#FFF`,d:`M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8`}),J.createElement(`path`,{fill:`#BFCDDD`,d:`M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2`}),J.createElement(`path`,{stroke:`#7C90A5`,d:`M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#FFF`,d:`M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8`}),J.createElement(`path`,{fill:`#BFCDDD`,d:`M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4`}),J.createElement(`path`,{stroke:`#A3B4C6`,d:`M177.3 207.2v11.5m23.8-11.5v11.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#5BA02E`,d:`M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4`}),J.createElement(`path`,{fill:`#92C110`,d:`M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4`}),J.createElement(`path`,{fill:`#F2D7AD`,d:`M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2`}))),hbe=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${Q(e.calc(s).mul(2).equal())} ${Q(a)}`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-body`]:{marginTop:s,padding:`${Q(s)} ${Q(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},gbe=e=>{let{componentCls:t}=e;return{[`${t}-success ${t}-icon`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon`]:{color:e.resultWarningIconColor}}},_be=e=>[hbe(e),gbe(e)],vbe=dd(`Result`,e=>{let t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning;return _be(bl(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295}))},e=>{let{fontSizeHeading3:t,fontSize:n,paddingLG:r}=e;return{titleFontSize:t,subtitleFontSize:n,iconFontSize:sp(t)?t*3:`calc(${t} * 3)`,extraMargin:`${r}px 0 0 0`}}),ybe=()=>J.createElement(`svg`,{width:`251`,height:`294`},J.createElement(`title`,null,`Unauthorized`),J.createElement(`g`,{fill:`none`,fillRule:`evenodd`},J.createElement(`path`,{fill:`#E4EBF7`,d:`M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129`}),J.createElement(`path`,{fill:`#FFF`,d:`M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6`}),J.createElement(`path`,{stroke:`#FFF`,d:`m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#FFF`,d:`M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2`}),J.createElement(`path`,{fill:`#FFF`,d:`M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),J.createElement(`path`,{stroke:`#FFF`,d:`m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#FFF`,d:`M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4`}),J.createElement(`path`,{stroke:`#FFF`,d:`M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z`,strokeWidth:`2`}),J.createElement(`path`,{stroke:`#FFF`,d:`m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7`,strokeWidth:`2`}),J.createElement(`path`,{fill:`#A26EF4`,d:`M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0`}),J.createElement(`path`,{fill:`#FFF`,d:`m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7`}),J.createElement(`path`,{fill:`#FFF`,d:`M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7`}),J.createElement(`path`,{fill:`#5BA02E`,d:`M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6`}),J.createElement(`path`,{fill:`#92C110`,d:`M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6`}),J.createElement(`path`,{fill:`#F2D7AD`,d:`M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3`}),J.createElement(`path`,{fill:`#FFF`,d:`M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2`}),J.createElement(`path`,{fill:`#FFB594`,d:`M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26`}),J.createElement(`path`,{fill:`#FFF`,d:`M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M78.2 94.7s.9 7.4-5 13`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.9`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z`}),J.createElement(`path`,{fill:`#FFB594`,d:`m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9`}),J.createElement(`path`,{fill:`#5C2552`,d:`M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1`}),J.createElement(`path`,{stroke:`#DB836E`,d:`m100.8 77.1 1.7-1-1-4.3.7-1.4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#552950`,d:`M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M91.1 86.8s5.3 5 12.7 2.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#DB836E`,d:`M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2`}),J.createElement(`path`,{stroke:`#5C2552`,d:`M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M64 84.8s-6 10-13.5 10`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),J.createElement(`path`,{fill:`#FFC6A0`,d:`m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7`}),J.createElement(`path`,{stroke:`#DB836E`,d:`M130.5 85.5s4.6 5.7 11.7 6.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),J.createElement(`path`,{stroke:`#E4EBF7`,d:`M121.7 105.7s-.4 8.6-1.3 13.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M115.8 161.5s-3.6-1.5-2.7-7.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#CBD1D1`,d:`M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6`}),J.createElement(`path`,{fill:`#2B0849`,d:`M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z`}),J.createElement(`path`,{fill:`#A4AABA`,d:`M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),J.createElement(`path`,{fill:`#CBD1D1`,d:`M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z`}),J.createElement(`path`,{fill:`#2B0849`,d:`M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2`}),J.createElement(`path`,{fill:`#A4AABA`,d:`M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1`}),J.createElement(`path`,{fill:`#7BB2F9`,d:`m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M108.5 221s2.7-1.2 6-4`,strokeLinecap:`round`,strokeLinejoin:`round`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),J.createElement(`path`,{fill:`#192064`,d:`M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4`}),J.createElement(`path`,{fill:`#FFF`,d:`M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7`}),J.createElement(`path`,{fill:`#192064`,d:`M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7`}),J.createElement(`path`,{stroke:`#648BD8`,d:`M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`})));K();var bbe=[`prefixCls`,`className`,`rootClassName`,`subTitle`,`title`,`style`,`children`,`status`,`icon`,`extra`,`styles`,`classNames`],xbe={success:Zd,error:ef,info:sf,warning:fbe},SD={404:pbe,500:mbe,403:ybe},Sbe=Object.keys(SD),Cbe=({icon:e,status:t,className:n,style:r})=>{if(Sbe.includes(`${t}`)){let e=SD[t];return J.createElement(`div`,{className:n,style:r},J.createElement(e,null))}let i=J.createElement(xbe[t]);return e===null||e===!1?null:J.createElement(`div`,{className:n,style:r},e||i)},wbe=({className:e,extra:t,style:n})=>op(t)?J.createElement(`div`,{className:e,style:n},t):null,CD=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:c=`info`,icon:l,extra:u,styles:d,classNames:f}=e,p=q(e,bbe),{getPrefixCls:m,direction:h,className:g,style:_,classNames:v,styles:y}=ko(`result`),b=G(G({},e),{},{status:c}),x=yp(_),S=yp(o),[C,w]=xp([v,f],[y,x,d,S],{props:b}),T=m(`result`,t),[E,D]=vbe(T),O=Z(T,`${T}-${c}`,n,g,r,{[`${T}-rtl`]:h===`rtl`},E,D,C.root),k=Z(`${T}-title`,C.title),A=Z(`${T}-subtitle`,C.subTitle),j=Z(`${T}-extra`,C.extra),M=Z(`${T}-body`,C.body),N=Z(`${T}-icon`,{[`${T}-image`]:Sbe.includes(`${c}`)},C.icon),P=G({},w.root),F=Oa(p,{aria:!0,data:!0});return J.createElement(`div`,G(G({},F),{},{className:O,style:P}),J.createElement(Cbe,{className:N,style:w.icon,status:c,icon:l}),op(a)&&J.createElement(`div`,{className:k,style:w.title},a),op(i)&&J.createElement(`div`,{className:A,style:w.subTitle},i),J.createElement(wbe,{className:j,extra:u,style:w.extra}),op(s)&&J.createElement(`div`,{className:M,style:w.body},s))};CD.PRESENTED_IMAGE_403=SD[403],CD.PRESENTED_IMAGE_404=SD[404],CD.PRESENTED_IMAGE_500=SD[500];var wD=Tpe,Tbe=[`prefixCls`,`className`,`checked`,`defaultChecked`,`disabled`,`loadingIcon`,`checkedChildren`,`unCheckedChildren`,`onClick`,`onChange`,`onKeyDown`,`styles`,`classNames`];function TD(){return TD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n=`rc-switch`,className:r,checked:i,defaultChecked:a,disabled:o,loadingIcon:s,checkedChildren:c,unCheckedChildren:l,onClick:u,onChange:d,onKeyDown:f,styles:p,classNames:m}=e,h=q(e,Tbe),[g,_]=$r(a!=null&&a,i);function v(e,t){let n=g;return o||(n=e,_(n),d==null||d(n,t)),n}function y(e){e.which===aa.LEFT?v(!1,e):e.which===aa.RIGHT&&v(!0,e),f==null||f(e)}function b(e){let t=v(!g,e);u==null||u(t,e)}let x=Z(n,r,{[`${n}-checked`]:g,[`${n}-disabled`]:o});return J.createElement(`button`,TD({},h,{type:`button`,role:`switch`,"aria-checked":g,disabled:o,className:x,ref:t,onKeyDown:y,onClick:b}),s,J.createElement(`span`,{className:`${n}-inner`},J.createElement(`span`,{className:Z(`${n}-inner-checked`,m==null?void 0:m.content),style:p==null?void 0:p.content},c),J.createElement(`span`,{className:Z(`${n}-inner-unchecked`,m==null?void 0:m.content),style:p==null?void 0:p.content},l)))});Ebe.displayName=`Switch`,K();var Dbe=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=Q(c(s).add(c(r).mul(2)).equal()),d=Q(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Q(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Q(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Obe=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},kbe=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:G(G({position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`},Gh()),{},{"&::before":G({position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`},Gh())}),[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Q(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Abe=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=Q(c(o).add(c(r).mul(2)).equal()),d=Q(c(a).mul(2).equal());return{[t]:{[l]:G(G({display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `)},Gh()),{},{[`${l}-checked, ${l}-unchecked`]:G({display:`flex`,alignItems:`center`,justifyContent:`center`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `)},Gh()),[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}}),[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},jbe=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:G(G(G(G({},td(e)),{},{position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:Q(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`},Gh()),{},{[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}},od(e)),{},{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}})}},Mbe=dd(`Switch`,e=>{let t=bl(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[jbe(t),Abe(t),kbe(t),Obe(t),Dbe(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Hl(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}});K();var Nbe=[`prefixCls`,`size`,`disabled`,`loading`,`className`,`rootClassName`,`style`,`checked`,`value`,`defaultChecked`,`defaultValue`,`onChange`,`styles`,`classNames`],Pbe=J.forwardRef((e,t)=>{var n;let{prefixCls:r,size:i,disabled:a,loading:o,className:s,rootClassName:c,style:l,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:m,styles:h,classNames:g}=e,_=q(e,Nbe),[v,y]=$r((n=f==null?p:f)!=null&&n,u==null?d:u),{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:T}=ko(`switch`),E=J.useContext(gm),D=(a==null?E:a)||o,O=b(`switch`,r),[k,A]=Mbe(O),j=vh(i),M=G(G({},e),{},{size:j,disabled:D}),N=yp(C),P=yp(l),[F,I]=xp([w,g],[T,N,h,P],{props:M}),L=J.createElement(`div`,{className:Z(`${O}-handle`,F.indicator),style:I.indicator},o&&J.createElement(Fm,{className:`${O}-loading-icon`})),R=Z(S,{[`${O}-small`]:j===`small`,[`${O}-loading`]:o,[`${O}-rtl`]:x===`rtl`},s,c,F.root,k,A);return J.createElement(_h,{component:`Switch`,disabled:D},J.createElement(Ebe,G(G({},_),{},{classNames:F,styles:I,checked:v,onChange:(...e)=>{y(e[0]),m==null||m(...e)},prefixCls:O,className:R,style:I.root,disabled:D,ref:t,loadingIcon:L})))});Pbe.__ANT_SWITCH=!0;var ED={},DD=`rc-table-internal-hook`;function OD(e){let t=J.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=J.useRef(e);r.current=e;let[i]=J.useState(()=>({getValue:()=>r.current,listeners:new Set}));return Xr(()=>{(0,Xa.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),J.createElement(t.Provider,{value:i},n)},defaultValue:e}}function kD(e,t){let n=qr(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=J.useContext(e==null?void 0:e.Context),{listeners:i,getValue:a}=r||{},o=J.useRef();o.current=n(r?a():e==null?void 0:e.defaultValue);let[,s]=J.useState({});return Xr(()=>{if(!r)return;function e(e){let t=n(e);ya(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function AD(){return AD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let s=i?{ref:o}:{},c=J.useRef(0),l=J.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,J.createElement(e.Provider,{value:c.current},J.createElement(n,AD({},a,s)))):J.createElement(n,AD({},a,s))};return i?J.forwardRef(a):a}function r(e,n){let r=_i(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),J.createElement(e,AD({},n,a))};return J.memo(r?J.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:Ibe,responseImmutable:Lbe,useImmutableMark:Rbe}=Fbe(),{makeImmutable:zbe,responseImmutable:jD,useImmutableMark:Bbe}=Fbe(),MD=OD(),Vbe=J.createContext({renderWithProps:!1}),Hbe=`RC_TABLE_KEY`;function Ube(e){return e==null?[]:Array.isArray(e)?e:[e]}function ND(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||Ube(i).join(`-`)||Hbe;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function PD(e){return e!=null}function Wbe(e){return typeof e==`number`&&!Number.isNaN(e)}function Gbe(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!J.isValidElement(e)}function Kbe(e,t,n,r,i,a){let o=J.useContext(Vbe);return ai(()=>{if(PD(r))return[r];let a=Ra(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);Gbe(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[Bbe(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!ya(e,t,!0)})}function qbe(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function Jbe(e,t){return kD(MD,n=>[qbe(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}K();function FD(){return FD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r,i=e===!0?{showTitle:!0}:e;if(i&&(i.showTitle||t===`header`)){var a;if(typeof n==`string`||typeof n==`number`)r=n.toString();else if(J.isValidElement(n)&&typeof((a=n.props)==null?void 0:a.children)==`string`){var o;r=(o=n.props)==null?void 0:o.children}}return r},ID=J.memo(e=>{var t,n,r,i,a,o,s;let{component:c,children:l,ellipsis:u,scope:d,prefixCls:f,className:p,style:m,align:h,record:g,render:_,dataIndex:v,renderIndex:y,shouldCellUpdate:b,index:x,rowType:S,colSpan:C,rowSpan:w,fixStart:T,fixEnd:E,fixedStartShadow:D,fixedEndShadow:O,offsetFixedStartShadow:k,offsetFixedEndShadow:A,zIndex:j,zIndexReverse:M,appendNode:N,additionalProps:P={},isSticky:F}=e,I=`${f}-cell`,{allColumnsFixedLeft:L,rowHoverable:R}=kD(MD,[`allColumnsFixedLeft`,`rowHoverable`]),[z,B]=Kbe(g,v,y,l,_,b),V={},H=typeof T==`number`&&!L,U=typeof E==`number`&&!L,[ee,te]=kD(MD,({scrollInfo:e})=>{if(!H&&!U)return[!1,!1];let[t,n]=e;return[(H&&D&&t)-k>=1,(U&&O&&n-t)-A>1]});H&&(V.insetInlineStart=T,V[`--z-offset`]=j,V[`--z-offset-reverse`]=M),U&&(V.insetInlineEnd=E,V[`--z-offset`]=j,V[`--z-offset-reverse`]=M);let ne=(t=(n=(r=B==null?void 0:B.colSpan)==null?P.colSpan:r)==null?C:n)==null?1:t,re=(i=(a=(o=B==null?void 0:B.rowSpan)==null?P.rowSpan:o)==null?w:a)==null?1:i,[ie,ae]=Jbe(x,re),oe=qr(e=>{var t;g&&ae(x,x+re-1),P==null||(t=P.onMouseEnter)==null||t.call(P,e)}),se=qr(e=>{var t;g&&ae(-1,-1),P==null||(t=P.onMouseLeave)==null||t.call(P,e)});if(ne===0||re===0)return null;let ce=(s=P.title)==null?Ybe({rowType:S,ellipsis:u,children:z}):s,le=Z(I,p,{[`${I}-fix`]:H||U,[`${I}-fix-start`]:H,[`${I}-fix-end`]:U,[`${I}-fix-start-shadow`]:D,[`${I}-fix-start-shadow-show`]:D&&ee,[`${I}-fix-end-shadow`]:O,[`${I}-fix-end-shadow-show`]:O&&te,[`${I}-ellipsis`]:u,[`${I}-with-append`]:N,[`${I}-fix-sticky`]:(H||U)&&F,[`${I}-row-hover`]:!B&&ie},P.className,B==null?void 0:B.className),ue={};h&&(ue.textAlign=h);let de=G(G(G(G(G({},B==null?void 0:B.style),V),ue),P.style),m),fe=z;return typeof fe==`object`&&!Array.isArray(fe)&&!J.isValidElement(fe)&&(fe=null),u&&(D||O)&&(fe=J.createElement(`span`,{className:`${I}-content`},fe)),J.createElement(c,FD({},B,P,{className:le,style:de,title:ce,scope:d,onMouseEnter:R?oe:void 0,onMouseLeave:R?se:void 0,colSpan:ne===1?null:ne,rowSpan:re===1?null:re}),N,fe)});function LD(e){return e.fixed===`start`}function RD(e){return e.fixed===`end`}function zD(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;LD(i)&&LD(a)?o=r.start[e]:RD(a)&&RD(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!LD(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!RD(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;tt;--e)RD(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var Xbe=J.createContext({});function BD(){return BD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=kD(MD,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=J.useContext(Xbe),d=n+i-1+1===c?i+1:i,f=J.useMemo(()=>zD(n,n+d-1,u,l),[n,d,u,l]);return J.createElement(ID,BD({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},Qbe=[`children`],$be=e=>{let{children:t}=e,n=q(e,Qbe);return J.createElement(`tr`,n,t)},VD=e=>{let{children:t}=e;return t};VD.Row=$be,VD.Cell=Zbe;var HD=jD(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=kD(MD,`prefixCls`),a=r.length-1,o=r[a],s=J.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?a:null}),[o,r,a,n]);return J.createElement(Xbe.Provider,{value:s},J.createElement(`tfoot`,{className:`${i}-summary`},t))}),exe=VD;function txe(e){return null}function nxe(e){return null}function rxe(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o{if(n!=null&&n.size){let i=[];for(let a=0;a<(e==null?void 0:e.length);a+=1){let o=e[a];rxe(i,o,0,t,n,r,a)}return i}return e==null?void 0:e.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}K();function axe(e,t,n,r){let i=kD(MD,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=qr(l),b=d==null?void 0:d(e,n),x=b==null?void 0:b.onClick,S=(t,...n)=>{f&&g&&l(e,t),x==null||x(t,...n)},C;typeof p==`string`?C=p:typeof p==`function`&&(C=p(e,n,r));let w=ND(a);return G(G({},i),{},{columnsKey:w,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:G(G({},b),{},{className:Z(C,b==null?void 0:b.className),onClick:S})})}var oxe=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=kD(MD,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=J.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),J.createElement(r,{className:a,style:{display:o?null:`none`}},J.createElement(ID,{component:i,prefixCls:t,colSpan:s},h))};function sxe({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return J.createElement(`span`,{className:Z(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return J.createElement(`span`,{className:Z(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function cxe(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function lxe(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}K();function UD(){return UD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=axe(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:v,expandedRowRender:y,rowProps:b,expanded:x,rowSupportExpand:S}=h,C=J.useRef(!1);C.current||(C.current=x);let w=lxe(v,a,o,u),T=J.createElement(d,UD({},b,{"data-row-key":c,className:Z(t,`${g}-row`,`${g}-row-level-${u}`,b==null?void 0:b.className,r.row,{[w]:u>=1}),style:G(G(G({},n),b==null?void 0:b.style),i.row)}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:v,appendCellNode:y,additionalCellProps:b}=uxe(h,e,t,u,o,l,m==null?void 0:m.offset);return J.createElement(ID,UD({className:Z(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b}))})),E;if(S&&(C.current||x)){let e=y(a,o,u+1,x);E=J.createElement(oxe,{expanded:x,className:Z(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,w),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m==null?void 0:m.sticky},e)}return J.createElement(J.Fragment,null,T,E)}),fxe=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=J.useRef(null);return Xr(()=>{i.current&&n(t,i.current.offsetWidth)},[]),J.createElement(go,{data:t},J.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},J.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},pxe=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=J.useRef(null),{measureRowRender:a}=kD(MD,[`measureRowRender`]),o=J.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},J.createElement(go.Collection,{onBatchResize:e=>{Li(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e),i=t==null?void 0:t.title,a=J.isValidElement(i)?J.cloneElement(i,{ref:null}):i;return J.createElement(fxe,{key:e,columnKey:e,onColumnResize:n,title:a})})));return typeof a==`function`?a(o):o},mxe=jD(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=kD(MD,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=ixe(t,l,c,s),v=J.useMemo(()=>_.map(e=>e.rowKey),[_]),y=J.useRef({renderWithProps:!1}),b=J.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e{let{record:n,indent:r,index:i,rowKey:a}=e;return J.createElement(dxe,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:v,record:n,index:t,renderIndex:i,rowComponent:S,cellComponent:C,scopeCellComponent:w,indent:r,expandedRowInfo:b})}):J.createElement(oxe,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:S,cellComponent:C,colSpan:o.length,isEmpty:!0},u);let E=ND(o);return J.createElement(Vbe.Provider,{value:y.current},J.createElement(x,{style:g.wrapper,className:Z(`${r}-tbody`,h.wrapper)},n&&J.createElement(pxe,{prefixCls:r,columnsKey:E,onColumnResize:a,columns:o}),T))});K();var hxe=[`expandable`],WD=`RC_TABLE_INTERNAL_COL_DEFINE`;function gxe(e){let{expandable:t}=e,n=q(e,hxe),r;return r=`expandable`in e?G(G({},n),t):n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var _xe=[`columnType`];function GD(){return GD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=kD(MD,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[WD],i===`auto`&&(l=o.minWidth)),r||l||c||s){let t=c||{},{columnType:n}=t,i=q(t,_xe);a.unshift(J.createElement(`col`,GD({key:e,style:{width:r,minWidth:l}},i))),s=!0}}return a.length>0?J.createElement(`colgroup`,null,a):null};K();var yxe=[`className`,`style`,`noData`,`columns`,`flattenColumns`,`colWidths`,`colGroup`,`columCount`,`stickyOffsets`,`direction`,`fixHeader`,`stickyTopOffset`,`stickyBottomOffset`,`stickyClassName`,`scrollX`,`tableLayout`,`onScroll`,`maxContentScroll`,`children`];function bxe(e,t){return(0,J.useMemo)(()=>{let n=[];for(let r=0;r{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:v,maxContentScroll:y,children:b}=e,x=q(e,yxe),{prefixCls:S,scrollbarSize:C,isSticky:w,getComponent:T}=kD(MD,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),E=T([`header`,`table`],`table`),D=w&&!f?0:C,O=J.useRef(null),k=J.useCallback(e=>{mi(t,e),mi(O,e)},[]);J.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),v({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=O.current;return t==null||t.addEventListener(`wheel`,e,{passive:!1}),()=>{t==null||t.removeEventListener(`wheel`,e)}},[]);let A=o[o.length-1],j={fixed:A?A.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${S}-cell-scrollbar`})},M=(0,J.useMemo)(()=>D?[...a,j]:a,[D,a]),N=(0,J.useMemo)(()=>D?[...o,j]:o,[D,o]),P=(0,J.useMemo)(()=>{let{start:e,end:t}=u;return G(G({},u),{},{start:e,end:[...t.map(e=>e+D),0],isSticky:w})},[D,u,w]),F=bxe(s,l),I=(0,J.useMemo)(()=>{let e=!F||!F.length||F.every(e=>!e);return i||e},[i,F]);return J.createElement(`div`,{style:G(G({overflow:`hidden`},w?{top:p,bottom:m}:{}),r),ref:k,className:Z(n,{[h]:!!h})},J.createElement(E,{style:{tableLayout:_,minWidth:`100%`,width:g}},I?c:J.createElement(vxe,{colWidths:[...F,D],columCount:l+1,columns:N}),b(G(G({},x),{},{stickyOffsets:P,columns:M,flattenColumns:N}))))}),Sxe=J.memo(xxe);function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=kD(MD,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=ND(t.map(e=>e.column));return J.createElement(i,KD({},d,{className:c.row,style:l.row}),t.map((e,t)=>{var i;let{column:o,colStart:s,colEnd:c,colSpan:l}=e,d=zD(s,c,r,n),p=(o==null||(i=o.onHeaderCell)==null?void 0:i.call(o,o))||{};return J.createElement(ID,KD({},e,{scope:o.title?l>1?`colgroup`:`col`:null,ellipsis:o.ellipsis,align:o.align,component:a,prefixCls:u,key:f[t]},d,{additionalProps:p,rowType:`header`}))}))};function wxe(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:Z(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var Txe=jD(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=kD(MD,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=J.useMemo(()=>wxe(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return J.createElement(f,{className:Z(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>J.createElement(Cxe,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});K();function Exe(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function Dxe(e,t,n){return J.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=Exe(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n=G({},e),r=Exe(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}K();var Oxe=[`children`];function qD(e){return Ia(e).filter(e=>J.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r}=n,i=q(n,Oxe),a=G({key:t},i);return r&&(a.children=qD(r)),a})}function kxe(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?G(G({},e),{},{children:kxe(t)}):e})}function Axe(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...Axe(s,o).map(e=>{var t;return G(G({},e),{},{fixed:(t=e.fixed)==null?a:t})})]:[...e,G(G({key:o},n),{},{fixed:a})]},[])}function jxe({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},v){let y=J.useMemo(()=>kxe((t||qD(n)||[]).slice()),[t,n]),b=J.useMemo(()=>{if(r){let t=y.slice();if(!t.includes(ED)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?y.length:e;n>=0&&t.splice(n,0,ED)}let n=t.indexOf(ED);t=t.filter((e,t)=>e!==ED||t===n);let r=y[n],f;f=h||(r?r.fixed:null);let g={[WD]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:!l||l(n),record:n,onExpand:s});return p?J.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===ED?g:e;return te!==ED)},[r,y,o,i,c,f,d]),x=J.useMemo(()=>{let e=b;return v&&(e=v(e)),e.length||(e=[{render:()=>null}]),e},[v,b,f]),[S,C]=Dxe(J.useMemo(()=>Axe(x),[x,f,g]),g,_);return[x,S,C]}function Mxe(e,t,n){let r=gxe(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||sxe,p=d||`children`,m=J.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=J.useState(()=>o||(s?cxe(t,n,p):[])),_=J.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,J.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function Nxe(e,t){let n=J.useMemo(()=>e.map((n,r)=>zD(r,r,e,t)),[e,t]);return ai(()=>n,[n],(e,t)=>!ya(e,t))}function Pxe(e){let t=(0,J.useRef)(e),[,n]=(0,J.useState)({}),r=(0,J.useRef)(null),i=(0,J.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,J.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function Fxe(e){let t=(0,J.useRef)(e||null),n=(0,J.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,J.useEffect)(()=>r,[]),[i,a]}function Ixe(){let[e,t]=J.useState(-1),[n,r]=J.useState(-1);return[e,n,J.useCallback((e,n)=>{t(e),r(n)},[])]}var Lxe=Jr()?window:null;function Rxe(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>Lxe}=typeof e==`object`?e:{},o=a()||Lxe,s=!!e;return J.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function zxe(e,t){return(0,J.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var Bxe=e=>{let{children:t,className:n,style:r}=e;return J.createElement(`div`,{className:n,style:r},t)};function Vxe(e){let t=Ii(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}K();var Hxe=`mouseup`,Uxe=`mousemove`,JD=`scroll`,Wxe=`resize`,Gxe=J.forwardRef((e,t)=>{var n,r;let{scrollBodyRef:i,onScroll:a,offsetScroll:o,container:s,direction:c}=e,l=kD(MD,`prefixCls`),u=((n=i.current)==null?void 0:n.scrollWidth)||0,d=((r=i.current)==null?void 0:r.clientWidth)||0,f=u&&d/u*d,p=J.useRef(null),[m,h]=Pxe({scrollLeft:0,isHiddenScrollBar:!0}),g=J.useRef({delta:0,x:0}),[_,v]=J.useState(!1),y=J.useRef(null);J.useEffect(()=>()=>{Fa.cancel(y.current)},[]);let b=()=>{v(!1)},x=e=>{e.persist(),g.current.delta=e.pageX-m.scrollLeft,g.current.x=0,v(!0),e.preventDefault()},S=e=>{var t;let{buttons:n}=e||((t=window)==null?void 0:t.event);if(!_||n===0){_&&v(!1);return}let r=g.current.x+e.pageX-g.current.x-g.current.delta,i=c===`rtl`;r=Math.max(i?f-d:0,Math.min(i?0:d-f,r)),(!i||Math.abs(r)+Math.abs(f){Fa.cancel(y.current),y.current=Fa(()=>{if(!i.current)return;let e=Vxe(i.current).top,t=e+i.current.offsetHeight,n=s===window?document.documentElement.scrollTop+window.innerHeight:Vxe(s).top+s.clientHeight;t-ca()<=n||e>=n-o?h(e=>G(G({},e),{},{isHiddenScrollBar:!0})):h(e=>G(G({},e),{},{isHiddenScrollBar:!1}))})},w=e=>{h(t=>G(G({},t),{},{scrollLeft:e/u*d||0}))};return J.useImperativeHandle(t,()=>({setScrollLeft:w,checkScrollBarVisible:C})),J.useEffect(()=>(document.body.addEventListener(Hxe,b,!1),document.body.addEventListener(Uxe,S,!1),C(),()=>{document.body.removeEventListener(Hxe,b),document.body.removeEventListener(Uxe,S)}),[f,_]),J.useEffect(()=>{if(i.current){let e=[],t=Ii(i.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(JD,C,!1)}),window.addEventListener(Wxe,C,!1),window.addEventListener(JD,C,!1),s.addEventListener(JD,C,!1),()=>{e.forEach(e=>{e.removeEventListener(JD,C)}),window.removeEventListener(Wxe,C),window.removeEventListener(JD,C),s.removeEventListener(JD,C)}}},[s]),J.useEffect(()=>{m.isHiddenScrollBar||h(e=>{let t=i.current;return t?G(G({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[m.isHiddenScrollBar]),u<=d||!f||m.isHiddenScrollBar?null:J.createElement(`div`,{style:{height:ca(),width:d,bottom:o},className:`${l}-sticky-scroll`},J.createElement(`div`,{onMouseDown:x,ref:p,className:Z(`${l}-sticky-scroll-bar`,{[`${l}-sticky-scroll-bar-active`]:_}),style:{width:`${f}px`,transform:`translate3d(${m.scrollLeft}px, 0, 0)`}}))});K();function YD(){return YD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n,r;let i=G({rowKey:`key`,prefixCls:XD,emptyText:Jxe},e),{prefixCls:a,className:o,rowClassName:s,style:c,classNames:l,styles:u,data:d,rowKey:f,scroll:p,tableLayout:m,direction:h,title:g,footer:_,summary:v,caption:y,id:b,showHeader:x,components:S,emptyText:C,onRow:w,onHeaderRow:T,measureRowRender:E,onScroll:D,internalHooks:O,transformColumns:k,internalRefs:A,tailor:j,getContainerWidth:M,sticky:N,rowHoverable:P=!0}=i,F=d||Kxe,I=!!F.length,L=O===DD,R=J.useCallback((e,t)=>Ra(S,e)||t,[S]),z=J.useMemo(()=>typeof f==`function`?f:e=>e&&e[f],[f]),B=R([`body`]),[V,H,U]=Ixe(),[ee,te,ne,re,ie,ae]=Mxe(i,F,z),oe=p==null?void 0:p.x,[se,ce]=J.useState(0),[le,ue,de]=jxe(G(G(G({},i),ee),{},{expandable:!!ee.expandedRowRender,columnTitle:ee.columnTitle,expandedKeys:ne,getRowKey:z,onTriggerExpand:ae,expandIcon:re,expandIconColumnIndex:ee.expandIconColumnIndex,direction:h,scrollWidth:L&&j&&typeof oe==`number`?oe:null,clientWidth:se}),L?k:null),fe=de==null?oe:de,pe=J.useMemo(()=>({columns:le,flattenColumns:ue}),[le,ue]),me=J.useRef(null),he=J.useRef(null),W=J.useRef(null),ge=J.useRef(null);J.useImperativeHandle(t,()=>({nativeElement:me.current,scrollTo:e=>{var t;if(W.current instanceof HTMLElement){let{index:t,top:r,key:i,offset:a,align:o=`nearest`}=e;if(Wbe(r)){var n;(n=W.current)==null||n.scrollTo({top:r})}else{let e=i==null?z(F[t]):i,n=W.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:o}),a)){let e=W.current;e.scrollTo({top:e.scrollTop+a})}}}else(t=W.current)!=null&&t.scrollTo&&W.current.scrollTo(e)}}));let _e=J.useRef(null),[K,ve]=J.useState(!1),[q,ye]=J.useState(!1),[be,xe]=J.useState(new Map),Se=ND(ue).map(e=>be.get(e)),Ce=J.useMemo(()=>Se,[Se.join(`_`)]),we=zxe(Ce,ue),Te=p&&PD(p.y),Ee=p&&PD(fe)||!!ee.fixed,De=Ee&&ue.some(({fixed:e})=>e),Oe=J.useRef(null),{isSticky:ke,offsetHeader:Ae,offsetSummary:je,offsetScroll:Me,stickyClassName:Ne,container:Pe}=Rxe(N,a),Fe=J.useMemo(()=>v==null?void 0:v(F),[v,F]),Ie=(Te||ke)&&J.isValidElement(Fe)&&Fe.type===VD&&Fe.props.fixed,Le,Re,ze;Te&&(Re={overflowY:I?`scroll`:`auto`,maxHeight:p.y}),Ee&&(Le={overflowX:`auto`},Te||(Re={overflowY:`hidden`}),ze={width:fe===!0?`auto`:fe,minWidth:`100%`});let Be=J.useCallback((e,t)=>{xe(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Ve,He]=Fxe(null),[Ue]=J.useState(()=>new WeakMap);function We(e,t){if(!t)return;if(typeof t==`function`){t(e);return}let n=Ue.get(t);if(n&&clearTimeout(n),t.scrollLeft!==e){t.scrollLeft=e;let n=setTimeout(()=>{t.scrollLeft!==e&&(t.scrollLeft=e)},0);Ue.set(t,n)}}let[Ge,Ke]=J.useState([0,0]),qe=qr(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||qxe;if(!He()||He()===r){var i;Ve(r),We(n,he.current),We(n,W.current),We(n,_e.current),We(n,(i=Oe.current)==null?void 0:i.setScrollLeft)}let a=e||he.current;if(a){let e=L&&j&&typeof fe==`number`?fe:a.scrollWidth,t=a.clientWidth,r=Math.abs(n);if(Ke(n=>{let i=[r,e-t];return ya(n,i)?n:i}),e===t){ve(!1),ye(!1);return}ve(r>0),ye(r{qe(e),D==null||D(e)}),Ye=()=>{if(Ee&&W.current){var e;qe({currentTarget:Ii(W.current),scrollLeft:(e=W.current)==null?void 0:e.scrollLeft})}else ve(!1),ye(!1)},Xe=e=>{var t,n,r;(t=Oe.current)==null||t.checkScrollBarVisible();let i=(n=e==null?(r=me.current)==null?void 0:r.offsetWidth:e)==null?0:n;L&&M&&me.current&&(i=M(me.current,i)||i),i!==se&&(Ye(),ce(i))};Xr(()=>{Ee&&Xe()},[Ee]);let Ze=J.useRef(!1);J.useEffect(()=>{Ze.current&&Ye()},[Ee,d,le.length]),J.useEffect(()=>{Ze.current=!0},[]);let[Qe,$e]=J.useState(0);Xr(()=>{(!j||!L)&&(W.current instanceof Element?$e(la(W.current).width):$e(la(ge.current).width))},[]),J.useEffect(()=>{L&&A&&(A.body.current=W.current)});let et=J.useCallback(e=>J.createElement(J.Fragment,null,J.createElement(Txe,e),Ie===`top`&&J.createElement(HD,e,Fe)),[Ie,Fe]),tt=J.useCallback(e=>J.createElement(HD,e,Fe),[Fe]),nt=R([`table`],`table`),rt=J.useMemo(()=>m||(De?fe===`max-content`?`auto`:`fixed`:Te||ke||ue.some(({ellipsis:e})=>e)?`fixed`:`auto`),[Te,De,ue,m,ke]),it,at={colWidths:Ce,columCount:ue.length,stickyOffsets:we,onHeaderRow:T,fixHeader:Te,scroll:p},ot=J.useMemo(()=>I?null:typeof C==`function`?C():C,[I,C]),st=J.createElement(mxe,{data:F,measureColumnWidth:Te||Ee||ke}),ct=J.createElement(vxe,{colWidths:ue.map(({width:e})=>e),columns:ue}),lt=y==null?void 0:J.createElement(`caption`,{className:`${a}-caption`},y),ut=Oa(i,{data:!0}),dt=Oa(i,{aria:!0});if(Te||ke){let e;typeof B==`function`?(e=B(F,{scrollbarSize:Qe,ref:W,onScroll:qe}),at.colWidths=ue.map(({width:e},t)=>{let n=t===ue.length-1?e-Qe:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=J.createElement(`div`,{style:G(G({},Le),Re),onScroll:Je,ref:W,className:`${a}-body`},J.createElement(nt,YD({style:G(G({},ze),{},{tableLayout:rt})},dt),lt,ct,st,!Ie&&Fe&&J.createElement(HD,{stickyOffsets:we,flattenColumns:ue},Fe)));let t=G(G(G({noData:!F.length,maxContentScroll:Ee&&fe===`max-content`},at),pe),{},{direction:h,stickyClassName:Ne,scrollX:fe,tableLayout:rt,onScroll:qe});it=J.createElement(J.Fragment,null,x!==!1&&J.createElement(Sxe,YD({},t,{stickyTopOffset:Ae,className:`${a}-header`,ref:he,colGroup:ct}),et),e,Ie&&Ie!==`top`&&J.createElement(Sxe,YD({},t,{stickyBottomOffset:je,className:`${a}-summary`,ref:_e,colGroup:ct}),tt),ke&&W.current&&W.current instanceof Element&&J.createElement(Gxe,{ref:Oe,offsetScroll:Me,scrollBodyRef:W,onScroll:qe,container:Pe,direction:h}))}else it=J.createElement(`div`,{style:G(G(G({},Le),Re),u==null?void 0:u.content),className:Z(`${a}-content`,l==null?void 0:l.content),onScroll:qe,ref:W},J.createElement(nt,YD({style:G(G({},ze),{},{tableLayout:rt})},dt),lt,ct,x!==!1&&J.createElement(Txe,YD({},at,pe)),st,Fe&&J.createElement(HD,{stickyOffsets:we,flattenColumns:ue},Fe)));let ft=G({},c);ke&&(ft[`--columns-count`]=ue.length);let pt=J.createElement(`div`,YD({className:Z(a,o,{[`${a}-rtl`]:h===`rtl`,[`${a}-fix-start-shadow`]:Ee,[`${a}-fix-end-shadow`]:Ee,[`${a}-fix-start-shadow-show`]:Ee&&K,[`${a}-fix-end-shadow-show`]:Ee&&q,[`${a}-layout-fixed`]:m===`fixed`,[`${a}-fixed-header`]:Te,[`${a}-fixed-column`]:De,[`${a}-scroll-horizontal`]:Ee,[`${a}-has-fix-start`]:(n=ue[0])==null?void 0:n.fixed,[`${a}-has-fix-end`]:((r=ue[ue.length-1])==null?void 0:r.fixed)===`end`}),style:ft,id:b,ref:me},ut),g&&J.createElement(Bxe,{className:Z(`${a}-title`,l==null?void 0:l.title),style:u==null?void 0:u.title},g(F)),J.createElement(`div`,{ref:ge,className:Z(`${a}-container`,l==null?void 0:l.section),style:u==null?void 0:u.section},it),_&&J.createElement(Bxe,{className:Z(`${a}-footer`,l==null?void 0:l.footer),style:u==null?void 0:u.footer},_(F)));Ee&&(pt=J.createElement(go,{onResize:({offsetWidth:e})=>Xe(e)},pt));let mt=Nxe(ue,we),ht=J.useMemo(()=>({scrollX:fe,scrollInfo:Ge,classNames:l,styles:u,prefixCls:a,getComponent:R,scrollbarSize:Qe,direction:h,fixedInfoList:mt,isSticky:ke,componentWidth:se,fixHeader:Te,fixColumn:De,horizonScroll:Ee,tableLayout:rt,rowClassName:s,expandedRowClassName:ee.expandedRowClassName,expandIcon:re,expandableType:te,expandRowByClick:ee.expandRowByClick,expandedRowRender:ee.expandedRowRender,expandedRowOffset:ee.expandedRowOffset,onTriggerExpand:ae,expandIconColumnIndex:ee.expandIconColumnIndex,indentSize:ee.indentSize,allColumnsFixedLeft:ue.every(e=>e.fixed===`start`),emptyNode:ot,columns:le,flattenColumns:ue,onColumnResize:Be,colWidths:Ce,hoverStartRow:V,hoverEndRow:H,onHover:U,rowExpandable:ee.rowExpandable,onRow:w,getRowKey:z,expandedKeys:ne,childrenColumnName:ie,rowHoverable:P,measureRowRender:E}),[fe,Ge,l,u,a,R,Qe,h,mt,ke,se,Te,De,Ee,rt,s,ee.expandedRowClassName,re,te,ee.expandRowByClick,ee.expandedRowRender,ee.expandedRowOffset,ae,ee.expandIconColumnIndex,ee.indentSize,ot,le,ue,Be,Ce,V,H,U,ee.rowExpandable,w,z,ne,ie,P,E]);return J.createElement(MD.Provider,{value:ht},pt)}),ZD=e=>zbe(Yxe,e),QD=ZD();QD.EXPAND_COLUMN=ED,QD.INTERNAL_HOOKS=DD,QD.Column=txe,QD.ColumnGroup=nxe,QD.Summary=exe;var $D=OD(null),eO=OD(null);K();function tO(){return tO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=kD(eO,[`columnsOffset`]),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:x}=uxe(t,n,r,i,a),{style:S,colSpan:C=1,rowSpan:w=1}=x,T=Xxe(r-1,C,_),E=C>1?g-T:0,D=G(G(G({},S),l),{},{flex:`0 0 ${T}px`,width:`${T}px`,marginRight:E,pointerEvents:`auto`}),O=J.useMemo(()=>d?w<=1:C===0||w===0||w>1,[w,C,d]);O?D.visibility=`hidden`:d&&(D.height=f==null?void 0:f(w));let k=O?()=>null:p,A={};return(w===0||C===0)&&(A.rowSpan=1,A.colSpan=1),J.createElement(ID,tO({className:Z(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:v,record:c,index:a,renderIndex:s,dataIndex:m,render:k,shouldCellUpdate:n.shouldCellUpdate},y,{appendNode:b,additionalProps:G(G({},x),{},{style:D},A)}))};K();var Qxe=[`data`,`index`,`className`,`rowKey`,`style`,`extra`,`getHeight`];function nO(){return nO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n,r;let{data:i,index:a,className:o,rowKey:s,style:c,extra:l,getHeight:u}=e,d=q(e,Qxe),{record:f,indent:p,index:m}=i,{scrollX:h,flattenColumns:g,prefixCls:_,fixColumn:v,componentWidth:y,classNames:b,styles:x}=kD(MD,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:S}=kD($D,[`getComponent`]),C=axe(f,s,a,p),w=S([`body`,`row`],`div`),T=S([`body`,`cell`],`div`),{rowSupportExpand:E,expanded:D,rowProps:O,expandedRowRender:k,expandedRowClassName:A}=C,j=lxe(A,f,a,p),M;if(E&&D){let e=k(f,a,p+1,D),t={};v&&(t={style:{"--virtual-width":`${y}px`}});let n=`${_}-expanded-row-cell`;M=J.createElement(w,{className:Z(`${_}-expanded-row`,`${_}-expanded-row-level-${p+1}`,j)},J.createElement(ID,{component:T,prefixCls:_,className:Z(n,{[`${n}-fixed`]:v}),additionalProps:t},e))}let N=G(G({},c),{},{width:h});l&&(N.position=`absolute`,N.pointerEvents=`none`);let P=J.createElement(w,nO({},O,d,{"data-row-key":s,ref:E?null:t,className:Z(o,`${_}-row`,O==null?void 0:O.className,b==null||(n=b.body)==null?void 0:n.row,{[j]:p>=1,[`${_}-row-extra`]:l}),style:G(G(G({},N),O==null?void 0:O.style),x==null||(r=x.body)==null?void 0:r.row)}),g.map((e,t)=>{var n,r;return J.createElement(Zxe,{key:t,className:b==null||(n=b.body)==null?void 0:n.cell,style:x==null||(r=x.body)==null?void 0:r.cell,component:T,rowInfo:C,column:e,colIndex:t,indent:p,index:a,renderIndex:m,record:f,inverse:l,getHeight:u})}));return E?J.createElement(`div`,{ref:t},P,M):P}));K();var $xe=[`align`,`offset`],eSe={start:`top`,end:`bottom`,nearest:`auto`},tSe=jD(J.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=kD(MD,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=kD($D),_=J.useRef(null),v=ixe(n,l,s,o),y=J.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),b=J.useMemo(()=>y.map(e=>e[2]),[y]);J.useEffect(()=>{y.forEach(([e,t])=>{a(e,t)})},[y]),J.useImperativeHandle(t,()=>{var e;let t={scrollTo:e=>{var t,n;let{align:r,offset:i}=e,a=q(e,$xe),o=(t=eSe[r])==null?i?`top`:`auto`:t;(n=_.current)==null||n.scrollTo(G(G({},a),{},{offset:i,align:o}))},nativeElement:(e=_.current)==null?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:()=>{var e;return((e=_.current)==null?void 0:e.getScrollInfo().x)||0},set:e=>{var t;(t=_.current)==null||t.scrollTo({left:e})}}),Object.defineProperty(t,"scrollTop",{get:()=>{var e;return((e=_.current)==null?void 0:e.getScrollInfo().y)||0},set:e=>{var t;(t=_.current)==null||t.scrollTo({top:e})}}),t});let x=(e,t)=>{var n;let r=(n=v[t])==null?void 0:n.record,{onCell:i}=e;if(i){var a;let e=i(r,t);return(a=e==null?void 0:e.rowSpan)==null?1:a}return 1},S=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>x(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>x(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>x(e,n)!==1),u=n;for(let e=n;ex(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)v[e]&&i.some(t=>x(t,e)>1)&&d.push(e);return d.map(e=>{let t=v[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=v[i];if(!a||!a.record){let e=Math.min(i,v.length-1),t=v[e],a=o(t.record,e),s=r(n,a);return s.bottom-s.top}let s=o(a.record,i),c=r(n,s);return c.bottom-c.top},s=r(n);return J.createElement(rO,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},C=J.useMemo(()=>({columnsOffset:b}),[b]),w=`${c}-tbody`,T=h([`body`,`wrapper`]),E={};return f&&(E.position=`sticky`,E.bottom=0,typeof f==`object`&&f.offsetScroll&&(E.bottom=f.offsetScroll)),J.createElement(eO.Provider,{value:C},J.createElement(oy,{fullHeight:!1,ref:_,prefixCls:`${w}-virtual`,styles:{horizontalScrollBar:E},className:w,height:p,itemHeight:m||24,data:v,itemKey:e=>o(e.record),component:T,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{var t;r({currentTarget:(t=_.current)==null?void 0:t.nativeElement,scrollLeft:e})},onScroll:g,extraRender:S},(e,t,n)=>{let r=o(e.record,t);return J.createElement(rO,{data:e,rowKey:r,index:t,style:n.style})}))}));K();function iO(){return iO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{ref:n,onScroll:r}=t;return J.createElement(tSe,{ref:n,data:e,onScroll:r})},rSe=J.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=XD,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=qr((e,t)=>Ra(l,e)||t),m=qr(u),h=J.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return J.createElement($D.Provider,{value:h},J.createElement(QD,iO({},e,{className:Z(s,`${o}-virtual`),scroll:G(G({},i),{},{x:d}),components:G(G({},l),{},{body:n!=null&&n.length?nSe:void 0}),columns:r,internalHooks:DD,tailor:!0,ref:t})))}),aO=e=>zbe(rSe,e);aO();var iSe=e=>null,aSe=e=>null;K();var oO={},sO=`SELECT_ALL`,cO=`SELECT_INVERT`,lO=`SELECT_NONE`,uO=[],dO=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),lp(t)&&e in t&&dO(e,t[e],n)}),n),oSe=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:b,data:x,pageData:S,getRecordByKey:C,getRowKey:w,expandType:T,childrenColumnName:E,locale:D,getPopupContainer:O}=e,k=eo(`Table`),[A,j]=Vm(e=>e),[M,N]=$r(i||uO,r),P=M==null?uO:M,F=J.useRef(new Map),I=(0,J.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=C(e);!n&&F.current.has(e)&&(n=F.current.get(e)),t.set(e,n)}),F.current=t}},[C,n]);J.useEffect(()=>{I(P)},[P,I]);let L=(0,J.useMemo)(()=>dO(E,S),[E,S]),{keyEntities:R}=(0,J.useMemo)(()=>{if(y)return{keyEntities:null};let e=x;if(n){let t=new Set(L.map(w)),n=Array.from(F.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(Co(e),Co(n))}return iT(e,{externalGetKey:w,childrenPropName:E})},[x,w,y,E,n,L]),z=(0,J.useMemo)(()=>{let e=new Map;return L.forEach((t,n)=>{let r=w(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[L,w,a]),B=(0,J.useCallback)(e=>{let t=w(e),n;return n=z.has(t)?z.get(w(e)):a?a(e):void 0,!!(n!=null&&n.disabled)},[z,w]),[V,H]=(0,J.useMemo)(()=>{if(y)return[P,[]];let{checkedKeys:e,halfCheckedKeys:t}=CT(P,!0,R,B);return[e||[],t]},[P,y,R,B]),U=(0,J.useMemo)(()=>{let e=m===`radio`?V.slice(0,1):V;return new Set(e)},[V,m]),ee=(0,J.useMemo)(()=>m===`radio`?new Set:new Set(H),[H,m]);J.useEffect(()=>{t||N(uO)},[!!t]);let te=(0,J.useCallback)((e,t)=>{let r,i;I(e),n?(r=e,i=e.map(e=>F.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=C(e);t!==void 0&&(r.push(e),i.push(t))})),N(r),s==null||s(r,i,{type:t})},[N,C,s,n]),ne=(0,J.useCallback)((e,t,n,r)=>{if(c){let i=n.map(C);c(C(e),t,i,r)}te(n,`single`)},[c,C,te]),re=(0,J.useMemo)(()=>!h||v?null:(h===!0?[sO,cO,lO]:h).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:D.selectionAll,onSelect(){te(x.reduce((e,t,n)=>{let r=w(t,n),i=z.get(r);return(!(i!=null&&i.disabled)||U.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:D.selectInvert,onSelect(){let e=new Set(U);S.forEach((t,n)=>{let r=w(t,n),i=z.get(r);i!=null&&i.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(k.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),te(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:D.selectNone,onSelect(){d==null||d(),te(Array.from(U).filter(e=>{let t=z.get(e);return t==null?void 0:t.disabled}),`none`)}}:e,G(G({},t),{},{onSelect:e=>{var n;(n=t.onSelect)==null||n.call(t,e),j(null)}})}),[h,v,D.selectionAll,D.selectInvert,D.selectNone,z,U,x,S,w,u,te]);return[(0,J.useCallback)(e=>{var n;if(!t)return e.filter(e=>e!==oO);let r=Co(e),i=new Set(U),a=L.reduce((e,t,n)=>{let r=w(t,n);return z.get(r).disabled||e.push(r),e},[]),s=a.every(e=>i.has(e)),c=a.some(e=>i.has(e)),u=()=>{let e=[];s?a.forEach(t=>{i.delete(t),e.push(t)}):a.forEach(t=>{i.has(t)||(i.add(t),e.push(t))});let t=Array.from(i);l==null||l(!s,t.map(C),e.map(C)),te(t,`all`),j(null)},d,x;if(m!==`radio`){let e;if(re){let t={getPopupContainer:O,items:re.map((e,t)=>{let{key:n,text:r,onSelect:i}=e;return{key:n==null?t:n,onClick:()=>{i==null||i(a)},label:r}})};e=J.createElement(`div`,{className:`${b}-selection-extra`},J.createElement(bE,{menu:t,getPopupContainer:O},J.createElement(`span`,null,J.createElement(jy,null))))}let t=L.reduce((e,t,n)=>{let r=w(t,n),a=z.get(r)||{},o=G({checked:i.has(r)},a);return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===L.length,r=n&&t.every(({checked:e})=>e),l=n&&t.some(({checked:e})=>e),f=(o==null?void 0:o())||{},{onChange:p,disabled:m}=f;x=J.createElement(ET,G(G({"aria-label":e?`Custom selection`:`Select all`},f),{},{checked:n?r:!!L.length&&s,indeterminate:n?!r&&l:!s&&c,onChange:e=>{u(),p==null||p(e)},disabled:m==null?L.length===0||n:m,skipGroup:!0})),d=!v&&J.createElement(`div`,{className:`${b}-selection`},x,e)}let S;S=m===`radio`?(e,t,n)=>{let r=w(t,n),a=i.has(r),o=z.get(r),s=`Select row ${n+1}`;return{node:J.createElement(qC,G(G({"aria-label":s},o),{},{checked:a,onClick:e=>{var t;e.stopPropagation(),o==null||(t=o.onClick)==null||t.call(o,e)},onChange:e=>{var t;i.has(r)||ne(r,!0,[r],e.nativeEvent),o==null||(t=o.onChange)==null||t.call(o,e)}})),checked:a}}:(e,t,n)=>{let r=w(t,n),o=i.has(r),s=ee.has(r),c=z.get(r),l;if(T===`nest`)l=s;else{var u;l=(u=c==null?void 0:c.indeterminate)==null?s:u}let d=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:J.createElement(ET,G(G({"aria-label":d},c),{},{indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),c==null||(t=c.onClick)==null||t.call(c,e)},onChange:e=>{var t;let{nativeEvent:n}=e,{shiftKey:s}=n,l=a.indexOf(r),u=U.size>0&&a.some(e=>U.has(e));if(s&&y&&u){let e=A(l,a,i),t=Array.from(i);f==null||f(!o,t.map(C),e.map(C)),te(t,`multiple`)}else{let e=V;if(y){let t=o?vT(e,r):yT(e,r);ne(r,!o,t,n)}else{let{checkedKeys:t,halfCheckedKeys:i}=CT([].concat(Co(e),[r]),!0,R,B),a=t;if(o){let e=new Set(t);e.delete(r),a=CT(Array.from(e),{checked:!1,halfCheckedKeys:i},R,B).checkedKeys}ne(r,!o,a,n)}}j(o?null:l),c==null||(t=c.onChange)==null||t.call(c,e)}})),checked:o}};let E=(e,t,n)=>{let{node:r,checked:i}=S(e,t,n);return _?_(i,t,n,r):r};if(!r.includes(oO))if(r.findIndex(e=>{var t;return((t=e.RC_TABLE_INTERNAL_COL_DEFINE)==null?void 0:t.columnType)===`EXPAND_COLUMN`})===0){let[e,...t]=r;r=[e,oO].concat(Co(t))}else r=[oO].concat(Co(r));let D=r.indexOf(oO);r=r.filter((e,t)=>e!==oO||t===D);let k=r[D-1],M=r[D+1],N=g;N===void 0&&((M==null?void 0:M.fixed)===void 0?(k==null?void 0:k.fixed)!==void 0&&(N=k.fixed):N=M.fixed),N&&k&&((n=k.RC_TABLE_INTERNAL_COL_DEFINE)==null?void 0:n.columnType)===`EXPAND_COLUMN`&&k.fixed===void 0&&(k.fixed=N);let P=Z(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&m===`checkbox`}),F={fixed:N,width:p,className:`${b}-selection-column`,title:t!=null&&t.columnTitle?up(t.columnTitle)?t.columnTitle(x):t.columnTitle:d,render:E,onCell:t.onCell,align:t.align,[WD]:{className:P}};return r.map(e=>e===oO?F:e)},[w,L,t,V,U,ee,p,re,T,z,f,ne,B]),U]};function sSe(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return J.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:Z(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}K();var cSe=e=>{let t={};for(let[n,r]of Object.entries(e))ap(r)&&(t[n]=r);return t},lSe=(e,t)=>J.useMemo(()=>G(G({},e),{},{filters:cSe(t)}),[e,t]);function uSe(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}K();var dSe=(e,t)=>J.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===oO||e===ED?e:`children`in e&&Array.isArray(e.children)?G(G({},La(t,e)),{},{children:n(e.children)}):La(Ca(t,[`children`]),e));return n(e)},[e,t]),fO=(e,t)=>`key`in e&&ap(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function pO(e,t){return t?`${t}-${e}`:`${e}`}var mO=(e,t)=>up(e)?e(t):e,fSe=(e,t)=>{let n=mO(e,t);return lp(n)||Array.isArray(n)?``:n},hO=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`},pSe=(e,t)=>{if(e)return e;if(t===`small`||t===`medium`)return`small`},mSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z`}}]},name:`filter`,theme:`filled`}}))());function gO(){return gO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,gO({},e,{ref:t,icon:mSe.default}))),hSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`}}))());function vO(){return vO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,vO({},e,{ref:t,icon:hSe.default}))),gSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`}}))());function bO(){return bO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,bO({},e,{ref:t,icon:gSe.default}))),vSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`}}))());function xO(){return xO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,xO({},e,{ref:t,icon:vSe.default}))),bSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z`}}]},name:`holder`,theme:`outlined`}}))());function SO(){return SO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,SO({},e,{ref:t,icon:bSe.default}))),SSe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}});K();var CSe=new Vc(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),wSe=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),TSe=(e,t)=>({[`.${e}-drop-indicator`]:{position:`absolute`,zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:`none`,"&:after":{position:`absolute`,top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:`transparent`,border:`${Q(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),ESe=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:G(G({},td(t)),{},{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:G({},ad(t))}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:CSe,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:Q(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:G(G({},wSe(e,t)),{},{position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}}),[`${n}-node-content-wrapper`]:G(G({position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `)},TSe(e,t)),{},{"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end:before":{display:`none`}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:`auto !important`,bottom:`auto !important`,height:`${Q(t.calc(a).div(2).equal())} !important`}})}},DSe=(e,t,n=!0)=>{let r=`.${e}`,i=bl(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[ESe(e,i),n&&SSe(i)].filter(Boolean)},OSe=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},kSe=dd(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:fpe(`${t}-checkbox`,e)},DSe(t,e),jh(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return G(G({},OSe(e)),{},{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),ASe=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return J.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},jSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`filled`}}))());function CO(){return CO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,CO({},e,{ref:t,icon:jSe.default}))),NSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`minus-square`,theme:`outlined`}}))());function wO(){return wO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,wO({},e,{ref:t,icon:NSe.default}))),FSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`plus-square`,theme:`outlined`}}))());function TO(){return TO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,TO({},e,{ref:t,icon:FSe.default}))),LSe=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return J.isValidElement(a)?a:J.createElement(Fm,{className:`${t}-switcher-loading-icon`});let l;if(lp(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=up(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;if(J.isValidElement(e)){var u;return pm(e,{className:Z((u=e.props)==null?void 0:u.className,n)})}return e}return l?J.createElement(yO,{className:`${t}-switcher-line-icon`}):J.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let d=`${t}-switcher-icon`,f=up(n)?n(r):n;if(J.isValidElement(f)){var p;return pm(f,{className:Z((p=f.props)==null?void 0:p.className,i?`${t}-switcher-line-icon`:d)})}return f===void 0?i?s?J.createElement(PSe,{className:`${t}-switcher-line-icon`}):J.createElement(ISe,{className:`${t}-switcher-line-icon`}):J.createElement(MSe,{className:d}):f};K();var EO=J.forwardRef((e,t)=>{var n;let{getPrefixCls:r,direction:i,className:a,style:o,classNames:s,styles:c}=ko(`tree`),{virtual:l}=J.useContext(Eo),{prefixCls:u,className:d,showIcon:f=!1,showLine:p,switcherIcon:m,switcherLoadingIcon:h,blockNode:g=!1,children:_,checkable:v=!1,selectable:y=!0,draggable:b,disabled:x,motion:S,style:C,rootClassName:w,classNames:T,styles:E,icon:D}=e,O=J.useContext(gm),k=x==null?O:x,A=r(`tree`,u),j=r(),M=S==null?G(G({},dh(j)),{},{motionAppear:!1}):S,N=G(G({},e),{},{showIcon:f,blockNode:g,checkable:v,selectable:y,disabled:k,motion:M}),[P,F]=xp([s,T],[c,E],{props:N}),I=G(G({},N),{},{showLine:!!p,icon:D,dropIndicatorRender:ASe}),[L,R]=kSe(A),[,z]=$u(),B=z.paddingXS/2+(((n=z.Tree)==null?void 0:n.titleHeight)||z.controlHeightSM),V=J.useMemo(()=>{if(!b)return!1;let e={};switch(typeof b){case`function`:e.nodeDraggable=b;break;case`object`:e=G({},b);break;default:break}return e.icon!==!1&&(e.icon=e.icon||J.createElement(xSe,null)),e},[b]),H=e=>J.createElement(LSe,{prefixCls:A,switcherIcon:m,switcherLoadingIcon:h,treeNodeProps:e,showLine:p});return J.createElement(upe,G(G({itemHeight:B,ref:t,virtual:l},I),{},{prefixCls:A,className:Z({[`${A}-icon-hide`]:!f,[`${A}-block-node`]:g,[`${A}-unselectable`]:!y,[`${A}-rtl`]:i===`rtl`,[`${A}-disabled`]:k},a,d,L,R),style:G(G({},o),C),rootClassName:Z(P.root,w),rootStyle:F.root,classNames:P,styles:F,direction:i,checkable:v&&J.createElement(`span`,{className:`${A}-checkbox-inner`}),selectable:y,switcherIcon:H,draggable:V}),_)}),DO=0,OO=1,kO=2;function AO(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&AO(o||[],t,n)}e.forEach(a)}function RSe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=DO;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return AO(e,e=>{if(o===kO)return!1;if(s(e)){if(a.push(e),o===DO)o=OO;else if(o===OO)return o=kO,!1}else o===OO&&a.push(e);return t.includes(e)},tT(i)),a}function jO(e,t,n){let r=Co(t),i=[];return AO(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},tT(n)),i}K();var zSe=[`defaultExpandAll`,`defaultExpandParent`,`defaultExpandedKeys`],BSe=[`prefixCls`,`className`,`showIcon`,`expandAction`];function VSe(e){let{isLeaf:t,expanded:n}=e;return t?J.createElement(yO,null):n?J.createElement(_Se,null):J.createElement(ySe,null)}function MO({treeData:e,children:t}){return e||nT(t)}var HSe=J.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:i}=e,a=q(e,zSe),o=J.useRef(null),s=J.useRef(null),c=()=>{let{keyEntities:e}=iT(MO(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?ST(o,e):o,t},[l,u]=J.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=J.useState(()=>c());J.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),J.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>{var n;return`expandedKeys`in a||f(e),(n=a.onExpand)==null?void 0:n.call(a,e,t)},m=(e,t)=>{var n;let{multiple:r,fieldNames:i}=a,{node:c,nativeEvent:l}=t,{key:f=``}=c,p=MO(a),m=G(G({},t),{},{selected:!0}),h=(l==null?void 0:l.ctrlKey)||(l==null?void 0:l.metaKey),g=l==null?void 0:l.shiftKey,_;r&&h?(_=e,o.current=f,s.current=_,m.selectedNodes=jO(p,_,i)):r&&g?(_=Array.from(new Set([].concat(Co(s.current||[]),Co(RSe({treeData:p,expandedKeys:d,startKey:f,endKey:o.current,fieldNames:i}))))),m.selectedNodes=jO(p,_,i)):(_=[f],o.current=f,s.current=_,m.selectedNodes=jO(p,_,i)),(n=a.onSelect)==null||n.call(a,_,m),`selectedKeys`in a||u(_)},{getPrefixCls:h,direction:g}=J.useContext(Eo),{prefixCls:_,className:v,showIcon:y=!0,expandAction:b=`click`}=a,x=q(a,BSe),S=h(`tree`,_),C=Z(`${S}-directory`,{[`${S}-directory-rtl`]:g===`rtl`},v);return J.createElement(EO,G(G({icon:VSe,ref:t,blockNode:!0},x),{},{showIcon:y,expandAction:b,prefixCls:S,className:C,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p}))}),NO=EO;NO.DirectoryTree=HSe,NO.TreeNode=dT;var PO=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?J.createElement(`div`,{className:`${r}-filter-dropdown-search`},J.createElement(QT,{prefix:J.createElement(Ny,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},USe=e=>{let{keyCode:t}=e;t===aa.ENTER&&e.stopPropagation()},WSe=J.forwardRef((e,t)=>J.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:USe,ref:t,role:`presentation`},e.children));K();function FO(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Co(t),Co(FO(n))))}),t}function GSe(e){return e.some(({children:e})=>e)}var IO=(e,t)=>typeof t==`string`||sp(t)?t.toString().toLowerCase().includes(e):!1,LO=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:LO({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?ET:qC,u={key:e.value===void 0?t:c,label:J.createElement(J.Fragment,null,J.createElement(l,{checked:r.includes(c)}),J.createElement(`span`,null,e.text))};return o?up(s)?s(o,e)?u:null:IO(o,e.text)?u:null:u})};function RO(e){return e||[]}var KSe=e=>{var t,n,r;let{tablePrefixCls:i,prefixCls:a,column:o,dropdownPrefixCls:s,columnKey:c,filterOnClose:l,filterMultiple:u,filterMode:d=`menu`,filterSearch:f=!1,filterState:p,triggerFilter:m,locale:h,children:g,getPopupContainer:_,rootClassName:v}=e,{filterResetToDefaultFilteredValue:y,defaultFilteredValue:b,filterDropdownProps:x={},filterDropdownOpen:S,onFilterDropdownOpenChange:C}=o,[w,T]=J.useState(!1),E=J.useContext($y),D=!!(p&&((t=p.filteredKeys)!=null&&t.length||p.forceFiltered)),O=e=>{var t;T(e),(t=x.onOpenChange)==null||t.call(x,e),C==null||C(e)},k=(n=(r=x.open)==null?S:r)==null?w:n,A=p==null?void 0:p.filteredKeys,[j,M]=wte(RO(A)),N=({selectedKeys:e})=>{M(e)},P=(e,{node:t,checked:n})=>{N(u?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};J.useEffect(()=>{w&&N({selectedKeys:RO(A)})},[A,w]);let[F,I]=J.useState([]),L=e=>{I(e)},[R,z]=J.useState(``),B=J.useMemo(()=>R.trim().toLowerCase(),[R]),V=e=>{let{value:t}=e.target;z(t)};J.useEffect(()=>{w||z(``)},[w]);let H=e=>{let t=e!=null&&e.length?e:null;if(t===null&&(!p||!p.filteredKeys)||ya(t,p==null?void 0:p.filteredKeys,!0))return null;m({column:o,key:c,filteredKeys:t})},U=()=>{O(!1),H(j())},ee=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&H([]),t&&O(!1),z(``),M(y?(b||[]).map(String):[])},te=({closeDropdown:e}={closeDropdown:!0})=>{e&&O(!1),H(j())},ne=(e,t)=>{t.source===`trigger`&&(e&&A!==void 0&&M(RO(A)),O(e),!e&&!o.filterDropdown&&l&&U())},re=Z({[`${s}-menu-without-submenu`]:!GSe(o.filters||[])}),ie=e=>{if(e.target.checked){let e=FO(o==null?void 0:o.filters).map(String);M(e)}else M([])},ae=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ae({filters:e.children})),r}),oe=e=>{var t;return G(G({},e),{},{text:e.title,value:e.key,children:((t=e.children)==null?void 0:t.map(oe))||[]})},se,{direction:ce,renderEmpty:le}=J.useContext(Eo);if(up(o.filterDropdown))se=o.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>N({selectedKeys:e}),selectedKeys:j(),confirm:te,clearFilters:ee,filters:o.filters,visible:k,close:()=>{O(!1)}});else if(o.filterDropdown)se=o.filterDropdown;else{let e=j()||[];se=J.createElement(J.Fragment,null,(()=>{var t;let n=(t=le==null?void 0:le(`Table.filter`))==null?J.createElement(by,{image:by.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}}):t;if((o.filters||[]).length===0)return n;if(d===`tree`){var r;return J.createElement(J.Fragment,null,J.createElement(PO,{filterSearch:f,value:R,onChange:V,tablePrefixCls:i,locale:h}),J.createElement(`div`,{className:`${i}-filter-dropdown-tree`},u?J.createElement(ET,{checked:e.length===FO(o.filters).length,indeterminate:e.length>0&&e.lengthup(f)?f(R,oe(e)):IO(B,e.title):void 0})))}let c=LO({filters:o.filters||[],filterSearch:f,prefixCls:a,filteredKeys:j(),filterMultiple:u,searchValue:R,normalizedSearchValue:B}),l=c.every(e=>e===null);return J.createElement(J.Fragment,null,J.createElement(PO,{filterSearch:f,value:R,onChange:V,tablePrefixCls:i,locale:h}),l?n:J.createElement(Ix,{selectable:!0,multiple:u,prefixCls:`${s}-menu`,className:re,onSelect:N,onDeselect:N,selectedKeys:e,getPopupContainer:_,openKeys:F,onOpenChange:L,items:c}))})(),J.createElement(`div`,{className:`${a}-dropdown-btns`},J.createElement(pg,{type:`link`,size:`small`,disabled:y?ya((b||[]).map(String),e,!0):e.length===0,onClick:()=>ee()},h.filterReset),J.createElement(pg,{type:`primary`,size:`small`,onClick:U},h.filterConfirm)))}o.filterDropdown&&(se=J.createElement(Ox,{selectable:void 0},se)),se=J.createElement(WSe,{className:`${a}-dropdown`},se);let ue=(()=>{let e;return e=up(o.filterIcon)?o.filterIcon(D):o.filterIcon?o.filterIcon:J.createElement(_O,null),J.createElement(`span`,{role:`button`,tabIndex:-1,className:Z(`${a}-trigger`,{active:D}),onClick:e=>{e.stopPropagation()}},e)})();if(E)return J.createElement(`div`,{className:`${a}-column`},J.createElement(`span`,{className:`${i}-column-title`},g),ue);let de=La({trigger:[`click`],placement:ce===`rtl`?`bottomLeft`:`bottomRight`,children:ue,getPopupContainer:_},G(G({},x),{},{rootClassName:Z(v,x.rootClassName),open:k,onOpenChange:ne,popupRender:()=>up(x==null?void 0:x.dropdownRender)?x.dropdownRender(se):se}));return J.createElement(`div`,{className:`${a}-column`},J.createElement(`span`,{className:`${i}-column-title`},g),J.createElement(bE,G({},de)))};K();var zO=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=pO(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;if(!o){var s;t=(s=t==null?void 0:t.map(String))==null?t:s}r.push({column:e,key:fO(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:fO(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(Co(r),Co(zO(e.children,t,a))))}),r};function BO(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=pO(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=fO(h,u),l=r.find(({key:e})=>s===e);h=G(G({},h),{},{title:r=>J.createElement(KSe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},mO(n.title,r))})}return`children`in h&&(h=G(G({},h),{},{children:BO(e,t,h.children,r,i,a,o,u,c)})),h})}var VO=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;if(o)t[i]=n||null;else if(Array.isArray(n)){let e=FO(a);t[i]=e.filter(e=>n.includes(String(e)))}else t[i]=null}),t},HO=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=FO(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{var t;let n=String(e);return(t=s.get(n))==null?e:t});return(e=>e.reduce((e,r)=>{let a=G({},r);return a[n]&&(a[n]=HO(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),UO=e=>e.flatMap(e=>`children`in e?[e].concat(Co(UO(e.children||[]))):[e]),qSe=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;eo(`Table`);let c=J.useMemo(()=>UO(r||[]),[r]),[l,u]=J.useState(()=>zO(c,!0)),d=J.useMemo(()=>{let e=zO(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>fO(e,pO(t)));return l.reduce((t,n)=>{let r=e.indexOf(n.key);if(r!==-1){let e=c[r];t.push(G(G({},n),{},{column:G(G({},n.column),e),forceFiltered:e.filtered}))}return t},[])}return e},[c,l]),f=J.useMemo(()=>VO(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(VO(t),t)};return[e=>BO(t,n,e,d,o,p,a,void 0,s),d,f]},JSe=(e,t,n)=>{let r=J.useRef({});function i(i){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function o(e){e.forEach((e,r)=>{let a=n(e,r);i.set(a,e),lp(e)&&t in e&&o(e[t]||[])})}o(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return(a=r.current.kvMap)==null?void 0:a.get(i)}return[i]};K();var YSe=[`total`];function XSe(e,t){let n={current:e.current,pageSize:e.pageSize},r=lp(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];up(r)||(n[t]=r)}),n}function ZSe(e,t,n){let r=lp(n)?n:{},{total:i=0}=r,a=q(r,YSe),[o,s]=(0,J.useState)(()=>({current:`defaultCurrent`in a?a.defaultCurrent:1,pageSize:`defaultPageSize`in a?a.defaultPageSize:10})),c=La(o,a,{total:i>0?i:e}),l=Math.ceil((i||e)/c.pageSize);c.current>l&&(c.current=l||1);let u=(e,t)=>{s({current:e==null?1:e,pageSize:t||c.pageSize})};return n===!1?[{},()=>{}]:[G(G({},c),{},{onChange:(e,r)=>{if(n){var i;(i=n.onChange)==null||i.call(n,e,r)}u(e,r),t(e,r||(c==null?void 0:c.pageSize))}}),u]}var QSe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`outlined`}}))());function WO(){return WO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,WO({},e,{ref:t,icon:QSe.default}))),eCe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z`}}]},name:`caret-up`,theme:`outlined`}}))());function GO(){return GO=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,GO({},e,{ref:t,icon:eCe.default})));K();var KO=`ascend`,qO=`descend`,JO=e=>lp(e.sorter)&&sp(e.sorter.multiple)?e.sorter.multiple:!1,YO=e=>up(e)?e:lp(e)&&e.compare?e.compare:!1,nCe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],XO=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:fO(e,t),multiplePriority:JO(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=pO(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(Co(r),Co(XO(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:fO(e,o),multiplePriority:JO(e),sortOrder:e.defaultSortOrder}))}),r},ZO=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=pO(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=fO(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=nCe(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(KO)&&J.createElement(tCe,{className:Z(`${e}-column-sorter-up`,{active:m===KO})}),n=s.includes(qO)&&J.createElement($Se,{className:Z(`${e}-column-sorter-down`,{active:m===qO})});g=J.createElement(`span`,{className:Z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},J.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:v,triggerDesc:y}=a||{},b=_;h===qO?b=y:h===KO&&(b=v);let x=lp(l)?G({title:b},l):{title:b};d=G(G({},d),{},{className:Z(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=J.createElement(`span`,{className:`${e}-column-title`},mO(t.title,n)),a=J.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&(l==null?void 0:l.target)===`sorter-icon`?J.createElement(`div`,{className:Z(r,`${r}-tooltip-target-sorter`)},i,J.createElement(ab,G({},x),g)):J.createElement(ab,G({},x),a):a},onHeaderCell:n=>{var i;let a=((i=t.onHeaderCell)==null?void 0:i.call(t,n))||{},o=a.onClick,s=a.onKeyDown;a.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:JO(t)}),o==null||o(e)},a.onKeyDown=e=>{e.keyCode===aa.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:JO(t)}),s==null||s(e))};let l=fSe(t.title,{}),u=l==null?void 0:l.toString();return m&&(a[`aria-sort`]=m===`ascend`?`ascending`:`descending`),a[`aria-description`]=c==null?void 0:c.sortable,a[`aria-label`]=u||``,a.className=Z(a.className,`${e}-column-has-sorters`),a.tabIndex=0,t.ellipsis&&(a.title=(l==null?``:l).toString()),a}})}return`children`in d&&(d=G(G({},d),{},{children:ZO(e,d.children,n,r,i,a,o,u,c)})),d}),QO=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},$O=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(QO(t)),e),[]);return t.length===0&&e.length?G(G({},QO(e[e.length-1])),{},{column:void 0,order:void 0,field:void 0,columnKey:void 0}):t.length<=1?t[0]||{}:t},ek=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>YO(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?G(G({},e),{},{[n]:ek(r,t,n)}):e}):i},rCe=e=>{let{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:i,tableLocale:a,showSorterTooltip:o,onSorterChange:s,globalLocale:c}=e,l=r==null?n:r,[u,d]=J.useState(()=>XO(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=pO(r,t);if(n.push(fO(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,Co(t))}}),n},p=J.useMemo(()=>{let e=!0,t=XO(l,!1);if(!t.length){let e=f(l);return u.filter(({key:t})=>e.includes(t))}let n=[];function r(t){e?n.push(t):n.push(G(G({},t),{},{sortOrder:null}))}let i=null;return t.forEach(t=>{i===null?(r(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:i=!0)):(i&&t.multiplePriority!==!1||(e=!1),r(t))}),n},[l,u]),m=J.useMemo(()=>{var e,t;let n=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:(e=n[0])==null?void 0:e.column,sortOrder:(t=n[0])==null?void 0:t.order}},[p]),h=e=>{let t;t=e.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?[e]:[].concat(Co(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s($O(t),t)};return[e=>ZO(t,e,p,h,i,a,o,void 0,c),p,m,()=>$O(p)]};K();var iCe=e=>J.useMemo(()=>typeof e==`boolean`?{spinning:e}:lp(e)?G({spinning:!0},e):{},[e]);K();var tk=(e,t)=>e.map(e=>{let n=G({},e);return n.title=mO(e.title,t),`children`in n&&(n.children=tk(n.children,t)),n}),aCe=e=>[J.useCallback(t=>tk(t,e),[e])],oCe=ZD((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),sCe=aO((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});K();var cCe=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${Q(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${Q(c(r).mul(-1).equal())} + ${Q(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:G(G(G({[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-header${t}-sticky-holder`]:{marginTop:c(n).mul(-1).equal(),borderTop:l},[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first:not(${t}-cell-fix-right-last)::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${Q(c(o).mul(-1).equal())} ${Q(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${be(n)} 0 ${be(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},$qe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:te(I({},Wa),{wordBreak:"keep-all",[` + `]:{"> th, > td":{borderInlineEnd:0}}}}}},u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{},{[`> ${t}-footer`]:{border:l,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Q(n)} 0 ${Q(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}};K();var lCe=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:G(G({},ed),{},{wordBreak:`keep-all`,[` &${t}-cell-fix-start-shadow, &${t}-cell-fix-end-shadow - `]:{overflow:"visible",[`${t}-cell-content`]:te(I({},Wa),{display:"block"})},[`${t}-column-title`]:te(I({},Wa),{wordBreak:"keep-all"})})}}},_qe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},Tqe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:o,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:d,tableExpandedRowBg:A,paddingXXS:h,expandIconMarginTop:p,expandIconSize:v,expandIconHalfInner:y,expandIconScale:b,calc:x}=e,C=`${be(i)} ${a} ${s}`,S=x(h).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:te(I({},iM(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:be(v),background:l,border:C,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:i},"&::after":{top:S,bottom:S,insetInlineStart:y,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:p,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:A}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${be(x(f).mul(-1).equal())} ${be(x(d).mul(-1).equal())}`,padding:`${be(f)} ${be(d)}`}}}},Mqe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:d,fontSizeSM:A,tablePaddingHorizontal:h,borderRadius:p,motionDurationSlow:v,colorIcon:y,colorPrimary:b,tableHeaderFilterActiveBg:x,colorTextDisabled:C,tableFilterDropdownBg:S,tableFilterDropdownHeight:B,controlItemBgHover:E,controlItemBgActive:_,boxShadowSecondary:M,filterDropdownMenuBg:R,calc:T}=e,L=`${n}-dropdown`,P=`${t}-filter-dropdown`,k=`${n}-tree`,H=`${be(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:T(a).mul(-1).equal(),marginInline:`${be(a)} ${be(T(h).div(2).mul(-1).equal())}`,padding:`0 ${be(a)}`,color:d,fontSize:A,borderRadius:p,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:x},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[P]:te(I({},zr(e)),{minWidth:i,backgroundColor:S,borderRadius:p,boxShadow:M,overflow:"hidden",[`${L}-menu`]:{maxHeight:B,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:R,"&:empty::after":{display:"block",padding:`${be(s)} 0`,color:C,fontSize:A,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${be(s)} 0`,paddingInline:s,[k]:{padding:0},[`${k}-treenode ${k}-node-content-wrapper:hover`]:{backgroundColor:E},[`${k}-treenode-checkbox-checked ${k}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${P}-search`]:{padding:s,borderBottom:H,"&-input":{input:{minWidth:o},[r]:{color:C}}},[`${P}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${be(T(s).sub(c).equal())} ${be(s)}`,overflow:"hidden",borderTop:H}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function Wue({colorSplit:e}){const t={boxShadow:`inset 10px 0 8px -8px ${e}`},n={boxShadow:`inset -10px 0 8px -8px ${e}`};return[t,n]}const Iqe=e=>{const{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:o,calc:a}=e,s=`${t}-cell`,l=`${s}-fix`,c={position:"absolute",top:0,bottom:a(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[u,f]=Wue(e);return{[`${t}-wrapper`]:{[`${s}${l}`]:{position:"sticky"},[l]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:o,"&:after":c,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":u,"&-end-shadow-show:after":f},[`${t}-container`]:{position:"relative","&:before, &:after":te(I({},c),{zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`}),"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:"none"},[`${t}-has-fix-end ${t}-container:after`]:{display:"none"},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:f}}},Rqe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${be(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}},Nqe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${be(n)} ${be(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${be(n)} ${be(n)}`}}}}},Pqe=e=>{const{componentCls:t}=e,[n,r]=Wue(e);return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:"right"}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},Lqe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:o,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:d,tablePaddingHorizontal:A,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(i).add(h(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(i).add(h(o).div(4)).add(h(a).mul(2)).equal()}},[` + `]:{overflow:`visible`,[`${t}-cell-content`]:G(G({},ed),{},{display:`block`})},[`${t}-column-title`]:G(G({},ed),{},{wordBreak:`keep-all`})})}}},uCe=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}};K();var dCe=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${Q(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:G(G({},ud(e)),{},{position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:Q(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${Q(y(d).mul(-1).equal())} ${Q(y(f).mul(-1).equal())}`,padding:`${Q(d)} ${Q(f)}`}}}};K();var fCe=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${Q(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${Q(o)} ${Q(D(m).div(2).mul(-1).equal())}`,padding:`0 ${Q(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:G(G({},td(e)),{},{minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${Q(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${Q(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${Q(D(s).sub(l).equal())} ${Q(s)}`,overflow:`hidden`,borderTop:j}})}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};K();function nk({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var pCe=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=nk(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":G(G({},l),{},{zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`}),"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},mCe=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Q(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},hCe=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Q(n)} ${Q(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Q(n)} ${Q(n)}`}}}}},gCe=e=>{let{componentCls:t}=e,[n,r]=nk(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},_Ce=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:be(h(A).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:d}}}}}},Fqe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(o,a,s,l)=>({[`${t}${t}-${o}`]:{fontSize:l,[` + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:Q(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}};K();var vCe=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -333,117 +330,112 @@ html body { ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${be(a)} ${be(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:be(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${be(r(a).mul(-1).equal())} ${be(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:be(r(a).mul(-1).equal()),marginInline:`${be(r(n).sub(s).equal())} ${be(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:be(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:I(I({},i("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},kqe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + `]:{padding:`${Q(i)} ${Q(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Q(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Q(r(i).mul(-1).equal())} ${Q(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Q(r(i).mul(-1).equal()),marginInline:`${Q(r(n).sub(a).equal())} ${Q(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Q(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:G(G({},i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},yCe=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},Dqe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:a,stickyScrollBarBorderRadius:s,lineWidth:l,lineType:c,tableBorderColor:u,zIndexTableFixed:f}=e,d=`${be(l)} ${c} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${f} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${be(o)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${f} + 1)`,display:"flex",alignItems:"center",background:a,borderTop:d,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},Gue=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${be(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${be(i(n).mul(-1).equal())} 0 ${r}`}}}},Hqe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,s=`${be(r)} ${i} ${o}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},bCe=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${Q(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${Q(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},rk=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${Q(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${Q(i(n).mul(-1).equal())} 0 ${r}`}}}},xCe=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${Q(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${be(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Uqe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:d,motionDurationMid:A,tableHeaderBg:h,tableHeaderCellSplitColor:p,tableFooterTextColor:v,tableFooterBg:y,calc:b}=e,x=`${be(a)} ${s} ${l}`;return{[`${t}-wrapper`]:te(I({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},fA()),{[t]:te(I({},zr(e)),{fontSize:c,background:u,borderRadius:`${be(f)} ${be(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${be(f)} ${be(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${Q(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}};K();var SCe=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${Q(o)} ${s} ${c}`;return{[`${t}-wrapper`]:G(G({clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg},id()),{},{[t]:G(G({},td(e)),{},{fontSize:l,background:u,borderRadius:`${Q(d)} ${Q(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:`100%`,textAlign:`start`,borderRadius:`${Q(d)} ${Q(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${be(r)} ${be(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${be(r)} ${be(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background-color ${A} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:p,transform:"translateY(-50%)",transition:`background-color ${A}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:x,transition:["background-color","border-color"].map(C=>`${C} ${A}`).join(", "),[` + `]:{position:`relative`,padding:`${Q(r)} ${Q(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${Q(r)} ${Q(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:be(b(r).mul(-1).equal()),marginInline:`${be(b(o).sub(i).equal())} - ${be(b(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background-color ${A} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${be(r)} ${be(i)}`,color:v,background:y}})}},jqe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:d,controlHeight:A,colorTextPlaceholder:h,fontSize:p,fontSizeSM:v,lineHeight:y,lineWidth:b,colorIcon:x,colorIconHover:C,opacityLoading:S,controlInteractiveSize:B}=e,E=new Rr(i).onBackground(n).toHexString(),_=new Rr(o).onBackground(n).toHexString(),M=new Rr(t).onBackground(n).toHexString(),R=new Rr(x),T=new Rr(C),L=B/2-b,P=L*2+b*3;return{headerBg:M,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:_,bodySortBg:M,rowHoverBg:M,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:d,footerBg:M,footerColor:r,cellFontSize:p,cellFontSizeMD:p,cellFontSizeSM:p,headerSplitColor:f,fixedHeaderSortActiveBg:E,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:A,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(p*y-b*3)/2-Math.ceil((v*1.4-b*3)/2),headerIconColor:R.clone().setA(R.a*S).toRgbString(),headerIconHoverColor:T.clone().setA(T.a*S).toRgbString(),expandIconHalfInner:L,expandIconSize:P,expandIconScale:B/P}},zqe=2,Qqe=Br("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:o,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:d,rowExpandedBg:A,cellPaddingBlock:h,cellPaddingInline:p,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:b,cellPaddingInlineSM:x,borderColor:C,footerBg:S,footerColor:B,headerBorderRadius:E,cellFontSize:_,cellFontSizeMD:M,cellFontSizeSM:R,headerSplitColor:T,fixedHeaderSortActiveBg:L,headerFilterHoverBg:P,filterDropdownBg:k,expandIconBg:H,selectionColumnWidth:D,stickyScrollBarBg:U,calc:j}=e,Q=dr(e,{tableFontSize:_,tableBg:r,tableRadius:E,tablePaddingVertical:h,tablePaddingHorizontal:p,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:x,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:B,tableFooterBg:S,tableHeaderCellSplitColor:T,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:L,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:k,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:d,zIndexTableFixed:zqe,tableFontSizeMiddle:M,tableFontSizeSmall:R,tableSelectionColumnWidth:D,tableExpandIconBg:H,tableExpandColumnWidth:j(i).add(j(e.padding).mul(2)).equal(),tableExpandedRowBg:A,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:U,tableScrollThumbBgHover:t,tableScrollBg:n});return[Uqe(Q),Rqe(Q),Gue(Q),kqe(Q),Mqe(Q),Oqe(Q),Nqe(Q),Tqe(Q),Gue(Q),_qe(Q),Lqe(Q),Iqe(Q),Dqe(Q),$qe(Q),Fqe(Q),Pqe(Q),Hqe(Q)]},jqe,{resetFont:!1,unitless:{expandIconScale:!0}}),que=[],Yue=g.createContext({}),Vqe=e=>{const{ariaProps:t,component:n="table"}=g.useContext(Yue);return g.createElement(n,I(I({},t),e))},Kqe=(e,t)=>{var cn,gn,Zt,_n;const{prefixCls:n,className:r,rootClassName:i,style:o,classNames:a,styles:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:d,rowSelection:A,rowKey:h,rowClassName:p,column:v,columns:y,children:b,childrenColumnName:x,onChange:C,getPopupContainer:S,loading:B,expandIcon:E,expandable:_,expandedRowRender:M,expandIconColumnIndex:R,indentSize:T,scroll:L,sortDirections:P,locale:k,showSorterTooltip:H={target:"full-header"},virtual:D}=e;Ig();const U=g.useMemo(()=>y||a9(b),[y,b]),j=oGe(U,v),Q=g.useMemo(()=>j.some(Wt=>Wt.responsive),[j]),K=KM(Q),z=g.useMemo(()=>{const Wt=new Set(Object.keys(K).filter(Mt=>K[Mt]));return j.filter(Mt=>!Mt.responsive||Mt.responsive.some(vn=>Wt.has(vn)))},[j,K]),V=ti(e,["className","style","column","columns"]),Y=V.components,Z=Co(V,{aria:!0}),W=Object.keys(Z).length>0,J=g.useMemo(()=>{var Wt;return{ariaProps:Z,component:(Wt=Y==null?void 0:Y.header)==null?void 0:Wt.table}},[Z,(cn=Y==null?void 0:Y.header)==null?void 0:cn.table]),ee=g.useMemo(()=>W?te(I({},Y),{header:te(I({},Y==null?void 0:Y.header),{table:Vqe})}):Y,[Y,W]),{locale:ne=Sl,table:re}=g.useContext(Un),{getPrefixCls:ue,direction:de,renderEmpty:se,getPopupContainer:ce,className:ge,style:ie,classNames:le,styles:ve}=or("table"),we=aa(Wt=>l==="middle"?"medium":l!=null?l:Wt),me=te(I({},e),{size:we,bordered:c}),Ee=Ar(ie),Ce=Ar(o),[pe,Oe]=vr([le,a],[ve,Ee,s,Ce],{props:me},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),xe=I(I({},ne.Table),k),[Me]=zs("global",Sl.global),Se=f||que,Pe=ue("table",n),Le=ue("dropdown",u),[,He]=al(),Ne=g.useMemo(()=>{var Wt;return Zn(A)?I({columnWidth:(Wt=He.Table)==null?void 0:Wt.selectionColumnWidth},A):A},[A,(gn=He.Table)==null?void 0:gn.selectionColumnWidth]),at=So(Pe),[Ue,et]=Qqe(Pe,at),We=te(I({childrenColumnName:x,expandIconColumnIndex:R},_),{expandIcon:(_n=_==null?void 0:_.expandIcon)!=null?_n:(Zt=re==null?void 0:re.expandable)==null?void 0:Zt.expandIcon}),{childrenColumnName:Je="children"}=We,dt=g.useMemo(()=>Se.some(Wt=>Wt==null?void 0:Wt[Je])?"nest":M||_!=null&&_.expandedRowRender?"row":null,[Je,Se]),wt={body:g.useRef(null)},Bt=iGe(Pe),qt=g.useRef(null),jt=g.useRef(null);dLe(t,()=>te(I({},jt.current),{nativeElement:qt.current}));const nn=h||(re==null?void 0:re.rowKey)||"key",Jt=L!=null?L:re==null?void 0:re.scroll,Ot=g.useMemo(()=>Rn(nn)?nn:Wt=>Wt==null?void 0:Wt[nn],[nn]),[sn]=cqe(Se,Je,Ot),Vt={},xt=(Wt,Mt,vn=!1)=>{var Dt,xn,on,Nn;const In=I(I({},Vt),Wt);vn&&((Dt=Vt.resetPagination)==null||Dt.call(Vt),(xn=In.pagination)!=null&&xn.current&&(In.pagination.current=1),d&&((Nn=d.onChange)==null||Nn.call(d,1,(on=In.pagination)==null?void 0:on.pageSize))),L&&L.scrollToFirstRowOnChange!==!1&&wt.body.current&&nPe(0,{getContainer:()=>wt.body.current}),C==null||C(In.pagination,In.filters,In.sorter,{currentDataSource:T9(P9(Se,In.sorterStates,Je),In.filterStates,Je),action:Mt})},qe=(Wt,Mt)=>{xt({sorter:Wt,sorterStates:Mt},"sort",!1)},[it,Pt,De,ze]=Cqe({prefixCls:Pe,mergedColumns:z,baseColumns:j,onSorterChange:qe,sortDirections:P||["ascend","descend"],tableLocale:xe,showSorterTooltip:H,globalLocale:Me}),bt=g.useMemo(()=>P9(Se,Pt,Je),[Je,Se,Pt]);Vt.sorter=ze(),Vt.sorterStates=Pt;const lt=(Wt,Mt)=>{xt({filters:Wt,filterStates:Mt},"filter",!0)},[At,ut,ft]=lqe({prefixCls:Pe,locale:xe,dropdownPrefixCls:Le,mergedColumns:z,onFilterChange:lt,getPopupContainer:S||ce,rootClassName:Ae(i,at)}),Kt=T9(bt,ut,Je);Vt.filters=ft,Vt.filterStates=ut;const An=g.useMemo(()=>{const Wt={};return Object.keys(ft).forEach(Mt=>{ft[Mt]!==null&&(Wt[Mt]=ft[Mt])}),te(I({},De),{filters:Wt})},[De,ft]),[pn]=Sqe(An),bn=(Wt,Mt)=>{xt({pagination:te(I({},Vt.pagination),{current:Wt,pageSize:Mt})},"paginate")},[Sn,Tn]=fqe(Kt.length,bn,d);Vt.pagination=d===!1?{}:uqe(Sn,d),Vt.resetPagination=Tn;const lr=g.useMemo(()=>{if(d===!1||!Sn.pageSize)return Kt;const{current:Wt=1,total:Mt,pageSize:vn=Due}=Sn;return Kt.lengthvn?Kt.slice((Wt-1)*vn,Wt*vn):Kt:Kt.slice((Wt-1)*vn,Wt*vn)},[!!d,Kt,Sn==null?void 0:Sn.current,Sn==null?void 0:Sn.pageSize,Sn==null?void 0:Sn.total]),[$n,Fn]=nGe({prefixCls:Pe,data:Kt,pageData:lr,getRowKey:Ot,getRecordByKey:sn,expandType:dt,childrenColumnName:Je,locale:xe,getPopupContainer:S||ce},Ne),$t=(Wt,Mt,vn)=>Ae({[`${Pe}-row-selected`]:Fn.has(Ot(Wt,Mt))},Rn(p)?p(Wt,Mt,vn):p);We.__PARENT_RENDER_ICON__=We.expandIcon,We.expandIcon=We.expandIcon||E||rGe(xe),dt==="nest"&&We.expandIconColumnIndex===void 0?We.expandIconColumnIndex=Ne?1:0:We.expandIconColumnIndex>0&&Ne&&(We.expandIconColumnIndex-=1),mo(We.indentSize)||(We.indentSize=mo(T)?T:15);const Ie=g.useCallback(Wt=>pn($n(At(it(Wt)))),[it,At,$n]);let Ke,nt;if(d!==!1&&(Sn!=null&&Sn.total)){let Wt;Sn.size?Wt=Sn.size:Wt=we==="small"||we==="medium"?"small":void 0;const Mt=(on="end")=>g.createElement(V7,te(I({},Sn),{classNames:pe.pagination,styles:Oe.pagination,className:Ae(`${Pe}-pagination ${Pe}-pagination-${on}`,Sn.className),size:Wt})),{placement:vn,position:In}=Sn,Dt=vn!=null?vn:In,xn=on=>{const Nn=on.toLowerCase();return Nn.includes("center")?"center":Nn.includes("left")||Nn.includes("start")?"start":"end"};if(Array.isArray(Dt)){const[on,Nn]=["top","bottom"].map(ir=>Dt.find(hr=>hr.includes(ir))),Wr=Dt.every(ir=>`${ir}`=="none");!on&&!Nn&&!Wr&&(nt=Mt()),on&&(Ke=Mt(xn(on))),Nn&&(nt=Mt(xn(Nn)))}else nt=Mt()}const ht=g.useMemo(()=>typeof B=="boolean"?{spinning:B}:Zn(B)?I({spinning:!0},B):void 0,[B]),Xt=Ae(et,at,`${Pe}-wrapper`,ge,{[`${Pe}-wrapper-rtl`]:de==="rtl"},r,i,pe.root,Ue),kt=g.useMemo(()=>ht!=null&&ht.spinning&&Se===que?null:typeof(k==null?void 0:k.emptyText)!="undefined"?k.emptyText:(se==null?void 0:se("Table"))||g.createElement(CH,{componentName:"Table"}),[ht==null?void 0:ht.spinning,Se,k==null?void 0:k.emptyText,se]),mn=D?Bqe:Eqe,Rt={},tn=g.useMemo(()=>{const{fontSize:Wt,lineHeight:Mt,lineWidth:vn,padding:In,paddingXS:Dt,paddingSM:xn}=He,on=Math.floor(Wt*Mt);switch(we){case"medium":return xn*2+on+vn;case"small":return Dt*2+on+vn;default:return In*2+on+vn}},[He,we]);return D&&(Rt.listItemHeight=tn),g.createElement("div",{ref:qt,className:Xt,style:Oe.root},g.createElement(mI,I({spinning:!1},ht),Ke,g.createElement(Yue.Provider,{value:J},g.createElement(mn,te(I(I({},Rt),V),{components:ee,scroll:Jt,classNames:pe,styles:Oe,ref:jt,columns:z,direction:de,expandable:We,prefixCls:Pe,className:Ae({[`${Pe}-medium`]:we==="medium",[`${Pe}-small`]:we==="small",[`${Pe}-bordered`]:c,[`${Pe}-empty`]:Se.length===0},et,at,Ue),data:lr,rowKey:Ot,rowClassName:$t,emptyText:kt,internalHooks:a2,internalRefs:wt,transformColumns:Ie,getContainerWidth:Bt,measureRowRender:Wt=>g.createElement(NH.Provider,{value:!0},g.createElement(kc,{getPopupContainer:Mt=>Mt},Wt))}))),nt))},Wqe=g.forwardRef(Kqe),Gqe=(e,t)=>{const n=g.useRef(0);return n.current+=1,g.createElement(Wqe,te(I({},e),{ref:t,_renderTimes:n.current}))},bA=g.forwardRef(Gqe);bA.SELECTION_COLUMN=sp,bA.EXPAND_COLUMN=ap,bA.SELECTION_ALL=f9,bA.SELECTION_INVERT=d9,bA.SELECTION_NONE=A9,bA.Column=eGe,bA.ColumnGroup=tGe,bA.Summary=Gce;const qqe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,a=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[i]:te(I({},zr(e)),{display:"inline-block",height:"auto",paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},L9=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return dr(e,{tagFontSize:i,tagLineHeight:be(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},F9=e=>{const t=Fre(new MM(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new Rr(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},k9=Br("Tag",e=>{const t=L9(e);return qqe(t)},F9),Xue=g.forwardRef((e,t)=>{const E=e,{prefixCls:n,style:r,className:i,checked:o,children:a,icon:s,onChange:l,onClick:c,onKeyDown:u,disabled:f}=E,d=Ze(E,["prefixCls","style","className","checked","children","icon","onChange","onClick","onKeyDown","disabled"]),{getPrefixCls:A,tag:h}=g.useContext(Un),p=g.useContext(qa),v=f!=null?f:p,y=_=>{v||(l==null||l(!o),c==null||c(_))},b=_=>{u==null||u(_),!(_.defaultPrevented||v)&&_.key===" "&&(_.preventDefault(),l==null||l(!o))},x=A("tag",n),[C,S]=k9(x),B=Ae(x,`${x}-checkable`,{[`${x}-checkable-checked`]:o,[`${x}-checkable-disabled`]:v},h==null?void 0:h.className,i,C,S);return g.createElement("span",te(I({},d),{ref:t,role:"checkbox","aria-checked":o,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:I(I({},r),h==null?void 0:h.style),className:B,onClick:y,onKeyDown:b}),s,g.createElement("span",null,a))}),Yqe=Be.forwardRef((e,t)=>{const z=e,{id:n,prefixCls:r,rootClassName:i,className:o,style:a,classNames:s,styles:l,disabled:c,options:u,value:f,defaultValue:d,onChange:A,multiple:h}=z,p=Ze(z,["id","prefixCls","rootClassName","className","style","classNames","styles","disabled","options","value","defaultValue","onChange","multiple"]),{getPrefixCls:v,direction:y,className:b,style:x,classNames:C,styles:S}=or("tag"),B=v("tag",r),E=`${B}-checkable-group`,_=So(B),[M,R]=k9(B,_),T=Ar(x),L=Ar(a),[P,k]=vr([C,s],[S,T,l,L],{props:e}),H=g.useMemo(()=>Array.isArray(u)?u.map(V=>Zn(V)?V:{value:V,label:V}):[],[u]),[D,U]=Fr(d,f),j=(V,Y)=>{let Z=null;if(h){const W=D||[];Z=V?[].concat(en(W),[Y.value]):W.filter(J=>J!==Y.value)}else Z=V?Y.value:null;U(Z),A==null||A(Z)},Q=Be.useRef(null);g.useImperativeHandle(t,()=>({nativeElement:Q.current}));const K=Co(p,{aria:!0,data:!0});return Be.createElement("div",te(I({},K),{className:Ae(E,b,i,{[`${E}-disabled`]:c,[`${E}-rtl`]:y==="rtl"},M,R,o,P.root),style:k.root,id:n,ref:Q}),H.map(V=>Be.createElement(Xue,{key:V.value,className:Ae(`${E}-item`,P.item,V.className),style:I(I({},k.item),V.style),checked:h?(D||[]).includes(V.value):D===V.value,onChange:Y=>j(Y,V),disabled:c},V.label)))});function Xqe(e,t){const{color:n,variant:r,bordered:i}=e;return g.useMemo(()=>{const o=n==null?void 0:n.endsWith("-inverse");let a;r?a=r:o?a="solid":i===!1?a="filled":a=t||"filled";let s=o?n==null?void 0:n.replace("-inverse",""):n;s===void 0&&a==="solid"&&(s="default");const l=Coe(s),c=UDe(s),u={};if(!l&&!c&&s)if(a==="solid")u.backgroundColor=n;else{const f=new Rr(s).toHsl();f.l=.95,u.backgroundColor=new Rr(f).toHexString(),u.color=n,a==="outlined"&&(u.borderColor=n)}return[a,s,l,c,u]},[n,r,i,t])}const Zqe=e=>Lte(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:o,borderColor:o,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),Jqe=kg(["Tag","preset"],e=>{const t=L9(e);return Zqe(t)},F9);function eYe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const QI=(e,t,n)=>{const r=eYe(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},tYe=kg(["Tag","status"],e=>{const t=L9(e);return[QI(t,"success","Success"),QI(t,"processing","Info"),QI(t,"error","Error"),QI(t,"warning","Warning")]},F9),D9=g.forwardRef((e,t)=>{var we;const ve=e,{prefixCls:n,className:r,rootClassName:i,style:o,children:a,icon:s,color:l,variant:c,onClose:u,bordered:f,disabled:d,href:A,target:h,styles:p,classNames:v}=ve,y=Ze(ve,["prefixCls","className","rootClassName","style","children","icon","color","variant","onClose","bordered","disabled","href","target","styles","classNames"]),{getPrefixCls:b,direction:x,className:C,variant:S,style:B,classNames:E,styles:_}=or("tag"),[M,R,T,L,P]=Xqe(e,S),k=T||L,H=g.useContext(qa),D=d!=null?d:H,{tag:U}=g.useContext(Un),[j,Q]=g.useState(!0),K=ti(y,["closeIcon","closable"]),z=te(I({},e),{color:R,variant:M,disabled:D}),[V,Y]=vr([E,v],[_,p],{props:z}),Z=g.useMemo(()=>{let me=I(I(I({},Y.root),B),o);return D||(me=I(I({},P),me)),me},[Y.root,B,o,P,D]),W=b("tag",n),[J,ee]=k9(W),ne=Ae(W,C,V.root,`${W}-${M}`,{[`${W}-${R}`]:k,[`${W}-hidden`]:!j,[`${W}-rtl`]:x==="rtl",[`${W}-disabled`]:D},r,i,J,ee),re=me=>{D||(me.stopPropagation(),u==null||u(me),!me.defaultPrevented&&Q(!1))},ue=me=>{(me.key==="Enter"||me.key===" ")&&(me.preventDefault(),me.currentTarget.click())},[,de]=ire(BM(e),BM(U),{closable:!1,closeIconRender:me=>{const Ee=g.createElement("span",{role:"button",tabIndex:D?-1:0,"aria-disabled":D||void 0,className:Ae(`${W}-close-icon`,V.close),onClick:re,onKeyDown:ue,style:Y.close},me);return Une(me,Ee,Ce=>({onClick:pe=>{var Oe;(Oe=Ce==null?void 0:Ce.onClick)==null||Oe.call(Ce,pe),re(pe)},onKeyDown:pe=>{var Oe;(Oe=Ce==null?void 0:Ce.onKeyDown)==null||Oe.call(Ce,pe),pe.defaultPrevented||ue(pe)},role:"button",tabIndex:D?-1:0,"aria-disabled":D||void 0,className:Ae(Ce==null?void 0:Ce.className,`${W}-close-icon`,V.close),style:I(I({},Y.close),Ce==null?void 0:Ce.style)}))}}),se=Rn(y.onClick)||a&&a.type==="a",ce=Ga(s,{className:Ae(g.isValidElement(s)?(we=s.props)==null?void 0:we.className:void 0,V.icon),style:Y.icon}),ge=ce?g.createElement(g.Fragment,null,ce,a&&g.createElement("span",{className:V.content,style:Y.content},a)):a,ie=A?"a":"span",le=g.createElement(ie,I(te(I({},K),{ref:t,className:ne,style:Z,href:D?void 0:A,target:h,onClick:D?void 0:K.onClick}),A&&D?{"aria-disabled":!0}:{}),ge,de,T&&g.createElement(Jqe,{key:"preset",prefixCls:W}),L&&g.createElement(tYe,{key:"status",prefixCls:W}));return se?g.createElement(sE,{component:"Tag"},le):le});D9.CheckableTag=Xue,D9.CheckableTagGroup=Yqe;const nYe=e=>{const t=e!=null&&e.algorithm?QT(e.algorithm):_D,n=I(I({},xb),e==null?void 0:e.token);return Kee(n,{override:e==null?void 0:e.token},t,Ite)};function rYe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const iYe=(e,t)=>{const n=t!=null?t:rM(e),r=n.fontSizeSM,i=n.controlHeight-4;return I(te(I(I(I({},n),rYe(t!=null?t:e)),Mte(r)),{controlHeight:i}),Tte(te(I({},n),{controlHeight:i})))},ef=(e,t)=>new Rr(e).setA(t).toRgbString(),jv=(e,t)=>new Rr(e).lighten(t).toHexString(),Zue=e=>{const t=tM(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},oYe=(e,t,n)=>{const r=e||"#000",i=t||"#fff";return{colorBgBase:r,colorTextBase:i,colorShadow:n||"rgba(255, 255, 255, 0.2)",colorText:ef(i,.85),colorTextSecondary:ef(i,.65),colorTextTertiary:ef(i,.45),colorTextQuaternary:ef(i,.25),colorFill:ef(i,.18),colorFillSecondary:ef(i,.12),colorFillTertiary:ef(i,.08),colorFillQuaternary:ef(i,.04),colorBgSolid:ef(i,.95),colorBgSolidHover:ef(i,1),colorBgSolidActive:ef(i,.9),colorBgElevated:jv(r,12),colorBgContainer:jv(r,8),colorBgLayout:jv(r,0),colorBgSpotlight:jv(r,26),colorBgBlur:ef(i,.04),colorBorder:jv(r,26),colorBorderDisabled:jv(r,26),colorBorderSecondary:jv(r,19)}},aYe=(e,t)=>{const n=Object.keys(hD).map(a=>{const s=tM(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,c,u)=>(l[`${a}-${u+1}`]=s[u],l[`${a}${u+1}`]=s[u],l),{})}).reduce((a,s)=>(a=I(I({},a),s),a),{}),r=t!=null?t:rM(e),i=_te(e,{generateColorPalettes:Zue,generateNeutralColorPalettes:oYe}),o=uA.reduce((a,s)=>{const l=e[s];if(l){const c=Zue(l);a[`${s}Hover`]=c[7],a[`${s}Active`]=c[5]}return a},{});return te(I(I(I(I({},r),n),i),o),{colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover})};function sYe(){const[e,t,n,r]=al();return{theme:e,token:t,hashId:n,cssVar:r}}const ld={defaultSeed:ZS.token,useToken:sYe,defaultAlgorithm:rM,darkAlgorithm:aYe,compactAlgorithm:iYe,getDesignToken:nYe,defaultConfig:ZS,_internalContext:TD},{TimePicker:lYe,RangePicker:cYe}=ip,uYe=g.forwardRef((e,t)=>g.createElement(cYe,te(I({},e),{picker:"time",mode:void 0,ref:t}))),c2=g.forwardRef((e,t)=>{const v=e,{addon:n,renderExtraFooter:r,variant:i,bordered:o,classNames:a,styles:s,popupClassName:l,popupStyle:c}=v,u=Ze(v,["addon","renderExtraFooter","variant","bordered","classNames","styles","popupClassName","popupStyle"]),[f]=ep("timePicker",i,o),d=g.useMemo(()=>{if(r)return r;if(n)return n},[n,r]),A=te(I({},e),{variant:f}),[h,p]=v7("timePicker",a,s,l,c,A);return g.createElement(lYe,te(I({},u),{mode:void 0,ref:t,renderExtraFooter:d,variant:f,classNames:h,styles:p}))}),Jue=CE(c2,"popupAlign",void 0,"picker");c2._InternalPanelDoNotUseOrYouWillBeFired=Jue,c2.RangePicker=uYe,c2._InternalPanelDoNotUseOrYouWillBeFired=Jue;const VI=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},fYe=e=>{const t=new Map;return e.forEach(({disabled:n,key:r},i)=>{n&&t.set(r,i)}),t};function dYe(e,t){const n=e==="right";return t!=="rtl"?n?Be.createElement(od,null):Be.createElement(mA,null):n?Be.createElement(mA,null):Be.createElement(od,null)}const efe=({type:e,actions:t,moveToLeft:n,moveToRight:r,leftActive:i,rightActive:o,direction:a,disabled:s})=>{const l=e==="right",c=l?t[0]:t[1],u=l?r:n,f=l?o:i,d=dYe(e,a);if(Be.isValidElement(c)){const A=c,h=p=>{var v,y;(y=(v=A==null?void 0:A.props)==null?void 0:v.onClick)==null||y.call(v,p),u==null||u(p)};return Be.cloneElement(A,{disabled:s||!f,onClick:h})}return Be.createElement(qn,{type:"primary",size:"small",disabled:s||!f,onClick:A=>u==null?void 0:u(A),icon:d},c)},tfe=e=>{const a=e,{className:t,style:n,oneWay:r,actions:i}=a,o=Ze(a,["className","style","oneWay","actions"]);return Be.createElement("div",{className:t,style:n},Be.createElement(efe,I({type:"right",actions:i},o)),!r&&Be.createElement(efe,I({type:"left",actions:i},o)),i.slice(r?1:2))},AYe=(e,t,n)=>{const r=g.useMemo(()=>(e||[]).map(a=>t?te(I({},a),{key:t(a)}):a),[e,t]),[i,o]=g.useMemo(()=>{var c;const a=[],s=Array.from({length:(c=n==null?void 0:n.length)!=null?c:0}),l=VI(n||[]);return r.forEach(u=>{if(l.has(u.key)){const f=l.get(u.key);s[f]=u}else a.push(u)}),[a,s]},[r,n]);return[r,i.filter(Boolean),o.filter(Boolean)]},hYe=[];function KI(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function nfe(e){return Array.from(e).join(";")}function pYe(e,t,n){const[r,i]=g.useMemo(()=>[new Set(e.map(f=>f==null?void 0:f.key)),new Set(t.map(f=>f==null?void 0:f.key))],[e,t]),[o,a]=Fr(hYe,n),s=g.useMemo(()=>KI(o,r),[o,r]),l=g.useMemo(()=>KI(o,i),[o,i]);g.useEffect(()=>{a([].concat(en(KI(o,r)),en(KI(o,i))))},[nfe(r),nfe(i)]);const c=yn(f=>{a([].concat(en(f),en(l)))}),u=yn(f=>{a([].concat(en(s),en(f)))});return[s,l,c,u]}const rfe=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:o,handleClear:a}=e,s=g.useCallback(l=>{o==null||o(l),l.target.value===""&&(a==null||a())},[o]);return g.createElement(Gb,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:g.createElement(Kg,null)})};var WI={},ife;function gYe(){if(ife)return WI;ife=1,Object.defineProperty(WI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};return WI.default=e,WI}var mYe=gYe();const vYe=_t(mYe);function H9(){return H9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,H9({},e,{ref:t,icon:vYe})),GI=g.forwardRef(yYe),bYe=e=>{const{prefixCls:t,classNames:n,styles:r,renderedText:i,renderedEl:o,item:a,checked:s,disabled:l,onClick:c,onRemove:u,showRemove:f}=e,d=l||(a==null?void 0:a.disabled),A=Ae(`${t}-content-item`,n.item,{[`${t}-content-item-disabled`]:d,[`${t}-content-item-checked`]:s&&!d});let h;(typeof i=="string"||mo(i))&&(h=String(i));const[p]=zs("Transfer",Sl.Transfer),v={className:A,style:r.item,title:h},y=g.createElement("span",{className:Ae(`${t}-content-item-text`,n.itemContent),style:r.itemContent},o);return f?g.createElement("li",I({},v),y,g.createElement("button",{type:"button",disabled:d,className:`${t}-content-item-remove`,"aria-label":p==null?void 0:p.remove,onClick:()=>u==null?void 0:u(a)},g.createElement(GI,null))):(v.onClick=d?void 0:b=>c(a,b),g.createElement("li",I({},v),g.createElement(Zu,{className:Ae(`${t}-checkbox`,n.itemIcon),style:r.itemIcon,checked:s,disabled:d}),y))},xYe=g.memo(bYe),wYe=["handleFilter","handleClear","checkedKeys"],CYe=e=>I(I({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),SYe=(e,t)=>{const{prefixCls:n,classNames:r,styles:i,filteredRenderItems:o,selectedKeys:a,disabled:s,showRemove:l,pagination:c,onScroll:u,onItemSelect:f,onItemRemove:d}=e,[A,h]=g.useState(1),p=g.useMemo(()=>{if(!c)return null;const _=Zn(c)?c:{};return CYe(_)},[c]),[v,y]=Fr(10,p==null?void 0:p.pageSize);g.useEffect(()=>{if(p){const _=Math.ceil(o.length/v);h(Math.min(A,_))}},[o,p,v]);const b=(_,M)=>{f(_.key,!a.includes(_.key),M)},x=_=>{d==null||d([_.key])},C=_=>{h(_)},S=(_,M)=>{h(_),y(M)},B=g.useMemo(()=>p?o.slice((A-1)*v,A*v):o,[A,o,p,v]);g.useImperativeHandle(t,()=>({items:B}));const E=p?g.createElement(V7,{size:"small",disabled:s,simple:p.simple,pageSize:v,showLessItems:p.showLessItems,showSizeChanger:p.showSizeChanger,className:`${n}-pagination`,total:o.length,current:A,onChange:C,onShowSizeChange:S}):null;return g.createElement(g.Fragment,null,g.createElement("ul",{className:Ae(`${n}-content`,r.list,{[`${n}-content-show-remove`]:l}),style:i.list,onScroll:u},(B||[]).map(({renderedEl:_,renderedText:M,item:R})=>g.createElement(xYe,{key:R.key,prefixCls:n,classNames:r,styles:i,item:R,renderedText:M,renderedEl:_,showRemove:l,onClick:b,onRemove:x,checked:a.includes(R.key),disabled:s}))),E)},EYe=g.forwardRef(SYe),BYe=()=>null;function OYe(e){return oa(e)&&Zn(e)&&!Be.isValidElement(e)}function ix(e){return e.reduce((t,n)=>(n.disabled||t.push(n.key),t),[])}function $Ye(e,t){for(const n of[e,t.title,t.key]){if(AA(n))return n;if(mo(n))return String(n)}return""}const _Ye=e=>e!==void 0,TYe=e=>Zn(e)?te(I({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},U9=e=>{const{prefixCls:t,style:n,classNames:r,styles:i,dataSource:o=[],titleText:a="",checkedKeys:s,disabled:l,showSearch:c=!1,searchPlaceholder:u,notFoundContent:f,selectAll:d,deselectAll:A,selectCurrent:h,selectInvert:p,removeAll:v,removeCurrent:y,showSelectAll:b=!0,showRemove:x,pagination:C,direction:S,itemsUnit:B,itemUnit:E,selectAllLabel:_,selectionsIcon:M,footer:R,renderList:T,onItemSelectAll:L,onItemRemove:P,handleFilter:k,handleClear:H,filterOption:D,render:U=BYe}=e,j=`${t}-section`,Q=`${t}-list`,K=TYe(c),[z,V]=g.useState(K.defaultValue),Y=g.useRef({}),Z=pe=>{V(pe.target.value),k(pe)},W=()=>{V(""),H()},J=(pe,Oe)=>Rn(D)?D(z,Oe,S):pe.includes(z),ee=pe=>{let Oe=T?T(te(I({},pe),{onItemSelect:(Me,Se)=>pe.onItemSelect(Me,Se)})):null;const xe=!!Oe;return xe||(Oe=Be.createElement(EYe,te(I({ref:Y},pe),{prefixCls:Q}))),{customize:xe,bodyContent:Oe}},ne=pe=>{const Oe=U(pe),xe=OYe(Oe),Me=xe?Oe.label:Oe,Se=xe?Oe.value:$Ye(Oe,pe);return{item:pe,renderedEl:Me,renderedText:Se}},re=g.useMemo(()=>Array.isArray(f)?f[S==="left"?0:1]:f,[f,S]),[ue,de]=g.useMemo(()=>{const pe=[],Oe=[];return o.forEach(xe=>{const Me=ne(xe);z&&!J(Me.renderedText,xe)||(pe.push(xe),Oe.push(Me))}),[pe,Oe]},[o,z,D,S]),se=g.useMemo(()=>ue.filter(pe=>s.includes(pe.key)&&!pe.disabled),[s,ue]),ce=g.useMemo(()=>{if(se.length===0)return"none";const pe=VI(s);return ue.every(Oe=>pe.has(Oe.key)||!!Oe.disabled)?"all":"part"},[se.length,s,ue]),ge=()=>{const pe=c?Be.createElement("div",{className:`${Q}-body-search-wrapper`},Be.createElement(rfe,{prefixCls:`${Q}-search`,onChange:Z,handleClear:W,placeholder:K.placeholder||u,value:z,disabled:l})):null,{customize:Oe,bodyContent:xe}=ee(te(I({},ti(e,wYe)),{filteredItems:ue,filteredRenderItems:de,selectedKeys:s,classNames:r,styles:i}));let Me;return Oe?Me=Be.createElement("div",{className:`${Q}-body-customize-wrapper`},xe):Me=ue.length?xe:Be.createElement("div",{className:`${Q}-body-not-found`},re),Be.createElement("div",{className:Ae(`${Q}-body`,{[`${Q}-body-with-search`]:c},r.body),style:i.body},pe,Me)},ie=Be.createElement(Zu,{disabled:!o.some(pe=>!pe.disabled)||l,checked:ce==="all",indeterminate:ce==="part",className:`${Q}-checkbox`,onChange:()=>{L==null||L(ix(ue),ce!=="all")}}),le=(pe,Oe)=>{if(_)return Rn(_)?_({selectedCount:pe,totalCount:Oe}):_;const xe=Oe>1?B:E;return Be.createElement(Be.Fragment,null,(pe>0?`${pe}/`:"")+Oe," ",xe)},ve=R&&(R.length<2?R(e):R(e,{direction:S})),we=ve?Be.createElement("div",{className:Ae(`${Q}-footer`,r.footer),style:i.footer},ve):null,me=!x&&!C&&ie;let Ee;x?Ee=[C?{key:"removeCurrent",label:y,onClick(){var Oe;const pe=ix((((Oe=Y.current)==null?void 0:Oe.items)||[]).map(xe=>xe.item));P==null||P(pe)}}:null,{key:"removeAll",label:v,onClick(){P==null||P(ix(ue))}}].filter(Boolean):Ee=[{key:"selectAll",label:ce==="all"?A:d,onClick(){const pe=ix(ue);L==null||L(pe,pe.length!==s.length)}},C?{key:"selectCurrent",label:h,onClick(){var Oe;const pe=((Oe=Y.current)==null?void 0:Oe.items)||[];L==null||L(ix(pe.map(xe=>xe.item)),!0)}}:null,{key:"selectInvert",label:p,onClick(){var Me;const pe=ix((((Me=Y.current)==null?void 0:Me.items)||[]).map(Se=>Se.item)),Oe=new Set(s),xe=new Set(Oe);pe.forEach(Se=>{Oe.has(Se)?xe.delete(Se):xe.add(Se)}),L==null||L(en(xe),"replace")}}];const Ce=Be.createElement(Y4,{className:`${Q}-header-dropdown`,menu:{items:Ee},disabled:l},_Ye(M)?M:Be.createElement(OE,null));return Be.createElement("div",{className:Ae(j,r.section,{[`${j}-with-pagination`]:!!C,[`${j}-with-footer`]:!!ve}),style:I(I({},n),i.section)},Be.createElement("div",{className:Ae(`${Q}-header`,r.header),style:i.header},b?Be.createElement(Be.Fragment,null,me,Ce):null,Be.createElement("span",{className:`${Q}-header-selected`},le(se.length,ue.length)),Be.createElement("span",{className:Ae(`${Q}-header-title`,r.title),style:i.title},a)),ge(),we)},MYe=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,o=`${t}-table`,a=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-section`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${o}-wrapper`]:{[`${o}-small`]:{border:0,borderRadius:0,[`${o}-selection-column`]:{width:i,minWidth:i}},[`${o}-pagination${o}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},ofe=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},IYe=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:I({},ofe(e,e.colorError)),[`${t}-status-warning`]:I({},ofe(e,e.colorWarning))}},RYe=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:o,headerHeight:a,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:d,listWidth:A,listWidthLG:h,fontSizeIcon:p,marginXS:v,paddingSM:y,lineType:b,antCls:x,iconCls:C,motionDurationSlow:S,controlItemBgHover:B,borderRadiusLG:E,colorBgContainer:_,colorText:M,controlItemBgActiveHover:R}=e,T=be(e.calc(E).sub(i).equal());return{display:"flex",flexDirection:"column",width:A,height:d,border:`${be(i)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},[`${t}-list`]:{"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${be(e.calc(s).sub(i).equal())} ${be(y)} ${be(s)}`,color:M,background:_,borderBottom:`${be(i)} ${b} ${r}`,borderRadius:`${be(E)} ${be(E)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":te(I({},Wa),{flex:"0 1 auto",textAlign:"end",marginInlineStart:"auto"}),"&-dropdown":te(I({},Fg()),{fontSize:p,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${T} ${T}`,"&-item":{display:"flex",alignItems:"center",minHeight:o,padding:`${be(l)} ${be(y)}`,transition:`all ${S}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":te(I({},Wa),{flex:"auto"}),"&-remove":te(I({},iM(e)),{color:n,"&:hover, &:focus":{color:f},"&:disabled":{color:u,cursor:"not-allowed"}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:B,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:R}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${be(i)} ${b} ${r}`,[`${x}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${be(i)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}}},NYe=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:o,fontSizeIcon:a,colorBgContainerDisabled:s}=e;return{[r]:te(I({},zr(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-section`]:{background:s}},[`${r}-section`]:RYe(e),[`${r}-actions`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${be(i)}`,verticalAlign:"middle",gap:o,[`${t}-btn ${n}`]:{fontSize:a}}})}},PYe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},LYe=Br("Transfer",e=>{const t=dr(e);return[NYe(t),MYe(t),IYe(t),PYe(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:o}=e,a=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((i-o-a)/2)}}),qI=e=>{const mn=e,{prefixCls:t,className:n,rootClassName:r,classNames:i,styles:o,style:a,listStyle:s,operationStyle:l,operations:c,actions:u,dataSource:f,targetKeys:d=[],selectedKeys:A,selectAllLabels:h=[],locale:p={},titles:v,disabled:y,showSearch:b=!1,showSelectAll:x,oneWay:C,pagination:S,status:B,selectionsIcon:E,filterOption:_,render:M,footer:R,children:T,rowKey:L,onScroll:P,onChange:k,onSearch:H,onSelectChange:D}=mn,U=Ze(mn,["prefixCls","className","rootClassName","classNames","styles","style","listStyle","operationStyle","operations","actions","dataSource","targetKeys","selectedKeys","selectAllLabels","locale","titles","disabled","showSearch","showSelectAll","oneWay","pagination","status","selectionsIcon","filterOption","render","footer","children","rowKey","onScroll","onChange","onSearch","onSelectChange"]),{getPrefixCls:j,renderEmpty:Q,direction:K,className:z,style:V,classNames:Y,styles:Z,selectionsIcon:W}=or("transfer"),J=g.useContext(qa),ee=y!=null?y:J,ne=te(I({},e),{disabled:ee}),re=j("transfer",t),[ue,de]=LYe(re),se=u||c||[],ce=K==="rtl",[ge,ie,le]=AYe(f,L,d),[ve,we,me,Ee]=pYe(ie,le,A),[Ce,pe]=f8(Rt=>Rt.key),[Oe,xe]=f8(Rt=>Rt.key),Me=g.useCallback((Rt,tn)=>{Rt==="left"?me(Rn(tn)?tn(ve||[]):tn):Ee(Rn(tn)?tn(we||[]):tn)},[ve,we]),Se=(Rt,tn)=>{(Rt==="left"?pe:xe)(tn)},Pe=g.useCallback((Rt,tn)=>{Rt==="left"?D==null||D(tn,we):D==null||D(ve,tn)},[ve,we]),Le=Rt=>{var tn;return(tn=v!=null?v:Rt.titles)!=null?tn:[]},He=Rt=>{P==null||P("left",Rt)},Ne=Rt=>{P==null||P("right",Rt)},at=Rt=>{const tn=Rt==="right"?ve:we,cn=fYe(ge),gn=tn.filter(Mt=>!cn.has(Mt)),Zt=VI(gn),_n=Rt==="right"?gn.concat(d):d.filter(Mt=>!Zt.has(Mt)),Wt=Rt==="right"?"left":"right";Me(Wt,[]),Pe(Wt,[]),k==null||k(_n,Rt,gn)},Ue=()=>{at("left"),Se("left",null)},et=()=>{at("right"),Se("right",null)},We=(Rt,tn,cn)=>{Me(Rt,gn=>{let Zt=[];if(cn==="replace")Zt=tn;else if(cn)Zt=Array.from(new Set([].concat(en(gn),en(tn))));else{const _n=VI(tn);Zt=gn.filter(Wt=>!_n.has(Wt))}return Pe(Rt,Zt),Zt}),Se(Rt,null)},Je=(Rt,tn)=>We("left",Rt,tn),dt=(Rt,tn)=>We("right",Rt,tn),wt=Rt=>H==null?void 0:H("left",Rt.target.value),Bt=Rt=>H==null?void 0:H("right",Rt.target.value),qt=()=>H==null?void 0:H("left",""),jt=()=>H==null?void 0:H("right",""),nn=(Rt,tn,cn,gn,Zt)=>{tn.has(cn)&&(tn.delete(cn),Se(Rt,null)),gn&&(tn.add(cn),Se(Rt,Zt))},Jt=(Rt,tn,cn,gn)=>{(Rt==="left"?Ce:Oe)(gn,tn,cn)},Ot=(Rt,tn,cn,gn)=>{const Zt=Rt==="left",_n=Zt?ve:we,Wt=new Set(_n),Mt=(Zt?ie:le).filter(Dt=>!Dt.disabled),vn=Mt.findIndex(Dt=>Dt.key===tn);gn&&_n.length>0?Jt(Rt,Mt,Wt,vn):nn(Rt,Wt,tn,cn,vn);const In=Array.from(Wt);Pe(Rt,In),e.selectedKeys||Me(Rt,In)},sn=(Rt,tn,cn)=>{Ot("left",Rt,tn,cn==null?void 0:cn.shiftKey)},Vt=(Rt,tn,cn)=>{Ot("right",Rt,tn,cn==null?void 0:cn.shiftKey)},xt=Rt=>{Me("right",[]),k==null||k(d.filter(tn=>!Rt.includes(tn)),"left",en(Rt))},qe=Rt=>Rn(s)?s({direction:Rt}):s||{},{hasFeedback:it,status:Pt}=g.useContext(Ya),De=Rt=>I(te(I({},Rt),{notFoundContent:(Q==null?void 0:Q("Transfer"))||Be.createElement(CH,{componentName:"Transfer"})}),p),ze=Vg(Pt,B),bt=!T&&S,lt=le.some(Rt=>oa(Rt.key)&&we.includes(Rt.key)&&!Rt.disabled),At=ie.some(Rt=>oa(Rt.key)&&ve.includes(Rt.key)&&!Rt.disabled),ut=Ar(V),ft=Ar(a),[Kt,An]=vr([Y,i],[Z,ut,o,ft],{props:ne},{source:{},target:{}}),pn=Ae(re,{[`${re}-disabled`]:ee,[`${re}-customize-list`]:!!T,[`${re}-rtl`]:ce},Jh(re,ze,it),z,n,r,ue,de,Kt.root),[bn]=zs("Transfer",Sl.Transfer),Sn=De(bn),[Tn,lr]=Le(Sn),$n=E!=null?E:W,Fn=["section","header","title","body","list","item","itemIcon","itemContent","footer"],$t=Rt=>{const tn=I({},Kt),cn=Kt[Rt];return Fn.forEach(gn=>{tn[gn]=Ae(Kt[gn],cn==null?void 0:cn[gn])}),tn},Ie=Rt=>{const tn=I({},An),cn=An[Rt];return Fn.forEach(gn=>{tn[gn]=I(I({},An[gn]),cn==null?void 0:cn[gn])}),tn},Ke=$t("source"),nt=$t("target"),ht=Ie("source"),Xt=Ie("target"),kt=Co(U,{aria:!0,data:!0});return Be.createElement("div",te(I({},kt),{className:pn,style:An.root}),Be.createElement(U9,I({prefixCls:re,style:qe("left"),classNames:Ke,styles:ht,titleText:Tn,dataSource:ie,filterOption:_,checkedKeys:ve,handleFilter:wt,handleClear:qt,onItemSelect:sn,onItemSelectAll:Je,render:M,showSearch:b,renderList:T,footer:R,onScroll:He,disabled:ee,direction:ce?"right":"left",showSelectAll:x,selectAllLabel:h[0],pagination:bt,selectionsIcon:$n},Sn)),Be.createElement(tfe,{className:Ae(`${re}-actions`,Kt.actions),rightActive:At,moveToRight:et,leftActive:lt,actions:se,moveToLeft:Ue,style:I(I({},l),An.actions),disabled:ee,direction:K,oneWay:C}),Be.createElement(U9,I({prefixCls:re,style:qe("right"),classNames:nt,styles:Xt,titleText:lr,dataSource:le,filterOption:_,checkedKeys:we,handleFilter:Bt,handleClear:jt,onItemSelect:Vt,onItemSelectAll:dt,onItemRemove:xt,render:M,showSearch:b,renderList:T,footer:R,onScroll:Ne,disabled:ee,direction:ce?"left":"right",showSelectAll:x,selectAllLabel:h[1],showRemove:C,pagination:bt,selectionsIcon:$n},Sn)))};qI.List=U9,qI.Search=rfe,qI.Operation=tfe;var YI={},afe;function FYe(){if(afe)return YI;afe=1,Object.defineProperty(YI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};return YI.default=e,YI}var kYe=FYe();const DYe=_t(kYe);function j9(){return j9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,j9({},e,{ref:t,icon:DYe})),XI=g.forwardRef(HYe);var ZI={},sfe;function UYe(){if(sfe)return ZI;sfe=1,Object.defineProperty(ZI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};return ZI.default=e,ZI}var jYe=UYe();const zYe=_t(jYe);function z9(){return z9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,z9({},e,{ref:t,icon:zYe})),VYe=g.forwardRef(QYe),KYe=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},WYe=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` - h${r}&, - div&-h${r}, - div&-h${r} > textarea, - h${r} - `]=KYe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},GYe=e=>{const{componentCls:t}=e;return{[`&${`${t}-link`}`]:te(I({},iM(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}})}},qYe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:nM[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:be(e.padding),overflowWrap:"break-word",borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),YYe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},XYe=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ZYe=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":te(I({},Wa),{"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}}),"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),lfe=Br("Typography",e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:te(I(I(I(te(I(I(te(I({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"}},WYe(e)),{[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}}}),qYe(e)),GYe(e)),{[`${t}-actions`]:{display:"inline"},[` + `]:{[t]:{marginBlock:Q(v(r).mul(-1).equal()),marginInline:`${Q(v(a).sub(i).equal())} + ${Q(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${Q(r)} ${Q(i)}`,color:g,background:_}})}},CCe=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new Hl(i).onBackground(n).toHexString(),w=new Hl(a).onBackground(n).toHexString(),T=new Hl(t).onBackground(n).toHexString(),E=new Hl(y),D=new Hl(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},wCe=2,TCe=dd(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=bl(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:wCe,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[SCe(F),mCe(F),rk(F),yCe(F),fCe(F),cCe(F),hCe(F),dCe(F),rk(F),uCe(F),_Ce(F),pCe(F),bCe(F),lCe(F),vCe(F),gCe(F),xCe(F)]},CCe,{resetFont:!1,unitless:{expandIconScale:!0}});K();var ik=[],ak=J.createContext({}),ECe=e=>{let{ariaProps:t,component:n=`table`}=J.useContext(ak);return J.createElement(n,G(G({},t),e))},DCe=J.forwardRef((e,t)=>{var n,r,i,a;let{prefixCls:o,className:s,rootClassName:c,style:l,classNames:u,styles:d,size:f,bordered:p,dropdownPrefixCls:m,dataSource:h,pagination:g,rowSelection:_,rowKey:v,rowClassName:y,column:b,columns:x,children:S,childrenColumnName:C,onChange:w,getPopupContainer:T,loading:E,expandIcon:D,expandable:O,expandedRowRender:k,expandIconColumnIndex:A,indentSize:j,scroll:M,sortDirections:N,locale:P,showSorterTooltip:F={target:`full-header`},virtual:I}=e;eo(`Table`);let L=dSe(J.useMemo(()=>x||qD(S),[x,S]),b),R=By(J.useMemo(()=>L.some(e=>e.responsive),[L])),z=J.useMemo(()=>{let e=new Set(Object.keys(R).filter(e=>R[e]));return L.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[L,R]),B=Ca(e,[`className`,`style`,`column`,`columns`]),V=B.components,H=Oa(B,{aria:!0}),U=Object.keys(H).length>0,ee=J.useMemo(()=>{var e;return{ariaProps:H,component:V==null||(e=V.header)==null?void 0:e.table}},[H,V==null||(n=V.header)==null?void 0:n.table]),te=J.useMemo(()=>U?G(G({},V),{},{header:G(G({},V==null?void 0:V.header),{},{table:ECe})}):V,[V,U]),{locale:ne=Wn,table:re}=J.useContext(Eo),{getPrefixCls:ie,direction:ae,renderEmpty:oe,getPopupContainer:se,className:ce,style:le,classNames:ue,styles:de}=ko(`table`),fe=vh(e=>f===`middle`?`medium`:f==null?e:f),pe=G(G({},e),{},{size:fe,bordered:p}),me=yp(le),he=yp(l),[W,ge]=xp([ue,u],[de,me,d,he],{props:pe},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),_e=G(G({},ne.Table),P),[K]=Hp(`global`,Wn.global),ve=h||ik,q=ie(`table`,o),ye=ie(`dropdown`,m),[,be]=$u(),xe=J.useMemo(()=>{var e;return lp(_)?G({columnWidth:(e=be.Table)==null?void 0:e.selectionColumnWidth},_):_},[_,(r=be.Table)==null?void 0:r.selectionColumnWidth]),Se=Fp(q),[Ce,we]=TCe(q,Se),Te=G(G({childrenColumnName:C,expandIconColumnIndex:A},O),{},{expandIcon:(i=O==null?void 0:O.expandIcon)==null?re==null||(a=re.expandable)==null?void 0:a.expandIcon:i}),{childrenColumnName:Ee=`children`}=Te,De=J.useMemo(()=>ve.some(e=>e==null?void 0:e[Ee])?`nest`:k||O!=null&&O.expandedRowRender?`row`:null,[Ee,ve]),Oe={body:J.useRef(null)},ke=uSe(q),Ae=J.useRef(null),je=J.useRef(null);Cte(t,()=>G(G({},je.current),{},{nativeElement:Ae.current}));let Me=v||(re==null?void 0:re.rowKey)||`key`,Ne=M==null?re==null?void 0:re.scroll:M,Pe=J.useMemo(()=>up(Me)?Me:e=>e==null?void 0:e[Me],[Me]),[Fe]=JSe(ve,Ee,Pe),Ie={},Le=(e,t,n=!1)=>{let r=G(G({},Ie),e);if(n){var i,a;if((i=Ie.resetPagination)==null||i.call(Ie),(a=r.pagination)!=null&&a.current&&(r.pagination.current=1),g){var o,s;(o=g.onChange)==null||o.call(g,1,(s=r.pagination)==null?void 0:s.pageSize)}}M&&M.scrollToFirstRowOnChange!==!1&&Oe.body.current&&Pp(0,{getContainer:()=>Oe.body.current}),w==null||w(r.pagination,r.filters,r.sorter,{currentDataSource:HO(ek(ve,r.sorterStates,Ee),r.filterStates,Ee),action:t})},[Re,ze,Be,Ve]=rCe({prefixCls:q,mergedColumns:z,baseColumns:L,onSorterChange:(e,t)=>{Le({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:N||[`ascend`,`descend`],tableLocale:_e,showSorterTooltip:F,globalLocale:K}),He=J.useMemo(()=>ek(ve,ze,Ee),[Ee,ve,ze]);Ie.sorter=Ve(),Ie.sorterStates=ze;let[Ue,We,Ge]=qSe({prefixCls:q,locale:_e,dropdownPrefixCls:ye,mergedColumns:z,onFilterChange:(e,t)=>{Le({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:T||se,rootClassName:Z(c,Se)}),Ke=HO(He,We,Ee);Ie.filters=Ge,Ie.filterStates=We;let[qe]=aCe(lSe(Be,Ge)),[Je,Ye]=ZSe(Ke.length,(e,t)=>{Le({pagination:G(G({},Ie.pagination),{},{current:e,pageSize:t})},`paginate`)},g);Ie.pagination=g===!1?{}:XSe(Je,g),Ie.resetPagination=Ye;let Xe=J.useMemo(()=>{if(g===!1||!Je.pageSize)return Ke;let{current:e=1,total:t,pageSize:n=10}=Je;return Ke.lengthn?Ke.slice((e-1)*n,e*n):Ke:Ke.slice((e-1)*n,e*n)},[!!g,Ke,Je==null?void 0:Je.current,Je==null?void 0:Je.pageSize,Je==null?void 0:Je.total]),[Ze,Qe]=oSe({prefixCls:q,data:Ke,pageData:Xe,getRowKey:Pe,getRecordByKey:Fe,expandType:De,childrenColumnName:Ee,locale:_e,getPopupContainer:T||se},xe),$e=(e,t,n)=>Z({[`${q}-row-selected`]:Qe.has(Pe(e,t))},up(y)?y(e,t,n):y);Te.__PARENT_RENDER_ICON__=Te.expandIcon,Te.expandIcon=Te.expandIcon||D||sSe(_e),De===`nest`&&Te.expandIconColumnIndex===void 0?Te.expandIconColumnIndex=+!!xe:Te.expandIconColumnIndex>0&&xe&&--Te.expandIconColumnIndex,sp(Te.indentSize)||(Te.indentSize=sp(j)?j:15);let et=J.useCallback(e=>qe(Ze(Ue(Re(e)))),[Re,Ue,Ze]),tt,nt;if(g!==!1&&Je!=null&&Je.total){let e=pSe(Je.size,fe),t=(t=`end`)=>J.createElement(nD,G(G({},Je),{},{classNames:W.pagination,styles:ge.pagination,className:Z(`${q}-pagination`,`${q}-pagination-${t}`,Je.className),size:e})),{placement:n,position:r}=Je,i=n==null?r:n;if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(nt=t()),e&&(tt=t(hO(e))),n&&(nt=t(hO(n)))}else nt=t()}let rt=iCe(E),it=Z(we,Se,`${q}-wrapper`,ce,{[`${q}-wrapper-rtl`]:ae===`rtl`},s,c,W.root,Ce),at=J.useMemo(()=>rt!=null&&rt.spinning&&ve===ik?null:(P==null?void 0:P.emptyText)===void 0?(oe==null?void 0:oe(`Table`))||J.createElement(xy,{componentName:`Table`}):P.emptyText,[rt==null?void 0:rt.spinning,ve,P==null?void 0:P.emptyText,oe]),ot=I?sCe:oCe,st={},ct=J.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=be,o=Math.floor(e*t);switch(fe){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[be,fe]);return I&&(st.listItemHeight=ct),J.createElement(`div`,{ref:Ae,className:it,style:ge.root},J.createElement(aD,G({spinning:!1},rt),tt,J.createElement(ak.Provider,{value:ee},J.createElement(ot,G(G(G({},st),B),{},{components:te,scroll:Ne,classNames:W,styles:ge,ref:je,columns:z,direction:ae,expandable:Te,prefixCls:q,className:Z({[`${q}-medium`]:fe===`medium`,[`${q}-small`]:fe===`small`,[`${q}-bordered`]:p,[`${q}-empty`]:ve.length===0},we,Se,Ce),data:Xe,rowKey:Pe,rowClassName:$e,emptyText:at,internalHooks:DD,internalRefs:Oe,transformColumns:et,getContainerWidth:ke,measureRowRender:e=>J.createElement($y.Provider,{value:!0},J.createElement(Em,{getPopupContainer:e=>e},e))}))),nt))});K();var ok=J.forwardRef((e,t)=>{let n=J.useRef(0);return n.current+=1,J.createElement(DCe,G(G({},e),{},{ref:t,_renderTimes:n.current}))});ok.SELECTION_COLUMN=oO,ok.EXPAND_COLUMN=ED,ok.SELECTION_ALL=sO,ok.SELECTION_INVERT=cO,ok.SELECTION_NONE=lO,ok.Column=iSe,ok.ColumnGroup=aSe,ok.Summary=exe;var sk=ok;K();var OCe=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:G(G({},td(e)),{},{display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},ck=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return bl(e,{tagFontSize:i,tagLineHeight:Q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},lk=e=>{let t=cg(new $h(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Hl(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},uk=dd(`Tag`,e=>OCe(ck(e)),lk);K();var kCe=[`prefixCls`,`style`,`className`,`checked`,`children`,`icon`,`onChange`,`onClick`,`onKeyDown`,`disabled`],dk=J.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,onKeyDown:u,disabled:d}=e,f=q(e,kCe),{getPrefixCls:p,tag:m}=J.useContext(Eo),h=J.useContext(gm),g=d==null?h:d,_=e=>{g||(c==null||c(!a),l==null||l(e))},v=e=>{u==null||u(e),!(e.defaultPrevented||g)&&e.key===` `&&(e.preventDefault(),c==null||c(!a))},y=p(`tag`,n),[b,x]=uk(y),S=Z(y,`${y}-checkable`,{[`${y}-checkable-checked`]:a,[`${y}-checkable-disabled`]:g},m==null?void 0:m.className,i,b,x);return J.createElement(`span`,G(G({},f),{},{ref:t,role:`checkbox`,"aria-checked":a,"aria-disabled":g||void 0,tabIndex:g?-1:0,style:G(G({},r),m==null?void 0:m.style),className:S,onClick:_,onKeyDown:v}),s,J.createElement(`span`,null,o))});K();var ACe=[`id`,`prefixCls`,`rootClassName`,`className`,`style`,`classNames`,`styles`,`disabled`,`options`,`value`,`defaultValue`,`onChange`,`multiple`],jCe=J.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m}=e,h=q(e,ACe),{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:x}=ko(`tag`),S=g(`tag`,r),C=`${S}-checkable-group`,[w,T]=uk(S,Fp(S)),E=yp(y),D=yp(o),[O,k]=xp([b,s],[x,E,c,D],{props:e}),A=(0,J.useMemo)(()=>Array.isArray(u)?u.map(e=>lp(e)?e:{value:e,label:e}):[],[u]),[j,M]=$r(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(Co(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p==null||p(n)},P=J.useRef(null);(0,J.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Oa(h,{aria:!0,data:!0});return J.createElement(`div`,G(G({},F),{},{className:Z(C,v,i,{[`${C}-disabled`]:l,[`${C}-rtl`]:_===`rtl`},w,T,a,O.root),style:k.root,id:n,ref:P}),A.map(e=>J.createElement(dk,{key:e.value,className:Z(`${C}-item`,O.item,e.className),style:G(G({},k.item),e.style),checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function MCe(e,t){let{color:n,variant:r,bordered:i}=e;return J.useMemo(()=>{let e=n==null?void 0:n.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n==null?void 0:n.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=rb(o),c=oce(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Hl(o).toHsl();e.l=.95,l.backgroundColor=new Hl(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var NCe=e=>hd(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),PCe=pd([`Tag`,`preset`],e=>NCe(ck(e)),lk);function FCe(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var fk=(e,t,n)=>{let r=FCe(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},ICe=pd([`Tag`,`status`],e=>{let t=ck(e);return[fk(t,`success`,`Success`),fk(t,`processing`,`Info`),fk(t,`error`,`Error`),fk(t,`warning`,`Warning`)]},lk);K();var LCe=[`prefixCls`,`className`,`rootClassName`,`style`,`children`,`icon`,`color`,`variant`,`onClose`,`bordered`,`disabled`,`href`,`target`,`styles`,`classNames`],pk=J.forwardRef((e,t)=>{var n;let{prefixCls:r,className:i,rootClassName:a,style:o,children:s,icon:c,color:l,variant:u,onClose:d,bordered:f,disabled:p,href:m,target:h,styles:g,classNames:_}=e,v=q(e,LCe),{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=ko(`tag`),[E,D,O,k,A]=MCe(e,S),j=O||k,M=J.useContext(gm),N=p==null?M:p,{tag:P}=J.useContext(Eo),[F,I]=J.useState(!0),L=Ca(v,[`closeIcon`,`closable`]),R=G(G({},e),{},{color:D,variant:E,disabled:N}),[z,B]=xp([w,_],[T,g],{props:R}),V=J.useMemo(()=>{let e=G(G(G({},B.root),C),o);return N||(e=G(G({},A),e)),e},[B.root,C,o,A,N]),H=y(`tag`,r),[U,ee]=uk(H),te=Z(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},i,a,U,ee),ne=e=>{N||(e.stopPropagation(),d==null||d(e),!e.defaultPrevented&&I(!1))},re=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,ie]=vte(Rm(e),Rm(P),{closable:!1,closeIconRender:e=>fm(e,J.createElement(`span`,{role:`button`,tabIndex:N?-1:0,"aria-disabled":N||void 0,className:Z(`${H}-close-icon`,z.close),onClick:ne,onKeyDown:re,style:B.close},e),e=>({onClick:t=>{var n;e==null||(n=e.onClick)==null||n.call(e,t),ne(t)},onKeyDown:t=>{var n;e==null||(n=e.onKeyDown)==null||n.call(e,t),t.defaultPrevented||re(t)},role:`button`,tabIndex:N?-1:0,"aria-disabled":N||void 0,className:Z(e==null?void 0:e.className,`${H}-close-icon`,z.close),style:G(G({},B.close),e==null?void 0:e.style)}))}),ae=up(v.onClick)||s&&s.type===`a`,oe=pm(c,{className:Z(J.isValidElement(c)?(n=c.props)==null?void 0:n.className:void 0,z.icon),style:B.icon}),se=oe?J.createElement(J.Fragment,null,oe,s&&J.createElement(`span`,{className:z.content,style:B.content},s)):s,ce=m?`a`:`span`,le=J.createElement(ce,G(G({},L),{},{ref:t,className:te,style:V,href:N?void 0:m,target:h,onClick:N?void 0:L.onClick},m&&N?{"aria-disabled":!0}:{}),se,ie,O&&J.createElement(PCe,{key:`preset`,prefixCls:H}),k&&J.createElement(ICe,{key:`status`,prefixCls:H}));return ae?J.createElement(_h,{component:`Tag`},le):le});pk.CheckableTag=dk,pk.CheckableTagGroup=jCe,K();var RCe=e=>{let t=e!=null&&e.algorithm?Go(e.algorithm):Bu;return ms(G(G({},Il),e==null?void 0:e.token),{override:e==null?void 0:e.token},t,Ku)};function zCe(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}K();var BCe=(e,t)=>{let n=t==null?zu(e):t,r=n.fontSizeSM,i=n.controlHeight-4;return G(G(G(G({},n),zCe(t==null?e:t)),Nu(r)),{},{controlHeight:i},Mu(G(G({},n),{},{controlHeight:i})))},mk=(e,t)=>new Hl(e).setA(t).toRgbString(),hk=(e,t)=>new Hl(e).lighten(t).toHexString(),gk=e=>{let t=eu(e,{theme:`dark`});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},VCe=(e,t,n)=>{let r=e||`#000`,i=t||`#fff`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`rgba(255, 255, 255, 0.2)`,colorText:mk(i,.85),colorTextSecondary:mk(i,.65),colorTextTertiary:mk(i,.45),colorTextQuaternary:mk(i,.25),colorFill:mk(i,.18),colorFillSecondary:mk(i,.12),colorFillTertiary:mk(i,.08),colorFillQuaternary:mk(i,.04),colorBgSolid:mk(i,.95),colorBgSolidHover:mk(i,1),colorBgSolidActive:mk(i,.9),colorBgElevated:hk(r,12),colorBgContainer:hk(r,8),colorBgLayout:hk(r,0),colorBgSpotlight:hk(r,26),colorBgBlur:mk(i,.04),colorBorder:hk(r,26),colorBorderDisabled:hk(r,26),colorBorderSecondary:hk(r,19)}};K();var HCe=(e,t)=>{let n=Object.keys(Fl).map(t=>{let n=eu(e[t],{theme:`dark`});return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e=G(G({},e),t),e),{}),r=t==null?zu(e):t,i=ku(e,{generateColorPalettes:gk,generateNeutralColorPalettes:VCe}),a=jl.reduce((t,n)=>{let r=e[n];if(r){let e=gk(r);t[`${n}Hover`]=e[7],t[`${n}Active`]=e[5]}return t},{});return G(G(G(G(G({},r),n),i),a),{},{colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover})};function UCe(){let[e,t,n,r]=$u();return{theme:e,token:t,hashId:n,cssVar:r}}var _k={defaultSeed:Vu.token,useToken:UCe,defaultAlgorithm:zu,darkAlgorithm:HCe,compactAlgorithm:BCe,getDesignToken:RCe,defaultConfig:Vu,_internalContext:Hu};K();var WCe=[`addon`,`renderExtraFooter`,`variant`,`bordered`,`classNames`,`styles`,`popupClassName`,`popupStyle`],{TimePicker:GCe,RangePicker:KCe}=mE,qCe=J.forwardRef((e,t)=>J.createElement(KCe,G(G({},e),{},{picker:`time`,mode:void 0,ref:t}))),vk=J.forwardRef((e,t)=>{let{addon:n,renderExtraFooter:r,variant:i,bordered:a,classNames:o,styles:s,popupClassName:c,popupStyle:l}=e,u=q(e,WCe),[d]=Sy(`timePicker`,i,a),f=J.useMemo(()=>{if(r)return r;if(n)return n},[n,r]),[p,m]=lE(`timePicker`,o,s,c,l,G(G({},e),{},{variant:d}));return J.createElement(GCe,G(G({},u),{},{mode:void 0,ref:t,renderExtraFooter:f,variant:d,classNames:p,styles:m}))}),yk=Z_(vk,`popupAlign`,void 0,`picker`);vk._InternalPanelDoNotUseOrYouWillBeFired=yk,vk.RangePicker=qCe,vk._InternalPanelDoNotUseOrYouWillBeFired=yk;var bk=e=>{let t=new Map;return e.forEach((e,n)=>{t.set(e,n)}),t},JCe=e=>{let t=new Map;return e.forEach(({disabled:e,key:n},r)=>{e&&t.set(n,r)}),t};K();var YCe=[`className`,`style`,`oneWay`,`actions`];function XCe(e,t){let n=e===`right`;return t===`rtl`?n?J.createElement(pb,null):J.createElement(tg,null):n?J.createElement(tg,null):J.createElement(pb,null)}var xk=({type:e,actions:t,moveToLeft:n,moveToRight:r,leftActive:i,rightActive:a,direction:o,disabled:s})=>{let c=e===`right`,l=c?t[0]:t[1],u=c?r:n,d=c?a:i,f=XCe(e,o);if(J.isValidElement(l)){let e=l;return J.cloneElement(e,{disabled:s||!d,onClick:t=>{var n,r;e==null||(n=e.props)==null||(r=n.onClick)==null||r.call(n,t),u==null||u(t)}})}return J.createElement(pg,{type:`primary`,size:`small`,disabled:s||!d,onClick:e=>u==null?void 0:u(e),icon:f},l)},Sk=e=>{let{className:t,style:n,oneWay:r,actions:i}=e,a=q(e,YCe);return J.createElement(`div`,{className:t,style:n},J.createElement(xk,G({type:`right`,actions:i},a)),!r&&J.createElement(xk,G({type:`left`,actions:i},a)),i.slice(r?1:2))};K();var ZCe=(e,t,n)=>{let r=J.useMemo(()=>(e||[]).map(e=>t?G(G({},e),{},{key:t(e)}):e),[e,t]),[i,a]=J.useMemo(()=>{var e;let t=[],i=Array.from({length:(e=n==null?void 0:n.length)==null?0:e}),a=bk(n||[]);return r.forEach(e=>{if(a.has(e.key)){let t=a.get(e.key);i[t]=e}else t.push(e)}),[t,i]},[r,n]);return[r,i.filter(Boolean),a.filter(Boolean)]},QCe=[];function Ck(e,t){let n=e.filter(e=>t.has(e));return e.length===n.length?e:n}function wk(e){return Array.from(e).join(`;`)}function $Ce(e,t,n){let[r,i]=J.useMemo(()=>[new Set(e.map(e=>e==null?void 0:e.key)),new Set(t.map(e=>e==null?void 0:e.key))],[e,t]),[a,o]=$r(QCe,n),s=J.useMemo(()=>Ck(a,r),[a,r]),c=J.useMemo(()=>Ck(a,i),[a,i]);return J.useEffect(()=>{o([].concat(Co(Ck(a,r)),Co(Ck(a,i))))},[wk(r),wk(i)]),[s,c,qr(e=>{o([].concat(Co(e),Co(c)))}),qr(e=>{o([].concat(Co(s),Co(e)))})]}var Tk=e=>{let{placeholder:t=``,value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=J.useCallback(e=>{a==null||a(e),e.target.value===``&&(o==null||o())},[a]);return J.createElement(QT,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:J.createElement(Ny,null)})},ewe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`}}))());function Ek(){return Ek=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Ek({},e,{ref:t,icon:ewe.default})));K();var twe=J.memo(e=>{let{prefixCls:t,classNames:n,styles:r,renderedText:i,renderedEl:a,item:o,checked:s,disabled:c,onClick:l,onRemove:u,showRemove:d}=e,f=c||(o==null?void 0:o.disabled),p=Z(`${t}-content-item`,n.item,{[`${t}-content-item-disabled`]:f,[`${t}-content-item-checked`]:s&&!f}),m;(typeof i==`string`||sp(i))&&(m=String(i));let[h]=Hp(`Transfer`,Wn.Transfer),g={className:p,style:r.item,title:m},_=J.createElement(`span`,{className:Z(`${t}-content-item-text`,n.itemContent),style:r.itemContent},a);return d?J.createElement(`li`,G({},g),_,J.createElement(`button`,{type:`button`,disabled:f,className:`${t}-content-item-remove`,"aria-label":h==null?void 0:h.remove,onClick:()=>u==null?void 0:u(o)},J.createElement(Dk,null))):(g.onClick=f?void 0:e=>l(o,e),J.createElement(`li`,G({},g),J.createElement(ET,{className:Z(`${t}-checkbox`,n.itemIcon),style:r.itemIcon,checked:s,disabled:f}),_))});K();var nwe=[`handleFilter`,`handleClear`,`checkedKeys`],rwe=e=>G(G({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),iwe=J.forwardRef((e,t)=>{let{prefixCls:n,classNames:r,styles:i,filteredRenderItems:a,selectedKeys:o,disabled:s,showRemove:c,pagination:l,onScroll:u,onItemSelect:d,onItemRemove:f}=e,[p,m]=J.useState(1),h=J.useMemo(()=>l?rwe(lp(l)?l:{}):null,[l]),[g,_]=$r(10,h==null?void 0:h.pageSize);J.useEffect(()=>{if(h){let e=Math.ceil(a.length/g);m(Math.min(p,e))}},[a,h,g]);let v=(e,t)=>{d(e.key,!o.includes(e.key),t)},y=e=>{f==null||f([e.key])},b=e=>{m(e)},x=(e,t)=>{m(e),_(t)},S=J.useMemo(()=>h?a.slice((p-1)*g,p*g):a,[p,a,h,g]);J.useImperativeHandle(t,()=>({items:S}));let C=h?J.createElement(nD,{size:`small`,disabled:s,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:a.length,current:p,onChange:b,onShowSizeChange:x}):null;return J.createElement(J.Fragment,null,J.createElement(`ul`,{className:Z(`${n}-content`,r.list,{[`${n}-content-show-remove`]:c}),style:i.list,onScroll:u},(S||[]).map(({renderedEl:e,renderedText:t,item:a})=>J.createElement(twe,{key:a.key,prefixCls:n,classNames:r,styles:i,item:a,renderedText:t,renderedEl:e,showRemove:c,onClick:v,onRemove:y,checked:o.includes(a.key),disabled:s}))),C)});K();var awe=()=>null;function owe(e){return ap(e)&&lp(e)&&!J.isValidElement(e)}function Ok(e){return e.reduce((e,t)=>(t.disabled||e.push(t.key),e),[])}function swe(e,t){for(let n of[e,t.title,t.key]){if(cp(n))return n;if(sp(n))return String(n)}return``}var cwe=e=>e!==void 0,lwe=e=>lp(e)?G(G({},e),{},{defaultValue:e.defaultValue||``}):{defaultValue:``,placeholder:``},kk=e=>{let{prefixCls:t,style:n,classNames:r,styles:i,dataSource:a=[],titleText:o=``,checkedKeys:s,disabled:c,showSearch:l=!1,searchPlaceholder:u,notFoundContent:d,selectAll:f,deselectAll:p,selectCurrent:m,selectInvert:h,removeAll:g,removeCurrent:_,showSelectAll:v=!0,showRemove:y,pagination:b,direction:x,itemsUnit:S,itemUnit:C,selectAllLabel:w,selectionsIcon:T,footer:E,renderList:D,onItemSelectAll:O,onItemRemove:k,handleFilter:A,handleClear:j,filterOption:M,render:N=awe}=e,P=`${t}-section`,F=`${t}-list`,I=lwe(l),[L,R]=(0,J.useState)(I.defaultValue),z=(0,J.useRef)({}),B=e=>{R(e.target.value),A(e)},V=()=>{R(``),j()},H=(e,t)=>up(M)?M(L,t,x):e.includes(L),U=e=>{let t=D?D(G(G({},e),{},{onItemSelect:(t,n)=>e.onItemSelect(t,n)})):null,n=!!t;return n||(t=J.createElement(iwe,G(G({ref:z},e),{},{prefixCls:F}))),{customize:n,bodyContent:t}},ee=e=>{let t=N(e),n=owe(t);return{item:e,renderedEl:n?t.label:t,renderedText:n?t.value:swe(t,e)}},te=(0,J.useMemo)(()=>Array.isArray(d)?d[x===`left`?0:1]:d,[d,x]),[ne,re]=(0,J.useMemo)(()=>{let e=[],t=[];return a.forEach(n=>{let r=ee(n);L&&!H(r.renderedText,n)||(e.push(n),t.push(r))}),[e,t]},[a,L,M,x]),ie=(0,J.useMemo)(()=>ne.filter(e=>s.includes(e.key)&&!e.disabled),[s,ne]),ae=(0,J.useMemo)(()=>{if(ie.length===0)return`none`;let e=bk(s);return ne.every(t=>e.has(t.key)||!!t.disabled)?`all`:`part`},[ie.length,s,ne]),oe=()=>{let t=l?J.createElement(`div`,{className:`${F}-body-search-wrapper`},J.createElement(Tk,{prefixCls:`${F}-search`,onChange:B,handleClear:V,placeholder:I.placeholder||u,value:L,disabled:c})):null,{customize:n,bodyContent:a}=U(G(G({},Ca(e,nwe)),{},{filteredItems:ne,filteredRenderItems:re,selectedKeys:s,classNames:r,styles:i})),o;return o=n?J.createElement(`div`,{className:`${F}-body-customize-wrapper`},a):ne.length?a:J.createElement(`div`,{className:`${F}-body-not-found`},te),J.createElement(`div`,{className:Z(`${F}-body`,{[`${F}-body-with-search`]:l},r.body),style:i.body},t,o)},se=J.createElement(ET,{disabled:!a.some(e=>!e.disabled)||c,checked:ae===`all`,indeterminate:ae===`part`,className:`${F}-checkbox`,onChange:()=>{O==null||O(Ok(ne),ae!==`all`)}}),ce=(e,t)=>{if(w)return up(w)?w({selectedCount:e,totalCount:t}):w;let n=t>1?S:C;return J.createElement(J.Fragment,null,(e>0?`${e}/`:``)+t,` `,n)},le=E&&(E.length<2?E(e):E(e,{direction:x})),ue=le?J.createElement(`div`,{className:Z(`${F}-footer`,r.footer),style:i.footer},le):null,de=!y&&!b&&se,fe;fe=y?[b?{key:`removeCurrent`,label:_,onClick(){var e;let t=Ok((((e=z.current)==null?void 0:e.items)||[]).map(e=>e.item));k==null||k(t)}}:null,{key:`removeAll`,label:g,onClick(){k==null||k(Ok(ne))}}].filter(Boolean):[{key:`selectAll`,label:ae===`all`?p:f,onClick(){let e=Ok(ne);O==null||O(e,e.length!==s.length)}},b?{key:`selectCurrent`,label:m,onClick(){var e;let t=((e=z.current)==null?void 0:e.items)||[];O==null||O(Ok(t.map(e=>e.item)),!0)}}:null,{key:`selectInvert`,label:h,onClick(){var e;let t=Ok((((e=z.current)==null?void 0:e.items)||[]).map(e=>e.item)),n=new Set(s),r=new Set(n);t.forEach(e=>{n.has(e)?r.delete(e):r.add(e)}),O==null||O(Co(r),`replace`)}}];let pe=J.createElement(bE,{className:`${F}-header-dropdown`,menu:{items:fe},disabled:c},cwe(T)?T:J.createElement(jy,null));return J.createElement(`div`,{className:Z(P,r.section,{[`${P}-with-pagination`]:!!b,[`${P}-with-footer`]:!!le}),style:G(G({},n),i.section)},J.createElement(`div`,{className:Z(`${F}-header`,r.header),style:i.header},v?J.createElement(J.Fragment,null,de,pe):null,J.createElement(`span`,{className:`${F}-header-selected`},ce(ie.length,ne.length)),J.createElement(`span`,{className:Z(`${F}-header-title`,r.title),style:i.title},o)),oe(),ue)};K();var uwe=e=>{let{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-section`]:{flex:`1 1 50%`,width:`auto`,height:`auto`,minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:`transparent`}}}},Ak=(e,t)=>{let{componentCls:n,colorBorder:r}=e;return{[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},dwe=e=>{let{componentCls:t}=e;return{[`${t}-status-error`]:G({},Ak(e,e.colorError)),[`${t}-status-warning`]:G({},Ak(e,e.colorWarning))}},fwe=e=>{let{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:c,controlItemBgActive:l,colorTextDisabled:u,colorTextSecondary:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:h,marginXS:g,paddingSM:_,lineType:v,antCls:y,iconCls:b,motionDurationSlow:x,controlItemBgHover:S,borderRadiusLG:C,colorBgContainer:w,colorText:T,controlItemBgActiveHover:E}=e,D=Q(e.calc(C).sub(i).equal());return{display:`flex`,flexDirection:`column`,width:p,height:f,border:`${Q(i)} ${v} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:`auto`},[`${t}-list`]:{"&-search":{[`${b}-search`]:{color:u}},"&-header":{display:`flex`,flex:`none`,alignItems:`center`,height:o,padding:`${Q(e.calc(s).sub(i).equal())} ${Q(_)} ${Q(s)}`,color:T,background:w,borderBottom:`${Q(i)} ${v} ${r}`,borderRadius:`${Q(C)} ${Q(C)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:`none`},"&-title":G(G({},ed),{},{flex:`0 1 auto`,textAlign:`end`,marginInlineStart:`auto`}),"&-dropdown":G(G({},nd()),{},{fontSize:h,transform:`translateY(10%)`,cursor:`pointer`,"&[disabled]":{cursor:`not-allowed`}})},"&-body":{display:`flex`,flex:`auto`,flexDirection:`column`,fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:`relative`,flex:`none`,padding:_}},"&-content":{flex:`auto`,margin:0,padding:0,overflow:`auto`,listStyle:`none`,borderRadius:`0 0 ${D} ${D}`,"&-item":{display:`flex`,alignItems:`center`,minHeight:a,padding:`${Q(c)} ${Q(_)}`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:`none`},"&-text":G(G({},ed),{},{flex:`auto`}),"&-remove":G(G({},ud(e)),{},{color:n,"&:hover, &:focus":{color:d},"&:disabled":{color:u,cursor:`not-allowed`}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:S,cursor:`pointer`},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:E}},"&-checked":{backgroundColor:l},"&-disabled":{color:u,cursor:`not-allowed`}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:`transparent`,cursor:`default`}},"&-pagination":{padding:e.paddingXS,textAlign:`end`,borderTop:`${Q(i)} ${v} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:`none`,width:`100%`,margin:`auto 0`,color:u,textAlign:`center`},"&-footer":{borderTop:`${Q(i)} ${v} ${r}`},"&-checkbox":{lineHeight:1}}}},pwe=e=>{let{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:G(G({},td(e)),{},{position:`relative`,display:`flex`,alignItems:`stretch`,[`${r}-disabled`]:{[`${r}-section`]:{background:s}},[`${r}-section`]:fwe(e),[`${r}-actions`]:{display:`flex`,flex:`none`,flexDirection:`column`,alignSelf:`center`,margin:`0 ${Q(i)}`,verticalAlign:`middle`,gap:a,[`${t}-btn ${n}`]:{fontSize:o}}})}},mwe=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},hwe=dd(`Transfer`,e=>{let t=bl(e);return[pwe(t),uwe(t),dwe(t),mwe(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}});K();var gwe=`prefixCls.className.rootClassName.classNames.styles.style.listStyle.operationStyle.operations.actions.dataSource.targetKeys.selectedKeys.selectAllLabels.locale.titles.disabled.showSearch.showSelectAll.oneWay.pagination.status.selectionsIcon.filterOption.render.footer.children.rowKey.onScroll.onChange.onSearch.onSelectChange`.split(`.`),jk=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,styles:a,style:o,listStyle:s,operationStyle:c,operations:l,actions:u,dataSource:d,targetKeys:f=[],selectedKeys:p,selectAllLabels:m=[],locale:h={},titles:g,disabled:_,showSearch:v=!1,showSelectAll:y,oneWay:b,pagination:x,status:S,selectionsIcon:C,filterOption:w,render:T,footer:E,children:D,rowKey:O,onScroll:k,onChange:A,onSearch:j,onSelectChange:M}=e,N=q(e,gwe),{getPrefixCls:P,renderEmpty:F,direction:I,className:L,style:R,classNames:z,styles:B,selectionsIcon:V}=ko(`transfer`),H=(0,J.useContext)(gm),U=_==null?H:_,ee=G(G({},e),{},{disabled:U}),te=P(`transfer`,t),[ne,re]=hwe(te),ie=u||l||[],ae=I===`rtl`,[oe,se,ce]=ZCe(d,O,f),[le,ue,de,fe]=$Ce(se,ce,p),[pe,me]=Vm(e=>e.key),[he,W]=Vm(e=>e.key),ge=(0,J.useCallback)((e,t)=>{e===`left`?de(up(t)?t(le||[]):t):fe(up(t)?t(ue||[]):t)},[le,ue]),_e=(e,t)=>{(e===`left`?me:W)(t)},K=(0,J.useCallback)((e,t)=>{e===`left`?M==null||M(t,ue):M==null||M(le,t)},[le,ue]),ve=e=>{var t;return(t=g==null?e.titles:g)==null?[]:t},ye=e=>{k==null||k(`left`,e)},be=e=>{k==null||k(`right`,e)},xe=e=>{let t=e===`right`?le:ue,n=JCe(oe),r=t.filter(e=>!n.has(e)),i=bk(r),a=e===`right`?r.concat(f):f.filter(e=>!i.has(e)),o=e===`right`?`left`:`right`;ge(o,[]),K(o,[]),A==null||A(a,e,r)},Se=()=>{xe(`left`),_e(`left`,null)},Ce=()=>{xe(`right`),_e(`right`,null)},we=(e,t,n)=>{ge(e,r=>{let i=[];if(n===`replace`)i=t;else if(n)i=Array.from(new Set([].concat(Co(r),Co(t))));else{let e=bk(t);i=r.filter(t=>!e.has(t))}return K(e,i),i}),_e(e,null)},Te=(e,t)=>we(`left`,e,t),Ee=(e,t)=>we(`right`,e,t),De=e=>j==null?void 0:j(`left`,e.target.value),Oe=e=>j==null?void 0:j(`right`,e.target.value),ke=()=>j==null?void 0:j(`left`,``),Ae=()=>j==null?void 0:j(`right`,``),je=(e,t,n,r,i)=>{t.has(n)&&(t.delete(n),_e(e,null)),r&&(t.add(n),_e(e,i))},Me=(e,t,n,r)=>{(e===`left`?pe:he)(r,t,n)},Ne=(t,n,r,i)=>{let a=t===`left`,o=a?le:ue,s=new Set(o),c=(a?se:ce).filter(e=>!e.disabled),l=c.findIndex(e=>e.key===n);i&&o.length>0?Me(t,c,s,l):je(t,s,n,r,l);let u=Array.from(s);K(t,u),e.selectedKeys||ge(t,u)},Pe=(e,t,n)=>{Ne(`left`,e,t,n==null?void 0:n.shiftKey)},Fe=(e,t,n)=>{Ne(`right`,e,t,n==null?void 0:n.shiftKey)},Ie=e=>{ge(`right`,[]),A==null||A(f.filter(t=>!e.includes(t)),`left`,Co(e))},Le=e=>up(s)?s({direction:e}):s||{},{hasFeedback:Re,status:ze}=(0,J.useContext)(b_),Be=e=>G(G({},e),{},{notFoundContent:(F==null?void 0:F(`Transfer`))||J.createElement(xy,{componentName:`Transfer`})},h),Ve=gy(ze,S),He=!D&&x,Ue=ce.some(e=>ap(e.key)&&ue.includes(e.key)&&!e.disabled),We=se.some(e=>ap(e.key)&&le.includes(e.key)&&!e.disabled),Ge=yp(R),Ke=yp(o),[qe,Je]=xp([z,i],[B,Ge,a,Ke],{props:ee},{source:{},target:{}}),Ye=Z(te,{[`${te}-disabled`]:U,[`${te}-customize-list`]:!!D,[`${te}-rtl`]:ae},hy(te,Ve,Re),L,n,r,ne,re,qe.root),[Xe]=Hp(`Transfer`,Wn.Transfer),Ze=Be(Xe),[Qe,$e]=ve(Ze),et=C==null?V:C,tt=[`section`,`header`,`title`,`body`,`list`,`item`,`itemIcon`,`itemContent`,`footer`],nt=e=>{let t=G({},qe),n=qe[e];return tt.forEach(e=>{t[e]=Z(qe[e],n==null?void 0:n[e])}),t},rt=e=>{let t=G({},Je),n=Je[e];return tt.forEach(e=>{t[e]=G(G({},Je[e]),n==null?void 0:n[e])}),t},it=nt(`source`),at=nt(`target`),ot=rt(`source`),st=rt(`target`),ct=Oa(N,{aria:!0,data:!0});return J.createElement(`div`,G(G({},ct),{},{className:Ye,style:Je.root}),J.createElement(kk,G({prefixCls:te,style:Le(`left`),classNames:it,styles:ot,titleText:Qe,dataSource:se,filterOption:w,checkedKeys:le,handleFilter:De,handleClear:ke,onItemSelect:Pe,onItemSelectAll:Te,render:T,showSearch:v,renderList:D,footer:E,onScroll:ye,disabled:U,direction:ae?`right`:`left`,showSelectAll:y,selectAllLabel:m[0],pagination:He,selectionsIcon:et},Ze)),J.createElement(Sk,{className:Z(`${te}-actions`,qe.actions),rightActive:We,moveToRight:Ce,leftActive:Ue,actions:ie,moveToLeft:Se,style:G(G({},c),Je.actions),disabled:U,direction:I,oneWay:b}),J.createElement(kk,G({prefixCls:te,style:Le(`right`),classNames:at,styles:st,titleText:$e,dataSource:ce,filterOption:w,checkedKeys:ue,handleFilter:Oe,handleClear:Ae,onItemSelect:Fe,onItemSelectAll:Ee,onItemRemove:Ie,render:T,showSearch:v,renderList:D,footer:E,onScroll:be,disabled:U,direction:ae?`left`:`right`,showSelectAll:y,selectAllLabel:m[1],showRemove:b,pagination:He,selectionsIcon:et},Ze)))};jk.List=kk,jk.Search=Tk,jk.Operation=Sk;var _we=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`}}))());function Mk(){return Mk=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Mk({},e,{ref:t,icon:_we.default}))),vwe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`}}))());function Pk(){return Pk=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Pk({},e,{ref:t,icon:vwe.default})));K();var bwe=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},xwe=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` + h${t}&, + div&-h${t}, + div&-h${t} > textarea, + h${t} + `]=bwe(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},Swe=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:G(G({},ud(e)),{},{userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}})}},Cwe=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:au[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:Q(e.padding),overflowWrap:`break-word`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),wwe=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},Twe=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ewe=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":G(G({},ed),{},{"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}}),"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}});K();var Fk=dd(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:G(G(G(G(G(G(G({color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`}},xwe(e)),{},{[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}}},Cwe(e)),Swe(e)),{},{[`${t}-actions`]:{display:`inline`},[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]:te(I({},iM(e)),{marginInlineStart:e.marginXXS}),[`${t}-actions-start`]:{[` + `]:G(G({},ud(e)),{},{marginInlineStart:e.marginXXS}),[`${t}-actions-start`]:{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy:not(${t}-copy-icon-only) - `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}}}),YYe(e)),XYe(e)),ZYe()),{"&-rtl":{direction:"rtl"}})}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),JYe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,classNames:o,styles:a,direction:s,maxLength:l,autoSize:c=!0,value:u,onSave:f,onCancel:d,onEnd:A,component:h,enterIcon:p=g.createElement(VYe,null)}=e,v=g.useRef(null),y=g.useRef(!1),b=g.useRef(null),[x,C]=g.useState(u);g.useEffect(()=>{C(u)},[u]),g.useEffect(()=>{var H;if((H=v.current)!=null&&H.resizableTextArea){const{textArea:D}=v.current.resizableTextArea;D.focus();const{length:U}=D.value;D.setSelectionRange(U,U)}},[]);const S=({target:H})=>{C(H.value.replace(/[\n\r]/g,""))},B=()=>{y.current=!0},E=()=>{y.current=!1},_=({keyCode:H})=>{y.current||(b.current=H)},M=()=>{f(x.trim())},R=({keyCode:H,ctrlKey:D,altKey:U,metaKey:j,shiftKey:Q})=>{b.current!==H||y.current||D||U||j||Q||(H===dn.ENTER?(M(),A==null||A()):H===dn.ESC&&d())},T=()=>{M()},[L,P]=lfe(t),k=Ae(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${h}`]:!!h},r,o.root,L,P);return g.createElement("div",{className:k,style:I(I({},a.root),i)},g.createElement(hce,{ref:v,maxLength:l,value:x,onChange:S,onKeyDown:_,onKeyUp:R,onCompositionStart:B,onCompositionEnd:E,onBlur:T,"aria-label":n,rows:1,autoSize:c,className:o.textarea,style:a.textarea}),p!==null?Ga(p,{className:`${t}-edit-content-confirm`}):null)},eXe=(e,t)=>{let n=!1;const r=i=>{var o,a,s;i.stopPropagation(),i.preventDefault(),(o=i.clipboardData)==null||o.clearData(),(a=i.clipboardData)==null||a.setData("text/plain",e),t&&((s=i.clipboardData)==null||s.setData("text/html",e)),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch(i){return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},tXe=(e,t)=>Er(null,null,function*(){try{return t?yield navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):yield navigator.clipboard.writeText(e),!0}catch(n){return!1}});function nXe(e,t){return Er(this,null,function*(){if(typeof e!="string")return!1;const n=(t==null?void 0:t.format)==="text/html";return!!((yield tXe(e,n))||eXe(e,n))})}const rXe=({copyConfig:e,children:t})=>{const[n,r]=g.useState(!1),[i,o]=g.useState(!1),a=g.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),g.useEffect(()=>s,[]);const c=yn(u=>Er(null,null,function*(){var f;u==null||u.preventDefault(),u==null||u.stopPropagation(),o(!0);try{const d=Rn(e.text)?yield e.text():e.text;yield nXe(d||Tce(t,{skipEmpty:!0}).join("")||"",l),o(!1),r(!0),s(),a.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)==null||f.call(e,u)}catch(d){throw o(!1),d}}));return{copied:n,copyLoading:i,onClick:c}},Q9=(e,t)=>{const n=!!e;return g.useMemo(()=>{const r=I(I({},t),n&&Zn(e)?e:null);return[n,r]},[n,e,t])},iXe=e=>{const t=g.useRef(void 0);return g.useEffect(()=>{t.current=e}),t.current},oXe=(e,t,n)=>g.useMemo(()=>e===!0?{title:t!=null?t:n}:g.isValidElement(e)?{title:e}:Zn(e)?I({title:t!=null?t:n},e):{title:e},[e,t,n]),cfe=(e,t,n,r,i)=>{const{getPrefixCls:o,direction:a,className:s,style:l,classNames:c,styles:u}=or("typography"),f=r!=null?r:a,d=o("typography",e),A=te(I({},i),{prefixCls:d,direction:f}),h=g.useMemo(()=>({root:s}),[s]),p=g.useMemo(()=>({root:l}),[l]),[v,y]=vr([h,c,t],[p,u,n],{props:A});return[v,y,d,f]},ufe=g.forwardRef((e,t)=>{const v=e,{component:n="article",className:r,rootClassName:i,children:o,direction:a,style:s,classNames:l,styles:c,prefixCls:u}=v,f=Ze(v,["component","className","rootClassName","children","direction","style","classNames","styles","prefixCls"]),[d,A]=lfe(u),h=Ae(u,{[`${u}-rtl`]:a==="rtl"},r,i,d,A,l==null?void 0:l.root),p=I(I({},c==null?void 0:c.root),s);return g.createElement(n,te(I({},f),{className:h,style:p,ref:t}),o)}),aXe=g.forwardRef((e,t)=>{const A=e,{prefixCls:n,className:r,rootClassName:i,direction:o,classNames:a,styles:s}=A,l=Ze(A,["prefixCls","className","rootClassName","direction","classNames","styles"]),[c,u,f,d]=cfe(n,a,s,o,e);return g.createElement(ufe,I({ref:t,className:Ae(r,i),direction:d,classNames:c,styles:u,prefixCls:f},l))});var JI={},ffe;function sXe(){if(ffe)return JI;ffe=1,Object.defineProperty(JI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return JI.default=e,JI}var lXe=sXe();const cXe=_t(lXe);function V9(){return V9=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,V9({},e,{ref:t,icon:cXe})),K9=g.forwardRef(uXe),dfe=e=>e===!1?[!1,!1]:Tce(e);function W9(e,t,n){return e===!0||e===void 0?t:e||n&&t}function fXe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const G9=e=>["string","number"].includes(typeof e),dXe=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:a,tabIndex:s,onCopy:l,loading:c,className:u,style:f}=e,d=dfe(o),A=dfe(a),{copied:h,copy:p}=r!=null?r:{},v=n?h:p,y=W9(d[n?1:0],v),b=typeof y=="string"?y:v;return g.createElement(No,{title:y},g.createElement("button",{type:"button",className:Ae(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:f,onClick:l,"aria-label":b,tabIndex:s},n?W9(A[1],g.createElement(OH,null),!0):W9(A[0],c?g.createElement(qh,null):g.createElement(K9,null),!0)))},eR=g.forwardRef(({style:e,children:t},n)=>{const r=g.useRef(null);return g.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),g.createElement("span",{"aria-hidden":!0,ref:r,style:I({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),AXe=e=>e.reduce((t,n)=>t+(G9(n)?String(n).length:1),0);function Afe(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(o).slice(0,c)),r}r.push(o),n=l}return e}const q9=0,Y9=1,X9=2,Z9=3,hfe=4,tR={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function hXe(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,measureDeps:s,miscDeps:l,onEllipsis:c}=e,u=g.useMemo(()=>pa(r),[r]),f=g.useMemo(()=>AXe(u),[r]),d=g.useMemo(()=>i(u,!1),[r].concat(en(s))),[A,h]=g.useState(null),p=g.useRef(null),v=g.useRef(null),y=g.useRef(null),b=g.useRef(null),x=g.useRef(null),[C,S]=g.useState(!1),[B,E]=g.useState(q9),[_,M]=g.useState(0),[R,T]=g.useState(null);ar(()=>{E(t&&n&&f?Y9:q9)},[n,r,o,t,u].concat(en(s))),ar(()=>{var H,D,U,j;if(B===Y9){E(X9);const Q=v.current&&getComputedStyle(v.current).whiteSpace;T(Q)}else if(B===X9){const Q=!!((H=y.current)!=null&&H.isExceed());E(Q?Z9:hfe),h(Q?[0,f]:null),S(Q);const K=((D=y.current)==null?void 0:D.getHeight())||0,z=o===1?0:((U=b.current)==null?void 0:U.getHeight())||0,V=((j=x.current)==null?void 0:j.getHeight())||0,Y=Math.max(K,z+V);M(Y+1),c(Q)}},[B]);const L=A?Math.ceil((A[0]+A[1])/2):0;ar(()=>{var U;const[H,D]=A||[0,0];if(H!==D){const Q=(((U=p.current)==null?void 0:U.getHeight())||0)>_;let K=L;D-H===1&&(K=Q?H:D),h(Q?[H,K]:[K,D])}},[A,L]);const P=g.useMemo(()=>{if(!t)return i(u,!1);if(B!==Z9||!A||A[0]!==A[1]){const H=i(u,!1);return[hfe,q9].includes(B)?H:g.createElement("span",{style:te(I({},tR),{WebkitLineClamp:o})},H)}return i(a?u:Afe(u,A[0]),C)},[a,B,A,u].concat(en(l))),k={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return g.createElement(g.Fragment,null,P,B===X9&&g.createElement(g.Fragment,null,g.createElement(eR,{style:te(I(I({},k),tR),{WebkitLineClamp:o}),ref:y},d),g.createElement(eR,{style:te(I(I({},k),tR),{WebkitLineClamp:o-1}),ref:b},d),g.createElement(eR,{style:te(I(I({},k),tR),{WebkitLineClamp:1}),ref:x},i([],!0))),B===Z9&&A&&A[0]!==A[1]&&g.createElement(eR,{style:te(I({},k),{top:400}),ref:p},i(Afe(u,L),!0)),B===Y9&&g.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const pXe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!(i!=null&&i.title)||!e)return r;const o=n&&t;return g.createElement(No,I({open:o},i),r)};function gXe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:o,italic:a},s){let l=s;function c(u,f){f&&(l=g.createElement(u,{},l))}return c("strong",i),c("u",n),c("del",r),c("code",t),c("mark",e),c("kbd",o),c("i",a),l}const mXe="...",pfe=["delete","mark","code","underline","strong","keyboard","italic"],nR=g.forwardRef((e,t)=>{var Pt;const it=e,{prefixCls:n,className:r,style:i,classNames:o,styles:a,direction:s,type:l,disabled:c,children:u,ellipsis:f,editable:d,copyable:A,actions:h,component:p,title:v,onMouseEnter:y,onMouseLeave:b}=it,x=Ze(it,["prefixCls","className","style","classNames","styles","direction","type","disabled","children","ellipsis","editable","copyable","actions","component","title","onMouseEnter","onMouseLeave"]),[C]=zs("Text"),S=g.useRef(null),B=g.useRef(null),[E,_,M,R]=cfe(n,o,a,s,e),T=ti(x,pfe),[L,P]=Q9(d),[k,H]=Fr(!1,P.editing),{triggerType:D=["icon"]}=P,U=De=>{var ze;De&&((ze=P.onStart)==null||ze.call(P)),H(De)},j=iXe(k);ar(()=>{var De;!k&&j&&((De=B.current)==null||De.focus())},[k]);const Q=De=>{De==null||De.preventDefault(),U(!0)},K=De=>{var ze;(ze=P.onChange)==null||ze.call(P,De),U(!1)},z=()=>{var De;(De=P.onCancel)==null||De.call(P),U(!1)},[V,Y]=Q9(A),{placement:Z="end"}=h!=null?h:{},{copied:W,copyLoading:J,onClick:ee}=rXe({copyConfig:Y,children:u}),[ne,re]=g.useState(!1),[ue,de]=g.useState(!1),[se,ce]=g.useState(!1),[ge,ie]=g.useState(!1),[le,ve]=g.useState(!0),[we,me]=Q9(f,{expandable:!1,symbol:De=>De?C==null?void 0:C.collapse:C==null?void 0:C.expand}),[Ee,Ce]=Fr(me.defaultExpanded||!1,me.expanded),pe=we&&(!Ee||me.expandable==="collapsible"),{rows:Oe=1}=me,xe=g.useMemo(()=>pe&&(me.suffix!==void 0||me.onEllipsis||me.expandable||L||V),[pe,me,L,V]);ar(()=>{we&&!xe&&(re(Cee("webkitLineClamp")),de(Cee("textOverflow")))},[xe,we]);const[Me,Se]=g.useState(pe),Pe=g.useMemo(()=>xe?!1:Oe===1?ue:ne,[xe,ue,ne]);ar(()=>{Se(Pe&&pe)},[Pe,pe]);const Le=oXe(me.tooltip,P.text,u),He=Me&&!!Le.title,Ne=pe&&(Me?He&&ge:se),at=pe&&Oe===1&&Me,Ue=pe&&Oe>1&&Me,et=(De,ze)=>{var bt;Ce(ze.expanded),(bt=me.onExpand)==null||bt.call(me,De,ze)},[We,Je]=g.useState(0),[dt,wt]=g.useState(!1),[Bt,qt]=g.useState(!1),jt=({offsetWidth:De})=>{Je(De)},nn=De=>{var ze;ce(De),se!==De&&((ze=me.onEllipsis)==null||ze.call(me,De))};g.useEffect(()=>{const De=S.current;if(we&&He&&De){const ze=fXe(De);ge!==ze&&ie(ze)}},[we,He,u,Ue,le,We]),g.useEffect(()=>{const De=S.current;if(typeof IntersectionObserver=="undefined"||!De||!He||!pe)return;const ze=new IntersectionObserver(()=>{ve(!!De.offsetParent)});return ze.observe(De),()=>{ze.disconnect()}},[He,pe]);const Jt=g.useMemo(()=>{if(!(!we||Me))return[P.text,u,v,Le.title].find(G9)},[we,Me,v,Le.title,Ne]);if(k)return g.createElement(JYe,{value:(Pt=P.text)!=null?Pt:typeof u=="string"?u:"",onSave:K,onCancel:z,onEnd:P.onEnd,prefixCls:M,className:r,style:i,direction:R,component:p,maxLength:P.maxLength,autoSize:P.autoSize,enterIcon:P.enterIcon,classNames:E,styles:_});const Ot=()=>{const{expandable:De,symbol:ze}=me;return De?g.createElement("button",{type:"button",key:"expand",className:Ae(`${M}-${Ee?"collapse":"expand"}`,E.action),style:_.action,onClick:bt=>et(bt,{expanded:!Ee}),"aria-label":Ee?C.collapse:C==null?void 0:C.expand},Rn(ze)?ze(Ee):ze):null},sn=()=>{if(!L)return;const{icon:De,tooltip:ze,tabIndex:bt}=P,lt=pa(ze)[0]||(C==null?void 0:C.edit),At=typeof lt=="string"?lt:"";return D.includes("icon")?g.createElement(No,{key:"edit",title:ze===!1?"":lt},g.createElement("button",{type:"button",ref:B,className:Ae(`${M}-edit`,E.action),style:_.action,onClick:Q,"aria-label":At,tabIndex:bt},De||g.createElement(XI,{role:"button"}))):null},Vt=()=>V?g.createElement(dXe,te(I({key:"copy"},Y),{prefixCls:M,copied:W,locale:C,onCopy:ee,loading:J,iconOnly:!qi(u),className:E.action,style:_.action})):null,xt=De=>{const ze=De&&Ot(),bt=sn(),lt=Vt();return!ze&&!bt&&!lt?null:g.createElement("span",{key:"operations",className:Ae(`${M}-actions`,E.actions,{[`${M}-actions-start`]:Z==="start"}),style:_.actions,onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1)},ze,bt,lt)},qe=De=>[De&&!Ee&&g.createElement("span",{"aria-hidden":!0,key:"ellipsis"},mXe),me.suffix];return g.createElement(Bl,{onResize:jt,disabled:!pe},De=>g.createElement(pXe,{tooltipProps:Le,enableEllipsis:pe,isEllipsis:Ne,open:Bt&&!dt},g.createElement(ufe,I({onMouseEnter:ze=>{qt(!0),y==null||y(ze)},onMouseLeave:ze=>{qt(!1),b==null||b(ze)},className:Ae({[`${M}-${l}`]:l,[`${M}-disabled`]:c,[`${M}-ellipsis`]:we,[`${M}-ellipsis-single-line`]:at,[`${M}-ellipsis-multiple-line`]:Ue,[`${M}-link`]:p==="a"},r),classNames:E,styles:_,prefixCls:M,style:te(I({},i),{WebkitLineClamp:Ue?Oe:void 0}),component:p,ref:il(De,S,t),direction:R,onClick:D.includes("text")?Q:void 0,"aria-label":Jt==null?void 0:Jt.toString(),title:v},T),g.createElement(hXe,{enableMeasure:pe&&!Me,text:u,rows:Oe,width:We,onEllipsis:nn,expanded:Ee,measureDeps:[Z],miscDeps:[W,Ee,J,L,V,Z,C].concat(en(pfe.map(ze=>e[ze])))},(ze,bt)=>gXe(e,g.createElement(g.Fragment,null,Z==="start"?xt(bt):null,ze.length>0&&bt&&!Ee&&Jt?g.createElement("span",{key:"show-content","aria-hidden":!0},ze):ze,qe(bt),Z==="start"?null:xt(bt)))))))}),vXe=g.forwardRef((e,t)=>{const l=e,{ellipsis:n,rel:r,children:i,navigate:o}=l,a=Ze(l,["ellipsis","rel","children","navigate"]),s=te(I({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return g.createElement(nR,te(I({},s),{ref:t,ellipsis:!!n,component:"a"}),i)}),yXe=g.forwardRef((e,t)=>{const i=e,{children:n}=i,r=Ze(i,["children"]);return g.createElement(nR,te(I({ref:t},r),{component:"div"}),n)}),bXe=g.forwardRef((e,t)=>{const a=e,{ellipsis:n,children:r}=a,i=Ze(a,["ellipsis","children"]),o=g.useMemo(()=>Zn(n)?ti(n,["expandable","rows"]):n,[n]);return g.createElement(nR,te(I({ref:t},i),{ellipsis:o,component:"span"}),r)}),xXe=[1,2,3,4,5],wXe=g.forwardRef((e,t)=>{const a=e,{level:n=1,children:r}=a,i=Ze(a,["level","children"]),o=xXe.includes(n)?`h${n}`:"h1";return g.createElement(nR,te(I({ref:t},i),{component:o}),r)}),ox=aXe;ox.Text=bXe,ox.Link=vXe,ox.Title=wXe,ox.Paragraph=yXe;const CXe=((e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(a=>{const s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){const l=r.toLowerCase(),c=s.toLowerCase();let u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(f=>l.endsWith(f))}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(ao(!1,`Upload takes an invalidate 'accept' type '${s}'.Skip for check.`),!0):!1})}return!0});function SXe(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function gfe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function mfe(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});const n=new FormData;e.data&&Object.keys(e.data).forEach(i=>{const o=e.data[i];if(Array.isArray(o)){o.forEach(a=>{n.append(`${i}[]`,a)});return}n.append(i,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(SXe(e,t),gfe(t)):e.onSuccess(gfe(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(i=>{r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort(){t.abort()}}}const EXe=(e,t)=>Er(null,null,function*(){const n=[],r=[];e.forEach(l=>r.push(l.webkitGetAsEntry()));function i(l){return Er(this,null,function*(){const c=l.createReader(),u=[];for(;;){const f=yield new Promise(A=>{c.readEntries(A,()=>A([]))}),d=f.length;if(!d)break;for(let A=0;A{l.file(u=>{t(u)?(l.fullPath&&!u.webkitRelativePath&&(Object.defineProperties(u,{webkitRelativePath:{writable:!0}}),u.webkitRelativePath=l.fullPath.replace(/^\//,""),Object.defineProperties(u,{webkitRelativePath:{writable:!1}})),c(u)):c(null)})})})}const a=(l,c)=>Er(null,null,function*(){if(l){if(l.path="",l.isFile){const u=yield o(l);u&&n.push(u)}else if(l.isDirectory){const u=yield i(l);r.push(...u)}}});let s=0;for(;s{const{accept:i,directory:o}=this.props;let a,s;if(typeof i=="string")s=i;else{const{filter:c,format:u}=i||{};s=u,c==="native"?a=()=>!0:a=c}return(a||(o||r?c=>CXe(c,s):()=>!0))(n)});ke(this,"onChange",n=>{const{files:r}=n.target,i=[...r].filter(o=>this.filterFile(o));this.uploadFiles(i),this.reset()});ke(this,"onClick",n=>{const r=this.fileInput;if(!r)return;const i=n.target,{onClick:o}=this.props;i&&i.tagName==="BUTTON"&&(r.parentNode.focus(),i.blur()),r.click(),o&&o(n)});ke(this,"onKeyDown",n=>{n.key==="Enter"&&this.onClick(n)});ke(this,"onDataTransferFiles",(n,r)=>Er(this,null,function*(){const{multiple:i,directory:o}=this.props,a=[...n.items||[]];let s=[...n.files||[]];if((s.length>0||a.some(l=>l.kind==="file"))&&(r==null||r()),o)s=yield EXe(Array.prototype.slice.call(a),this.filterFile),this.uploadFiles(s);else{let l=[...s].filter(c=>this.filterFile(c,!0));i===!1&&(l=s.slice(0,1)),this.uploadFiles(l)}}));ke(this,"onFilePaste",n=>Er(this,null,function*(){const{pastable:r}=this.props;if(r&&n.type==="paste"){const i=n.clipboardData;return this.onDataTransferFiles(i,()=>{n.preventDefault()})}}));ke(this,"onFileDragOver",n=>{n.preventDefault()});ke(this,"onFileDrop",n=>Er(this,null,function*(){if(n.preventDefault(),n.type==="drop"){const r=n.dataTransfer;return this.onDataTransferFiles(r)}}));ke(this,"uploadFiles",n=>{const r=[...n],i=r.map(o=>(o.uid=J9(),this.processFile(o,r)));Promise.all(i).then(o=>{const{onBatchStart:a}=this.props;a==null||a(o.map(({origin:s,parsedFile:l})=>({file:s,parsedFile:l}))),o.filter(s=>s.parsedFile!==null).forEach(s=>{this.post(s)})})});ke(this,"processFile",(n,r)=>Er(this,null,function*(){const{beforeUpload:i}=this.props;let o=n;if(i){try{o=yield i(n,r)}catch(A){o=!1}if(o===!1)return{origin:n,parsedFile:null,action:null,data:null}}const{action:a}=this.props;let s;typeof a=="function"?s=yield a(n):s=a;const{data:l}=this.props;let c;typeof l=="function"?c=yield l(n):c=l;const u=(typeof o=="object"||typeof o=="string")&&o?o:n;let f;u instanceof File?f=u:f=new File([u],n.name,{type:n.type});const d=f;return d.uid=n.uid,{origin:n,data:c,parsedFile:d,action:s}}));ke(this,"saveFileInput",n=>{this.fileInput=n})}componentDidMount(){this._isMounted=!0;const{pastable:n}=this.props;n&&document.addEventListener("paste",this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}componentDidUpdate(n){const{pastable:r}=this.props;r&&!n.pastable?document.addEventListener("paste",this.onFilePaste):!r&&n.pastable&&document.removeEventListener("paste",this.onFilePaste)}post({data:n,origin:r,action:i,parsedFile:o}){if(!this._isMounted)return;const{onStart:a,customRequest:s,name:l,headers:c,withCredentials:u,method:f}=this.props,{uid:d}=r,A=s||mfe,h={action:i,filename:l,data:n,file:o,headers:c,withCredentials:u,method:f||"post",onProgress:p=>{const{onProgress:v}=this.props;v==null||v(p,o)},onSuccess:(p,v)=>{const{onSuccess:y}=this.props;y==null||y(p,o,v),delete this.reqs[d]},onError:(p,v)=>{const{onError:y}=this.props;y==null||y(p,v,o),delete this.reqs[d]}};a(r),this.reqs[d]=A(h,{defaultRequest:mfe})}reset(){this.setState({uid:J9()})}abort(n){const{reqs:r}=this;if(n){const i=n.uid?n.uid:n;r[i]&&r[i].abort&&r[i].abort(),delete r[i]}else Object.keys(r).forEach(i=>{r[i]&&r[i].abort&&r[i].abort(),delete r[i]})}render(){const M=this.props,{component:n,prefixCls:r,className:i,classNames:o={},disabled:a,id:s,name:l,style:c,styles:u={},multiple:f,accept:d,capture:A,children:h,directory:p,openFileDialogOnClick:v,onMouseEnter:y,onMouseLeave:b,hasControlInside:x}=M,C=Ze(M,["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"]),S=typeof d=="string"?d:d==null?void 0:d.format,B=Ae(r,{[`${r}-disabled`]:a,[i]:i}),E=p?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_=a?{}:{onClick:v?this.onClick:()=>{},onKeyDown:v?this.onKeyDown:()=>{},onMouseEnter:y,onMouseLeave:b,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:x?void 0:"0"};return Be.createElement(n,rR({},_,{className:B,role:x?void 0:"button",style:c}),Be.createElement("input",rR({},Co(C,{aria:!0,data:!0}),{id:s,name:l,disabled:a,type:"file",ref:this.saveFileInput,onClick:R=>R.stopPropagation(),key:this.state.uid,style:I({display:"none"},u.input),className:o.input,accept:S},E,{multiple:f,onChange:this.onChange},A!=null?{capture:A}:{})),h)}}function ej(){return ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.uploader=n})}abort(n){this.uploader.abort(n)}render(){return Be.createElement($Xe,ej({},this.props,{ref:this.saveUploader}))}},ke(qX,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:tj,onError:tj,onSuccess:tj,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1}),qX);const _Xe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${be(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}}},wwe(e)),Twe(e)),Ewe()),{},{"&-rtl":{direction:`rtl`}})}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`}));K();var Dwe=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:m,enterIcon:h=J.createElement(ywe,null)}=e,g=J.useRef(null),_=J.useRef(!1),v=J.useRef(null),[y,b]=J.useState(u);J.useEffect(()=>{b(u)},[u]),J.useEffect(()=>{var e;if((e=g.current)!=null&&e.resizableTextArea){let{textArea:e}=g.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let x=({target:e})=>{b(e.value.replace(/[\n\r]/g,``))},S=()=>{_.current=!0},C=()=>{_.current=!1},w=({keyCode:e})=>{_.current||(v.current=e)},T=()=>{d(y.trim())},E=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{v.current!==e||_.current||t||n||r||i||(e===aa.ENTER?(T(),p==null||p()):e===aa.ESC&&f())},D=()=>{T()},[O,k]=Fk(t),A=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${m}`]:!!m},r,a.root,O,k);return J.createElement(`div`,{className:A,style:G(G({},o.root),i)},J.createElement(mve,{ref:g,maxLength:c,value:y,onChange:x,onKeyDown:w,onKeyUp:E,onCompositionStart:S,onCompositionEnd:C,onBlur:D,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),h===null?null:pm(h,{className:`${t}-edit-content-confirm`}))};Pe();var Owe=(e,t)=>{let n=!1,r=r=>{var i,a;if(r.stopPropagation(),r.preventDefault(),(i=r.clipboardData)==null||i.clearData(),(a=r.clipboardData)==null||a.setData(`text/plain`,e),t){var o;(o=r.clipboardData)==null||o.setData(`text/html`,e)}n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch(e){return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},kwe=function(){var e=Ne(function*(e,t){try{return t?yield navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):yield navigator.clipboard.writeText(e),!0}catch(e){return!1}});return function(t,n){return e.apply(this,arguments)}}();function Awe(e,t){return Ik.apply(this,arguments)}function Ik(){return Ik=Ne(function*(e,t){if(typeof e!=`string`)return!1;let n=(t==null?void 0:t.format)===`text/html`;return!!((yield kwe(e,n))||Owe(e,n))}),Ik.apply(this,arguments)}Pe();var jwe=({copyConfig:e,children:t})=>{let[n,r]=J.useState(!1),[i,a]=J.useState(!1),o=J.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),J.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:qr(function(){var n=Ne(function*(n){n==null||n.preventDefault(),n==null||n.stopPropagation(),a(!0);try{var i;yield Awe((up(e.text)?yield e.text():e.text)||hye(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),(i=e.onCopy)==null||i.call(e,n)}catch(e){throw a(!1),e}});return function(e){return n.apply(this,arguments)}}())}};K();var Lk=(e,t)=>{let n=!!e;return J.useMemo(()=>{let r=G(G({},t),n&&lp(e)?e:null);return[n,r]},[n,e,t])},Mwe=e=>{let t=(0,J.useRef)(void 0);return(0,J.useEffect)(()=>{t.current=e}),t.current};K();var Nwe=(e,t,n)=>(0,J.useMemo)(()=>e===!0?{title:t==null?n:t}:(0,J.isValidElement)(e)?{title:e}:lp(e)?G({title:t==null?n:t},e):{title:e},[e,t,n]);K();var Rk=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=ko(`typography`),d=r==null?o:r,f=a(`typography`,e),p=G(G({},i),{},{prefixCls:f,direction:d}),m=(0,J.useMemo)(()=>({root:s}),[s]),h=(0,J.useMemo)(()=>({root:c}),[c]),[g,_]=xp([m,l,t],[h,u,n],{props:p});return[g,_,f,d]};K();var Pwe=[`component`,`className`,`rootClassName`,`children`,`direction`,`style`,`classNames`,`styles`,`prefixCls`],Fwe=[`prefixCls`,`className`,`rootClassName`,`direction`,`classNames`,`styles`],zk=J.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u}=e,d=q(e,Pwe),[f,p]=Fk(u),m=Z(u,{[`${u}-rtl`]:o===`rtl`},r,i,f,p,c==null?void 0:c.root),h=G(G({},l==null?void 0:l.root),s);return J.createElement(n,G(G({},d),{},{className:m,style:h,ref:t}),a)}),Iwe=J.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s}=e,c=q(e,Fwe),[l,u,d,f]=Rk(n,o,s,a,e);return J.createElement(zk,G({ref:t,className:Z(r,i),direction:f,classNames:l,styles:u,prefixCls:d},c))}),Lwe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`}}))());function Bk(){return Bk=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,Bk({},e,{ref:t,icon:Lwe.default}))),Hk=e=>e===!1?[!1,!1]:hye(e);function Uk(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Rwe(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var Wk=e=>[`string`,`number`].includes(typeof e),zwe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:d}=e,f=Hk(a),p=Hk(o),{copied:m,copy:h}=r==null?{}:r,g=n?m:h,_=Uk(f[+!!n],g),v=typeof _==`string`?_:g;return J.createElement(ab,{title:_},J.createElement(`button`,{type:`button`,className:Z(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:d,onClick:c,"aria-label":v,tabIndex:s},n?Uk(p[1],J.createElement(ky,null),!0):Uk(p[0],l?J.createElement(Fm,null):J.createElement(Vk,null),!0)))};K();var Gk=J.forwardRef(({style:e,children:t},n)=>{let r=J.useRef(null);return J.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),J.createElement(`span`,{"aria-hidden":!0,ref:r,style:G({position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`},e)},t)}),Bwe=e=>e.reduce((e,t)=>e+(Wk(t)?String(t).length:1),0);function Kk(e,t){let n=0,r=[];for(let i=0;it){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var qk=0,Jk=1,Yk=2,Xk=3,Zk=4,Qk={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Vwe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=J.useMemo(()=>Ia(r),[r]),d=J.useMemo(()=>Bwe(u),[r]),f=J.useMemo(()=>i(u,!1),[r].concat(Co(s))),[p,m]=J.useState(null),h=J.useRef(null),g=J.useRef(null),_=J.useRef(null),v=J.useRef(null),y=J.useRef(null),[b,x]=J.useState(!1),[S,C]=J.useState(qk),[w,T]=J.useState(0),[E,D]=J.useState(null);Xr(()=>{C(t&&n&&d?Jk:qk)},[n,r,a,t,u].concat(Co(s))),Xr(()=>{if(S===Jk){C(Yk);let e=g.current&&getComputedStyle(g.current).whiteSpace;D(e)}else if(S===Yk){var e,t,n,r;let i=!!((e=_.current)!=null&&e.isExceed());C(i?Xk:Zk),m(i?[0,d]:null),x(i);let o=((t=_.current)==null?void 0:t.getHeight())||0,s=a===1?0:((n=v.current)==null?void 0:n.getHeight())||0,c=((r=y.current)==null?void 0:r.getHeight())||0,u=Math.max(o,s+c);T(u+1),l(i)}},[S]);let O=p?Math.ceil((p[0]+p[1])/2):0;Xr(()=>{let[e,t]=p||[0,0];if(e!==t){var n;let r=(((n=h.current)==null?void 0:n.getHeight())||0)>w,i=O;t-e===1&&(i=r?e:t),m(r?[e,i]:[i,t])}},[p,O]);let k=J.useMemo(()=>{if(!t)return i(u,!1);if(S!==Xk||!p||p[0]!==p[1]){let e=i(u,!1);return[Zk,qk].includes(S)?e:J.createElement(`span`,{style:G(G({},Qk),{},{WebkitLineClamp:a})},e)}return i(o?u:Kk(u,p[0]),b)},[o,S,p,u].concat(Co(c))),A={width:n,margin:0,padding:0,whiteSpace:E===`nowrap`?`normal`:`inherit`};return J.createElement(J.Fragment,null,k,S===Yk&&J.createElement(J.Fragment,null,J.createElement(Gk,{style:G(G(G({},A),Qk),{},{WebkitLineClamp:a}),ref:_},f),J.createElement(Gk,{style:G(G(G({},A),Qk),{},{WebkitLineClamp:a-1}),ref:v},f),J.createElement(Gk,{style:G(G(G({},A),Qk),{},{WebkitLineClamp:1}),ref:y},i([],!0))),S===Xk&&p&&p[0]!==p[1]&&J.createElement(Gk,{style:G(G({},A),{},{top:400}),ref:h},i(Kk(u,O),!0)),S===Jk&&J.createElement(`span`,{style:{whiteSpace:`inherit`},ref:g}))}K();var Hwe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!(i!=null&&i.title)||!e)return r;let a=n&&t;return J.createElement(ab,G({open:a},i),r)};K();var Uwe=[`prefixCls`,`className`,`style`,`classNames`,`styles`,`direction`,`type`,`disabled`,`children`,`ellipsis`,`editable`,`copyable`,`actions`,`component`,`title`,`onMouseEnter`,`onMouseLeave`];function Wwe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=J.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var Gwe=`...`,$k=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],eA=J.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,direction:s,type:c,disabled:l,children:u,ellipsis:d,editable:f,copyable:p,actions:m,component:h,title:g,onMouseEnter:_,onMouseLeave:v}=e,y=q(e,Uwe),[b]=Hp(`Text`),x=J.useRef(null),S=J.useRef(null),[C,w,T,E]=Rk(n,a,o,s,e),D=Ca(y,$k),[O,k]=Lk(f),[A,j]=$r(!1,k.editing),{triggerType:M=[`icon`]}=k,N=e=>{if(e){var t;(t=k.onStart)==null||t.call(k)}j(e)},P=Mwe(A);Xr(()=>{if(!A&&P){var e;(e=S.current)==null||e.focus()}},[A]);let F=e=>{e==null||e.preventDefault(),N(!0)},I=e=>{var t;(t=k.onChange)==null||t.call(k,e),N(!1)},L=()=>{var e;(e=k.onCancel)==null||e.call(k),N(!1)},[R,z]=Lk(p),{placement:B=`end`}=m==null?{}:m,{copied:V,copyLoading:H,onClick:U}=jwe({copyConfig:z,children:u}),[ee,te]=J.useState(!1),[ne,re]=J.useState(!1),[ie,ae]=J.useState(!1),[oe,se]=J.useState(!1),[ce,le]=J.useState(!0),[ue,de]=Lk(d,{expandable:!1,symbol:e=>e?b==null?void 0:b.collapse:b==null?void 0:b.expand}),[fe,pe]=$r(de.defaultExpanded||!1,de.expanded),me=ue&&(!fe||de.expandable===`collapsible`),{rows:he=1}=de,W=J.useMemo(()=>me&&(de.suffix!==void 0||de.onEllipsis||de.expandable||O||R),[me,de,O,R]);Xr(()=>{ue&&!W&&(te(ia(`webkitLineClamp`)),re(ia(`textOverflow`)))},[W,ue]);let[ge,_e]=J.useState(me),K=J.useMemo(()=>W?!1:he===1?ne:ee,[W,he,ee,ne]);Xr(()=>{_e(K&&me)},[K,me]);let ve=Nwe(de.tooltip,k.text,u),ye=ge&&!!ve.title,be=me&&(ge?ye&&oe:ie),xe=me&&he===1&&ge,Se=me&&he>1&&ge,Ce=(e,t)=>{var n;pe(t.expanded),(n=de.onExpand)==null||n.call(de,e,t)},[we,Te]=J.useState(0),[Ee,De]=J.useState(!1),[Oe,ke]=J.useState(!1),Ae=({offsetWidth:e})=>{Te(e)},je=e=>{if(ae(e),ie!==e){var t;(t=de.onEllipsis)==null||t.call(de,e)}};J.useEffect(()=>{let e=x.current;if(ue&&ye&&e){let t=Rwe(e);oe!==t&&se(t)}},[ue,ye,u,Se,ce,we]),J.useEffect(()=>{let e=x.current;if(typeof IntersectionObserver>`u`||!e||!ye||!me)return;let t=new IntersectionObserver(()=>{le(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ye,me]);let Me=J.useMemo(()=>{if(!(!ue||ge))return[k.text,u,g,ve.title].find(Wk)},[ue,ge,g,ve.title,be,k.text]);if(A){var Ne;return J.createElement(Dwe,{value:(Ne=k.text)==null?typeof u==`string`?u:``:Ne,onSave:I,onCancel:L,onEnd:k.onEnd,prefixCls:T,className:r,style:i,direction:E,component:h,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon,classNames:C,styles:w})}let Pe=()=>{let{expandable:e,symbol:t}=de;return e?J.createElement(`button`,{type:`button`,key:`expand`,className:Z(`${T}-${fe?`collapse`:`expand`}`,C.action),style:w.action,onClick:e=>Ce(e,{expanded:!fe}),"aria-label":fe?b.collapse:b==null?void 0:b.expand},up(t)?t(fe):t):null},Fe=()=>{if(!O)return;let{icon:e,tooltip:t,tabIndex:n}=k,r=Ia(t)[0]||(b==null?void 0:b.edit),i=typeof r==`string`?r:``;return M.includes(`icon`)?J.createElement(ab,{key:`edit`,title:t===!1?``:r},J.createElement(`button`,{type:`button`,ref:S,className:Z(`${T}-edit`,C.action),style:w.action,onClick:F,"aria-label":i,tabIndex:n},e||J.createElement(Nk,{role:`button`}))):null},Ie=()=>R?J.createElement(zwe,G(G({key:`copy`},z),{},{prefixCls:T,copied:V,locale:b,onCopy:U,loading:H,iconOnly:!op(u),className:C.action,style:w.action})):null,Le=e=>{let t=e&&Pe(),n=Fe(),r=Ie();return!t&&!n&&!r?null:J.createElement(`span`,{key:`operations`,className:Z(`${T}-actions`,C.actions,{[`${T}-actions-start`]:B===`start`}),style:w.actions,onMouseEnter:()=>De(!0),onMouseLeave:()=>De(!1)},t,n,r)},Re=e=>[e&&!fe&&J.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},Gwe),de.suffix];return J.createElement(go,{onResize:Ae,disabled:!me},n=>J.createElement(Hwe,{tooltipProps:ve,enableEllipsis:me,isEllipsis:be,open:Oe&&!Ee},J.createElement(zk,G({onMouseEnter:e=>{ke(!0),_==null||_(e)},onMouseLeave:e=>{ke(!1),v==null||v(e)},className:Z({[`${T}-${c}`]:c,[`${T}-disabled`]:l,[`${T}-ellipsis`]:ue,[`${T}-ellipsis-single-line`]:xe,[`${T}-ellipsis-multiple-line`]:Se,[`${T}-link`]:h===`a`},r),classNames:C,styles:w,prefixCls:T,style:G(G({},i),{},{WebkitLineClamp:Se?he:void 0}),component:h,ref:hi(n,x,t),direction:E,onClick:M.includes(`text`)?F:void 0,"aria-label":Me==null?void 0:Me.toString(),title:g},D),J.createElement(Vwe,{enableMeasure:me&&!ge,text:u,rows:he,width:we,onEllipsis:je,expanded:fe,measureDeps:[B],miscDeps:[V,fe,H,O,R,B,b].concat(Co($k.map(t=>e[t])))},(t,n)=>Wwe(e,J.createElement(J.Fragment,null,B===`start`?Le(n):null,t.length>0&&n&&!fe&&Me?J.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Re(n),B===`start`?null:Le(n)))))))});K();var Kwe=[`ellipsis`,`rel`,`children`,`navigate`],qwe=J.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a}=e,o=q(e,Kwe),s=G(G({},o),{},{rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r});return J.createElement(eA,G(G({},s),{},{ref:t,ellipsis:!!n,component:`a`}),i)});K();var Jwe=[`children`],Ywe=J.forwardRef((e,t)=>{let{children:n}=e,r=q(e,Jwe);return J.createElement(eA,G(G({ref:t},r),{},{component:`div`}),n)});K();var Xwe=[`ellipsis`,`children`],Zwe=J.forwardRef((e,t)=>{let{ellipsis:n,children:r}=e,i=q(e,Xwe),a=J.useMemo(()=>lp(n)?Ca(n,[`expandable`,`rows`]):n,[n]);return J.createElement(eA,G(G({ref:t},i),{},{ellipsis:a,component:`span`}),r)});K();var Qwe=[`level`,`children`],$we=[1,2,3,4,5],eTe=J.forwardRef((e,t)=>{let{level:n=1,children:r}=e,i=q(e,Qwe),a=$we.includes(n)?`h${n}`:`h1`;return J.createElement(eA,G(G({ref:t},i),{},{component:a}),r)}),tA=Iwe;tA.Text=Zwe,tA.Link=qwe,tA.Title=eTe,tA.Paragraph=Ywe;var tTe=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(_a(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function nTe(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function nA(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function rA(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(nTe(e,t),nA(t)):e.onSuccess(nA(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}Pe();var rTe=function(){var e=Ne(function*(e,t){let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));function i(e){return a.apply(this,arguments)}function a(){return a=Ne(function*(e){let t=e.createReader(),n=[];for(;;){let e=yield new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}),s.apply(this,arguments)}let c=function(){var e=Ne(function*(e,t){if(e){if(e.path=t||``,e.isFile){let t=yield o(e);t&&n.push(t)}else if(e.isDirectory){let t=yield i(e);r.push(...t)}}});return function(t,n){return e.apply(this,arguments)}}(),l=0;for(;l{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>tTe(e,a):()=>!0))(e)}),W(this,`onChange`,e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()}),W(this,`onClick`,e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)}),W(this,`onKeyDown`,e=>{e.key===`Enter`&&this.onClick(e)}),W(this,`onDataTransferFiles`,function(){var e=Ne(function*(e,n){let{multiple:r,directory:i}=t.props,a=[...e.items||[]],o=[...e.files||[]];if((o.length>0||a.some(e=>e.kind===`file`))&&(n==null||n()),i)o=yield rTe(Array.prototype.slice.call(a),t.filterFile),t.uploadFiles(o);else{let e=[...o].filter(e=>t.filterFile(e,!0));r===!1&&(e=o.slice(0,1)),t.uploadFiles(e)}});return function(t,n){return e.apply(this,arguments)}}()),W(this,`onFilePaste`,function(){var e=Ne(function*(e){let{pastable:n}=t.props;if(n&&e.type===`paste`){let n=e.clipboardData;return t.onDataTransferFiles(n,()=>{e.preventDefault()})}});return function(t){return e.apply(this,arguments)}}()),W(this,`onFileDragOver`,e=>{e.preventDefault()}),W(this,`onFileDrop`,function(){var e=Ne(function*(e){if(e.preventDefault(),e.type===`drop`){let n=e.dataTransfer;return t.onDataTransferFiles(n)}});return function(t){return e.apply(this,arguments)}}()),W(this,`uploadFiles`,e=>{let t=[...e],n=t.map(e=>(e.uid=iA(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t==null||t(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})}),W(this,`processFile`,function(){var e=Ne(function*(e,n){let{beforeUpload:r}=t.props,i=e;if(r){try{i=yield r(e,n)}catch(e){i=!1}if(i===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:a}=t.props,o;o=typeof a==`function`?yield a(e):a;let{data:s}=t.props,c;c=typeof s==`function`?yield s(e):s;let l=(typeof i==`object`||typeof i==`string`)&&i?i:e,u;u=l instanceof File?l:new File([l],e.name,{type:e.type});let d=u;return d.uid=e.uid,{origin:e,data:c,parsedFile:d,action:o}});return function(t,n){return e.apply(this,arguments)}}()),W(this,`saveFileInput`,e=>{this.fileInput=e})}componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||rA,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t==null||t(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n==null||n(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n==null||n(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:rA})}reset(){this.setState({uid:iA()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}render(){let e=this.props,{component:t,prefixCls:n,className:r,classNames:i={},disabled:a,id:o,name:s,style:c,styles:l={},multiple:u,accept:d,capture:f,children:p,directory:m,openFileDialogOnClick:h,onMouseEnter:g,onMouseLeave:_,hasControlInside:v}=e,y=q(e,oTe),b=typeof d==`string`?d:d==null?void 0:d.format,x=Z(n,{[`${n}-disabled`]:a,[r]:r}),S=m?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},C=a?{}:{onClick:h?this.onClick:()=>{},onKeyDown:h?this.onKeyDown:()=>{},onMouseEnter:g,onMouseLeave:_,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:v?void 0:`0`};return J.createElement(t,aA({},C,{className:x,role:v?void 0:`button`,style:c}),J.createElement(`input`,aA({},Oa(y,{aria:!0,data:!0}),{id:o,name:s,disabled:a,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:G({display:`none`},l.input),className:i.input,accept:b},S,{multiple:u,onChange:this.onChange},f==null?{}:{capture:f})),p)}};ge();function oA(){return oA=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.uploader=e})}abort(e){this.uploader.abort(e)}render(){return J.createElement(sTe,oA({},this.props,{ref:this.saveUploader}))}};W(cA,`defaultProps`,{component:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:sA,onError:sA,onSuccess:sA,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var lA=cA,cTe=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${Q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) - `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${be(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Q(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},TXe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:o,calc:a}=e,s=`${t}-list-item`,l=`${s}-actions`,c=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:te(I({},fA()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${o}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:te(I({},Wa),{padding:`0 ${be(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${o}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[c]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${o}`},[` - ${c}:focus-visible, - &.picture ${c} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${c}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:["opacity","height"].map(u=>`${u} ${o}`).join(", "),"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},MXe=e=>{const{componentCls:t}=e,n=new Xr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Xr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:O8(e)},n,r]},IXe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` - ${a}${a}-picture, - ${a}${a}-picture-card, - ${a}${a}-picture-circle - `]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:te(I({},Wa),{width:r,height:r,lineHeight:be(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${be(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail${s}-file ${n}`]:{color:e.colorError}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},RXe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` + `]:{color:e.colorTextDisabled}}}}}};K();var lTe=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:G(G({},id()),{},{lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:G(G({},ed),{},{padding:`0 ${Q(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`}),[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[` + ${l}:focus-visible, + &.picture ${l} + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}})}}},uTe=e=>{let{componentCls:t}=e,n=new Vc(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Vc(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Ph(e)},n,r]};K();var dTe=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + ${o}${o}-picture, + ${o}${o}-picture-card, + ${o}${o}-picture-circle + `]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:G(G({},ed),{},{width:r,height:r,lineHeight:Q(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}}),[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${Q(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail${s}-file ${n}`]:{color:e.colorError}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},fTe=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:te(I({},fA()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${be(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","&:not(:empty)":{minHeight:l},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${be(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${be(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + `]:G(G({},id()),{},{display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${Q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,textAlign:`center`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:`flex`,flexWrap:`wrap`,"&:not(:empty)":{minHeight:c},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:`inline-block`,width:c,height:c,verticalAlign:`top`},"&::after":{display:`none`},"&::before":{display:`none`},[s]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${be(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${be(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${be(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},NXe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},PXe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:te(I({},zr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},LXe=Br("Upload",e=>{const{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:o}=e,a=dr(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[PXe(a),_Xe(a),IXe(a),RXe(a),TXe(a),MXe(a),NXe(a),lE(a)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}));var iR={},yfe;function FXe(){if(yfe)return iR;yfe=1,Object.defineProperty(iR,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};return iR.default=e,iR}var kXe=FXe();const DXe=_t(kXe);function nj(){return nj=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,nj({},e,{ref:t,icon:DXe})),UXe=g.forwardRef(HXe);var oR={},bfe;function jXe(){if(bfe)return oR;bfe=1,Object.defineProperty(oR,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"};return oR.default=e,oR}var zXe=jXe();const QXe=_t(zXe);function rj(){return rj=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,rj({},e,{ref:t,icon:QXe})),KXe=g.forwardRef(VXe);function aR(e){return te(I({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function sR(e,t){const n=en(t),r=n.findIndex(({uid:i})=>i===e.uid);return r===-1?n.push(e):n[r]=e,n}function ij(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function WXe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const GXe=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},xfe=e=>e.indexOf("image/")===0,qXe=[".avif",".bmp",".dpg",".gif",".heic",".heif",".ico",".jfif",".jpg",".jpeg",".png",".svg",".tif",".tiff",".webp"],YXe=e=>{if(e.type&&!e.thumbUrl)return xfe(e.type);const t=e.thumbUrl||e.url||"",n=GXe(t||e.name);return/^data:image\//.test(t)||qXe.includes((n==null?void 0:n.toLowerCase())||"")?!0:!(/^data:/.test(t)||n)},tm=200;function XXe(e){return new Promise(t=>{if(!e.type||!xfe(e.type)){t("");return}const n=document.createElement("canvas");n.width=tm,n.height=tm,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${tm}px; height: ${tm}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:a}=i;let s=tm,l=tm,c=0,u=0;o>a?(l=a*(tm/o),u=-(l-s)/2):(s=o*(tm/a),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var lR={},wfe;function ZXe(){if(wfe)return lR;wfe=1,Object.defineProperty(lR,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};return lR.default=e,lR}var JXe=ZXe();const eZe=_t(JXe);function oj(){return oj=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement(Wn,oj({},e,{ref:t,icon:eZe})),aj=g.forwardRef(tZe),nZe=g.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:o,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:d,isImgUrl:A,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:x,extra:C,onPreview:S,onDownload:B,onClose:E},_)=>{var ce,ge;const{status:M}=s,[R,T]=g.useState(M);g.useEffect(()=>{M!=="removed"&&T(M)},[M]);const[L,P]=g.useState(!1);g.useEffect(()=>{const ie=setTimeout(()=>{P(!0)},300);return()=>{clearTimeout(ie)}},[]);const k=u(s);let H=g.createElement("div",{className:`${e}-icon`},k);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(R==="uploading"||!s.thumbUrl&&!s.url){const ie=Ae(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:R!=="uploading"});H=g.createElement("div",{className:ie},k)}else{const ie=A!=null&&A(s)?g.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):k,le=Ae(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:A&&!A(s)});H=g.createElement("a",{className:le,onClick:ve=>S(s,ve),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ie)}const D=Ae(`${e}-list-item`,`${e}-list-item-${R}`,r==null?void 0:r.item),U=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,j=(Rn(p)?p(s):p)?f((Rn(b)?b(s):b)||g.createElement(GI,null),()=>E(s),e,o.removeFile,!0):null,Q=(Rn(v)?v(s):v)&&R==="done"?f((Rn(x)?x(s):x)||g.createElement(aj,null),()=>B(s),e,o.downloadFile):null,K=a!=="picture-card"&&a!=="picture-circle"&&g.createElement("span",{key:"download-delete",className:Ae(`${e}-list-item-actions`,{picture:a==="picture"})},Q,j),z=Rn(C)?C(s):C,V=z&&g.createElement("span",{className:`${e}-list-item-extra`},z),Y=Ae(`${e}-list-item-name`),Z=ie=>{(ie.key==="Enter"||ie.key===" ")&&(ie.preventDefault(),S(s,ie))},W=s.url?g.createElement("a",te(I({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:s.name},U),{href:s.url,onClick:ie=>S(s,ie)}),s.name,V):g.createElement("span",{key:"view",role:"button",tabIndex:0,className:Y,onClick:ie=>S(s,ie),onKeyDown:Z,title:s.name},s.name,V),J=(Rn(h)?h(s):h)&&(s.url||s.thumbUrl)?g.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ie=>S(s,ie),title:o.previewFile},Rn(y)?y(s):y||g.createElement(Ace,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&R!=="uploading"&&g.createElement("span",{className:`${e}-list-item-actions`},J,R==="done"&&Q,j),{getPrefixCls:ne}=g.useContext(Un),re=ne(),ue=g.createElement("div",{className:D,style:i==null?void 0:i.item},H,W,K,ee,L&&g.createElement(sl,{motionName:`${re}-fade`,visible:R==="uploading",motionDeadline:2e3},({className:ie})=>{const le="percent"in s?g.createElement(RKe,I({type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]},c)):null;return g.createElement("div",{className:Ae(`${e}-list-item-progress`,ie)},le)})),de=s.response&&typeof s.response=="string"?s.response:((ce=s.error)==null?void 0:ce.statusText)||((ge=s.error)==null?void 0:ge.message)||o.uploadError,se=R==="error"?g.createElement(No,{title:de,getPopupContainer:ie=>ie.parentNode},ue):ue;return g.createElement("div",{className:Ae(`${e}-list-item-container`,t),style:n,ref:_},d?d(se,s,l,{download:B.bind(null,s),preview:S.bind(null,s),remove:E.bind(null,s)}):se)}),rZe=(e,t)=>{const{listType:n="text",previewFile:r=XXe,onPreview:i,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:c=YXe,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:A=!0,showDownloadIcon:h=!1,removeIcon:p,previewIcon:v,downloadIcon:y,extra:b,progress:x={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:S=!0,itemRender:B,disabled:E,classNames:_,styles:M}=e,[,R]=c8(),[T,L]=g.useState(!1),P=["picture-card","picture-circle"].includes(n);g.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(W=>{!(W.originFileObj instanceof File||W.originFileObj instanceof Blob)||W.thumbUrl!==void 0||(W.thumbUrl="",r==null||r(W.originFileObj).then(J=>{W.thumbUrl=J||"",R()}))})},[n,f,r]),g.useEffect(()=>{L(!0)},[]);const k=(W,J)=>{if(i)return J==null||J.preventDefault(),i(W)},H=W=>{Rn(o)?o(W):W.url&&window.open(W.url)},D=W=>{a==null||a(W)},U=W=>{if(l)return l(W,n);const J=W.status==="uploading";if(n.startsWith("picture")){const ee=n==="picture"?g.createElement(qh,null):s.uploading,ne=c!=null&&c(W)?g.createElement(KXe,null):g.createElement(m9,null);return J?ee:ne}return J?g.createElement(qh,null):g.createElement(UXe,null)},j=(W,J,ee,ne,re)=>{const ue={type:"text",size:"small",title:ne,onClick:de=>{var se,ce;J(),g.isValidElement(W)&&((ce=(se=W.props).onClick)==null||ce.call(se,de))},className:`${ee}-list-item-action`,disabled:re?E:!1};return g.isValidElement(W)?g.createElement(qn,te(I({},ue),{icon:Ga(W,te(I({},W.props),{onClick:()=>{}}))})):g.createElement(qn,I({},ue),g.createElement("span",null,W))};g.useImperativeHandle(t,()=>({handlePreview:k,handleDownload:H}));const{getPrefixCls:Q}=g.useContext(Un),K=Q("upload",u),z=Q(),V=Ae(`${K}-list`,`${K}-list-${n}`,_==null?void 0:_.list),Y=g.useMemo(()=>ti(Bb(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),Z=te(I({},P?{}:Y),{motionDeadline:2e3,motionName:`${K}-${P?"animate-inline":"animate"}`,keys:en(f.map(W=>({key:W.uid,file:W}))),motionAppear:T});return g.createElement("div",{className:V,style:M==null?void 0:M.list},g.createElement(YD,te(I({},Z),{component:!1}),({key:W,file:J,className:ee,style:ne})=>g.createElement(nZe,{key:W,locale:s,prefixCls:K,className:ee,style:ne,classNames:_,styles:M,file:J,items:f,progress:x,listType:n,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:A,showDownloadIcon:h,removeIcon:p,previewIcon:v,downloadIcon:y,extra:b,iconRender:U,actionIconRender:j,itemRender:B,onPreview:k,onDownload:H,onClose:D})),C&&g.createElement(sl,te(I({},Z),{visible:S,forceRender:!0}),({className:W,style:J})=>Ga(C,ee=>({className:Ae(ee.className,W),style:I(te(I({},J),{pointerEvents:W?"none":void 0}),ee.style)}))))},iZe=g.forwardRef(rZe),u2=`__LIST_IGNORE_${Date.now()}__`,oZe=(e,t)=>{const n=or("upload"),{fileList:r,defaultFileList:i,onRemove:o,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:f,previewFile:d,disabled:A,locale:h,iconRender:p,isImageUrl:v,progress:y,prefixCls:b,className:x,type:C="select",children:S,style:B,itemRender:E,maxCount:_,data:M={},multiple:R=!1,hasControlInside:T=!0,action:L="",accept:P,supportServerRender:k=!0,rootClassName:H,styles:D,classNames:U}=e,j=g.useContext(qa),Q=A!=null?A:j,K=e.customRequest||n.customRequest,z=n.progress||y?I(I({},n.progress),y):void 0,V=du(P,n.accept,""),[Y,Z]=Fr(i,r),W=Y||[],[J,ee]=g.useState("drop"),ne=g.useRef(null),re=g.useRef(null);g.useMemo(()=>{const qe=Date.now();(r||[]).forEach((it,Pt)=>{!it.uid&&!Object.isFrozen(it)&&(it.uid=`__AUTO__${qe}_${Pt}__`)})},[r]);const ue=(qe,it,Pt)=>{let De=en(it),ze=!1;_===1?De=De.slice(-1):_&&(ze=De.length>_,De=De.slice(0,_)),fu.flushSync(()=>{Z(De)});const bt={file:qe,fileList:De};Pt&&(bt.event=Pt),(!ze||qe.status==="removed"||De.some(lt=>lt.uid===qe.uid))&&fu.flushSync(()=>{u==null||u(bt)})},de=(qe,it)=>Er(null,null,function*(){const{beforeUpload:Pt}=e;let De=qe;if(Pt){const ze=yield Pt(qe,it);if(ze===!1)return!1;if(delete qe[u2],ze===u2)return Object.defineProperty(qe,u2,{value:!0,configurable:!0}),!1;Zn(ze)&&(De=ze)}return De}),se=qe=>{const it=qe.filter(ze=>!ze.file[u2]);if(!it.length)return;const Pt=it.map(ze=>aR(ze.file));let De=en(W);Pt.forEach(ze=>{De=sR(ze,De)}),Pt.forEach((ze,bt)=>{let lt=ze;if(it[bt].parsedFile)ze.status="uploading";else{const{originFileObj:At}=ze;let ut;try{ut=new File([At],At.name,{type:At.type})}catch(ft){ut=new Blob([At],{type:At.type}),ut.name=At.name,ut.lastModifiedDate=new Date,ut.lastModified=new Date().getTime()}ut.uid=ze.uid,lt=ut}ue(lt,De)})},ce=(qe,it,Pt)=>{try{typeof qe=="string"&&(qe=JSON.parse(qe))}catch(bt){}if(!ij(it,W))return;const De=aR(it);De.status="done",De.percent=100,De.response=qe,De.xhr=Pt;const ze=sR(De,W);ue(De,ze)},ge=(qe,it)=>{if(!ij(it,W))return;const Pt=aR(it);Pt.status="uploading",Pt.percent=qe.percent;const De=sR(Pt,W);ue(Pt,De,qe)},ie=(qe,it,Pt)=>{if(!ij(Pt,W))return;const De=aR(Pt);De.error=qe,De.response=it,De.status="error";const ze=sR(De,W);ue(De,ze)},le=qe=>{let it;Promise.resolve(Rn(o)?o(qe):o).then(Pt=>{var ze;if(Pt===!1)return;const De=WXe(qe,W);De&&(it=te(I({},qe),{status:"removed"}),W==null||W.forEach(bt=>{const lt=it.uid!==void 0?"uid":"name";bt[lt]===it[lt]&&!Object.isFrozen(bt)&&(bt.status="removed")}),(ze=ne.current)==null||ze.abort(it),ue(it,De))})},ve=qe=>{ee(qe.type),qe.type==="drop"&&(f==null||f(qe))};g.useImperativeHandle(t,()=>({onBatchStart:se,onSuccess:ce,onProgress:ge,onError:ie,fileList:W,upload:ne.current,nativeElement:re.current}));const{getPrefixCls:we,direction:me,className:Ee,style:Ce,classNames:pe,styles:Oe}=or("upload"),xe=we("upload",b),Me=te(I({},e),{listType:s,showUploadList:a,type:C,multiple:R,hasControlInside:T,supportServerRender:k,disabled:Q}),[Se,Pe]=vr([pe,U],[Oe,D],{props:Me}),Le=te(I({onBatchStart:se,onError:ie,onProgress:ge,onSuccess:ce},e),{customRequest:K,data:M,multiple:R,action:L,accept:V,supportServerRender:k,prefixCls:xe,disabled:Q,beforeUpload:de,onChange:void 0,hasControlInside:T});delete Le.className,delete Le.style,(!S||Q)&&delete Le.id;const He=`${xe}-wrapper`,[Ne,at]=LXe(xe,He),[Ue]=zs("Upload",Sl.Upload),{showRemoveIcon:et,showPreviewIcon:We,showDownloadIcon:Je,removeIcon:dt,previewIcon:wt,downloadIcon:Bt,extra:qt}=typeof a=="boolean"?{}:a,jt=typeof et=="undefined"?!Q:et,nn=(qe,it)=>a?g.createElement(iZe,{classNames:Se,styles:Pe,prefixCls:xe,listType:s,items:W,previewFile:d,onPreview:l,onDownload:c,onRemove:le,showRemoveIcon:jt,showPreviewIcon:We,showDownloadIcon:Je,removeIcon:dt,previewIcon:wt,downloadIcon:Bt,iconRender:p,extra:qt,locale:I(I({},Ue),h),isImageUrl:v,progress:z,appendAction:qe,appendActionVisible:it,itemRender:E,disabled:Q}):qe,Jt=Ae(He,x,H,Ne,at,Ee,Se.root,{[`${xe}-rtl`]:me==="rtl",[`${xe}-picture-card-wrapper`]:s==="picture-card",[`${xe}-picture-circle-wrapper`]:s==="picture-circle"}),Ot=I({},Pe.root),sn=I(I({},Ce),B);if(C==="drag"){const qe=Ae(Ne,xe,`${xe}-drag`,{[`${xe}-drag-uploading`]:W.some(it=>it.status==="uploading"),[`${xe}-drag-hover`]:J==="dragover",[`${xe}-disabled`]:Q,[`${xe}-rtl`]:me==="rtl"},Se.trigger);return g.createElement("span",{className:Jt,ref:re,style:Ot},g.createElement("div",{className:qe,style:I(I({},sn),Pe.trigger),onDrop:ve,onDragOver:ve,onDragLeave:ve},g.createElement(vfe,te(I({},Le),{ref:ne,className:`${xe}-btn`}),g.createElement("div",{className:`${xe}-drag-container`},S))),nn())}const Vt=Ae(xe,`${xe}-select`,{[`${xe}-disabled`]:Q,[`${xe}-hidden`]:!S},Se.trigger),xt=g.createElement("div",{className:Vt,style:I(I({},sn),Pe.trigger)},g.createElement(vfe,te(I({},Le),{ref:ne})));return s==="picture-card"||s==="picture-circle"?g.createElement("span",{className:Jt,ref:re,style:Ot},nn(xt,!!S)):g.createElement("span",{className:Jt,ref:re,style:Ot},xt,nn())},Cfe=g.forwardRef(oZe),aZe=g.forwardRef((e,t)=>{const l=e,{style:n,height:r,hasControlInside:i=!1,children:o}=l,a=Ze(l,["style","height","hasControlInside","children"]),s=te(I({},n),{height:r});return g.createElement(Cfe,te(I({ref:t,hasControlInside:i},a),{style:s,type:"drag"}),o)}),f2=Cfe;f2.Dragger=aZe,f2.LIST_IGNORE=u2;const sZe=(e,t,n,r)=>{var o,a,s,l;const i=[n,I({code:t},r||{})];if((a=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&a.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);zv(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},Sfe={},sj=(e,t,n,r)=>{zv(n)&&Sfe[n]||(zv(n)&&(Sfe[n]=new Date),sZe(e,t,n,r))},Efe=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},lj=(e,t,n)=>{e.loadNamespaces(t,Efe(e,n))},Bfe=(e,t,n,r)=>{if(zv(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return lj(e,n,r);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Efe(e,r))},lZe=(e,t,n={})=>!t.languages||!t.languages.length?(sj(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),zv=e=>typeof e=="string",cZe=e=>typeof e=="object"&&e!==null,uZe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,fZe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},dZe=e=>fZe[e];let AZe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(uZe,dZe),transDefaultProps:void 0};const hZe=()=>AZe;let pZe;const gZe=()=>pZe,Ofe=g.createContext();class mZe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var cj={exports:{}},uj={};var $fe;function vZe(){if($fe)return uj;$fe=1;var e=RS();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(f,d){var A=d(),h=r({inst:{value:A,getSnapshot:d}}),p=h[0].inst,v=h[1];return o(function(){p.value=A,p.getSnapshot=d,l(p)&&v({inst:p})},[f,A,d]),i(function(){return l(p)&&v({inst:p}),f(function(){l(p)&&v({inst:p})})},[f]),a(A),A}function l(f){var d=f.getSnapshot;f=f.value;try{var A=d();return!n(f,A)}catch(h){return!0}}function c(f,d){return d()}var u=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:s;return uj.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,uj}var _fe;function yZe(){return _fe||(_fe=1,cj.exports=vZe()),cj.exports}var bZe=yZe();const xZe={t:(e,t)=>{if(zv(t))return t;if(cZe(t)&&zv(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},ready:!1},wZe=()=>()=>{},Na=(e,t={})=>{var M,R,T;const{i18n:n}=t,{i18n:r,defaultNS:i}=g.useContext(Ofe)||{},o=n||r||gZe();o&&!o.reportNamespaces&&(o.reportNamespaces=new mZe),o||sj(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=g.useMemo(()=>{var L;return I(I(I({},hZe()),(L=o==null?void 0:o.options)==null?void 0:L.react),t)},[o,t]),{useSuspense:s,keyPrefix:l}=a,c=e||i||((M=o==null?void 0:o.options)==null?void 0:M.defaultNS),u=zv(c)?[c]:c||["translation"],f=g.useMemo(()=>u,u);(T=(R=o==null?void 0:o.reportNamespaces)==null?void 0:R.addUsedNamespaces)==null||T.call(R,f);const d=g.useRef(0),A=g.useCallback(L=>{if(!o)return wZe;const{bindI18n:P,bindI18nStore:k}=a,H=()=>{d.current+=1,L()};return P&&o.on(P,H),k&&o.store.on(k,H),()=>{P&&P.split(" ").forEach(D=>o.off(D,H)),k&&k.split(" ").forEach(D=>o.store.off(D,H))}},[o,a]),h=g.useRef(),p=g.useCallback(()=>{if(!o)return xZe;const L=!!(o.isInitialized||o.initializedStoreOnce)&&f.every(j=>lZe(j,o,a)),P=t.lng||o.language,k=d.current,H=h.current;if(H&&H.ready===L&&H.lng===P&&H.keyPrefix===l&&H.revision===k)return H;const U={t:o.getFixedT(P,a.nsMode==="fallback"?f:f[0],l),ready:L,lng:P,keyPrefix:l,revision:k};return h.current=U,U},[o,f,l,a,t.lng]),[v,y]=g.useState(0),{t:b,ready:x}=bZe.useSyncExternalStore(A,p,p);g.useEffect(()=>{if(o&&!x&&!s){const L=()=>y(P=>P+1);t.lng?Bfe(o,t.lng,f,L):lj(o,f,L)}},[o,t.lng,f,x,s,v]);const C=o||{},S=g.useRef(null),B=g.useRef(),E=L=>{const P=Object.getOwnPropertyDescriptors(L);P.__original&&delete P.__original;const k=Object.create(Object.getPrototypeOf(L),P);if(!Object.prototype.hasOwnProperty.call(k,"__original"))try{Object.defineProperty(k,"__original",{value:L,writable:!1,enumerable:!1,configurable:!1})}catch(H){}return k},_=g.useMemo(()=>{const L=C,P=L==null?void 0:L.language;let k=L;L&&(S.current&&S.current.__original===L?B.current!==P?(k=E(L),S.current=k,B.current=P):k=S.current:(k=E(L),S.current=k,B.current=P));const H=!x&&!s?(...U)=>(sj(o,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),b(...U)):b,D=[H,k,x];return D.t=H,D.i18n=k,D.ready=x,D},[b,C,x,C.resolvedLanguage,C.language,C.languages]);if(o&&s&&!x)throw new Promise(L=>{const P=()=>L();t.lng?Bfe(o,t.lng,f,P):lj(o,f,P)});return _};function CZe({i18n:e,defaultNS:t,children:n}){const r=g.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return g.createElement(Ofe.Provider,{value:r},n)}var fj=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Tfe=/^[\\/]{2}/;function SZe(e,t){return t+e.replace(/\\/g,"/")}var Mfe="popstate";function Ife(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function EZe(e={}){function t(i,o){let{pathname:a="/",search:s="",hash:l=""}=Qv(i.location.hash.substring(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),dj("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let a=i.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let l=i.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof o=="string"?o:d2(o))}function r(i,o){cd(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return OZe(t,n,r,e)}function ma(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function cd(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function BZe(){return Math.random().toString(36).substring(2,10)}function Rfe(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function dj(e,t,n=null,r,i){return te(I({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Qv(t):t),{state:n,key:t&&t.key||r||BZe(),mask:i})}function d2({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Qv(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function OZe(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,c=u();c==null&&(c=0,a.replaceState(te(I({},a.state),{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s="POP";let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:p.location,delta:y})}function d(v,y){s="PUSH";let b=Ife(v)?v:dj(p.location,v,y);n&&n(b,v),c=u()+1;let x=Rfe(b,c),C=p.createHref(b.mask||b);try{a.pushState(x,"",C)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(C)}o&&l&&l({action:s,location:p.location,delta:1})}function A(v,y){s="REPLACE";let b=Ife(v)?v:dj(p.location,v,y);n&&n(b,v),c=u();let x=Rfe(b,c),C=p.createHref(b.mask||b);a.replaceState(x,"",C),o&&l&&l({action:s,location:p.location,delta:0})}function h(v){return $Ze(i,v)}let p={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Mfe,f),l=v,()=>{i.removeEventListener(Mfe,f),l=null}},createHref(v){return t(i,v)},createURL:h,encodeLocation(v){let y=h(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:A,go(v){return a.go(v)}};return p}function $Ze(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),ma(r,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:d2(t);return i=i.replace(/ $/,"%20"),!n&&Tfe.test(i)&&(i=r+i),new URL(i,r)}function Nfe(e,t,n="/"){return _Ze(e,t,n,!1)}function _Ze(e,t,n,r,i){let o=typeof t=="string"?Qv(t):t,a=lp(o.pathname||"/",n);if(a==null)return null;let s=TZe(e),l=null,c=UZe(a);for(let u=0;l==null&&u{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;ma(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let f=ud([r,u.relativePath]),d=n.concat(u);a.children&&a.children.length>0&&(ma(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Pfe(a.children,t,d,f,l)),!(a.path==null&&!a.index)&&t.push({path:f,score:kZe(f,a.index),routesMeta:d.map((A,h)=>{let[p,v]=Dfe(A.relativePath,A.caseSensitive,h===d.length-1);return te(I({},A),{matcher:p,compiledParams:v})})})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,s);else for(let c of Lfe(a.path))o(a,s,!0,c)}),t}function Lfe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=Lfe(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function MZe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:DZe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var IZe=/^:[\w-]+$/,RZe=3,NZe=2,PZe=1,LZe=10,FZe=-2,Ffe=e=>e==="*";function kZe(e,t){let n=e.split("/"),r=n.length;return n.some(Ffe)&&(r+=FZe),t&&(r+=NZe),n.filter(i=>!Ffe(i)).reduce((i,o)=>i+(IZe.test(o)?RZe:o===""?PZe:LZe),r)}function DZe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function HZe(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s{if(u==="*"){let h=s[d]||"";a=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}const A=s[d];return f&&!A?c[u]=void 0:c[u]=(A||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function Dfe(e,t=!1,n=!0){cd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l,c,u)=>{if(r.push({paramName:s,isOptional:l!=null}),l){let f=u.charAt(c+a.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function UZe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cd(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function lp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function jZe(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Qv(e):e,o;return n?(n=jfe(n),n.startsWith("/")?o=Hfe(n.substring(1),"/"):o=Hfe(n,t)):o=t,{pathname:o,search:VZe(r),hash:KZe(i)}}function Hfe(e,t){let n=uR(t).split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Aj(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function zZe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ufe(e){let t=zZe(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function hj(e,t,n,r=!1){let i;typeof e=="string"?i=Qv(e):(i=I({},e),ma(!i.pathname||!i.pathname.includes("?"),Aj("?","pathname","search",i)),ma(!i.pathname||!i.pathname.includes("#"),Aj("#","pathname","hash",i)),ma(!i.search||!i.search.includes("#"),Aj("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=jZe(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var jfe=e=>e.replace(/[\\/]{2,}/g,"/"),ud=e=>jfe(e.join("/")),uR=e=>e.replace(/\/+$/,""),QZe=e=>uR(e).replace(/^\/*/,"/"),VZe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,KZe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,WZe=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function GZe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function qZe(e){let t=e.map(n=>n.route.path).filter(Boolean);return ud(t)||"/"}var zfe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Qfe(e,t){let n=e;if(typeof n!="string"||!fj.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(zfe)try{let o=new URL(window.location.href),a=Tfe.test(n)?new URL(SZe(n,o.protocol)):new URL(n),s=lp(a.pathname,t);a.origin===o.origin&&s!=null?n=s+a.search+a.hash:i=!0}catch(o){cd(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Vfe=["POST","PUT","PATCH","DELETE"];new Set(Vfe);var YZe=["GET",...Vfe];new Set(YZe);var XZe=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function ZZe(e){try{return XZe.includes(new URL(e).protocol)}catch(t){return!1}}var ax=g.createContext(null);ax.displayName="DataRouter";var fR=g.createContext(null);fR.displayName="DataRouterState";var Kfe=g.createContext(!1);function JZe(){return g.useContext(Kfe)}var Wfe=g.createContext({isTransitioning:!1});Wfe.displayName="ViewTransition";var eJe=g.createContext(new Map);eJe.displayName="Fetchers";var tJe=g.createContext(null);tJe.displayName="Await";var tf=g.createContext(null);tf.displayName="Navigation";var A2=g.createContext(null);A2.displayName="Location";var xA=g.createContext({outlet:null,matches:[],isDataRoute:!1});xA.displayName="Route";var pj=g.createContext(null);pj.displayName="RouteError";var Gfe="REACT_ROUTER_ERROR",nJe="REDIRECT",rJe="ROUTE_ERROR_RESPONSE";function iJe(e){if(e.startsWith(`${Gfe}:${nJe}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch(t){}}function oJe(e){if(e.startsWith(`${Gfe}:${rJe}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new WZe(t.status,t.statusText,t.data)}catch(t){}}function aJe(e,{relative:t}={}){ma(h2(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=g.useContext(tf),{hash:i,pathname:o,search:a}=p2(e,{relative:t}),s=o;return n!=="/"&&(s=o==="/"?n:ud([n,o])),r.createHref({pathname:s,search:a,hash:i})}function h2(){return g.useContext(A2)!=null}function cp(){return ma(h2(),"useLocation() may be used only in the context of a component."),g.useContext(A2).location}var qfe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yfe(e){g.useContext(tf).static||g.useLayoutEffect(e)}function sx(){let{isDataRoute:e}=g.useContext(xA);return e?yJe():sJe()}function sJe(){ma(h2(),"useNavigate() may be used only in the context of a component.");let e=g.useContext(ax),{basename:t,navigator:n}=g.useContext(tf),{matches:r}=g.useContext(xA),{pathname:i}=cp(),o=JSON.stringify(Ufe(r)),a=g.useRef(!1);return Yfe(()=>{a.current=!0}),g.useCallback((l,c={})=>{if(cd(a.current,qfe),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=hj(l,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:ud([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,o,i,e])}g.createContext(null);function dR(){var n;let{matches:e}=g.useContext(xA),t=e[e.length-1];return(n=t==null?void 0:t.params)!=null?n:{}}function p2(e,{relative:t}={}){let{matches:n}=g.useContext(xA),{pathname:r}=cp(),i=JSON.stringify(Ufe(n));return g.useMemo(()=>hj(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function lJe(e,t){return Xfe(e,t)}function Xfe(e,t,n){var v;ma(h2(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=g.useContext(tf),{matches:i}=g.useContext(xA),o=i[i.length-1],a=o?o.params:{},s=o?o.pathname:"/",l=o?o.pathnameBase:"/",c=o&&o.route;{let y=c&&c.path||"";ede(s,!c||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + `]:{zIndex:10,width:r,margin:`0 ${Q(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Q(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},pTe=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}};K();var mTe=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:G(G({},td(e)),{},{[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}})}},hTe=dd(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=bl(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[mTe(o),cTe(o),dTe(o),fTe(o),lTe(o),uTe(o),pTe(o),jh(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),gTe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`}}))());function uA(){return uA=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,uA({},e,{ref:t,icon:gTe.default}))),vTe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`}}))());function dA(){return dA=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,dA({},e,{ref:t,icon:vTe.default})));K();function fA(e){return G(G({},e),{},{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function pA(e,t){let n=Co(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function mA(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function bTe(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var xTe=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},hA=e=>e.indexOf(`image/`)===0,STe=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],CTe=e=>{if(e.type&&!e.thumbUrl)return hA(e.type);let t=e.thumbUrl||e.url||``,n=xTe(t||e.name);return/^data:image\//.test(t)||STe.includes((n==null?void 0:n.toLowerCase())||``)?!0:!(/^data:/.test(t)||n)},gA=200;function wTe(e){return new Promise(t=>{if(!e.type||!hA(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=gA,n.height=gA,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${gA}px; height: ${gA}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=gA,s=gA,c=0,l=0;e>a?(s=gA/e*a,l=-(s-o)/2):(o=gA/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var TTe=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`}}))());function _A(){return _A=Object.assign?Object.assign.bind():function(e){for(var t=1;tJ.createElement(Yd,_A({},e,{ref:t,icon:TTe.default})));K();var ETe=J.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:g,previewIcon:_,removeIcon:v,downloadIcon:y,extra:b,onPreview:x,onDownload:S,onClose:C},w)=>{var T,E;let{status:D}=s,[O,k]=J.useState(D);J.useEffect(()=>{D!==`removed`&&k(D)},[D]);let[A,j]=J.useState(!1);J.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=u(s),N=J.createElement(`div`,{className:`${e}-icon`},M);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(O===`uploading`||!s.thumbUrl&&!s.url){let t=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!==`uploading`});N=J.createElement(`div`,{className:t},M)}else{let t=p!=null&&p(s)?J.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):M,n=Z(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});N=J.createElement(`a`,{className:n,onClick:e=>x(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let P=Z(`${e}-list-item`,`${e}-list-item-${O}`,r==null?void 0:r.item),F=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,I=(up(h)?h(s):h)?d((up(v)?v(s):v)||J.createElement(Dk,null),()=>C(s),e,a.removeFile,!0):null,L=(up(g)?g(s):g)&&O===`done`?d((up(y)?y(s):y)||J.createElement(vA,null),()=>S(s),e,a.downloadFile):null,R=o!==`picture-card`&&o!==`picture-circle`&&J.createElement(`span`,{key:`download-delete`,className:Z(`${e}-list-item-actions`,{picture:o===`picture`})},L,I),z=up(b)?b(s):b,B=z&&J.createElement(`span`,{className:`${e}-list-item-extra`},z),V=Z(`${e}-list-item-name`),H=s.url?J.createElement(`a`,G(G({key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:V,title:s.name},F),{},{href:s.url,onClick:e=>x(s,e)}),s.name,B):J.createElement(`span`,{key:`view`,role:`button`,tabIndex:0,className:V,onClick:e=>x(s,e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),x(s,e))},title:s.name},s.name,B),U=(up(m)?m(s):m)&&(s.url||s.thumbUrl)?J.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>x(s,e),title:a.previewFile},up(_)?_(s):_||J.createElement(nve,null)):null,ee=(o===`picture-card`||o===`picture-circle`)&&O!==`uploading`&&J.createElement(`span`,{className:`${e}-list-item-actions`},U,O===`done`&&L,I),{getPrefixCls:te}=J.useContext(Eo),ne=te(),re=J.createElement(`div`,{className:P,style:i==null?void 0:i.item},N,H,R,ee,A&&J.createElement(ip,{motionName:`${ne}-fade`,visible:O===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?J.createElement(cbe,G({type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`]},l)):null;return J.createElement(`div`,{className:Z(`${e}-list-item-progress`,t)},n)})),ie=s.response&&typeof s.response==`string`?s.response:((T=s.error)==null?void 0:T.statusText)||((E=s.error)==null?void 0:E.message)||a.uploadError,ae=O===`error`?J.createElement(ab,{title:ie,getPopupContainer:e=>e.parentNode},re):re;return J.createElement(`div`,{className:Z(`${e}-list-item-container`,t),style:n,ref:w},f?f(ae,s,c,{download:S.bind(null,s),preview:x.bind(null,s),remove:C.bind(null,s)}):ae)});K();var DTe=J.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=wTe,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=CTe,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,progress:y={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:x=!0,itemRender:S,disabled:C,classNames:w,styles:T}=e,[,E]=zm(),[D,O]=J.useState(!1),k=[`picture-card`,`picture-circle`].includes(n);J.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r==null||r(e.originFileObj).then(t=>{e.thumbUrl=t||``,E()}))})},[n,d,r]),J.useEffect(()=>{O(!0)},[]);let A=(e,t)=>{if(i)return t==null||t.preventDefault(),i(e)},j=e=>{up(a)?a(e):e.url&&window.open(e.url)},M=e=>{o==null||o(e)},N=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?J.createElement(Fm,null):s.uploading,i=l!=null&&l(e)?J.createElement(yTe,null):J.createElement(yO,null);return t?r:i}return t?J.createElement(Fm,null):J.createElement(_Te,null)},P=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{if(t(),J.isValidElement(e)){var r,i;(r=(i=e.props).onClick)==null||r.call(i,n)}},className:`${n}-list-item-action`,disabled:i?C:!1};return J.isValidElement(e)?J.createElement(pg,G(G({},a),{},{icon:pm(e,G(G({},e.props),{},{onClick:()=>{}}))})):J.createElement(pg,G({},a),J.createElement(`span`,null,e))};J.useImperativeHandle(t,()=>({handlePreview:A,handleDownload:j}));let{getPrefixCls:F}=J.useContext(Eo),I=F(`upload`,u),L=F(),R=Z(`${I}-list`,`${I}-list-${n}`,w==null?void 0:w.list),z=J.useMemo(()=>Ca(dh(L),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[L]),B=G(G({},k?{}:z),{},{motionDeadline:2e3,motionName:`${I}-${k?`animate-inline`:`animate`}`,keys:Co(d.map(e=>({key:e.uid,file:e}))),motionAppear:D});return J.createElement(`div`,{className:R,style:T==null?void 0:T.list},J.createElement(rp,G(G({},B),{},{component:!1}),({key:e,file:t,className:r,style:i})=>J.createElement(ETe,{key:e,locale:s,prefixCls:I,className:r,style:i,classNames:w,styles:T,file:t,items:d,progress:y,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,iconRender:N,actionIconRender:P,itemRender:S,onPreview:A,onDownload:j,onClose:M})),b&&J.createElement(ip,G(G({},B),{},{visible:x,forceRender:!0}),({className:e,style:t})=>pm(b,n=>({className:Z(n.className,e),style:G(G({},t),{},{pointerEvents:e?`none`:void 0},n.style)}))))});K(),Pe();var yA=`__LIST_IGNORE_${Date.now()}__`,bA=J.forwardRef((e,t)=>{let n=ko(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:h,isImageUrl:g,progress:_,prefixCls:v,className:y,type:b=`select`,children:x,style:S,itemRender:C,maxCount:w,data:T={},multiple:E=!1,hasControlInside:D=!0,action:O=``,accept:k,supportServerRender:A=!0,rootClassName:j,styles:M,classNames:N}=e,P=J.useContext(gm),F=p==null?P:p,I=e.customRequest||n.customRequest,L=n.progress||_?G(G({},n.progress),_):void 0,R=Im(k,n.accept,``),[z,B]=$r(i,r),V=z||[],[H,U]=J.useState(`drop`),ee=J.useRef(null),te=J.useRef(null);J.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let ne=(e,t,n)=>{let r=Co(t),i=!1;w===1?r=r.slice(-1):w&&(i=r.length>w,r=r.slice(0,w)),(0,Xa.flushSync)(()=>{B(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,Xa.flushSync)(()=>{u==null||u(a)})},re=function(){var t=Ne(function*(t,n){let{beforeUpload:r}=e,i=t;if(r){let e=yield r(t,n);if(e===!1)return!1;if(delete t[yA],e===yA)return Object.defineProperty(t,yA,{value:!0,configurable:!0}),!1;lp(e)&&(i=e)}return i});return function(e,n){return t.apply(this,arguments)}}(),ie=e=>{let t=e.filter(e=>!e.file[yA]);if(!t.length)return;let n=t.map(e=>fA(e.file)),r=Co(V);n.forEach(e=>{r=pA(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}ne(i,r)})},ae=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch(e){}if(!mA(t,V))return;let r=fA(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n;let i=pA(r,V);ne(r,i)},oe=(e,t)=>{if(!mA(t,V))return;let n=fA(t);n.status=`uploading`,n.percent=e.percent;let r=pA(n,V);ne(n,r,e)},se=(e,t,n)=>{if(!mA(n,V))return;let r=fA(n);r.error=e,r.response=t,r.status=`error`;let i=pA(r,V);ne(r,i)},ce=e=>{let t;Promise.resolve(up(a)?a(e):a).then(n=>{if(n===!1)return;let r=bTe(e,V);if(r){var i;t=G(G({},e),{},{status:`removed`}),V==null||V.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),(i=ee.current)==null||i.abort(t),ne(t,r)}})},le=e=>{U(e.type),e.type===`drop`&&(d==null||d(e))};J.useImperativeHandle(t,()=>({onBatchStart:ie,onSuccess:ae,onProgress:oe,onError:se,fileList:V,upload:ee.current,nativeElement:te.current}));let{getPrefixCls:ue,direction:de,className:fe,style:pe,classNames:me,styles:he}=ko(`upload`),W=ue(`upload`,v),ge=G(G({},e),{},{listType:s,showUploadList:o,type:b,multiple:E,hasControlInside:D,supportServerRender:A,disabled:F}),[_e,K]=xp([me,N],[he,M],{props:ge}),ve=G(G({onBatchStart:ie,onError:se,onProgress:oe,onSuccess:ae},e),{},{customRequest:I,data:T,multiple:E,action:O,accept:R,supportServerRender:A,prefixCls:W,disabled:F,beforeUpload:re,onChange:void 0,hasControlInside:D});delete ve.className,delete ve.style,(!x||F)&&delete ve.id;let q=`${W}-wrapper`,[ye,be]=hTe(W,q),[xe]=Hp(`Upload`,Wn.Upload),{showRemoveIcon:Se,showPreviewIcon:Ce,showDownloadIcon:we,removeIcon:Te,previewIcon:Ee,downloadIcon:De,extra:Oe}=typeof o==`boolean`?{}:o,ke=Se===void 0?!F:Se,Ae=(e,t)=>o?J.createElement(DTe,{classNames:_e,styles:K,prefixCls:W,listType:s,items:V,previewFile:f,onPreview:c,onDownload:l,onRemove:ce,showRemoveIcon:ke,showPreviewIcon:Ce,showDownloadIcon:we,removeIcon:Te,previewIcon:Ee,downloadIcon:De,iconRender:h,extra:Oe,locale:G(G({},xe),m),isImageUrl:g,progress:L,appendAction:e,appendActionVisible:t,itemRender:C,disabled:F}):e,je=Z(q,y,j,ye,be,fe,_e.root,{[`${W}-rtl`]:de===`rtl`,[`${W}-picture-card-wrapper`]:s===`picture-card`,[`${W}-picture-circle-wrapper`]:s===`picture-circle`}),Me=G({},K.root),Pe=G(G({},pe),S);if(b===`drag`){let e=Z(ye,W,`${W}-drag`,{[`${W}-drag-uploading`]:V.some(e=>e.status===`uploading`),[`${W}-drag-hover`]:H===`dragover`,[`${W}-disabled`]:F,[`${W}-rtl`]:de===`rtl`},_e.trigger);return J.createElement(`span`,{className:je,ref:te,style:Me},J.createElement(`div`,{className:e,style:G(G({},Pe),K.trigger),onDrop:le,onDragOver:le,onDragLeave:le},J.createElement(lA,G(G({},ve),{},{ref:ee,className:`${W}-btn`}),J.createElement(`div`,{className:`${W}-drag-container`},x))),Ae())}let Fe=Z(W,`${W}-select`,{[`${W}-disabled`]:F,[`${W}-hidden`]:!x},_e.trigger),Ie=J.createElement(`div`,{className:Fe,style:G(G({},Pe),K.trigger)},J.createElement(lA,G(G({},ve),{},{ref:ee})));return s===`picture-card`||s===`picture-circle`?J.createElement(`span`,{className:je,ref:te,style:Me},Ae(Ie,!!x)):J.createElement(`span`,{className:je,ref:te,style:Me},Ie,Ae())});K();var OTe=[`style`,`height`,`hasControlInside`,`children`],kTe=J.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a}=e,o=q(e,OTe),s=G(G({},n),{},{height:r});return J.createElement(bA,G(G({ref:t,hasControlInside:i},o),{},{style:s,type:`drag`}),a)}),xA=bA;xA.Dragger=kTe,xA.LIST_IGNORE=yA,K();var ATe=(e,t,n,r)=>{var i,a,o;let s=[n,G({code:t},r||{})];if(!(e==null||(i=e.services)==null||(i=i.logger)==null)&&i.forward)return e.services.logger.forward(s,`warn`,`react-i18next::`,!0);DA(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),!(e==null||(a=e.services)==null||(a=a.logger)==null)&&a.warn?e.services.logger.warn(...s):(o=console)!=null&&o.warn&&console.warn(...s)},SA={},CA=(e,t,n,r)=>{DA(n)&&SA[n]||(DA(n)&&(SA[n]=new Date),ATe(e,t,n,r))},wA=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},TA=(e,t,n)=>{e.loadNamespaces(t,wA(e,n))},EA=(e,t,n,r)=>{if(DA(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return TA(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,wA(e,r))},jTe=(e,t,n={})=>!t.languages||!t.languages.length?(CA(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),DA=e=>typeof e==`string`,MTe=e=>typeof e==`object`&&!!e,NTe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,PTe={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},FTe=e=>PTe[e],ITe={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(NTe,FTe),transDefaultProps:void 0},LTe=()=>ITe,RTe,zTe=()=>RTe,OA=(0,J.createContext)(),BTe=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},VTe=s((e=>{var t=gn();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),HTe=s(((e,t)=>{t.exports=VTe()}))();K();var UTe={t:(e,t)=>{if(DA(t))return t;if(MTe(t)&&DA(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},WTe=()=>()=>{},kA=(e,t={})=>{var n,r,i;let{i18n:a}=t,{i18n:o,defaultNS:s}=(0,J.useContext)(OA)||{},c=a||o||zTe();c&&!c.reportNamespaces&&(c.reportNamespaces=new BTe),c||CA(c,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let l=(0,J.useMemo)(()=>{var e;return G(G(G({},LTe()),c==null||(e=c.options)==null?void 0:e.react),t)},[c,t]),{useSuspense:u,keyPrefix:d}=l,f=e||s||(c==null||(n=c.options)==null?void 0:n.defaultNS),p=DA(f)?[f]:f||[`translation`],m=(0,J.useMemo)(()=>p,p);c==null||(r=c.reportNamespaces)==null||(i=r.addUsedNamespaces)==null||i.call(r,m);let h=(0,J.useRef)(0),g=(0,J.useCallback)(e=>{if(!c)return WTe;let{bindI18n:t,bindI18nStore:n}=l,r=()=>{h.current+=1,e()};return t&&c.on(t,r),n&&c.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>c.off(e,r)),n&&n.split(` `).forEach(e=>c.store.off(e,r))}},[c,l]),_=(0,J.useRef)(),v=(0,J.useCallback)(()=>{if(!c)return UTe;let e=!!(c.isInitialized||c.initializedStoreOnce)&&m.every(e=>jTe(e,c,l)),n=t.lng||c.language,r=h.current,i=_.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===d&&i.revision===r)return i;let a={t:c.getFixedT(n,l.nsMode===`fallback`?m:m[0],d,{scopeNs:m}),ready:e,lng:n,keyPrefix:d,revision:r};return _.current=a,a},[c,m,d,l,t.lng]),[y,b]=(0,J.useState)(0),{t:x,ready:S}=(0,HTe.useSyncExternalStore)(g,v,v);(0,J.useEffect)(()=>{if(c&&!S&&!u){let e=()=>b(e=>e+1);t.lng?EA(c,t.lng,m,e):TA(c,m,e)}},[c,t.lng,m,S,u,y]);let C=c||{},w=(0,J.useRef)(null),T=(0,J.useRef)(),E=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},D=(0,J.useMemo)(()=>{let e=C,t=e==null?void 0:e.language,n=e;e&&(w.current&&w.current.__original===e&&T.current===t?n=w.current:(n=E(e),w.current=n,T.current=t));let r=!S&&!u?(...e)=>(CA(c,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),x(...e)):x,i=[r,n,S];return i.t=r,i.i18n=n,i.ready=S,i},[x,C,S,C.resolvedLanguage,C.language,C.languages]);if(c&&u&&!S){let e=!1;try{e=!1}catch(e){}throw e&&CA(c,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?EA(c,t.lng,m,n):TA(c,m,n)})}return D};function GTe({i18n:e,defaultNS:t,children:n}){let r=(0,J.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,J.createElement)(OA.Provider,{value:r},n)}K(),Pe();var KTe=[`matches`,`historyAction`],qTe=[`page`],JTe=[`page`,`matches`],YTe=[`page`,`matches`],XTe=[`onClick`,`discover`,`prefetch`,`relative`,`reloadDocument`,`replace`,`mask`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`,`defaultShouldRevalidate`],ZTe=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`viewTransition`,`children`],QTe=[`discover`,`fetcherKey`,`navigate`,`reloadDocument`,`replace`,`state`,`method`,`action`,`onSubmit`,`relative`,`preventScrollReset`,`viewTransition`,`defaultShouldRevalidate`],$Te=[`getKey`,`storageKey`],AA=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,jA=/^[\\/]{2}/;function eEe(e,t){return t+e.replace(/\\/g,`/`)}var MA=`popstate`;function NA(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function tEe(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=zA(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),LA(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:RA(t))}function r(e,t){FA(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return rEe(t,n,r,e)}function PA(e,t){if(e===!1||e==null)throw Error(t)}function FA(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch(e){}}}function nEe(){return Math.random().toString(36).substring(2,10)}function IA(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function LA(e,t,n=null,r,i){return G(G({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?zA(t):t),{},{state:n,key:t&&t.key||r||nEe(),mask:i})}function RA({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function zA(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function rEe(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l==null&&(l=0,o.replaceState(G(G({},o.state),{},{idx:l}),``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=NA(e)?e:LA(h.location,e,t);n&&n(r,e),l=u()+1;let d=IA(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=NA(e)?e:LA(h.location,e,t);n&&n(r,e),l=u();let i=IA(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return iEe(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(MA,d),c=e,()=>{i.removeEventListener(MA,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function iEe(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),PA(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:RA(t);return i=i.replace(/ $/,`%20`),!n&&jA.test(i)&&(i=r+i),new URL(i,r)}function BA(e,t,n=`/`){return aEe(e,t,n,!1)}function aEe(e,t,n,r,i){let a=qA((typeof t==`string`?zA(t):t).pathname||`/`,n);if(a==null)return null;let o=i==null?sEe(e):i,s=null,c=vEe(a);for(let e=0;s==null&&e{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;PA(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=$A([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(PA(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),VA(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:hEe(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=KA(e.relativePath,e.caseSensitive,t===u.length-1);return G(G({},e),{},{matcher:n,compiledParams:r})})})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))a(e,t);else for(let n of HA(e.path))a(e,t,!0,n)}),t}function HA(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=HA(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function cEe(e){e.sort((e,t)=>e.score===t.score?gEe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var lEe=/^:[\w-]+$/,uEe=3,dEe=2,fEe=1,pEe=10,mEe=-2,UA=e=>e===`*`;function hEe(e,t){let n=e.split(`/`),r=n.length;return n.some(UA)&&(r+=mEe),t&&(r+=dEe),n.filter(e=>!UA(e)).reduce((e,t)=>e+(lEe.test(t)?uEe:t===``?fEe:pEe),r)}function gEe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function _Ee(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function KA(e,t=!1,n=!0){FA(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function vEe(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return FA(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function qA(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function yEe(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?zA(e):e,a;return n?(n=QA(n),a=n.startsWith(`/`)?JA(n.substring(1),`/`):JA(n,t)):a=t,{pathname:a,search:SEe(r),hash:CEe(i)}}function JA(e,t){let n=ej(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function YA(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function bEe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function XA(e){let t=bEe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ZA(e,t,n,r=!1){let i;typeof e==`string`?i=zA(e):(i=G({},e),PA(!i.pathname||!i.pathname.includes(`?`),YA(`?`,`pathname`,`search`,i)),PA(!i.pathname||!i.pathname.includes(`#`),YA(`#`,`pathname`,`hash`,i)),PA(!i.search||!i.search.includes(`#`),YA(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=yEe(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var QA=e=>e.replace(/[\\/]{2,}/g,`/`),$A=e=>QA(e.join(`/`)),ej=e=>e.replace(/\/+$/,``),xEe=e=>ej(e).replace(/^\/*/,`/`),SEe=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,CEe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,wEe=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function TEe(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function EEe(e){return $A(e.map(e=>e.route.path).filter(Boolean))||`/`}var tj=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function nj(e,t){let n=e;if(typeof n!=`string`||!AA.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(tj)try{let e=new URL(window.location.href),r=jA.test(n)?new URL(eEe(n,e.protocol)):new URL(n),a=qA(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch(e){FA(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var rj=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(rj);var DEe=[`GET`,...rj];new Set(DEe);var OEe=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function kEe(e){try{return OEe.includes(new URL(e).protocol)}catch(e){return!1}}var ij=J.createContext(null);ij.displayName=`DataRouter`;var aj=J.createContext(null);aj.displayName=`DataRouterState`;var oj=J.createContext(!1);function AEe(){return J.useContext(oj)}var sj=J.createContext({isTransitioning:!1});sj.displayName=`ViewTransition`;var jEe=J.createContext(new Map);jEe.displayName=`Fetchers`;var MEe=J.createContext(null);MEe.displayName=`Await`;var cj=J.createContext(null);cj.displayName=`Navigation`;var lj=J.createContext(null);lj.displayName=`Location`;var uj=J.createContext({outlet:null,matches:[],isDataRoute:!1});uj.displayName=`Route`;var dj=J.createContext(null);dj.displayName=`RouteError`;var fj=`REACT_ROUTER_ERROR`,NEe=`REDIRECT`,PEe=`ROUTE_ERROR_RESPONSE`;function FEe(e){if(e.startsWith(`${fj}:${NEe}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch(e){}}function IEe(e){if(e.startsWith(`${fj}:${PEe}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new wEe(t.status,t.statusText,t.data)}catch(e){}}function LEe(e,{relative:t}={}){PA(pj(),`useHref() may be used only in the context of a component.`);let{basename:n,navigator:r}=J.useContext(cj),{hash:i,pathname:a,search:o}=yj(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:$A([n,a])),r.createHref({pathname:s,search:o,hash:i})}function pj(){return J.useContext(lj)!=null}function mj(){return PA(pj(),`useLocation() may be used only in the context of a component.`),J.useContext(lj).location}var hj=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function gj(e){J.useContext(cj).static||J.useLayoutEffect(e)}function _j(){let{isDataRoute:e}=J.useContext(uj);return e?XEe():REe()}function REe(){PA(pj(),`useNavigate() may be used only in the context of a component.`);let e=J.useContext(ij),{basename:t,navigator:n}=J.useContext(cj),{matches:r}=J.useContext(uj),{pathname:i}=mj(),a=JSON.stringify(XA(r)),o=J.useRef(!1);return gj(()=>{o.current=!0}),J.useCallback((r,s={})=>{if(FA(o.current,hj),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ZA(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:$A([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}J.createContext(null);function vj(){var e;let{matches:t}=J.useContext(uj),n=t[t.length-1];return(e=n==null?void 0:n.params)==null?{}:e}function yj(e,{relative:t}={}){let{matches:n}=J.useContext(uj),{pathname:r}=mj(),i=JSON.stringify(XA(n));return J.useMemo(()=>ZA(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function zEe(e,t){return bj(e,t)}function bj(e,t,n){PA(pj(),`useRoutes() may be used only in the context of a component.`);let{navigator:r}=J.useContext(cj),{matches:i}=J.useContext(uj),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Oj(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let u=cp(),f;if(t){let y=typeof t=="string"?Qv(t):t;ma(l==="/"||((v=y.pathname)==null?void 0:v.startsWith(l)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${y.pathname}" was given in the \`location\` prop.`),f=y}else f=u;let d=f.pathname||"/",A=d;if(l!=="/"){let y=l.replace(/^\//,"").split("/");A="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let h=n&&n.state.matches.length?n.state.matches.map(y=>Object.assign(y,{route:n.manifest[y.route.id]||y.route})):Nfe(e,{pathname:A});cd(c||h!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),cd(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let p=AJe(h&&h.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:ud([l,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:ud([l,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),i,n);return t&&p?g.createElement(A2.Provider,{value:{location:I({pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0},f),navigationType:"POP"}},p):p}function cJe(){let e=vJe(),t=GZe(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:i},n):null,a)}var uJe=g.createElement(cJe,null),Zfe=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=oJe(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(xA.Provider,{value:this.props.routeContext},g.createElement(pj.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(fJe,{error:e},t):t}};Zfe.contextType=Kfe;var gj=new WeakMap;function fJe({children:e,error:t}){let{basename:n}=g.useContext(tf);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=iJe(t.digest);if(r){let i=gj.get(t);if(i)throw i;let o=Qfe(r.location,n),a=o.absoluteURL||o.to;if(ZZe(a))throw new Error("Invalid redirect location");if(zfe&&!gj.get(t))if(o.isExternal||r.reloadDocument)window.location.href=a;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw gj.set(t,s),s}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return e}function dJe({routeContext:e,match:t,children:n}){let r=g.useContext(ax);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(xA.Provider,{value:e},n)}function AJe(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,o=r==null?void 0:r.errors;if(o!=null){let u=i.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);ma(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let a=!1,s=-1;if(n&&r){a=r.renderFallback;for(let u=0;u=0?i=i.slice(0,s+1):i=[i[0]];break}}}}let l=n==null?void 0:n.onError,c=r&&l?(u,f)=>{var d,A,h;l(u,{location:r.location,params:(h=(A=(d=r.matches)==null?void 0:d[0])==null?void 0:A.params)!=null?h:{},pattern:qZe(r.matches),errorInfo:f})}:void 0;return i.reduceRight((u,f,d)=>{let A,h=!1,p=null,v=null;r&&(A=o&&f.route.id?o[f.route.id]:void 0,p=f.route.errorElement||uJe,a&&(s<0&&d===0?(ede("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,v=null):s===d&&(h=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,d+1)),b=()=>{let x;return A?x=p:h?x=v:f.route.Component?x=g.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=u,g.createElement(dJe,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?g.createElement(Zfe,{location:r.location,revalidation:r.revalidation,component:p,error:A,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):b()},null)}function mj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hJe(e){let t=g.useContext(ax);return ma(t,mj(e)),t}function pJe(e){let t=g.useContext(fR);return ma(t,mj(e)),t}function gJe(e){let t=g.useContext(xA);return ma(t,mj(e)),t}function vj(e){let t=gJe(e),n=t.matches[t.matches.length-1];return ma(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function mJe(){return vj("useRouteId")}function vJe(){var r;let e=g.useContext(pj),t=pJe("useRouteError"),n=vj("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function yJe(){let{router:e}=hJe("useNavigate"),t=vj("useNavigate"),n=g.useRef(!1);return Yfe(()=>{n.current=!0}),g.useCallback((a,...s)=>Er(null,[a,...s],function*(i,o={}){cd(n.current,qfe),n.current&&(typeof i=="number"?yield e.navigate(i):yield e.navigate(i,I({fromRouteId:t},o)))}),[e,t])}var Jfe={};function ede(e,t,n){!t&&!Jfe[e]&&(Jfe[e]=!0,cd(!1,n))}g.memo(bJe);function bJe({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:o}){return Xfe(e,void 0,{manifest:t,state:r,isStatic:i,onError:o})}function lx(e){ma(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function xJe({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,useTransitions:a}){ma(!h2(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:s,navigator:i,static:o,useTransitions:a,future:{}}),[s,i,o,a]);typeof n=="string"&&(n=Qv(n));let{pathname:c="/",search:u="",hash:f="",state:d=null,key:A="default",mask:h}=n,p=g.useMemo(()=>{let v=lp(c,s);return v==null?null:{location:{pathname:v,search:u,hash:f,state:d,key:A,mask:h},navigationType:r}},[s,c,u,f,d,A,r,h]);return cd(p!=null,` is not able to match the URL "${c}${u}${f}" because it does not start with the basename, so the won't render anything.`),p==null?null:g.createElement(tf.Provider,{value:l},g.createElement(A2.Provider,{children:t,value:p}))}function wJe({children:e,location:t}){return lJe(yj(e),t)}function yj(e,t=[]){let n=[];return g.Children.forEach(e,(r,i)=>{if(!g.isValidElement(r))return;let o=[...t,i];if(r.type===g.Fragment){n.push.apply(n,yj(r.props.children,o));return}ma(r.type===lx,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),ma(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=yj(r.props.children,o)),n.push(a)}),n}var AR="get",hR="application/x-www-form-urlencoded";function pR(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement}function CJe(e){return pR(e)&&e.tagName.toLowerCase()==="button"}function SJe(e){return pR(e)&&e.tagName.toLowerCase()==="form"}function EJe(e){return pR(e)&&e.tagName.toLowerCase()==="input"}function BJe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function OJe(e,t){return e.button===0&&(!t||t==="_self")&&!BJe(e)}var gR=null;function $Je(){if(gR===null)try{new FormData(document.createElement("form"),0),gR=!1}catch(e){gR=!0}return gR}var _Je=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bj(e){return e!=null&&!_Je.has(e)?(cd(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${hR}"`),null):e}function TJe(e,t){let n,r,i,o,a;if(SJe(e)){let s=e.getAttribute("action");r=s?lp(s,t):null,n=e.getAttribute("method")||AR,i=bj(e.getAttribute("enctype"))||hR,o=new FormData(e)}else if(CJe(e)||EJe(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a